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 liboauth2 2.3.0.
4 #
5 # Report bugs to <[email protected]>.
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: [email protected] about your system, including
283 $0: any error possibly output before this message. Then
284 $0: install a modern shell, or manually run the script
285 $0: 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='liboauth2'
616 PACKAGE_TARNAME='liboauth2'
617 PACKAGE_VERSION='2.3.0'
618 PACKAGE_STRING='liboauth2 2.3.0'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 HAVE_CHECK_FALSE
659 HAVE_CHECK_TRUE
660 CHECK_LIBS
661 CHECK_CFLAGS
662 NGINX_LIBS
663 NGINX_CFLAGS
664 HAVE_NGINX_FALSE
665 HAVE_NGINX_TRUE
666 APACHE_CFLAGS
667 HAVE_APACHE_FALSE
668 HAVE_APACHE_TRUE
669 APR_LIBS
670 APR_CFLAGS
671 APXS
672 JQ_CFLAGS_PC
673 JQ_LIBS_PC
674 HAVE_LIBJQ_FALSE
675 HAVE_LIBJQ_TRUE
676 JQ_LIBS
677 JQ_CFLAGS
678 HIREDIS_PC
679 HAVE_LIBHIREDIS_FALSE
680 HAVE_LIBHIREDIS_TRUE
681 HIREDIS_LIBS
682 HIREDIS_CFLAGS
683 MEMCACHE_PC
684 HAVE_LIBMEMCACHE_FALSE
685 HAVE_LIBMEMCACHE_TRUE
686 MEMCACHE_LIBS
687 MEMCACHE_CFLAGS
688 PCRE2_LIBS
689 PCRE2_CFLAGS
690 CJOSE_LIBS
691 CJOSE_CFLAGS
692 JANSSON_LIBS
693 JANSSON_CFLAGS
694 CURL_LIBS
695 CURL_CFLAGS
696 OPENSSL_LIBS
697 OPENSSL_CFLAGS
698 PKG_CONFIG_LIBDIR
699 PKG_CONFIG_PATH
700 PKG_CONFIG
701 LIBTOOL_EXTRA_FLAGS
702 CODE_COVERAGE_RULES
703 CODE_COVERAGE_LDFLAGS
704 CODE_COVERAGE_LIBS
705 CODE_COVERAGE_CXXFLAGS
706 CODE_COVERAGE_CFLAGS
707 CODE_COVERAGE_CPPFLAGS
708 GENHTML
709 LCOV
710 GCOV
711 CODE_COVERAGE_ENABLED
712 CODE_COVERAGE_ENABLED_FALSE
713 CODE_COVERAGE_ENABLED_TRUE
714 LT_SYS_LIBRARY_PATH
715 OTOOL64
716 OTOOL
717 LIPO
718 NMEDIT
719 DSYMUTIL
720 MANIFEST_TOOL
721 RANLIB
722 DLLTOOL
723 OBJDUMP
724 FILECMD
725 LN_S
726 NM
727 ac_ct_DUMPBIN
728 DUMPBIN
729 LD
730 FGREP
731 EGREP
732 GREP
733 SED
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 LIBTOOL
743 am__fastdepCC_FALSE
744 am__fastdepCC_TRUE
745 CCDEPMODE
746 am__nodep
747 AMDEPBACKSLASH
748 AMDEP_FALSE
749 AMDEP_TRUE
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 ac_ct_AR
760 AR
761 am__xargs_n
762 am__rm_f_notfound
763 AM_BACKSLASH
764 AM_DEFAULT_VERBOSITY
765 AM_DEFAULT_V
766 AM_V
767 CSCOPE
768 ETAGS
769 CTAGS
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 runstatedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL
832 am__quote'
833 ac_subst_files=''
834 ac_user_opts='
835 enable_option_checking
836 enable_silent_rules
837 enable_dependency_tracking
838 enable_shared
839 enable_static
840 enable_pic
841 with_pic
842 enable_fast_install
843 enable_aix_soname
844 with_aix_soname
845 with_gnu_ld
846 with_sysroot
847 enable_libtool_lock
848 with_gcov
849 enable_code_coverage
850 with_memcache
851 with_redis
852 with_jq
853 with_apache
854 with_apxs
855 with_nginx
856 '
857 ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CC
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
865 LT_SYS_LIBRARY_PATH
866 PKG_CONFIG
867 PKG_CONFIG_PATH
868 PKG_CONFIG_LIBDIR
869 OPENSSL_CFLAGS
870 OPENSSL_LIBS
871 CURL_CFLAGS
872 CURL_LIBS
873 JANSSON_CFLAGS
874 JANSSON_LIBS
875 CJOSE_CFLAGS
876 CJOSE_LIBS
877 PCRE2_CFLAGS
878 PCRE2_LIBS
879 MEMCACHE_CFLAGS
880 MEMCACHE_LIBS
881 HIREDIS_CFLAGS
882 HIREDIS_LIBS
883 JQ_CFLAGS
884 JQ_LIBS
885 APR_CFLAGS
886 APR_LIBS
887 CHECK_CFLAGS
888 CHECK_LIBS'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 runstatedir='${localstatedir}/run'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
949 fi
950
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
985
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: '$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1018
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: '$ac_useropt'"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1043
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1047
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1054
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1059
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1065
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1072
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1077
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1082
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1089
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1094
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1101
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1106
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1110
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1114
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1118
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1127
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1132
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1139
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1146
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1163
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1168
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1173
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1177
1178 -runstatedir | --runstatedir | --runstatedi | --runstated \
1179 | --runstate | --runstat | --runsta | --runst | --runs \
1180 | --run | --ru | --r)
1181 ac_prev=runstatedir ;;
1182 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1183 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1184 | --run=* | --ru=* | --r=*)
1185 runstatedir=$ac_optarg ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: '$ac_useropt'"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: '$ac_useropt'"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
1282 -*) as_fn_error $? "unrecognized option: '$ac_option'
1283 Try '$0 --help' for more information"
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
1298 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 ;;
1303
1304 esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir runstatedir
1325 do
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: '$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 printf "%s\n" X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\).*/{
1394 s//\1/
1395 q
1396 }
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1401 fi
1402 else
1403 ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 'configure' configures liboauth2 2.3.0 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print 'checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for '--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or '..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, 'make install' will install all the files in
1464 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than '$ac_default_prefix' using '--prefix',
1466 for instance '--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/liboauth2]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of liboauth2 2.3.0:";;
1509 esac
1510 cat <<\_ACEOF
1511
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-silent-rules less verbose build output (undo: "make V=1")
1517 --disable-silent-rules verbose build output (undo: "make V=0")
1518 --enable-dependency-tracking
1519 do not reject slow dependency extractors
1520 --disable-dependency-tracking
1521 speeds up one-time build
1522 --enable-shared[=PKGS] build shared libraries [default=yes]
1523 --enable-static[=PKGS] build static libraries [default=yes]
1524 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1525 both]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --enable-aix-soname=aix|svr4|both
1529 shared library versioning (aka "SONAME") variant to
1530 provide on AIX, [default=aix].
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --enable-code-coverage Whether to enable code coverage support
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1538 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1539 compiler's sysroot if not specified).
1540 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1541 --with-memcache build with Memcache cache support
1542 [default=autodetect]
1543 --with-redis build with Redis cache support [default=autodetect]
1544 --with-jq=PATH location of your libjq installation]
1545 --with-apache build with Apache support [default=autodetect]
1546 --with-apxs=PATH/NAME path to the apxs binary for Apache [[apxs]]
1547 --with-nginx=DIR build with NGINX support [default=no]
1548
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 LT_SYS_LIBRARY_PATH
1558 User-defined run-time library search path.
1559 PKG_CONFIG path to pkg-config utility
1560 PKG_CONFIG_PATH
1561 directories to add to pkg-config's search path
1562 PKG_CONFIG_LIBDIR
1563 path overriding pkg-config's built-in search path
1564 OPENSSL_CFLAGS
1565 C compiler flags for OPENSSL, overriding pkg-config
1566 OPENSSL_LIBS
1567 linker flags for OPENSSL, overriding pkg-config
1568 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1569 CURL_LIBS linker flags for CURL, overriding pkg-config
1570 JANSSON_CFLAGS
1571 C compiler flags for JANSSON, overriding pkg-config
1572 JANSSON_LIBS
1573 linker flags for JANSSON, overriding pkg-config
1574 CJOSE_CFLAGS
1575 C compiler flags for CJOSE, overriding pkg-config
1576 CJOSE_LIBS linker flags for CJOSE, overriding pkg-config
1577 PCRE2_CFLAGS
1578 C compiler flags for PCRE2, overriding pkg-config
1579 PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
1580 MEMCACHE_CFLAGS
1581 C compiler flags for MEMCACHE, overriding pkg-config
1582 MEMCACHE_LIBS
1583 linker flags for MEMCACHE, overriding pkg-config
1584 HIREDIS_CFLAGS
1585 C compiler flags for HIREDIS, overriding pkg-config
1586 HIREDIS_LIBS
1587 linker flags for HIREDIS, overriding pkg-config
1588 JQ_CFLAGS C compiler flags for JQ, overriding pkg-config
1589 JQ_LIBS linker flags for JQ, overriding pkg-config
1590 APR_CFLAGS C compiler flags for APR, overriding pkg-config
1591 APR_LIBS linker flags for APR, overriding pkg-config
1592 CHECK_CFLAGS
1593 C compiler flags for CHECK, overriding pkg-config
1594 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1595
1596 Use these variables to override the choices made by 'configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <[email protected]>.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607 test -d "$ac_dir" ||
1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609 continue
1610 ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629 .) # We are building in place.
1630 ac_srcdir=.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for configure.gnu first; this name is used for a wrapper for
1646 # Metaconfig's "Configure" on case-insensitive file systems.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 liboauth2 configure 2.3.0
1664 generated by GNU Autoconf 2.72
1665
1666 Copyright (C) 2023 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670 exit
1671 fi
1672
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1676
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest.beam
1684 if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext
1703 then :
1704 ac_retval=0
1705 else case e in #(
1706 e) printf "%s\n" "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1 ;;
1710 esac
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_compile
1716
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_link ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1745 }
1746 then :
1747 ac_retval=0
1748 else case e in #(
1749 e) printf "%s\n" "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1 ;;
1753 esac
1754 fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_link
1764
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 printf %s "checking for $2... " >&6; }
1774 if eval test \${$3+y}
1775 then :
1776 printf %s "(cached) " >&6
1777 else case e in #(
1778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"
1784 then :
1785 eval "$3=yes"
1786 else case e in #(
1787 e) eval "$3=no" ;;
1788 esac
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1791 esac
1792 fi
1793 eval ac_res=\$$3
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 printf "%s\n" "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_header_compile
1799
1800 # ac_fn_c_check_func LINENO FUNC VAR
1801 # ----------------------------------
1802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1803 ac_fn_c_check_func ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 printf %s "checking for $2... " >&6; }
1808 if eval test \${$3+y}
1809 then :
1810 printf %s "(cached) " >&6
1811 else case e in #(
1812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1816 #define $2 innocuous_$2
1817
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $2 (void); below. */
1820
1821 #include <limits.h>
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 (void);
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main (void)
1840 {
1841 return $2 ();
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"
1847 then :
1848 eval "$3=yes"
1849 else case e in #(
1850 e) eval "$3=no" ;;
1851 esac
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1854 conftest$ac_exeext conftest.$ac_ext ;;
1855 esac
1856 fi
1857 eval ac_res=\$$3
1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 printf "%s\n" "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_func
1863 ac_configure_args_raw=
1864 for ac_arg
1865 do
1866 case $ac_arg in
1867 *\'*)
1868 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 esac
1870 as_fn_append ac_configure_args_raw " '$ac_arg'"
1871 done
1872
1873 case $ac_configure_args_raw in
1874 *$as_nl*)
1875 ac_safe_unquote= ;;
1876 *)
1877 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1878 ac_unsafe_a="$ac_unsafe_z#~"
1879 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1880 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1881 esac
1882
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1886
1887 It was created by liboauth2 $as_me 2.3.0, which was
1888 generated by GNU Autoconf 2.72. Invocation command line was
1889
1890 $ $0$ac_configure_args_raw
1891
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1899
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917 _ASUNAME
1918
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 case $as_dir in #(((
1924 '') as_dir=./ ;;
1925 */) ;;
1926 *) as_dir=$as_dir/ ;;
1927 esac
1928 printf "%s\n" "PATH: $as_dir"
1929 done
1930 IFS=$as_save_IFS
1931
1932 } >&5
1933
1934 cat >&5 <<_ACEOF
1935
1936
1937 ## ----------- ##
1938 ## Core tests. ##
1939 ## ----------- ##
1940
1941 _ACEOF
1942
1943
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_configure_args=
1950 ac_configure_args0=
1951 ac_configure_args1=
1952 ac_must_keep_next=false
1953 for ac_pass in 1 2
1954 do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
1962 *\'*)
1963 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 esac
1965 case $ac_pass in
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1967 2)
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
1984 as_fn_append ac_configure_args " '$ac_arg'"
1985 ;;
1986 esac
1987 done
1988 done
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1991
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Sanitize IFS.
1999 IFS=" "" $as_nl"
2000 # Save into config.log some information that might help in debugging.
2001 {
2002 echo
2003
2004 printf "%s\n" "## ---------------- ##
2005 ## Cache variables. ##
2006 ## ---------------- ##"
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
2009 (
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
2025 (set) 2>&1 |
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2028 sed -n \
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
2032 *)
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034 ;;
2035 esac |
2036 sort
2037 )
2038 echo
2039
2040 printf "%s\n" "## ----------------- ##
2041 ## Output variables. ##
2042 ## ----------------- ##"
2043 echo
2044 for ac_var in $ac_subst_vars
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 printf "%s\n" "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053
2054 if test -n "$ac_subst_files"; then
2055 printf "%s\n" "## ------------------- ##
2056 ## File substitutions. ##
2057 ## ------------------- ##"
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 printf "%s\n" "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 printf "%s\n" "## ----------- ##
2072 ## confdefs.h. ##
2073 ## ----------- ##"
2074 echo
2075 cat confdefs.h
2076 echo
2077 fi
2078 test "$ac_signal" != 0 &&
2079 printf "%s\n" "$as_me: caught signal $ac_signal"
2080 printf "%s\n" "$as_me: exit $exit_status"
2081 } >&5
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084 exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 printf "%s\n" "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2099
2100 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2101
2102 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2103
2104 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2105
2106 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2107
2108 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2109
2110
2111 # Let the site file select an alternate cache file if it wants to.
2112 # Prefer an explicitly selected file to automatically selected ones.
2113 if test -n "$CONFIG_SITE"; then
2114 ac_site_files="$CONFIG_SITE"
2115 elif test "x$prefix" != xNONE; then
2116 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2117 else
2118 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2119 fi
2120
2121 for ac_site_file in $ac_site_files
2122 do
2123 case $ac_site_file in #(
2124 */*) :
2125 ;; #(
2126 *) :
2127 ac_site_file=./$ac_site_file ;;
2128 esac
2129 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2132 sed 's/^/| /' "$ac_site_file" >&5
2133 . "$ac_site_file" \
2134 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2135 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2136 as_fn_error $? "failed to load site script $ac_site_file
2137 See 'config.log' for more details" "$LINENO" 5; }
2138 fi
2139 done
2140
2141 if test -r "$cache_file"; then
2142 # Some versions of bash will fail to source /dev/null (special files
2143 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2144 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2146 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2147 case $cache_file in
2148 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149 *) . "./$cache_file";;
2150 esac
2151 fi
2152 else
2153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2154 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2155 >$cache_file
2156 fi
2157
2158 # Test code for whether the C compiler supports C89 (global declarations)
2159 ac_c_conftest_c89_globals='
2160 /* Does the compiler advertise C89 conformance?
2161 Do not test the value of __STDC__, because some compilers set it to 0
2162 while being otherwise adequately conformant. */
2163 #if !defined __STDC__
2164 # error "Compiler does not advertise C89 conformance"
2165 #endif
2166
2167 #include <stddef.h>
2168 #include <stdarg.h>
2169 struct stat;
2170 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2171 struct buf { int x; };
2172 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2173 static char *e (char **p, int i)
2174 {
2175 return p[i];
2176 }
2177 static char *f (char * (*g) (char **, int), char **p, ...)
2178 {
2179 char *s;
2180 va_list v;
2181 va_start (v,p);
2182 s = g (p, va_arg (v,int));
2183 va_end (v);
2184 return s;
2185 }
2186
2187 /* C89 style stringification. */
2188 #define noexpand_stringify(a) #a
2189 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2190
2191 /* C89 style token pasting. Exercises some of the corner cases that
2192 e.g. old MSVC gets wrong, but not very hard. */
2193 #define noexpand_concat(a,b) a##b
2194 #define expand_concat(a,b) noexpand_concat(a,b)
2195 extern int vA;
2196 extern int vbee;
2197 #define aye A
2198 #define bee B
2199 int *pvA = &expand_concat(v,aye);
2200 int *pvbee = &noexpand_concat(v,bee);
2201
2202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2203 function prototypes and stuff, but not \xHH hex character constants.
2204 These do not provoke an error unfortunately, instead are silently treated
2205 as an "x". The following induces an error, until -std is added to get
2206 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2207 array size at least. It is necessary to write \x00 == 0 to get something
2208 that is true only with -std. */
2209 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2210
2211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2212 inside strings and character constants. */
2213 #define FOO(x) '\''x'\''
2214 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2215
2216 int test (int i, double x);
2217 struct s1 {int (*f) (int a);};
2218 struct s2 {int (*f) (double a);};
2219 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2220 int, int);'
2221
2222 # Test code for whether the C compiler supports C89 (body of main).
2223 ac_c_conftest_c89_main='
2224 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2225 '
2226
2227 # Test code for whether the C compiler supports C99 (global declarations)
2228 ac_c_conftest_c99_globals='
2229 /* Does the compiler advertise C99 conformance? */
2230 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2231 # error "Compiler does not advertise C99 conformance"
2232 #endif
2233
2234 // See if C++-style comments work.
2235
2236 #include <stdbool.h>
2237 extern int puts (const char *);
2238 extern int printf (const char *, ...);
2239 extern int dprintf (int, const char *, ...);
2240 extern void *malloc (size_t);
2241 extern void free (void *);
2242
2243 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2244 // dprintf is used instead of fprintf to avoid needing to declare
2245 // FILE and stderr.
2246 #define debug(...) dprintf (2, __VA_ARGS__)
2247 #define showlist(...) puts (#__VA_ARGS__)
2248 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2249 static void
2250 test_varargs_macros (void)
2251 {
2252 int x = 1234;
2253 int y = 5678;
2254 debug ("Flag");
2255 debug ("X = %d\n", x);
2256 showlist (The first, second, and third items.);
2257 report (x>y, "x is %d but y is %d", x, y);
2258 }
2259
2260 // Check long long types.
2261 #define BIG64 18446744073709551615ull
2262 #define BIG32 4294967295ul
2263 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2264 #if !BIG_OK
2265 #error "your preprocessor is broken"
2266 #endif
2267 #if BIG_OK
2268 #else
2269 #error "your preprocessor is broken"
2270 #endif
2271 static long long int bignum = -9223372036854775807LL;
2272 static unsigned long long int ubignum = BIG64;
2273
2274 struct incomplete_array
2275 {
2276 int datasize;
2277 double data[];
2278 };
2279
2280 struct named_init {
2281 int number;
2282 const wchar_t *name;
2283 double average;
2284 };
2285
2286 typedef const char *ccp;
2287
2288 static inline int
2289 test_restrict (ccp restrict text)
2290 {
2291 // Iterate through items via the restricted pointer.
2292 // Also check for declarations in for loops.
2293 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294 continue;
2295 return 0;
2296 }
2297
2298 // Check varargs and va_copy.
2299 static bool
2300 test_varargs (const char *format, ...)
2301 {
2302 va_list args;
2303 va_start (args, format);
2304 va_list args_copy;
2305 va_copy (args_copy, args);
2306
2307 const char *str = "";
2308 int number = 0;
2309 float fnumber = 0;
2310
2311 while (*format)
2312 {
2313 switch (*format++)
2314 {
2315 case '\''s'\'': // string
2316 str = va_arg (args_copy, const char *);
2317 break;
2318 case '\''d'\'': // int
2319 number = va_arg (args_copy, int);
2320 break;
2321 case '\''f'\'': // float
2322 fnumber = va_arg (args_copy, double);
2323 break;
2324 default:
2325 break;
2326 }
2327 }
2328 va_end (args_copy);
2329 va_end (args);
2330
2331 return *str && number && fnumber;
2332 }
2333 '
2334
2335 # Test code for whether the C compiler supports C99 (body of main).
2336 ac_c_conftest_c99_main='
2337 // Check bool.
2338 _Bool success = false;
2339 success |= (argc != 0);
2340
2341 // Check restrict.
2342 if (test_restrict ("String literal") == 0)
2343 success = true;
2344 char *restrict newvar = "Another string";
2345
2346 // Check varargs.
2347 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348 test_varargs_macros ();
2349
2350 // Check flexible array members.
2351 struct incomplete_array *ia =
2352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353 ia->datasize = 10;
2354 for (int i = 0; i < ia->datasize; ++i)
2355 ia->data[i] = i * 1.234;
2356 // Work around memory leak warnings.
2357 free (ia);
2358
2359 // Check named initializers.
2360 struct named_init ni = {
2361 .number = 34,
2362 .name = L"Test wide string",
2363 .average = 543.34343,
2364 };
2365
2366 ni.number = 58;
2367
2368 int dynamic_array[ni.number];
2369 dynamic_array[0] = argv[0][0];
2370 dynamic_array[ni.number - 1] = 543;
2371
2372 // work around unused variable warnings
2373 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2374 || dynamic_array[ni.number - 1] != 543);
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (global declarations)
2378 ac_c_conftest_c11_globals='
2379 /* Does the compiler advertise C11 conformance? */
2380 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2381 # error "Compiler does not advertise C11 conformance"
2382 #endif
2383
2384 // Check _Alignas.
2385 char _Alignas (double) aligned_as_double;
2386 char _Alignas (0) no_special_alignment;
2387 extern char aligned_as_int;
2388 char _Alignas (0) _Alignas (int) aligned_as_int;
2389
2390 // Check _Alignof.
2391 enum
2392 {
2393 int_alignment = _Alignof (int),
2394 int_array_alignment = _Alignof (int[100]),
2395 char_alignment = _Alignof (char)
2396 };
2397 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2398
2399 // Check _Noreturn.
2400 int _Noreturn does_not_return (void) { for (;;) continue; }
2401
2402 // Check _Static_assert.
2403 struct test_static_assert
2404 {
2405 int x;
2406 _Static_assert (sizeof (int) <= sizeof (long int),
2407 "_Static_assert does not work in struct");
2408 long int y;
2409 };
2410
2411 // Check UTF-8 literals.
2412 #define u8 syntax error!
2413 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2414
2415 // Check duplicate typedefs.
2416 typedef long *long_ptr;
2417 typedef long int *long_ptr;
2418 typedef long_ptr long_ptr;
2419
2420 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2421 struct anonymous
2422 {
2423 union {
2424 struct { int i; int j; };
2425 struct { int k; long int l; } w;
2426 };
2427 int m;
2428 } v1;
2429 '
2430
2431 # Test code for whether the C compiler supports C11 (body of main).
2432 ac_c_conftest_c11_main='
2433 _Static_assert ((offsetof (struct anonymous, i)
2434 == offsetof (struct anonymous, w.k)),
2435 "Anonymous union alignment botch");
2436 v1.i = 2;
2437 v1.w.k = 5;
2438 ok |= v1.i != 5;
2439 '
2440
2441 # Test code for whether the C compiler supports C11 (complete).
2442 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2443 ${ac_c_conftest_c99_globals}
2444 ${ac_c_conftest_c11_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 ${ac_c_conftest_c99_main}
2452 ${ac_c_conftest_c11_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C99 (complete).
2458 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2459 ${ac_c_conftest_c99_globals}
2460
2461 int
2462 main (int argc, char **argv)
2463 {
2464 int ok = 0;
2465 ${ac_c_conftest_c89_main}
2466 ${ac_c_conftest_c99_main}
2467 return ok;
2468 }
2469 "
2470
2471 # Test code for whether the C compiler supports C89 (complete).
2472 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2473
2474 int
2475 main (int argc, char **argv)
2476 {
2477 int ok = 0;
2478 ${ac_c_conftest_c89_main}
2479 return ok;
2480 }
2481 "
2482
2483 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2484 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2485 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2486 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2487 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2488 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2489 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2490 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2491 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2492
2493 # Auxiliary files required by this configure script.
2494 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2495
2496 # Locations in which to look for auxiliary files.
2497 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2498
2499 # Search for a directory containing all of the required auxiliary files,
2500 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2501 # If we don't find one directory that contains all the files we need,
2502 # we report the set of missing files from the *first* directory in
2503 # $ac_aux_dir_candidates and give up.
2504 ac_missing_aux_files=""
2505 ac_first_candidate=:
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 as_found=false
2509 for as_dir in $ac_aux_dir_candidates
2510 do
2511 IFS=$as_save_IFS
2512 case $as_dir in #(((
2513 '') as_dir=./ ;;
2514 */) ;;
2515 *) as_dir=$as_dir/ ;;
2516 esac
2517 as_found=:
2518
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2520 ac_aux_dir_found=yes
2521 ac_install_sh=
2522 for ac_aux in $ac_aux_files
2523 do
2524 # As a special case, if "install-sh" is required, that requirement
2525 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2526 # and $ac_install_sh is set appropriately for whichever one is found.
2527 if test x"$ac_aux" = x"install-sh"
2528 then
2529 if test -f "${as_dir}install-sh"; then
2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2531 ac_install_sh="${as_dir}install-sh -c"
2532 elif test -f "${as_dir}install.sh"; then
2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2534 ac_install_sh="${as_dir}install.sh -c"
2535 elif test -f "${as_dir}shtool"; then
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2537 ac_install_sh="${as_dir}shtool install -c"
2538 else
2539 ac_aux_dir_found=no
2540 if $ac_first_candidate; then
2541 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2542 else
2543 break
2544 fi
2545 fi
2546 else
2547 if test -f "${as_dir}${ac_aux}"; then
2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2549 else
2550 ac_aux_dir_found=no
2551 if $ac_first_candidate; then
2552 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2553 else
2554 break
2555 fi
2556 fi
2557 fi
2558 done
2559 if test "$ac_aux_dir_found" = yes; then
2560 ac_aux_dir="$as_dir"
2561 break
2562 fi
2563 ac_first_candidate=false
2564
2565 as_found=false
2566 done
2567 IFS=$as_save_IFS
2568 if $as_found
2569 then :
2570
2571 else case e in #(
2572 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2573 esac
2574 fi
2575
2576
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 if test -f "${ac_aux_dir}config.guess"; then
2582 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2583 fi
2584 if test -f "${ac_aux_dir}config.sub"; then
2585 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2586 fi
2587 if test -f "$ac_aux_dir/configure"; then
2588 ac_configure="$SHELL ${ac_aux_dir}configure"
2589 fi
2590
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2602 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2606 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2616 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2620 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2624 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2626 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640 done
2641 if $ac_cache_corrupted; then
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2643 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2647 and start over" "$LINENO" 5
2648 fi
2649 ## -------------------- ##
2650 ## Main body of script. ##
2651 ## -------------------- ##
2652
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659
2660
2661 am__api_version='1.18'
2662
2663
2664
2665 # Find a good install program. We prefer a C program (faster),
2666 # so one script is as good as another. But avoid the broken or
2667 # incompatible versions:
2668 # SysV /etc/install, /usr/sbin/install
2669 # SunOS /usr/etc/install
2670 # IRIX /sbin/install
2671 # AIX /bin/install
2672 # AmigaOS /C/install, which installs bootblocks on floppy discs
2673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2676 # OS/2's system install, which has a completely different semantic
2677 # ./install, which can be erroneously created by make from ./install.sh.
2678 # Reject install programs that cannot install multiple files.
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2680 printf %s "checking for a BSD-compatible install... " >&6; }
2681 if test -z "$INSTALL"; then
2682 if test ${ac_cv_path_install+y}
2683 then :
2684 printf %s "(cached) " >&6
2685 else case e in #(
2686 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 case $as_dir in #(((
2691 '') as_dir=./ ;;
2692 */) ;;
2693 *) as_dir=$as_dir/ ;;
2694 esac
2695 # Account for fact that we put trailing slashes in our PATH walk.
2696 case $as_dir in #((
2697 ./ | /[cC]/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2711 :
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
2729 fi
2730 fi
2731 done
2732 done
2733 ;;
2734 esac
2735
2736 done
2737 IFS=$as_save_IFS
2738
2739 rm -rf conftest.one conftest.two conftest.dir
2740 ;;
2741 esac
2742 fi
2743 if test ${ac_cv_path_install+y}; then
2744 INSTALL=$ac_cv_path_install
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 INSTALL=$ac_install_sh
2751 fi
2752 fi
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2754 printf "%s\n" "$INSTALL" >&6; }
2755
2756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757 # It thinks the first close brace ends the variable substitution.
2758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2765 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2766 if test ${am_cv_sleep_fractional_seconds+y}
2767 then :
2768 printf %s "(cached) " >&6
2769 else case e in #(
2770 e) if sleep 0.001 2>/dev/null
2771 then :
2772 am_cv_sleep_fractional_seconds=yes
2773 else case e in #(
2774 e) am_cv_sleep_fractional_seconds=no ;;
2775 esac
2776 fi
2777 ;;
2778 esac
2779 fi
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2781 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2782
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2784 printf %s "checking filesystem timestamp resolution... " >&6; }
2785 if test ${am_cv_filesystem_timestamp_resolution+y}
2786 then :
2787 printf %s "(cached) " >&6
2788 else case e in #(
2789 e) # Default to the worst case.
2790 am_cv_filesystem_timestamp_resolution=2
2791
2792 # Only try to go finer than 1 sec if sleep can do it.
2793 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2794 # - 1 sec is not much of a win compared to 2 sec, and
2795 # - it takes 2 seconds to perform the test whether 1 sec works.
2796 #
2797 # Instead, just use the default 2s on platforms that have 1s resolution,
2798 # accept the extra 1s delay when using $sleep in the Automake tests, in
2799 # exchange for not incurring the 2s delay for running the test for all
2800 # packages.
2801 #
2802 am_try_resolutions=
2803 if test "$am_cv_sleep_fractional_seconds" = yes; then
2804 # Even a millisecond often causes a bunch of false positives,
2805 # so just try a hundredth of a second. The time saved between .001 and
2806 # .01 is not terribly consequential.
2807 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2808 fi
2809
2810 # In order to catch current-generation FAT out, we must *modify* files
2811 # that already exist; the *creation* timestamp is finer. Use names
2812 # that make ls -t sort them differently when they have equal
2813 # timestamps than when they have distinct timestamps, keeping
2814 # in mind that ls -t prints the *newest* file first.
2815 rm -f conftest.ts?
2816 : > conftest.ts1
2817 : > conftest.ts2
2818 : > conftest.ts3
2819
2820 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2821 # clobber the current shell's arguments. (Outer-level square brackets
2822 # are removed by m4; they're present so that m4 does not expand
2823 # <dollar><star>; be careful, easy to get confused.)
2824 if (
2825 set X `ls -t conftest.ts[12]` &&
2826 {
2827 test "$*" != "X conftest.ts1 conftest.ts2" ||
2828 test "$*" != "X conftest.ts2 conftest.ts1";
2829 }
2830 ); then :; else
2831 # If neither matched, then we have a broken ls. This can happen
2832 # if, for instance, CONFIG_SHELL is bash and it inherits a
2833 # broken ls alias from the environment. This has actually
2834 # happened. Such a system could not be considered "sane".
2835 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2837 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2838 as_fn_error $? "ls -t produces unexpected output.
2839 Make sure there is not a broken ls alias in your environment.
2840 See 'config.log' for more details" "$LINENO" 5; }
2841 fi
2842
2843 for am_try_res in $am_try_resolutions; do
2844 # Any one fine-grained sleep might happen to cross the boundary
2845 # between two values of a coarser actual resolution, but if we do
2846 # two fine-grained sleeps in a row, at least one of them will fall
2847 # entirely within a coarse interval.
2848 echo alpha > conftest.ts1
2849 sleep $am_try_res
2850 echo beta > conftest.ts2
2851 sleep $am_try_res
2852 echo gamma > conftest.ts3
2853
2854 # We assume that 'ls -t' will make use of high-resolution
2855 # timestamps if the operating system supports them at all.
2856 if (set X `ls -t conftest.ts?` &&
2857 test "$2" = conftest.ts3 &&
2858 test "$3" = conftest.ts2 &&
2859 test "$4" = conftest.ts1); then
2860 #
2861 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2862 # because we don't need to test make.
2863 make_ok=true
2864 if test $am_try_res != 1; then
2865 # But if we've succeeded so far with a subsecond resolution, we
2866 # have one more thing to check: make. It can happen that
2867 # everything else supports the subsecond mtimes, but make doesn't;
2868 # notably on macOS, which ships make 3.81 from 2006 (the last one
2869 # released under GPLv2). https://bugs.gnu.org/68808
2870 #
2871 # We test $MAKE if it is defined in the environment, else "make".
2872 # It might get overridden later, but our hope is that in practice
2873 # it does not matter: it is the system "make" which is (by far)
2874 # the most likely to be broken, whereas if the user overrides it,
2875 # probably they did so with a better, or at least not worse, make.
2876 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2877 #
2878 # Create a Makefile (real tab character here):
2879 rm -f conftest.mk
2880 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2881 echo ' touch conftest.ts2' >>conftest.mk
2882 #
2883 # Now, running
2884 # touch conftest.ts1; touch conftest.ts2; make
2885 # should touch ts1 because ts2 is newer. This could happen by luck,
2886 # but most often, it will fail if make's support is insufficient. So
2887 # test for several consecutive successes.
2888 #
2889 # (We reuse conftest.ts[12] because we still want to modify existing
2890 # files, not create new ones, per above.)
2891 n=0
2892 make=${MAKE-make}
2893 until test $n -eq 3; do
2894 echo one > conftest.ts1
2895 sleep $am_try_res
2896 echo two > conftest.ts2 # ts2 should now be newer than ts1
2897 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2898 make_ok=false
2899 break # out of $n loop
2900 fi
2901 n=`expr $n + 1`
2902 done
2903 fi
2904 #
2905 if $make_ok; then
2906 # Everything we know to check worked out, so call this resolution good.
2907 am_cv_filesystem_timestamp_resolution=$am_try_res
2908 break # out of $am_try_res loop
2909 fi
2910 # Otherwise, we'll go on to check the next resolution.
2911 fi
2912 done
2913 rm -f conftest.ts?
2914 # (end _am_filesystem_timestamp_resolution)
2915 ;;
2916 esac
2917 fi
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2919 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2920
2921 # This check should not be cached, as it may vary across builds of
2922 # different projects.
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 printf %s "checking whether build environment is sane... " >&6; }
2925 # Reject unsafe characters in $srcdir or the absolute working directory
2926 # name. Accept space and tab only in the latter.
2927 am_lf='
2928 '
2929 case `pwd` in
2930 *[\\\"\#\$\&\'\`$am_lf]*)
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 printf "%s\n" "no" >&6; }
2933 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2934 esac
2935 case $srcdir in
2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 printf "%s\n" "no" >&6; }
2939 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2940 esac
2941
2942 # Do 'set' in a subshell so we don't clobber the current shell's
2943 # arguments. Must try -L first in case configure is actually a
2944 # symlink; some systems play weird games with the mod time of symlinks
2945 # (eg FreeBSD returns the mod time of the symlink's containing
2946 # directory).
2947 am_build_env_is_sane=no
2948 am_has_slept=no
2949 rm -f conftest.file
2950 for am_try in 1 2; do
2951 echo "timestamp, slept: $am_has_slept" > conftest.file
2952 if (
2953 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2954 if test "$*" = "X"; then
2955 # -L didn't work.
2956 set X `ls -t "$srcdir/configure" conftest.file`
2957 fi
2958 test "$2" = conftest.file
2959 ); then
2960 am_build_env_is_sane=yes
2961 break
2962 fi
2963 # Just in case.
2964 sleep "$am_cv_filesystem_timestamp_resolution"
2965 am_has_slept=yes
2966 done
2967
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2969 printf "%s\n" "$am_build_env_is_sane" >&6; }
2970 if test "$am_build_env_is_sane" = no; then
2971 as_fn_error $? "newly created file is older than distributed files!
2972 Check your system clock" "$LINENO" 5
2973 fi
2974
2975 # If we didn't sleep, we still need to ensure time stamps of config.status and
2976 # generated files are strictly newer.
2977 am_sleep_pid=
2978 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2979 then :
2980
2981 else case e in #(
2982 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2983 am_sleep_pid=$!
2984 ;;
2985 esac
2986 fi
2987
2988 rm -f conftest.file
2989
2990 test "$program_prefix" != NONE &&
2991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2992 # Use a double $ so make ignores it.
2993 test "$program_suffix" != NONE &&
2994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2995 # Double any \ or $.
2996 # By default was 's,x,x', remove it if useless.
2997 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2998 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2999
3000
3001 # Expand $ac_aux_dir to an absolute path.
3002 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3003
3004
3005 if test x"${MISSING+set}" != xset; then
3006 MISSING="\${SHELL} '$am_aux_dir/missing'"
3007 fi
3008 # Use eval to expand $SHELL
3009 if eval "$MISSING --is-lightweight"; then
3010 am_missing_run="$MISSING "
3011 else
3012 am_missing_run=
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3014 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3015 fi
3016
3017 if test x"${install_sh+set}" != xset; then
3018 case $am_aux_dir in
3019 *\ * | *\ *)
3020 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3021 *)
3022 install_sh="\${SHELL} $am_aux_dir/install-sh"
3023 esac
3024 fi
3025
3026 # Installed binaries are usually stripped using 'strip' when the user
3027 # run "make install-strip". However 'strip' might not be the right
3028 # tool to use in cross-compilation environments, therefore Automake
3029 # will honor the 'STRIP' environment variable to overrule this program.
3030 if test "$cross_compiling" != no; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}strip; ac_word=$2
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 printf %s "checking for $ac_word... " >&6; }
3036 if test ${ac_cv_prog_STRIP+y}
3037 then :
3038 printf %s "(cached) " >&6
3039 else case e in #(
3040 e) if test -n "$STRIP"; then
3041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 case $as_dir in #(((
3048 '') as_dir=./ ;;
3049 */) ;;
3050 *) as_dir=$as_dir/ ;;
3051 esac
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi ;;
3063 esac
3064 fi
3065 STRIP=$ac_cv_prog_STRIP
3066 if test -n "$STRIP"; then
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3068 printf "%s\n" "$STRIP" >&6; }
3069 else
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 printf "%s\n" "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 if test -z "$ac_cv_prog_STRIP"; then
3077 ac_ct_STRIP=$STRIP
3078 # Extract the first word of "strip", so it can be a program name with args.
3079 set dummy strip; ac_word=$2
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 printf %s "checking for $ac_word... " >&6; }
3082 if test ${ac_cv_prog_ac_ct_STRIP+y}
3083 then :
3084 printf %s "(cached) " >&6
3085 else case e in #(
3086 e) if test -n "$ac_ct_STRIP"; then
3087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 case $as_dir in #(((
3094 '') as_dir=./ ;;
3095 */) ;;
3096 *) as_dir=$as_dir/ ;;
3097 esac
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_ac_ct_STRIP="strip"
3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi ;;
3109 esac
3110 fi
3111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112 if test -n "$ac_ct_STRIP"; then
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114 printf "%s\n" "$ac_ct_STRIP" >&6; }
3115 else
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 printf "%s\n" "no" >&6; }
3118 fi
3119
3120 if test "x$ac_ct_STRIP" = x; then
3121 STRIP=":"
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124 yes:)
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 STRIP=$ac_ct_STRIP
3130 fi
3131 else
3132 STRIP="$ac_cv_prog_STRIP"
3133 fi
3134
3135 fi
3136 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
3138
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3140 printf %s "checking for a race-free mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142 if test ${ac_cv_path_mkdir+y}
3143 then :
3144 printf %s "(cached) " >&6
3145 else case e in #(
3146 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3148 do
3149 IFS=$as_save_IFS
3150 case $as_dir in #(((
3151 '') as_dir=./ ;;
3152 */) ;;
3153 *) as_dir=$as_dir/ ;;
3154 esac
3155 for ac_prog in mkdir gmkdir; do
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3158 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3159 'mkdir ('*'coreutils) '* | \
3160 *'BusyBox '* | \
3161 'mkdir (fileutils) '4.1*)
3162 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3163 break 3;;
3164 esac
3165 done
3166 done
3167 done
3168 IFS=$as_save_IFS
3169 ;;
3170 esac
3171 fi
3172
3173 test -d ./--version && rmdir ./--version
3174 if test ${ac_cv_path_mkdir+y}; then
3175 MKDIR_P="$ac_cv_path_mkdir -p"
3176 else
3177 # As a last resort, use plain mkdir -p,
3178 # in the hope it doesn't have the bugs of ancient mkdir.
3179 MKDIR_P='mkdir -p'
3180 fi
3181 fi
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3183 printf "%s\n" "$MKDIR_P" >&6; }
3184
3185 for ac_prog in gawk mawk nawk awk
3186 do
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 printf %s "checking for $ac_word... " >&6; }
3191 if test ${ac_cv_prog_AWK+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else case e in #(
3195 e) if test -n "$AWK"; then
3196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 case $as_dir in #(((
3203 '') as_dir=./ ;;
3204 */) ;;
3205 *) as_dir=$as_dir/ ;;
3206 esac
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_AWK="$ac_prog"
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi ;;
3218 esac
3219 fi
3220 AWK=$ac_cv_prog_AWK
3221 if test -n "$AWK"; then
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3223 printf "%s\n" "$AWK" >&6; }
3224 else
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 printf "%s\n" "no" >&6; }
3227 fi
3228
3229
3230 test -n "$AWK" && break
3231 done
3232
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3234 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3235 set x ${MAKE-make}
3236 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3237 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3238 then :
3239 printf %s "(cached) " >&6
3240 else case e in #(
3241 e) cat >conftest.make <<\_ACEOF
3242 SHELL = /bin/sh
3243 all:
3244 @echo '@@@%%%=$(MAKE)=@@@%%%'
3245 _ACEOF
3246 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3247 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3248 *@@@%%%=?*=@@@%%%*)
3249 eval ac_cv_prog_make_${ac_make}_set=yes;;
3250 *)
3251 eval ac_cv_prog_make_${ac_make}_set=no;;
3252 esac
3253 rm -f conftest.make ;;
3254 esac
3255 fi
3256 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 printf "%s\n" "yes" >&6; }
3259 SET_MAKE=
3260 else
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 printf "%s\n" "no" >&6; }
3263 SET_MAKE="MAKE=${MAKE-make}"
3264 fi
3265
3266 rm -rf .tst 2>/dev/null
3267 mkdir .tst 2>/dev/null
3268 if test -d .tst; then
3269 am__leading_dot=.
3270 else
3271 am__leading_dot=_
3272 fi
3273 rmdir .tst 2>/dev/null
3274
3275 AM_DEFAULT_VERBOSITY=1
3276 # Check whether --enable-silent-rules was given.
3277 if test ${enable_silent_rules+y}
3278 then :
3279 enableval=$enable_silent_rules;
3280 fi
3281
3282 am_make=${MAKE-make}
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3284 printf %s "checking whether $am_make supports nested variables... " >&6; }
3285 if test ${am_cv_make_support_nested_variables+y}
3286 then :
3287 printf %s "(cached) " >&6
3288 else case e in #(
3289 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3290 BAR0=false
3291 BAR1=true
3292 V=1
3293 am__doit:
3294 @$(TRUE)
3295 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3296 am_cv_make_support_nested_variables=yes
3297 else
3298 am_cv_make_support_nested_variables=no
3299 fi ;;
3300 esac
3301 fi
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3303 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3304 AM_BACKSLASH='\'
3305
3306 am__rm_f_notfound=
3307 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3308 then :
3309
3310 else case e in #(
3311 e) am__rm_f_notfound='""' ;;
3312 esac
3313 fi
3314
3315
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3317 printf %s "checking xargs -n works... " >&6; }
3318 if test ${am_cv_xargs_n_works+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else case e in #(
3322 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3323 3"
3324 then :
3325 am_cv_xargs_n_works=yes
3326 else case e in #(
3327 e) am_cv_xargs_n_works=no ;;
3328 esac
3329 fi ;;
3330 esac
3331 fi
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3333 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3334 if test "$am_cv_xargs_n_works" = yes
3335 then :
3336 am__xargs_n='xargs -n'
3337 else case e in #(
3338 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3339 ;;
3340 esac
3341 fi
3342
3343 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3345 # is not polluted with repeated "-I."
3346 am__isrc=' -I$(srcdir)'
3347 # test to see if srcdir already configured
3348 if test -f $srcdir/config.status; then
3349 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3350 fi
3351 fi
3352
3353 # test whether we have cygpath
3354 if test -z "$CYGPATH_W"; then
3355 if (cygpath --version) >/dev/null 2>/dev/null; then
3356 CYGPATH_W='cygpath -w'
3357 else
3358 CYGPATH_W=echo
3359 fi
3360 fi
3361
3362
3363 # Define the identity of the package.
3364 PACKAGE='liboauth2'
3365 VERSION='2.3.0'
3366
3367
3368 # Some tools Automake needs.
3369
3370 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3371
3372
3373 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3374
3375
3376 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3377
3378
3379 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3380
3381
3382 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3383
3384 # For better backward compatibility. To be removed once Automake 1.9.x
3385 # dies out for good. For more background, see:
3386 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3387 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3388 mkdir_p='$(MKDIR_P)'
3389
3390 # We need awk for the "check" target (and possibly the TAP driver). The
3391 # system "awk" is bad on some platforms.
3392 # Always define AMTAR for backward compatibility. Yes, it's still used
3393 # in the wild :-( We should find a proper way to deprecate it ...
3394 AMTAR='$${TAR-tar}'
3395
3396
3397 # We'll loop over all known methods to create a tar archive until one works.
3398 _am_tools='gnutar plaintar pax cpio none'
3399
3400 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3401 # There is notably a 21 bits limit for the UID and the GID. In fact,
3402 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3403 # and bug#13588).
3404 am_max_uid=2097151 # 2^21 - 1
3405 am_max_gid=$am_max_uid
3406 # The $UID and $GID variables are not portable, so we need to resort
3407 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3408 # below are definitely unexpected, so allow the users to see them
3409 # (that is, avoid stderr redirection).
3410 am_uid=`id -u || echo unknown`
3411 am_gid=`id -g || echo unknown`
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3413 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3414 if test x$am_uid = xunknown; then
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3416 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3417 elif test $am_uid -le $am_max_uid; then
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3419 printf "%s\n" "yes" >&6; }
3420 else
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 printf "%s\n" "no" >&6; }
3423 _am_tools=none
3424 fi
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3426 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3427 if test x$gm_gid = xunknown; then
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3429 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3430 elif test $am_gid -le $am_max_gid; then
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 printf "%s\n" "yes" >&6; }
3433 else
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 printf "%s\n" "no" >&6; }
3436 _am_tools=none
3437 fi
3438
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3440 printf %s "checking how to create a ustar tar archive... " >&6; }
3441
3442 # Go ahead even if we have the value already cached. We do so because we
3443 # need to set the values for the 'am__tar' and 'am__untar' variables.
3444 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3445
3446 for _am_tool in $_am_tools; do
3447 case $_am_tool in
3448 gnutar)
3449 for _am_tar in tar gnutar gtar; do
3450 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3451 ($_am_tar --version) >&5 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && break
3455 done
3456 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3457 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3458 am__untar="$_am_tar -xf -"
3459 ;;
3460 plaintar)
3461 # Must skip GNU tar: if it does not support --format= it doesn't create
3462 # ustar tarball either.
3463 (tar --version) >/dev/null 2>&1 && continue
3464 am__tar='tar chf - "$$tardir"'
3465 am__tar_='tar chf - "$tardir"'
3466 am__untar='tar xf -'
3467 ;;
3468 pax)
3469 am__tar='pax -L -x ustar -w "$$tardir"'
3470 am__tar_='pax -L -x ustar -w "$tardir"'
3471 am__untar='pax -r'
3472 ;;
3473 cpio)
3474 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3475 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3476 am__untar='cpio -i -H ustar -d'
3477 ;;
3478 none)
3479 am__tar=false
3480 am__tar_=false
3481 am__untar=false
3482 ;;
3483 esac
3484
3485 # If the value was cached, stop now. We just wanted to have am__tar
3486 # and am__untar set.
3487 test -n "${am_cv_prog_tar_ustar}" && break
3488
3489 # tar/untar a dummy directory, and stop if the command works.
3490 rm -rf conftest.dir
3491 mkdir conftest.dir
3492 echo GrepMe > conftest.dir/file
3493 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3494 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }
3498 rm -rf conftest.dir
3499 if test -s conftest.tar; then
3500 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3501 ($am__untar <conftest.tar) >&5 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3506 (cat conftest.dir/file) >&5 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }
3510 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3511 fi
3512 done
3513 rm -rf conftest.dir
3514
3515 if test ${am_cv_prog_tar_ustar+y}
3516 then :
3517 printf %s "(cached) " >&6
3518 else case e in #(
3519 e) am_cv_prog_tar_ustar=$_am_tool ;;
3520 esac
3521 fi
3522
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3524 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3525
3526
3527
3528
3529
3530 # Variables for tags utilities; see am/tags.am
3531 if test -z "$CTAGS"; then
3532 CTAGS=ctags
3533 fi
3534
3535 if test -z "$ETAGS"; then
3536 ETAGS=etags
3537 fi
3538
3539 if test -z "$CSCOPE"; then
3540 CSCOPE=cscope
3541 fi
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560 DEPDIR="${am__leading_dot}deps"
3561
3562 ac_config_commands="$ac_config_commands depfiles"
3563
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3565 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3566 cat > confinc.mk << 'END'
3567 am__doit:
3568 @echo this is the am__doit target >confinc.out
3569 .PHONY: am__doit
3570 END
3571 am__include="#"
3572 am__quote=
3573 # BSD make does it like this.
3574 echo '.include "confinc.mk" # ignored' > confmf.BSD
3575 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3576 echo 'include confinc.mk # ignored' > confmf.GNU
3577 _am_result=no
3578 for s in GNU BSD; do
3579 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3580 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }
3584 case $?:`cat confinc.out 2>/dev/null` in #(
3585 '0:this is the am__doit target') :
3586 case $s in #(
3587 BSD) :
3588 am__include='.include' am__quote='"' ;; #(
3589 *) :
3590 am__include='include' am__quote='' ;;
3591 esac ;; #(
3592 *) :
3593 ;;
3594 esac
3595 if test "$am__include" != "#"; then
3596 _am_result="yes ($s style)"
3597 break
3598 fi
3599 done
3600 rm -f confinc.* confmf.*
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3602 printf "%s\n" "${_am_result}" >&6; }
3603
3604 # Check whether --enable-dependency-tracking was given.
3605 if test ${enable_dependency_tracking+y}
3606 then :
3607 enableval=$enable_dependency_tracking;
3608 fi
3609
3610 if test "x$enable_dependency_tracking" != xno; then
3611 am_depcomp="$ac_aux_dir/depcomp"
3612 AMDEPBACKSLASH='\'
3613 am__nodep='_no'
3614 fi
3615 if test "x$enable_dependency_tracking" != xno; then
3616 AMDEP_TRUE=
3617 AMDEP_FALSE='#'
3618 else
3619 AMDEP_TRUE='#'
3620 AMDEP_FALSE=
3621 fi
3622
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else case e in #(
3638 e) if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi ;;
3661 esac
3662 fi
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 printf "%s\n" "$CC" >&6; }
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670 fi
3671
3672
3673 fi
3674 if test -z "$ac_cv_prog_CC"; then
3675 ac_ct_CC=$CC
3676 # Extract the first word of "gcc", so it can be a program name with args.
3677 set dummy gcc; ac_word=$2
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 printf %s "checking for $ac_word... " >&6; }
3680 if test ${ac_cv_prog_ac_ct_CC+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else case e in #(
3684 e) if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 case $as_dir in #(((
3692 '') as_dir=./ ;;
3693 */) ;;
3694 *) as_dir=$as_dir/ ;;
3695 esac
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_ac_ct_CC="gcc"
3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 fi ;;
3707 esac
3708 fi
3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3712 printf "%s\n" "$ac_ct_CC" >&6; }
3713 else
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 printf "%s\n" "no" >&6; }
3716 fi
3717
3718 if test "x$ac_ct_CC" = x; then
3719 CC=""
3720 else
3721 case $cross_compiling:$ac_tool_warned in
3722 yes:)
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727 CC=$ac_ct_CC
3728 fi
3729 else
3730 CC="$ac_cv_prog_CC"
3731 fi
3732
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}cc; ac_word=$2
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 printf %s "checking for $ac_word... " >&6; }
3739 if test ${ac_cv_prog_CC+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else case e in #(
3743 e) if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749 IFS=$as_save_IFS
3750 case $as_dir in #(((
3751 '') as_dir=./ ;;
3752 */) ;;
3753 *) as_dir=$as_dir/ ;;
3754 esac
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="${ac_tool_prefix}cc"
3758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi ;;
3766 esac
3767 fi
3768 CC=$ac_cv_prog_CC
3769 if test -n "$CC"; then
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 printf "%s\n" "$CC" >&6; }
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 fi
3776
3777
3778 fi
3779 fi
3780 if test -z "$CC"; then
3781 # Extract the first word of "cc", so it can be a program name with args.
3782 set dummy cc; ac_word=$2
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 printf %s "checking for $ac_word... " >&6; }
3785 if test ${ac_cv_prog_CC+y}
3786 then :
3787 printf %s "(cached) " >&6
3788 else case e in #(
3789 e) if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 ac_prog_rejected=no
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 case $as_dir in #(((
3798 '') as_dir=./ ;;
3799 */) ;;
3800 *) as_dir=$as_dir/ ;;
3801 esac
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3804 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3805 ac_prog_rejected=yes
3806 continue
3807 fi
3808 ac_cv_prog_CC="cc"
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812 done
3813 done
3814 IFS=$as_save_IFS
3815
3816 if test $ac_prog_rejected = yes; then
3817 # We found a bogon in the path, so make sure we never use it.
3818 set dummy $ac_cv_prog_CC
3819 shift
3820 if test $# != 0; then
3821 # We chose a different compiler from the bogus one.
3822 # However, it has the same basename, so the bogon will be chosen
3823 # first if we set CC to just the basename; use the full file name.
3824 shift
3825 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3826 fi
3827 fi
3828 fi ;;
3829 esac
3830 fi
3831 CC=$ac_cv_prog_CC
3832 if test -n "$CC"; then
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834 printf "%s\n" "$CC" >&6; }
3835 else
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 printf "%s\n" "no" >&6; }
3838 fi
3839
3840
3841 fi
3842 if test -z "$CC"; then
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog in cl.exe
3845 do
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 printf %s "checking for $ac_word... " >&6; }
3850 if test ${ac_cv_prog_CC+y}
3851 then :
3852 printf %s "(cached) " >&6
3853 else case e in #(
3854 e) if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 case $as_dir in #(((
3862 '') as_dir=./ ;;
3863 */) ;;
3864 *) as_dir=$as_dir/ ;;
3865 esac
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872 done
3873 done
3874 IFS=$as_save_IFS
3875
3876 fi ;;
3877 esac
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 printf "%s\n" "$CC" >&6; }
3883 else
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 printf "%s\n" "no" >&6; }
3886 fi
3887
3888
3889 test -n "$CC" && break
3890 done
3891 fi
3892 if test -z "$CC"; then
3893 ac_ct_CC=$CC
3894 for ac_prog in cl.exe
3895 do
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 printf %s "checking for $ac_word... " >&6; }
3900 if test ${ac_cv_prog_ac_ct_CC+y}
3901 then :
3902 printf %s "(cached) " >&6
3903 else case e in #(
3904 e) if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 case $as_dir in #(((
3912 '') as_dir=./ ;;
3913 */) ;;
3914 *) as_dir=$as_dir/ ;;
3915 esac
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_ac_ct_CC="$ac_prog"
3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi ;;
3927 esac
3928 fi
3929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930 if test -n "$ac_ct_CC"; then
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3932 printf "%s\n" "$ac_ct_CC" >&6; }
3933 else
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3936 fi
3937
3938
3939 test -n "$ac_ct_CC" && break
3940 done
3941
3942 if test "x$ac_ct_CC" = x; then
3943 CC=""
3944 else
3945 case $cross_compiling:$ac_tool_warned in
3946 yes:)
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949 ac_tool_warned=yes ;;
3950 esac
3951 CC=$ac_ct_CC
3952 fi
3953 fi
3954
3955 fi
3956 if test -z "$CC"; then
3957 if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3959 set dummy ${ac_tool_prefix}clang; ac_word=$2
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 printf %s "checking for $ac_word... " >&6; }
3962 if test ${ac_cv_prog_CC+y}
3963 then :
3964 printf %s "(cached) " >&6
3965 else case e in #(
3966 e) if test -n "$CC"; then
3967 ac_cv_prog_CC="$CC" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972 IFS=$as_save_IFS
3973 case $as_dir in #(((
3974 '') as_dir=./ ;;
3975 */) ;;
3976 *) as_dir=$as_dir/ ;;
3977 esac
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_CC="${ac_tool_prefix}clang"
3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi ;;
3989 esac
3990 fi
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 printf "%s\n" "$CC" >&6; }
3995 else
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 printf "%s\n" "no" >&6; }
3998 fi
3999
4000
4001 fi
4002 if test -z "$ac_cv_prog_CC"; then
4003 ac_ct_CC=$CC
4004 # Extract the first word of "clang", so it can be a program name with args.
4005 set dummy clang; ac_word=$2
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 printf %s "checking for $ac_word... " >&6; }
4008 if test ${ac_cv_prog_ac_ct_CC+y}
4009 then :
4010 printf %s "(cached) " >&6
4011 else case e in #(
4012 e) if test -n "$ac_ct_CC"; then
4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 case $as_dir in #(((
4020 '') as_dir=./ ;;
4021 */) ;;
4022 *) as_dir=$as_dir/ ;;
4023 esac
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_ac_ct_CC="clang"
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi ;;
4035 esac
4036 fi
4037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4038 if test -n "$ac_ct_CC"; then
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4040 printf "%s\n" "$ac_ct_CC" >&6; }
4041 else
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 printf "%s\n" "no" >&6; }
4044 fi
4045
4046 if test "x$ac_ct_CC" = x; then
4047 CC=""
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050 yes:)
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned=yes ;;
4054 esac
4055 CC=$ac_ct_CC
4056 fi
4057 else
4058 CC="$ac_cv_prog_CC"
4059 fi
4060
4061 fi
4062
4063
4064 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4065 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4066 as_fn_error $? "no acceptable C compiler found in \$PATH
4067 See 'config.log' for more details" "$LINENO" 5; }
4068
4069 # Provide some information about the compiler.
4070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4071 set X $ac_compile
4072 ac_compiler=$2
4073 for ac_option in --version -v -V -qversion -version; do
4074 { { ac_try="$ac_compiler $ac_option >&5"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 printf "%s\n" "$ac_try_echo"; } >&5
4081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4082 ac_status=$?
4083 if test -s conftest.err; then
4084 sed '10a\
4085 ... rest of stderr output deleted ...
4086 10q' conftest.err >conftest.er1
4087 cat conftest.er1 >&5
4088 fi
4089 rm -f conftest.er1 conftest.err
4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }
4092 done
4093
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096
4097 int
4098 main (void)
4099 {
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 ac_clean_files_save=$ac_clean_files
4106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4107 # Try to create an executable without -o first, disregard a.out.
4108 # It will help us diagnose broken compilers, and finding out an intuition
4109 # of exeext.
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4111 printf %s "checking whether the C compiler works... " >&6; }
4112 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4113
4114 # The possible output files:
4115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4116
4117 ac_rmfiles=
4118 for ac_file in $ac_files
4119 do
4120 case $ac_file in
4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4122 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4123 esac
4124 done
4125 rm -f $ac_rmfiles
4126
4127 if { { ac_try="$ac_link_default"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133 printf "%s\n" "$ac_try_echo"; } >&5
4134 (eval "$ac_link_default") 2>&5
4135 ac_status=$?
4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; }
4138 then :
4139 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4140 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4141 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4142 # so that the user can short-circuit this test for compilers unknown to
4143 # Autoconf.
4144 for ac_file in $ac_files ''
4145 do
4146 test -f "$ac_file" || continue
4147 case $ac_file in
4148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4149 ;;
4150 [ab].out )
4151 # We found the default executable, but exeext='' is most
4152 # certainly right.
4153 break;;
4154 *.* )
4155 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4156 then :; else
4157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4158 fi
4159 # We set ac_cv_exeext here because the later test for it is not
4160 # safe: cross compilers may not add the suffix if given an '-o'
4161 # argument, so we may need to know it at that point already.
4162 # Even if this section looks crufty: it has the advantage of
4163 # actually working.
4164 break;;
4165 * )
4166 break;;
4167 esac
4168 done
4169 test "$ac_cv_exeext" = no && ac_cv_exeext=
4170
4171 else case e in #(
4172 e) ac_file='' ;;
4173 esac
4174 fi
4175 if test -z "$ac_file"
4176 then :
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 printf "%s\n" "no" >&6; }
4179 printf "%s\n" "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4183 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4184 as_fn_error 77 "C compiler cannot create executables
4185 See 'config.log' for more details" "$LINENO" 5; }
4186 else case e in #(
4187 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188 printf "%s\n" "yes" >&6; } ;;
4189 esac
4190 fi
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4192 printf %s "checking for C compiler default output file name... " >&6; }
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4194 printf "%s\n" "$ac_file" >&6; }
4195 ac_exeext=$ac_cv_exeext
4196
4197 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4198 ac_clean_files=$ac_clean_files_save
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4200 printf %s "checking for suffix of executables... " >&6; }
4201 if { { ac_try="$ac_link"
4202 case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 printf "%s\n" "$ac_try_echo"; } >&5
4208 (eval "$ac_link") 2>&5
4209 ac_status=$?
4210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211 test $ac_status = 0; }
4212 then :
4213 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4214 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4215 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4216 # 'rm'.
4217 for ac_file in conftest.exe conftest conftest.*; do
4218 test -f "$ac_file" || continue
4219 case $ac_file in
4220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4222 break;;
4223 * ) break;;
4224 esac
4225 done
4226 else case e in #(
4227 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4229 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4230 See 'config.log' for more details" "$LINENO" 5; } ;;
4231 esac
4232 fi
4233 rm -f conftest conftest$ac_cv_exeext
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4235 printf "%s\n" "$ac_cv_exeext" >&6; }
4236
4237 rm -f conftest.$ac_ext
4238 EXEEXT=$ac_cv_exeext
4239 ac_exeext=$EXEEXT
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <stdio.h>
4243 int
4244 main (void)
4245 {
4246 FILE *f = fopen ("conftest.out", "w");
4247 if (!f)
4248 return 1;
4249 return ferror (f) || fclose (f) != 0;
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 ac_clean_files="$ac_clean_files conftest.out"
4256 # Check that the compiler produces executables we can run. If not, either
4257 # the compiler is broken, or we cross compile.
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4259 printf %s "checking whether we are cross compiling... " >&6; }
4260 if test "$cross_compiling" != yes; then
4261 { { ac_try="$ac_link"
4262 case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 printf "%s\n" "$ac_try_echo"; } >&5
4268 (eval "$ac_link") 2>&5
4269 ac_status=$?
4270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }
4272 if { ac_try='./conftest$ac_cv_exeext'
4273 { { case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276 esac
4277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4278 printf "%s\n" "$ac_try_echo"; } >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }; }; then
4283 cross_compiling=no
4284 else
4285 if test "$cross_compiling" = maybe; then
4286 cross_compiling=yes
4287 else
4288 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4289 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4290 as_fn_error 77 "cannot run C compiled programs.
4291 If you meant to cross compile, use '--host'.
4292 See 'config.log' for more details" "$LINENO" 5; }
4293 fi
4294 fi
4295 fi
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4297 printf "%s\n" "$cross_compiling" >&6; }
4298
4299 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4300 conftest.o conftest.obj conftest.out
4301 ac_clean_files=$ac_clean_files_save
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4303 printf %s "checking for suffix of object files... " >&6; }
4304 if test ${ac_cv_objext+y}
4305 then :
4306 printf %s "(cached) " >&6
4307 else case e in #(
4308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310
4311 int
4312 main (void)
4313 {
4314
4315 ;
4316 return 0;
4317 }
4318 _ACEOF
4319 rm -f conftest.o conftest.obj
4320 if { { ac_try="$ac_compile"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 printf "%s\n" "$ac_try_echo"; } >&5
4327 (eval "$ac_compile") 2>&5
4328 ac_status=$?
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }
4331 then :
4332 for ac_file in conftest.o conftest.obj conftest.*; do
4333 test -f "$ac_file" || continue;
4334 case $ac_file in
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4337 break;;
4338 esac
4339 done
4340 else case e in #(
4341 e) printf "%s\n" "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4345 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4346 as_fn_error $? "cannot compute suffix of object files: cannot compile
4347 See 'config.log' for more details" "$LINENO" 5; } ;;
4348 esac
4349 fi
4350 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4351 esac
4352 fi
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4354 printf "%s\n" "$ac_cv_objext" >&6; }
4355 OBJEXT=$ac_cv_objext
4356 ac_objext=$OBJEXT
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4358 printf %s "checking whether the compiler supports GNU C... " >&6; }
4359 if test ${ac_cv_c_compiler_gnu+y}
4360 then :
4361 printf %s "(cached) " >&6
4362 else case e in #(
4363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365
4366 int
4367 main (void)
4368 {
4369 #ifndef __GNUC__
4370 choke me
4371 #endif
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"
4378 then :
4379 ac_compiler_gnu=yes
4380 else case e in #(
4381 e) ac_compiler_gnu=no ;;
4382 esac
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4386 ;;
4387 esac
4388 fi
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4390 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393 if test $ac_compiler_gnu = yes; then
4394 GCC=yes
4395 else
4396 GCC=
4397 fi
4398 ac_test_CFLAGS=${CFLAGS+y}
4399 ac_save_CFLAGS=$CFLAGS
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4401 printf %s "checking whether $CC accepts -g... " >&6; }
4402 if test ${ac_cv_prog_cc_g+y}
4403 then :
4404 printf %s "(cached) " >&6
4405 else case e in #(
4406 e) ac_save_c_werror_flag=$ac_c_werror_flag
4407 ac_c_werror_flag=yes
4408 ac_cv_prog_cc_g=no
4409 CFLAGS="-g"
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412
4413 int
4414 main (void)
4415 {
4416
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 if ac_fn_c_try_compile "$LINENO"
4422 then :
4423 ac_cv_prog_cc_g=yes
4424 else case e in #(
4425 e) CFLAGS=""
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 int
4430 main (void)
4431 {
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_compile "$LINENO"
4438 then :
4439
4440 else case e in #(
4441 e) ac_c_werror_flag=$ac_save_c_werror_flag
4442 CFLAGS="-g"
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main (void)
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"
4455 then :
4456 ac_cv_prog_cc_g=yes
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4459 esac
4460 fi
4461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4462 esac
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4465 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4466 esac
4467 fi
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4469 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4470 if test $ac_test_CFLAGS; then
4471 CFLAGS=$ac_save_CFLAGS
4472 elif test $ac_cv_prog_cc_g = yes; then
4473 if test "$GCC" = yes; then
4474 CFLAGS="-g -O2"
4475 else
4476 CFLAGS="-g"
4477 fi
4478 else
4479 if test "$GCC" = yes; then
4480 CFLAGS="-O2"
4481 else
4482 CFLAGS=
4483 fi
4484 fi
4485 ac_prog_cc_stdc=no
4486 if test x$ac_prog_cc_stdc = xno
4487 then :
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4489 printf %s "checking for $CC option to enable C11 features... " >&6; }
4490 if test ${ac_cv_prog_cc_c11+y}
4491 then :
4492 printf %s "(cached) " >&6
4493 else case e in #(
4494 e) ac_cv_prog_cc_c11=no
4495 ac_save_CC=$CC
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 $ac_c_conftest_c11_program
4499 _ACEOF
4500 for ac_arg in '' -std=gnu11
4501 do
4502 CC="$ac_save_CC $ac_arg"
4503 if ac_fn_c_try_compile "$LINENO"
4504 then :
4505 ac_cv_prog_cc_c11=$ac_arg
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.beam
4508 test "x$ac_cv_prog_cc_c11" != "xno" && break
4509 done
4510 rm -f conftest.$ac_ext
4511 CC=$ac_save_CC ;;
4512 esac
4513 fi
4514
4515 if test "x$ac_cv_prog_cc_c11" = xno
4516 then :
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4518 printf "%s\n" "unsupported" >&6; }
4519 else case e in #(
4520 e) if test "x$ac_cv_prog_cc_c11" = x
4521 then :
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523 printf "%s\n" "none needed" >&6; }
4524 else case e in #(
4525 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4526 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4527 CC="$CC $ac_cv_prog_cc_c11" ;;
4528 esac
4529 fi
4530 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4531 ac_prog_cc_stdc=c11 ;;
4532 esac
4533 fi
4534 fi
4535 if test x$ac_prog_cc_stdc = xno
4536 then :
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4538 printf %s "checking for $CC option to enable C99 features... " >&6; }
4539 if test ${ac_cv_prog_cc_c99+y}
4540 then :
4541 printf %s "(cached) " >&6
4542 else case e in #(
4543 e) ac_cv_prog_cc_c99=no
4544 ac_save_CC=$CC
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4547 $ac_c_conftest_c99_program
4548 _ACEOF
4549 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4550 do
4551 CC="$ac_save_CC $ac_arg"
4552 if ac_fn_c_try_compile "$LINENO"
4553 then :
4554 ac_cv_prog_cc_c99=$ac_arg
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.beam
4557 test "x$ac_cv_prog_cc_c99" != "xno" && break
4558 done
4559 rm -f conftest.$ac_ext
4560 CC=$ac_save_CC ;;
4561 esac
4562 fi
4563
4564 if test "x$ac_cv_prog_cc_c99" = xno
4565 then :
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4567 printf "%s\n" "unsupported" >&6; }
4568 else case e in #(
4569 e) if test "x$ac_cv_prog_cc_c99" = x
4570 then :
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4572 printf "%s\n" "none needed" >&6; }
4573 else case e in #(
4574 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4575 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4576 CC="$CC $ac_cv_prog_cc_c99" ;;
4577 esac
4578 fi
4579 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4580 ac_prog_cc_stdc=c99 ;;
4581 esac
4582 fi
4583 fi
4584 if test x$ac_prog_cc_stdc = xno
4585 then :
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4587 printf %s "checking for $CC option to enable C89 features... " >&6; }
4588 if test ${ac_cv_prog_cc_c89+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else case e in #(
4592 e) ac_cv_prog_cc_c89=no
4593 ac_save_CC=$CC
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 $ac_c_conftest_c89_program
4597 _ACEOF
4598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4599 do
4600 CC="$ac_save_CC $ac_arg"
4601 if ac_fn_c_try_compile "$LINENO"
4602 then :
4603 ac_cv_prog_cc_c89=$ac_arg
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.beam
4606 test "x$ac_cv_prog_cc_c89" != "xno" && break
4607 done
4608 rm -f conftest.$ac_ext
4609 CC=$ac_save_CC ;;
4610 esac
4611 fi
4612
4613 if test "x$ac_cv_prog_cc_c89" = xno
4614 then :
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4616 printf "%s\n" "unsupported" >&6; }
4617 else case e in #(
4618 e) if test "x$ac_cv_prog_cc_c89" = x
4619 then :
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4621 printf "%s\n" "none needed" >&6; }
4622 else case e in #(
4623 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4624 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4625 CC="$CC $ac_cv_prog_cc_c89" ;;
4626 esac
4627 fi
4628 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4629 ac_prog_cc_stdc=c89 ;;
4630 esac
4631 fi
4632 fi
4633
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4647 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4648 if test ${am_cv_prog_cc_c_o+y}
4649 then :
4650 printf %s "(cached) " >&6
4651 else case e in #(
4652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654
4655 int
4656 main (void)
4657 {
4658
4659 ;
4660 return 0;
4661 }
4662 _ACEOF
4663 # Make sure it works both with $CC and with simple cc.
4664 # Following AC_PROG_CC_C_O, we do the test twice because some
4665 # compilers refuse to overwrite an existing .o file with -o,
4666 # though they will create one.
4667 am_cv_prog_cc_c_o=yes
4668 for am_i in 1 2; do
4669 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4670 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } \
4674 && test -f conftest2.$ac_objext; then
4675 : OK
4676 else
4677 am_cv_prog_cc_c_o=no
4678 break
4679 fi
4680 done
4681 # aligned with autoconf, so not including core; see bug#72225.
4682 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4683 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4684 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4685 unset am_i ;;
4686 esac
4687 fi
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4689 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4690 if test "$am_cv_prog_cc_c_o" != yes; then
4691 # Losing compiler, so override with the script.
4692 # FIXME: It is wrong to rewrite CC.
4693 # But if we don't then we get into trouble of one sort or another.
4694 # A longer-term fix would be to have automake use am__CC in this case,
4695 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4696 CC="$am_aux_dir/compile $CC"
4697 fi
4698 ac_ext=c
4699 ac_cpp='$CPP $CPPFLAGS'
4700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703
4704
4705 depcc="$CC" am_compiler_list=
4706
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4708 printf %s "checking dependency style of $depcc... " >&6; }
4709 if test ${am_cv_CC_dependencies_compiler_type+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else case e in #(
4713 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4714 # We make a subdir and do the tests there. Otherwise we can end up
4715 # making bogus files that we don't know about and never remove. For
4716 # instance it was reported that on HP-UX the gcc test will end up
4717 # making a dummy file named 'D' -- because '-MD' means "put the output
4718 # in D".
4719 rm -rf conftest.dir
4720 mkdir conftest.dir
4721 # Copy depcomp to subdir because otherwise we won't find it if we're
4722 # using a relative directory.
4723 cp "$am_depcomp" conftest.dir
4724 cd conftest.dir
4725 # We will build objects and dependencies in a subdirectory because
4726 # it helps to detect inapplicable dependency modes. For instance
4727 # both Tru64's cc and ICC support -MD to output dependencies as a
4728 # side effect of compilation, but ICC will put the dependencies in
4729 # the current directory while Tru64 will put them in the object
4730 # directory.
4731 mkdir sub
4732
4733 am_cv_CC_dependencies_compiler_type=none
4734 if test "$am_compiler_list" = ""; then
4735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4736 fi
4737 am__universal=false
4738 case " $depcc " in #(
4739 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4740 esac
4741
4742 for depmode in $am_compiler_list; do
4743 # Setup a source with many dependencies, because some compilers
4744 # like to wrap large dependency lists on column 80 (with \), and
4745 # we should not choose a depcomp mode which is confused by this.
4746 #
4747 # We need to recreate these files for each test, as the compiler may
4748 # overwrite some of them when testing with obscure command lines.
4749 # This happens at least with the AIX C compiler.
4750 : > sub/conftest.c
4751 for i in 1 2 3 4 5 6; do
4752 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4753 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4754 # Solaris 10 /bin/sh.
4755 echo '/* dummy */' > sub/conftst$i.h
4756 done
4757 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4758
4759 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4760 # mode. It turns out that the SunPro C++ compiler does not properly
4761 # handle '-M -o', and we need to detect this. Also, some Intel
4762 # versions had trouble with output in subdirs.
4763 am__obj=sub/conftest.${OBJEXT-o}
4764 am__minus_obj="-o $am__obj"
4765 case $depmode in
4766 gcc)
4767 # This depmode causes a compiler race in universal mode.
4768 test "$am__universal" = false || continue
4769 ;;
4770 nosideeffect)
4771 # After this tag, mechanisms are not by side-effect, so they'll
4772 # only be used when explicitly requested.
4773 if test "x$enable_dependency_tracking" = xyes; then
4774 continue
4775 else
4776 break
4777 fi
4778 ;;
4779 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4780 # This compiler won't grok '-c -o', but also, the minuso test has
4781 # not run yet. These depmodes are late enough in the game, and
4782 # so weak that their functioning should not be impacted.
4783 am__obj=conftest.${OBJEXT-o}
4784 am__minus_obj=
4785 ;;
4786 none) break ;;
4787 esac
4788 if depmode=$depmode \
4789 source=sub/conftest.c object=$am__obj \
4790 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4791 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4792 >/dev/null 2>conftest.err &&
4793 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4794 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4795 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4796 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4797 # icc doesn't choke on unknown options, it will just issue warnings
4798 # or remarks (even with -Werror). So we grep stderr for any message
4799 # that says an option was ignored or not supported.
4800 # When given -MP, icc 7.0 and 7.1 complain thus:
4801 # icc: Command line warning: ignoring option '-M'; no argument required
4802 # The diagnosis changed in icc 8.0:
4803 # icc: Command line remark: option '-MP' not supported
4804 if (grep 'ignoring option' conftest.err ||
4805 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4806 am_cv_CC_dependencies_compiler_type=$depmode
4807 break
4808 fi
4809 fi
4810 done
4811
4812 cd ..
4813 rm -rf conftest.dir
4814 else
4815 am_cv_CC_dependencies_compiler_type=none
4816 fi
4817 ;;
4818 esac
4819 fi
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4821 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4822 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4823
4824 if
4825 test "x$enable_dependency_tracking" != xno \
4826 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4827 am__fastdepCC_TRUE=
4828 am__fastdepCC_FALSE='#'
4829 else
4830 am__fastdepCC_TRUE='#'
4831 am__fastdepCC_FALSE=
4832 fi
4833
4834
4835
4836
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in ar lib "link -lib"
4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 printf %s "checking for $ac_word... " >&6; }
4844 if test ${ac_cv_prog_AR+y}
4845 then :
4846 printf %s "(cached) " >&6
4847 else case e in #(
4848 e) if test -n "$AR"; then
4849 ac_cv_prog_AR="$AR" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854 IFS=$as_save_IFS
4855 case $as_dir in #(((
4856 '') as_dir=./ ;;
4857 */) ;;
4858 *) as_dir=$as_dir/ ;;
4859 esac
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870 fi ;;
4871 esac
4872 fi
4873 AR=$ac_cv_prog_AR
4874 if test -n "$AR"; then
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4876 printf "%s\n" "$AR" >&6; }
4877 else
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 printf "%s\n" "no" >&6; }
4880 fi
4881
4882
4883 test -n "$AR" && break
4884 done
4885 fi
4886 if test -z "$AR"; then
4887 ac_ct_AR=$AR
4888 for ac_prog in ar lib "link -lib"
4889 do
4890 # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 printf %s "checking for $ac_word... " >&6; }
4894 if test ${ac_cv_prog_ac_ct_AR+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else case e in #(
4898 e) if test -n "$ac_ct_AR"; then
4899 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904 IFS=$as_save_IFS
4905 case $as_dir in #(((
4906 '') as_dir=./ ;;
4907 */) ;;
4908 *) as_dir=$as_dir/ ;;
4909 esac
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_AR="$ac_prog"
4913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi ;;
4921 esac
4922 fi
4923 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4924 if test -n "$ac_ct_AR"; then
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4926 printf "%s\n" "$ac_ct_AR" >&6; }
4927 else
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 printf "%s\n" "no" >&6; }
4930 fi
4931
4932
4933 test -n "$ac_ct_AR" && break
4934 done
4935
4936 if test "x$ac_ct_AR" = x; then
4937 AR="false"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 AR=$ac_ct_AR
4946 fi
4947 fi
4948
4949 : ${AR=ar}
4950 : ${ARFLAGS=cr}
4951
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4953 printf %s "checking the archiver ($AR) interface... " >&6; }
4954 if test ${am_cv_ar_interface+y}
4955 then :
4956 printf %s "(cached) " >&6
4957 else case e in #(
4958 e) ac_ext=c
4959 ac_cpp='$CPP $CPPFLAGS'
4960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963
4964 am_cv_ar_interface=ar
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 int some_variable = 0;
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"
4970 then :
4971 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
4972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4973 (eval $am_ar_try) 2>&5
4974 ac_status=$?
4975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4977 if test "$ac_status" -eq 0; then
4978 am_cv_ar_interface=ar
4979 else
4980 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4982 (eval $am_ar_try) 2>&5
4983 ac_status=$?
4984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }
4986 if test "$ac_status" -eq 0; then
4987 am_cv_ar_interface=lib
4988 else
4989 am_cv_ar_interface=unknown
4990 fi
4991 fi
4992 rm -f conftest.lib libconftest.a
4993
4994 fi
4995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4996 ac_ext=c
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001 ;;
5002 esac
5003 fi
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5005 printf "%s\n" "$am_cv_ar_interface" >&6; }
5006
5007 case $am_cv_ar_interface in
5008 ar)
5009 ;;
5010 lib)
5011 # Microsoft lib, so override with the ar-lib wrapper script.
5012 # FIXME: It is wrong to rewrite AR.
5013 # But if we don't then we get into trouble of one sort or another.
5014 # A longer-term fix would be to have automake use am__AR in this case,
5015 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5016 # similar.
5017 AR="$am_aux_dir/ar-lib $AR"
5018 ;;
5019 unknown)
5020 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5021 ;;
5022 esac
5023
5024 case `pwd` in
5025 *\ * | *\ *)
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5027 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5028 esac
5029
5030
5031
5032 macro_version='2.5.4'
5033 macro_revision='2.5.4'
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 ltmain=$ac_aux_dir/ltmain.sh
5049
5050
5051
5052 # Make sure we can run config.sub.
5053 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5054 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5055
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5057 printf %s "checking build system type... " >&6; }
5058 if test ${ac_cv_build+y}
5059 then :
5060 printf %s "(cached) " >&6
5061 else case e in #(
5062 e) ac_build_alias=$build_alias
5063 test "x$ac_build_alias" = x &&
5064 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5065 test "x$ac_build_alias" = x &&
5066 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5067 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5068 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5069 ;;
5070 esac
5071 fi
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5073 printf "%s\n" "$ac_cv_build" >&6; }
5074 case $ac_cv_build in
5075 *-*-*) ;;
5076 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5077 esac
5078 build=$ac_cv_build
5079 ac_save_IFS=$IFS; IFS='-'
5080 set x $ac_cv_build
5081 shift
5082 build_cpu=$1
5083 build_vendor=$2
5084 shift; shift
5085 # Remember, the first character of IFS is used to create $*,
5086 # except with old shells:
5087 build_os=$*
5088 IFS=$ac_save_IFS
5089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5090
5091
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5093 printf %s "checking host system type... " >&6; }
5094 if test ${ac_cv_host+y}
5095 then :
5096 printf %s "(cached) " >&6
5097 else case e in #(
5098 e) if test "x$host_alias" = x; then
5099 ac_cv_host=$ac_cv_build
5100 else
5101 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5102 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5103 fi
5104 ;;
5105 esac
5106 fi
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5108 printf "%s\n" "$ac_cv_host" >&6; }
5109 case $ac_cv_host in
5110 *-*-*) ;;
5111 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5112 esac
5113 host=$ac_cv_host
5114 ac_save_IFS=$IFS; IFS='-'
5115 set x $ac_cv_host
5116 shift
5117 host_cpu=$1
5118 host_vendor=$2
5119 shift; shift
5120 # Remember, the first character of IFS is used to create $*,
5121 # except with old shells:
5122 host_os=$*
5123 IFS=$ac_save_IFS
5124 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5125
5126
5127 # Backslashify metacharacters that are still active within
5128 # double-quoted strings.
5129 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5130
5131 # Same as above, but do not quote variable references.
5132 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5133
5134 # Sed substitution to delay expansion of an escaped shell variable in a
5135 # double_quote_subst'ed string.
5136 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5137
5138 # Sed substitution to delay expansion of an escaped single quote.
5139 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5140
5141 # Sed substitution to avoid accidental globbing in evaled expressions
5142 no_glob_subst='s/\*/\\\*/g'
5143
5144 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5145 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5146 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5147
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5149 printf %s "checking how to print strings... " >&6; }
5150 # Test print first, because it will be a builtin if present.
5151 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5152 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5153 ECHO='print -r --'
5154 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5155 ECHO='printf %s\n'
5156 else
5157 # Use this function as a fallback that always works.
5158 func_fallback_echo ()
5159 {
5160 eval 'cat <<_LTECHO_EOF
5161 $1
5162 _LTECHO_EOF'
5163 }
5164 ECHO='func_fallback_echo'
5165 fi
5166
5167 # func_echo_all arg...
5168 # Invoke $ECHO with all args, space-separated.
5169 func_echo_all ()
5170 {
5171 $ECHO ""
5172 }
5173
5174 case $ECHO in
5175 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5176 printf "%s\n" "printf" >&6; } ;;
5177 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5178 printf "%s\n" "print -r" >&6; } ;;
5179 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5180 printf "%s\n" "cat" >&6; } ;;
5181 esac
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5197 printf %s "checking for a sed that does not truncate output... " >&6; }
5198 if test ${ac_cv_path_SED+y}
5199 then :
5200 printf %s "(cached) " >&6
5201 else case e in #(
5202 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5203 for ac_i in 1 2 3 4 5 6 7; do
5204 ac_script="$ac_script$as_nl$ac_script"
5205 done
5206 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5207 { ac_script=; unset ac_script;}
5208 if test -z "$SED"; then
5209 ac_path_SED_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 case $as_dir in #(((
5216 '') as_dir=./ ;;
5217 */) ;;
5218 *) as_dir=$as_dir/ ;;
5219 esac
5220 for ac_prog in sed gsed
5221 do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5224 as_fn_executable_p "$ac_path_SED" || continue
5225 # Check for GNU ac_path_SED and select it if it is found.
5226 # Check for GNU $ac_path_SED
5227 case `"$ac_path_SED" --version 2>&1` in #(
5228 *GNU*)
5229 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5230 #(
5231 *)
5232 ac_count=0
5233 printf %s 0123456789 >"conftest.in"
5234 while :
5235 do
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 printf "%s\n" '' >> "conftest.nl"
5240 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_SED_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_SED="$ac_path_SED"
5246 ac_path_SED_max=$ac_count
5247 fi
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5253
5254 $ac_path_SED_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_SED"; then
5260 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5261 fi
5262 else
5263 ac_cv_path_SED=$SED
5264 fi
5265 ;;
5266 esac
5267 fi
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5269 printf "%s\n" "$ac_cv_path_SED" >&6; }
5270 SED="$ac_cv_path_SED"
5271 rm -f conftest.sed
5272
5273 test -z "$SED" && SED=sed
5274 Xsed="$SED -e 1s/^X//"
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5287 printf %s "checking for grep that handles long lines and -e... " >&6; }
5288 if test ${ac_cv_path_GREP+y}
5289 then :
5290 printf %s "(cached) " >&6
5291 else case e in #(
5292 e) if test -z "$GREP"; then
5293 ac_path_GREP_found=false
5294 # Loop through the user's path and test for each of PROGNAME-LIST
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5297 do
5298 IFS=$as_save_IFS
5299 case $as_dir in #(((
5300 '') as_dir=./ ;;
5301 */) ;;
5302 *) as_dir=$as_dir/ ;;
5303 esac
5304 for ac_prog in grep ggrep
5305 do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5308 as_fn_executable_p "$ac_path_GREP" || continue
5309 # Check for GNU ac_path_GREP and select it if it is found.
5310 # Check for GNU $ac_path_GREP
5311 case `"$ac_path_GREP" --version 2>&1` in #(
5312 *GNU*)
5313 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5314 #(
5315 *)
5316 ac_count=0
5317 printf %s 0123456789 >"conftest.in"
5318 while :
5319 do
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 printf "%s\n" 'GREP' >> "conftest.nl"
5324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326 as_fn_arith $ac_count + 1 && ac_count=$as_val
5327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_GREP="$ac_path_GREP"
5330 ac_path_GREP_max=$ac_count
5331 fi
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5334 done
5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5337
5338 $ac_path_GREP_found && break 3
5339 done
5340 done
5341 done
5342 IFS=$as_save_IFS
5343 if test -z "$ac_cv_path_GREP"; then
5344 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345 fi
5346 else
5347 ac_cv_path_GREP=$GREP
5348 fi
5349 ;;
5350 esac
5351 fi
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5353 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5354 GREP="$ac_cv_path_GREP"
5355
5356
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5358 printf %s "checking for egrep... " >&6; }
5359 if test ${ac_cv_path_EGREP+y}
5360 then :
5361 printf %s "(cached) " >&6
5362 else case e in #(
5363 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5364 then ac_cv_path_EGREP="$GREP -E"
5365 else
5366 if test -z "$EGREP"; then
5367 ac_path_EGREP_found=false
5368 # Loop through the user's path and test for each of PROGNAME-LIST
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5371 do
5372 IFS=$as_save_IFS
5373 case $as_dir in #(((
5374 '') as_dir=./ ;;
5375 */) ;;
5376 *) as_dir=$as_dir/ ;;
5377 esac
5378 for ac_prog in egrep
5379 do
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5382 as_fn_executable_p "$ac_path_EGREP" || continue
5383 # Check for GNU ac_path_EGREP and select it if it is found.
5384 # Check for GNU $ac_path_EGREP
5385 case `"$ac_path_EGREP" --version 2>&1` in #(
5386 *GNU*)
5387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5388 #(
5389 *)
5390 ac_count=0
5391 printf %s 0123456789 >"conftest.in"
5392 while :
5393 do
5394 cat "conftest.in" "conftest.in" >"conftest.tmp"
5395 mv "conftest.tmp" "conftest.in"
5396 cp "conftest.in" "conftest.nl"
5397 printf "%s\n" 'EGREP' >> "conftest.nl"
5398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5400 as_fn_arith $ac_count + 1 && ac_count=$as_val
5401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5402 # Best one so far, save it but keep looking for a better one
5403 ac_cv_path_EGREP="$ac_path_EGREP"
5404 ac_path_EGREP_max=$ac_count
5405 fi
5406 # 10*(2^10) chars as input seems more than enough
5407 test $ac_count -gt 10 && break
5408 done
5409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5410 esac
5411
5412 $ac_path_EGREP_found && break 3
5413 done
5414 done
5415 done
5416 IFS=$as_save_IFS
5417 if test -z "$ac_cv_path_EGREP"; then
5418 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5419 fi
5420 else
5421 ac_cv_path_EGREP=$EGREP
5422 fi
5423
5424 fi ;;
5425 esac
5426 fi
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5428 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5429 EGREP="$ac_cv_path_EGREP"
5430
5431 EGREP_TRADITIONAL=$EGREP
5432 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5433
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5435 printf %s "checking for fgrep... " >&6; }
5436 if test ${ac_cv_path_FGREP+y}
5437 then :
5438 printf %s "(cached) " >&6
5439 else case e in #(
5440 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5441 then ac_cv_path_FGREP="$GREP -F"
5442 else
5443 if test -z "$FGREP"; then
5444 ac_path_FGREP_found=false
5445 # Loop through the user's path and test for each of PROGNAME-LIST
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5448 do
5449 IFS=$as_save_IFS
5450 case $as_dir in #(((
5451 '') as_dir=./ ;;
5452 */) ;;
5453 *) as_dir=$as_dir/ ;;
5454 esac
5455 for ac_prog in fgrep
5456 do
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5459 as_fn_executable_p "$ac_path_FGREP" || continue
5460 # Check for GNU ac_path_FGREP and select it if it is found.
5461 # Check for GNU $ac_path_FGREP
5462 case `"$ac_path_FGREP" --version 2>&1` in #(
5463 *GNU*)
5464 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5465 #(
5466 *)
5467 ac_count=0
5468 printf %s 0123456789 >"conftest.in"
5469 while :
5470 do
5471 cat "conftest.in" "conftest.in" >"conftest.tmp"
5472 mv "conftest.tmp" "conftest.in"
5473 cp "conftest.in" "conftest.nl"
5474 printf "%s\n" 'FGREP' >> "conftest.nl"
5475 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5477 as_fn_arith $ac_count + 1 && ac_count=$as_val
5478 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5479 # Best one so far, save it but keep looking for a better one
5480 ac_cv_path_FGREP="$ac_path_FGREP"
5481 ac_path_FGREP_max=$ac_count
5482 fi
5483 # 10*(2^10) chars as input seems more than enough
5484 test $ac_count -gt 10 && break
5485 done
5486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5487 esac
5488
5489 $ac_path_FGREP_found && break 3
5490 done
5491 done
5492 done
5493 IFS=$as_save_IFS
5494 if test -z "$ac_cv_path_FGREP"; then
5495 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5496 fi
5497 else
5498 ac_cv_path_FGREP=$FGREP
5499 fi
5500
5501 fi ;;
5502 esac
5503 fi
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5505 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5506 FGREP="$ac_cv_path_FGREP"
5507
5508
5509 test -z "$GREP" && GREP=grep
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 # Check whether --with-gnu-ld was given.
5530 if test ${with_gnu_ld+y}
5531 then :
5532 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5533 else case e in #(
5534 e) with_gnu_ld=no ;;
5535 esac
5536 fi
5537
5538 ac_prog=ld
5539 if test yes = "$GCC"; then
5540 # Check if gcc -print-prog-name=ld gives a path.
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5542 printf %s "checking for ld used by $CC... " >&6; }
5543 case $host in
5544 *-*-mingw* | *-*-windows*)
5545 # gcc leaves a trailing carriage return, which upsets mingw
5546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5547 *)
5548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5549 esac
5550 case $ac_prog in
5551 # Accept absolute paths.
5552 [\\/]* | ?:[\\/]*)
5553 re_direlt='/[^/][^/]*/\.\./'
5554 # Canonicalize the pathname of ld
5555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5558 done
5559 test -z "$LD" && LD=$ac_prog
5560 ;;
5561 "")
5562 # If it fails, then pretend we aren't using GCC.
5563 ac_prog=ld
5564 ;;
5565 *)
5566 # If it is relative, then search for the first ld in PATH.
5567 with_gnu_ld=unknown
5568 ;;
5569 esac
5570 elif test yes = "$with_gnu_ld"; then
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5572 printf %s "checking for GNU ld... " >&6; }
5573 else
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5575 printf %s "checking for non-GNU ld... " >&6; }
5576 fi
5577 if test ${lt_cv_path_LD+y}
5578 then :
5579 printf %s "(cached) " >&6
5580 else case e in #(
5581 e) if test -z "$LD"; then
5582 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5583 for ac_dir in $PATH; do
5584 IFS=$lt_save_ifs
5585 test -z "$ac_dir" && ac_dir=.
5586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5587 lt_cv_path_LD=$ac_dir/$ac_prog
5588 # Check to see if the program is GNU ld. I'd rather use --version,
5589 # but apparently some variants of GNU ld only accept -v.
5590 # Break only if it was the GNU/non-GNU ld that we prefer.
5591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5592 *GNU* | *'with BFD'*)
5593 test no != "$with_gnu_ld" && break
5594 ;;
5595 *)
5596 test yes != "$with_gnu_ld" && break
5597 ;;
5598 esac
5599 fi
5600 done
5601 IFS=$lt_save_ifs
5602 else
5603 lt_cv_path_LD=$LD # Let the user override the test with a path.
5604 fi ;;
5605 esac
5606 fi
5607
5608 LD=$lt_cv_path_LD
5609 if test -n "$LD"; then
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5611 printf "%s\n" "$LD" >&6; }
5612 else
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 printf "%s\n" "no" >&6; }
5615 fi
5616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5618 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5619 if test ${lt_cv_prog_gnu_ld+y}
5620 then :
5621 printf %s "(cached) " >&6
5622 else case e in #(
5623 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5624 case `$LD -v 2>&1 </dev/null` in
5625 *GNU* | *'with BFD'*)
5626 lt_cv_prog_gnu_ld=yes
5627 ;;
5628 *)
5629 lt_cv_prog_gnu_ld=no
5630 ;;
5631 esac ;;
5632 esac
5633 fi
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5635 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5636 with_gnu_ld=$lt_cv_prog_gnu_ld
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5647 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5648 if test ${lt_cv_path_NM+y}
5649 then :
5650 printf %s "(cached) " >&6
5651 else case e in #(
5652 e) if test -n "$NM"; then
5653 # Let the user override the test.
5654 lt_cv_path_NM=$NM
5655 else
5656 lt_nm_to_check=${ac_tool_prefix}nm
5657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5658 lt_nm_to_check="$lt_nm_to_check nm"
5659 fi
5660 for lt_tmp_nm in $lt_nm_to_check; do
5661 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5663 IFS=$lt_save_ifs
5664 test -z "$ac_dir" && ac_dir=.
5665 tmp_nm=$ac_dir/$lt_tmp_nm
5666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5667 # Check to see if the nm accepts a BSD-compat flag.
5668 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5669 # nm: unknown option "B" ignored
5670 # Tru64's nm complains that /dev/null is an invalid object file
5671 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5672 case $build_os in
5673 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5674 *) lt_bad_file=/dev/null ;;
5675 esac
5676 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5677 *$lt_bad_file* | *'Invalid file or object type'*)
5678 lt_cv_path_NM="$tmp_nm -B"
5679 break 2
5680 ;;
5681 *)
5682 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5683 */dev/null*)
5684 lt_cv_path_NM="$tmp_nm -p"
5685 break 2
5686 ;;
5687 *)
5688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5689 continue # so that we can try to find one that supports BSD flags
5690 ;;
5691 esac
5692 ;;
5693 esac
5694 fi
5695 done
5696 IFS=$lt_save_ifs
5697 done
5698 : ${lt_cv_path_NM=no}
5699 fi ;;
5700 esac
5701 fi
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5703 printf "%s\n" "$lt_cv_path_NM" >&6; }
5704 if test no != "$lt_cv_path_NM"; then
5705 NM=$lt_cv_path_NM
5706 else
5707 # Didn't find any BSD compatible name lister, look for dumpbin.
5708 if test -n "$DUMPBIN"; then :
5709 # Let the user override the test.
5710 else
5711 if test -n "$ac_tool_prefix"; then
5712 for ac_prog in dumpbin "link -dump"
5713 do
5714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 printf %s "checking for $ac_word... " >&6; }
5718 if test ${ac_cv_prog_DUMPBIN+y}
5719 then :
5720 printf %s "(cached) " >&6
5721 else case e in #(
5722 e) if test -n "$DUMPBIN"; then
5723 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 case $as_dir in #(((
5730 '') as_dir=./ ;;
5731 */) ;;
5732 *) as_dir=$as_dir/ ;;
5733 esac
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi ;;
5745 esac
5746 fi
5747 DUMPBIN=$ac_cv_prog_DUMPBIN
5748 if test -n "$DUMPBIN"; then
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5750 printf "%s\n" "$DUMPBIN" >&6; }
5751 else
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 printf "%s\n" "no" >&6; }
5754 fi
5755
5756
5757 test -n "$DUMPBIN" && break
5758 done
5759 fi
5760 if test -z "$DUMPBIN"; then
5761 ac_ct_DUMPBIN=$DUMPBIN
5762 for ac_prog in dumpbin "link -dump"
5763 do
5764 # Extract the first word of "$ac_prog", so it can be a program name with args.
5765 set dummy $ac_prog; ac_word=$2
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 printf %s "checking for $ac_word... " >&6; }
5768 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5769 then :
5770 printf %s "(cached) " >&6
5771 else case e in #(
5772 e) if test -n "$ac_ct_DUMPBIN"; then
5773 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 case $as_dir in #(((
5780 '') as_dir=./ ;;
5781 */) ;;
5782 *) as_dir=$as_dir/ ;;
5783 esac
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 fi ;;
5795 esac
5796 fi
5797 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5798 if test -n "$ac_ct_DUMPBIN"; then
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5800 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5801 else
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 printf "%s\n" "no" >&6; }
5804 fi
5805
5806
5807 test -n "$ac_ct_DUMPBIN" && break
5808 done
5809
5810 if test "x$ac_ct_DUMPBIN" = x; then
5811 DUMPBIN=":"
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814 yes:)
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817 ac_tool_warned=yes ;;
5818 esac
5819 DUMPBIN=$ac_ct_DUMPBIN
5820 fi
5821 fi
5822
5823 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5824 *COFF*)
5825 DUMPBIN="$DUMPBIN -symbols -headers"
5826 ;;
5827 *)
5828 DUMPBIN=:
5829 ;;
5830 esac
5831 fi
5832
5833 if test : != "$DUMPBIN"; then
5834 NM=$DUMPBIN
5835 fi
5836 fi
5837 test -z "$NM" && NM=nm
5838
5839
5840
5841
5842
5843
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5845 printf %s "checking the name lister ($NM) interface... " >&6; }
5846 if test ${lt_cv_nm_interface+y}
5847 then :
5848 printf %s "(cached) " >&6
5849 else case e in #(
5850 e) lt_cv_nm_interface="BSD nm"
5851 echo "int some_variable = 0;" > conftest.$ac_ext
5852 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5853 (eval "$ac_compile" 2>conftest.err)
5854 cat conftest.err >&5
5855 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5856 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5857 cat conftest.err >&5
5858 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5859 cat conftest.out >&5
5860 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5861 lt_cv_nm_interface="MS dumpbin"
5862 fi
5863 rm -f conftest* ;;
5864 esac
5865 fi
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5867 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5868
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5870 printf %s "checking whether ln -s works... " >&6; }
5871 LN_S=$as_ln_s
5872 if test "$LN_S" = "ln -s"; then
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5874 printf "%s\n" "yes" >&6; }
5875 else
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5877 printf "%s\n" "no, using $LN_S" >&6; }
5878 fi
5879
5880 # find the maximum length of command line arguments
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5882 printf %s "checking the maximum length of command line arguments... " >&6; }
5883 if test ${lt_cv_sys_max_cmd_len+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else case e in #(
5887 e) i=0
5888 teststring=ABCD
5889
5890 case $build_os in
5891 msdosdjgpp*)
5892 # On DJGPP, this test can blow up pretty badly due to problems in libc
5893 # (any single argument exceeding 2000 bytes causes a buffer overrun
5894 # during glob expansion). Even if it were fixed, the result of this
5895 # check would be larger than it should be.
5896 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5897 ;;
5898
5899 gnu* | ironclad*)
5900 # Under GNU Hurd and Ironclad, this test is not required because there
5901 # is no limit to the length of command line arguments.
5902 # Libtool will interpret -1 as no limit whatsoever
5903 lt_cv_sys_max_cmd_len=-1;
5904 ;;
5905
5906 cygwin* | mingw* | windows* | cegcc*)
5907 # On Win9x/ME, this test blows up -- it succeeds, but takes
5908 # about 5 minutes as the teststring grows exponentially.
5909 # Worse, since 9x/ME are not pre-emptively multitasking,
5910 # you end up with a "frozen" computer, even though with patience
5911 # the test eventually succeeds (with a max line length of 256k).
5912 # Instead, let's just punt: use the minimum linelength reported by
5913 # all of the supported platforms: 8192 (on NT/2K/XP).
5914 lt_cv_sys_max_cmd_len=8192;
5915 ;;
5916
5917 mint*)
5918 # On MiNT this can take a long time and run out of memory.
5919 lt_cv_sys_max_cmd_len=8192;
5920 ;;
5921
5922 amigaos*)
5923 # On AmigaOS with pdksh, this test takes hours, literally.
5924 # So we just punt and use a minimum line length of 8192.
5925 lt_cv_sys_max_cmd_len=8192;
5926 ;;
5927
5928 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5929 # This has been around since 386BSD, at least. Likely further.
5930 if test -x /sbin/sysctl; then
5931 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5932 elif test -x /usr/sbin/sysctl; then
5933 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5934 else
5935 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5936 fi
5937 # And add a safety zone
5938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5940 ;;
5941
5942 interix*)
5943 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5944 lt_cv_sys_max_cmd_len=196608
5945 ;;
5946
5947 os2*)
5948 # The test takes a long time on OS/2.
5949 lt_cv_sys_max_cmd_len=8192
5950 ;;
5951
5952 osf*)
5953 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5954 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5955 # nice to cause kernel panics so lets avoid the loop below.
5956 # First set a reasonable default.
5957 lt_cv_sys_max_cmd_len=16384
5958 #
5959 if test -x /sbin/sysconfig; then
5960 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5961 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5962 esac
5963 fi
5964 ;;
5965 sco3.2v5*)
5966 lt_cv_sys_max_cmd_len=102400
5967 ;;
5968 sysv5* | sco5v6* | sysv4.2uw2*)
5969 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5970 if test -n "$kargmax"; then
5971 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5972 else
5973 lt_cv_sys_max_cmd_len=32768
5974 fi
5975 ;;
5976 *)
5977 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5978 if test -n "$lt_cv_sys_max_cmd_len" && \
5979 test undefined != "$lt_cv_sys_max_cmd_len"; then
5980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5982 else
5983 # Make teststring a little bigger before we do anything with it.
5984 # a 1K string should be a reasonable start.
5985 for i in 1 2 3 4 5 6 7 8; do
5986 teststring=$teststring$teststring
5987 done
5988 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5989 # If test is not a shell built-in, we'll probably end up computing a
5990 # maximum length that is only half of the actual maximum length, but
5991 # we can't tell.
5992 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5993 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5994 test 17 != "$i" # 1/2 MB should be enough
5995 do
5996 i=`expr $i + 1`
5997 teststring=$teststring$teststring
5998 done
5999 # Only check the string length outside the loop.
6000 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6001 teststring=
6002 # Add a significant safety factor because C++ compilers can tack on
6003 # massive amounts of additional arguments before passing them to the
6004 # linker. It appears as though 1/2 is a usable value.
6005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6006 fi
6007 ;;
6008 esac
6009 ;;
6010 esac
6011 fi
6012
6013 if test -n "$lt_cv_sys_max_cmd_len"; then
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6015 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6016 else
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6018 printf "%s\n" "none" >&6; }
6019 fi
6020 max_cmd_len=$lt_cv_sys_max_cmd_len
6021
6022
6023
6024
6025
6026
6027 : ${CP="cp -f"}
6028 : ${MV="mv -f"}
6029 : ${RM="rm -f"}
6030
6031 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6032 lt_unset=unset
6033 else
6034 lt_unset=false
6035 fi
6036
6037
6038
6039
6040
6041 # test EBCDIC or ASCII
6042 case `echo X|tr X '\101'` in
6043 A) # ASCII based system
6044 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6045 lt_SP2NL='tr \040 \012'
6046 lt_NL2SP='tr \015\012 \040\040'
6047 ;;
6048 *) # EBCDIC based system
6049 lt_SP2NL='tr \100 \n'
6050 lt_NL2SP='tr \r\n \100\100'
6051 ;;
6052 esac
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6063 printf %s "checking how to convert $build file names to $host format... " >&6; }
6064 if test ${lt_cv_to_host_file_cmd+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else case e in #(
6068 e) case $host in
6069 *-*-mingw* )
6070 case $build in
6071 *-*-mingw* | *-*-windows* ) # actually msys
6072 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6073 ;;
6074 *-*-cygwin* )
6075 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6076 ;;
6077 * ) # otherwise, assume *nix
6078 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6079 ;;
6080 esac
6081 ;;
6082 *-*-cygwin* )
6083 case $build in
6084 *-*-mingw* | *-*-windows* ) # actually msys
6085 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6086 ;;
6087 *-*-cygwin* )
6088 lt_cv_to_host_file_cmd=func_convert_file_noop
6089 ;;
6090 * ) # otherwise, assume *nix
6091 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6092 ;;
6093 esac
6094 ;;
6095 * ) # unhandled hosts (and "normal" native builds)
6096 lt_cv_to_host_file_cmd=func_convert_file_noop
6097 ;;
6098 esac
6099 ;;
6100 esac
6101 fi
6102
6103 to_host_file_cmd=$lt_cv_to_host_file_cmd
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6105 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6106
6107
6108
6109
6110
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6112 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6113 if test ${lt_cv_to_tool_file_cmd+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else case e in #(
6117 e) #assume ordinary cross tools, or native build.
6118 lt_cv_to_tool_file_cmd=func_convert_file_noop
6119 case $host in
6120 *-*-mingw* | *-*-windows* )
6121 case $build in
6122 *-*-mingw* | *-*-windows* ) # actually msys
6123 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6124 ;;
6125 esac
6126 ;;
6127 esac
6128 ;;
6129 esac
6130 fi
6131
6132 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6134 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6135
6136
6137
6138
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6141 printf %s "checking for $LD option to reload object files... " >&6; }
6142 if test ${lt_cv_ld_reload_flag+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else case e in #(
6146 e) lt_cv_ld_reload_flag='-r' ;;
6147 esac
6148 fi
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6150 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6151 reload_flag=$lt_cv_ld_reload_flag
6152 case $reload_flag in
6153 "" | " "*) ;;
6154 *) reload_flag=" $reload_flag" ;;
6155 esac
6156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6157 case $host_os in
6158 cygwin* | mingw* | windows* | pw32* | cegcc*)
6159 if test yes != "$GCC"; then
6160 reload_cmds=false
6161 fi
6162 ;;
6163 darwin*)
6164 if test yes = "$GCC"; then
6165 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6166 else
6167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168 fi
6169 ;;
6170 esac
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 # Extract the first word of "file", so it can be a program name with args.
6181 set dummy file; ac_word=$2
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 printf %s "checking for $ac_word... " >&6; }
6184 if test ${ac_cv_prog_FILECMD+y}
6185 then :
6186 printf %s "(cached) " >&6
6187 else case e in #(
6188 e) if test -n "$FILECMD"; then
6189 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 case $as_dir in #(((
6196 '') as_dir=./ ;;
6197 */) ;;
6198 *) as_dir=$as_dir/ ;;
6199 esac
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_FILECMD="file"
6203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6211 fi ;;
6212 esac
6213 fi
6214 FILECMD=$ac_cv_prog_FILECMD
6215 if test -n "$FILECMD"; then
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6217 printf "%s\n" "$FILECMD" >&6; }
6218 else
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 printf "%s\n" "no" >&6; }
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 printf %s "checking for $ac_word... " >&6; }
6235 if test ${ac_cv_prog_OBJDUMP+y}
6236 then :
6237 printf %s "(cached) " >&6
6238 else case e in #(
6239 e) if test -n "$OBJDUMP"; then
6240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245 IFS=$as_save_IFS
6246 case $as_dir in #(((
6247 '') as_dir=./ ;;
6248 */) ;;
6249 *) as_dir=$as_dir/ ;;
6250 esac
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi ;;
6262 esac
6263 fi
6264 OBJDUMP=$ac_cv_prog_OBJDUMP
6265 if test -n "$OBJDUMP"; then
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6267 printf "%s\n" "$OBJDUMP" >&6; }
6268 else
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 printf "%s\n" "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_OBJDUMP"; then
6276 ac_ct_OBJDUMP=$OBJDUMP
6277 # Extract the first word of "objdump", so it can be a program name with args.
6278 set dummy objdump; ac_word=$2
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 printf %s "checking for $ac_word... " >&6; }
6281 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6282 then :
6283 printf %s "(cached) " >&6
6284 else case e in #(
6285 e) if test -n "$ac_ct_OBJDUMP"; then
6286 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 case $as_dir in #(((
6293 '') as_dir=./ ;;
6294 */) ;;
6295 *) as_dir=$as_dir/ ;;
6296 esac
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi ;;
6308 esac
6309 fi
6310 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6311 if test -n "$ac_ct_OBJDUMP"; then
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6313 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6314 else
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 printf "%s\n" "no" >&6; }
6317 fi
6318
6319 if test "x$ac_ct_OBJDUMP" = x; then
6320 OBJDUMP="false"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6327 esac
6328 OBJDUMP=$ac_ct_OBJDUMP
6329 fi
6330 else
6331 OBJDUMP="$ac_cv_prog_OBJDUMP"
6332 fi
6333
6334 test -z "$OBJDUMP" && OBJDUMP=objdump
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6345 printf %s "checking how to recognize dependent libraries... " >&6; }
6346 if test ${lt_cv_deplibs_check_method+y}
6347 then :
6348 printf %s "(cached) " >&6
6349 else case e in #(
6350 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6351 lt_cv_file_magic_test_file=
6352 lt_cv_deplibs_check_method='unknown'
6353 # Need to set the preceding variable on all platforms that support
6354 # interlibrary dependencies.
6355 # 'none' -- dependencies not supported.
6356 # 'unknown' -- same as none, but documents that we really don't know.
6357 # 'pass_all' -- all dependencies passed with no checks.
6358 # 'file_magic [[regex]]' -- check by looking for files in library path
6359 # that responds to the $file_magic_cmd with a given extended regex.
6360 # If you have 'file' or equivalent on your system and you're not sure
6361 # whether 'pass_all' will *always* work, you probably want this one.
6362
6363 case $host_os in
6364 aix[4-9]*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 beos*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372 bsdi[45]*)
6373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6374 lt_cv_file_magic_cmd='$FILECMD -L'
6375 lt_cv_file_magic_test_file=/shlib/libc.so
6376 ;;
6377
6378 cygwin*)
6379 # func_win32_libid is a shell function defined in ltmain.sh
6380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6381 lt_cv_file_magic_cmd='func_win32_libid'
6382 ;;
6383
6384 mingw* | windows* | pw32*)
6385 # Base MSYS/MinGW do not provide the 'file' command needed by
6386 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6387 # unless we find 'file', for example because we are cross-compiling.
6388 if ( file / ) >/dev/null 2>&1; then
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6391 else
6392 # Keep this pattern in sync with the one in func_win32_libid.
6393 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6394 lt_cv_file_magic_cmd='$OBJDUMP -f'
6395 fi
6396 ;;
6397
6398 cegcc*)
6399 # use the weaker test based on 'objdump'. See mingw*.
6400 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401 lt_cv_file_magic_cmd='$OBJDUMP -f'
6402 ;;
6403
6404 darwin* | rhapsody*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408 freebsd* | dragonfly* | midnightbsd*)
6409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6410 case $host_cpu in
6411 i*86 )
6412 # Not sure whether the presence of OpenBSD here was a mistake.
6413 # Let's accept both of them until this is cleared up.
6414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415 lt_cv_file_magic_cmd=$FILECMD
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417 ;;
6418 esac
6419 else
6420 lt_cv_deplibs_check_method=pass_all
6421 fi
6422 ;;
6423
6424 haiku*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 hpux10.20* | hpux11*)
6429 lt_cv_file_magic_cmd=$FILECMD
6430 case $host_cpu in
6431 ia64*)
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6433 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6434 ;;
6435 hppa*64*)
6436 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]'
6437 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6438 ;;
6439 *)
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6441 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6442 ;;
6443 esac
6444 ;;
6445
6446 interix[3-9]*)
6447 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6449 ;;
6450
6451 irix5* | irix6* | nonstopux*)
6452 case $LD in
6453 *-32|*"-32 ") libmagic=32-bit;;
6454 *-n32|*"-n32 ") libmagic=N32;;
6455 *-64|*"-64 ") libmagic=64-bit;;
6456 *) libmagic=never-match;;
6457 esac
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 # This must be glibc/ELF.
6462 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 *-mlibc)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 netbsd* | netbsdelf*-gnu)
6471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 else
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6475 fi
6476 ;;
6477
6478 newos6*)
6479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6480 lt_cv_file_magic_cmd=$FILECMD
6481 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6482 ;;
6483
6484 *nto* | *qnx*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 openbsd*)
6489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6491 else
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 fi
6494 ;;
6495
6496 osf3* | osf4* | osf5*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 rdos*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504 serenity*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 solaris*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
6516 sysv4 | sysv4.3*)
6517 case $host_vendor in
6518 motorola)
6519 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]'
6520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6521 ;;
6522 ncr)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525 sequent)
6526 lt_cv_file_magic_cmd='/bin/file'
6527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6528 ;;
6529 sni)
6530 lt_cv_file_magic_cmd='/bin/file'
6531 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6532 lt_cv_file_magic_test_file=/lib/libc.so
6533 ;;
6534 siemens)
6535 lt_cv_deplibs_check_method=pass_all
6536 ;;
6537 pc)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540 esac
6541 ;;
6542
6543 tpf*)
6544 lt_cv_deplibs_check_method=pass_all
6545 ;;
6546 os2*)
6547 lt_cv_deplibs_check_method=pass_all
6548 ;;
6549 esac
6550 ;;
6551 esac
6552 fi
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6554 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6555
6556 file_magic_glob=
6557 want_nocaseglob=no
6558 if test "$build" = "$host"; then
6559 case $host_os in
6560 mingw* | windows* | pw32*)
6561 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6562 want_nocaseglob=yes
6563 else
6564 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6565 fi
6566 ;;
6567 esac
6568 fi
6569
6570 file_magic_cmd=$lt_cv_file_magic_cmd
6571 deplibs_check_method=$lt_cv_deplibs_check_method
6572 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 printf %s "checking for $ac_word... " >&6; }
6600 if test ${ac_cv_prog_DLLTOOL+y}
6601 then :
6602 printf %s "(cached) " >&6
6603 else case e in #(
6604 e) if test -n "$DLLTOOL"; then
6605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 case $as_dir in #(((
6612 '') as_dir=./ ;;
6613 */) ;;
6614 *) as_dir=$as_dir/ ;;
6615 esac
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi ;;
6627 esac
6628 fi
6629 DLLTOOL=$ac_cv_prog_DLLTOOL
6630 if test -n "$DLLTOOL"; then
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6632 printf "%s\n" "$DLLTOOL" >&6; }
6633 else
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 printf "%s\n" "no" >&6; }
6636 fi
6637
6638
6639 fi
6640 if test -z "$ac_cv_prog_DLLTOOL"; then
6641 ac_ct_DLLTOOL=$DLLTOOL
6642 # Extract the first word of "dlltool", so it can be a program name with args.
6643 set dummy dlltool; ac_word=$2
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 printf %s "checking for $ac_word... " >&6; }
6646 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6647 then :
6648 printf %s "(cached) " >&6
6649 else case e in #(
6650 e) if test -n "$ac_ct_DLLTOOL"; then
6651 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656 IFS=$as_save_IFS
6657 case $as_dir in #(((
6658 '') as_dir=./ ;;
6659 */) ;;
6660 *) as_dir=$as_dir/ ;;
6661 esac
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi ;;
6673 esac
6674 fi
6675 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6676 if test -n "$ac_ct_DLLTOOL"; then
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6678 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6679 else
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 printf "%s\n" "no" >&6; }
6682 fi
6683
6684 if test "x$ac_ct_DLLTOOL" = x; then
6685 DLLTOOL="false"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 DLLTOOL=$ac_ct_DLLTOOL
6694 fi
6695 else
6696 DLLTOOL="$ac_cv_prog_DLLTOOL"
6697 fi
6698
6699 test -z "$DLLTOOL" && DLLTOOL=dlltool
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6711 printf %s "checking how to associate runtime and link libraries... " >&6; }
6712 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else case e in #(
6716 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6717
6718 case $host_os in
6719 cygwin* | mingw* | windows* | pw32* | cegcc*)
6720 # two different shell functions defined in ltmain.sh;
6721 # decide which one to use based on capabilities of $DLLTOOL
6722 case `$DLLTOOL --help 2>&1` in
6723 *--identify-strict*)
6724 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6725 ;;
6726 *)
6727 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6728 ;;
6729 esac
6730 ;;
6731 *)
6732 # fallback: assume linklib IS sharedlib
6733 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6734 ;;
6735 esac
6736 ;;
6737 esac
6738 fi
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6740 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6741 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6742 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6743
6744
6745
6746
6747
6748
6749
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 printf %s "checking for $ac_word... " >&6; }
6755 if test ${ac_cv_prog_RANLIB+y}
6756 then :
6757 printf %s "(cached) " >&6
6758 else case e in #(
6759 e) if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 case $as_dir in #(((
6767 '') as_dir=./ ;;
6768 */) ;;
6769 *) as_dir=$as_dir/ ;;
6770 esac
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi ;;
6782 esac
6783 fi
6784 RANLIB=$ac_cv_prog_RANLIB
6785 if test -n "$RANLIB"; then
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6787 printf "%s\n" "$RANLIB" >&6; }
6788 else
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 printf "%s\n" "no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_RANLIB"; then
6796 ac_ct_RANLIB=$RANLIB
6797 # Extract the first word of "ranlib", so it can be a program name with args.
6798 set dummy ranlib; ac_word=$2
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 printf %s "checking for $ac_word... " >&6; }
6801 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else case e in #(
6805 e) if test -n "$ac_ct_RANLIB"; then
6806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 case $as_dir in #(((
6813 '') as_dir=./ ;;
6814 */) ;;
6815 *) as_dir=$as_dir/ ;;
6816 esac
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_RANLIB="ranlib"
6820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi ;;
6828 esac
6829 fi
6830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6831 if test -n "$ac_ct_RANLIB"; then
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6833 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6834 else
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 printf "%s\n" "no" >&6; }
6837 fi
6838
6839 if test "x$ac_ct_RANLIB" = x; then
6840 RANLIB=":"
6841 else
6842 case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848 RANLIB=$ac_ct_RANLIB
6849 fi
6850 else
6851 RANLIB="$ac_cv_prog_RANLIB"
6852 fi
6853
6854 if test -n "$ac_tool_prefix"; then
6855 for ac_prog in ar
6856 do
6857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 printf %s "checking for $ac_word... " >&6; }
6861 if test ${ac_cv_prog_AR+y}
6862 then :
6863 printf %s "(cached) " >&6
6864 else case e in #(
6865 e) if test -n "$AR"; then
6866 ac_cv_prog_AR="$AR" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 case $as_dir in #(((
6873 '') as_dir=./ ;;
6874 */) ;;
6875 *) as_dir=$as_dir/ ;;
6876 esac
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi ;;
6888 esac
6889 fi
6890 AR=$ac_cv_prog_AR
6891 if test -n "$AR"; then
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6893 printf "%s\n" "$AR" >&6; }
6894 else
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 printf "%s\n" "no" >&6; }
6897 fi
6898
6899
6900 test -n "$AR" && break
6901 done
6902 fi
6903 if test -z "$AR"; then
6904 ac_ct_AR=$AR
6905 for ac_prog in ar
6906 do
6907 # Extract the first word of "$ac_prog", so it can be a program name with args.
6908 set dummy $ac_prog; ac_word=$2
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 printf %s "checking for $ac_word... " >&6; }
6911 if test ${ac_cv_prog_ac_ct_AR+y}
6912 then :
6913 printf %s "(cached) " >&6
6914 else case e in #(
6915 e) if test -n "$ac_ct_AR"; then
6916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921 IFS=$as_save_IFS
6922 case $as_dir in #(((
6923 '') as_dir=./ ;;
6924 */) ;;
6925 *) as_dir=$as_dir/ ;;
6926 esac
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_AR="$ac_prog"
6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi ;;
6938 esac
6939 fi
6940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6941 if test -n "$ac_ct_AR"; then
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6943 printf "%s\n" "$ac_ct_AR" >&6; }
6944 else
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 printf "%s\n" "no" >&6; }
6947 fi
6948
6949
6950 test -n "$ac_ct_AR" && break
6951 done
6952
6953 if test "x$ac_ct_AR" = x; then
6954 AR="false"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962 AR=$ac_ct_AR
6963 fi
6964 fi
6965
6966 : ${AR=ar}
6967
6968
6969
6970
6971
6972
6973 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6974 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6975 # higher priority because that's what people were doing historically (setting
6976 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6977 # variable obsoleted/removed.
6978
6979 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6980 lt_ar_flags=$AR_FLAGS
6981
6982
6983
6984
6985
6986
6987 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6988 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6989
6990
6991
6992
6993
6994
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6996 printf %s "checking for archiver @FILE support... " >&6; }
6997 if test ${lt_cv_ar_at_file+y}
6998 then :
6999 printf %s "(cached) " >&6
7000 else case e in #(
7001 e) lt_cv_ar_at_file=no
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004
7005 int
7006 main (void)
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_compile "$LINENO"
7014 then :
7015 echo conftest.$ac_objext > conftest.lst
7016 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7018 (eval $lt_ar_try) 2>&5
7019 ac_status=$?
7020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021 test $ac_status = 0; }
7022 if test 0 -eq "$ac_status"; then
7023 # Ensure the archiver fails upon bogus file names.
7024 rm -f conftest.$ac_objext libconftest.a
7025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7026 (eval $lt_ar_try) 2>&5
7027 ac_status=$?
7028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }
7030 if test 0 -ne "$ac_status"; then
7031 lt_cv_ar_at_file=@
7032 fi
7033 fi
7034 rm -f conftest.* libconftest.a
7035
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7038 ;;
7039 esac
7040 fi
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7042 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7043
7044 if test no = "$lt_cv_ar_at_file"; then
7045 archiver_list_spec=
7046 else
7047 archiver_list_spec=$lt_cv_ar_at_file
7048 fi
7049
7050
7051
7052
7053
7054
7055
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}strip; ac_word=$2
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 printf %s "checking for $ac_word... " >&6; }
7061 if test ${ac_cv_prog_STRIP+y}
7062 then :
7063 printf %s "(cached) " >&6
7064 else case e in #(
7065 e) if test -n "$STRIP"; then
7066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 case $as_dir in #(((
7073 '') as_dir=./ ;;
7074 */) ;;
7075 *) as_dir=$as_dir/ ;;
7076 esac
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 fi ;;
7088 esac
7089 fi
7090 STRIP=$ac_cv_prog_STRIP
7091 if test -n "$STRIP"; then
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7093 printf "%s\n" "$STRIP" >&6; }
7094 else
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 printf "%s\n" "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_STRIP"; then
7102 ac_ct_STRIP=$STRIP
7103 # Extract the first word of "strip", so it can be a program name with args.
7104 set dummy strip; ac_word=$2
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 printf %s "checking for $ac_word... " >&6; }
7107 if test ${ac_cv_prog_ac_ct_STRIP+y}
7108 then :
7109 printf %s "(cached) " >&6
7110 else case e in #(
7111 e) if test -n "$ac_ct_STRIP"; then
7112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 case $as_dir in #(((
7119 '') as_dir=./ ;;
7120 */) ;;
7121 *) as_dir=$as_dir/ ;;
7122 esac
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_STRIP="strip"
7126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi ;;
7134 esac
7135 fi
7136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7137 if test -n "$ac_ct_STRIP"; then
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7139 printf "%s\n" "$ac_ct_STRIP" >&6; }
7140 else
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 printf "%s\n" "no" >&6; }
7143 fi
7144
7145 if test "x$ac_ct_STRIP" = x; then
7146 STRIP=":"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 STRIP=$ac_ct_STRIP
7155 fi
7156 else
7157 STRIP="$ac_cv_prog_STRIP"
7158 fi
7159
7160 test -z "$STRIP" && STRIP=:
7161
7162
7163
7164
7165
7166
7167
7168 test -z "$RANLIB" && RANLIB=:
7169
7170
7171
7172
7173
7174
7175 # Determine commands to create old-style static archives.
7176 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7177 old_postinstall_cmds='chmod 644 $oldlib'
7178 old_postuninstall_cmds=
7179
7180 if test -n "$RANLIB"; then
7181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7183 fi
7184
7185 case $host_os in
7186 darwin*)
7187 lock_old_archive_extraction=yes ;;
7188 *)
7189 lock_old_archive_extraction=no ;;
7190 esac
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 # If no C compiler was specified, use CC.
7231 LTCC=${LTCC-"$CC"}
7232
7233 # If no C compiler flags were specified, use CFLAGS.
7234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7235
7236 # Allow CC to be a program name with arguments.
7237 compiler=$CC
7238
7239
7240 # Check for command to grab the raw symbol name followed by C symbol from nm.
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7242 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7243 if test ${lt_cv_sys_global_symbol_pipe+y}
7244 then :
7245 printf %s "(cached) " >&6
7246 else case e in #(
7247 e)
7248 # These are sane defaults that work on at least a few old systems.
7249 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7250
7251 # Character class describing NM global symbol codes.
7252 symcode='[BCDEGRST]'
7253
7254 # Regexp to match symbols that can be accessed directly from C.
7255 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7256
7257 # Define system-specific variables.
7258 case $host_os in
7259 aix*)
7260 symcode='[BCDT]'
7261 ;;
7262 cygwin* | mingw* | windows* | pw32* | cegcc*)
7263 symcode='[ABCDGISTW]'
7264 ;;
7265 hpux*)
7266 if test ia64 = "$host_cpu"; then
7267 symcode='[ABCDEGRST]'
7268 fi
7269 ;;
7270 irix* | nonstopux*)
7271 symcode='[BCDEGRST]'
7272 ;;
7273 osf*)
7274 symcode='[BCDEGQRST]'
7275 ;;
7276 solaris*)
7277 symcode='[BCDRT]'
7278 ;;
7279 sco3.2v5*)
7280 symcode='[DT]'
7281 ;;
7282 sysv4.2uw2*)
7283 symcode='[DT]'
7284 ;;
7285 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7286 symcode='[ABDT]'
7287 ;;
7288 sysv4)
7289 symcode='[DFNSTU]'
7290 ;;
7291 esac
7292
7293 # If we're using GNU nm, then use its standard symbol codes.
7294 case `$NM -V 2>&1` in
7295 *GNU* | *'with BFD'*)
7296 symcode='[ABCDGIRSTW]' ;;
7297 esac
7298
7299 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7300 # Gets list of data symbols to import.
7301 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7302 # Adjust the below global symbol transforms to fixup imported variables.
7303 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7304 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7305 lt_c_name_lib_hook="\
7306 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7307 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7308 else
7309 # Disable hooks by default.
7310 lt_cv_sys_global_symbol_to_import=
7311 lt_cdecl_hook=
7312 lt_c_name_hook=
7313 lt_c_name_lib_hook=
7314 fi
7315
7316 # Transform an extracted symbol line into a proper C declaration.
7317 # Some systems (esp. on ia64) link data and code symbols differently,
7318 # so use this general approach.
7319 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7320 $lt_cdecl_hook\
7321 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7322 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7323
7324 # Transform an extracted symbol line into symbol name and symbol address
7325 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7326 $lt_c_name_hook\
7327 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7328 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7329
7330 # Transform an extracted symbol line into symbol name with lib prefix and
7331 # symbol address.
7332 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7333 $lt_c_name_lib_hook\
7334 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7335 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7336 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7337
7338 # Handle CRLF in mingw tool chain
7339 opt_cr=
7340 case $build_os in
7341 mingw* | windows*)
7342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7343 ;;
7344 esac
7345
7346 # Try without a prefix underscore, then with it.
7347 for ac_symprfx in "" "_"; do
7348
7349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7350 symxfrm="\\1 $ac_symprfx\\2 \\2"
7351
7352 # Write the raw and C identifiers.
7353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7354 # Fake it for dumpbin and say T for any non-static function,
7355 # D for any global variable and I for any imported variable.
7356 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7357 # which start with @ or ?.
7358 lt_cv_sys_global_symbol_pipe="$AWK '"\
7359 " {last_section=section; section=\$ 3};"\
7360 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7361 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7362 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7363 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7364 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7365 " \$ 0!~/External *\|/{next};"\
7366 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7367 " {if(hide[section]) next};"\
7368 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7369 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7370 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7371 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7372 " ' prfx=^$ac_symprfx"
7373 else
7374 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7375 fi
7376 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7377
7378 # Check to see that the pipe works correctly.
7379 pipe_works=no
7380
7381 rm -f conftest*
7382 cat > conftest.$ac_ext <<_LT_EOF
7383 #ifdef __cplusplus
7384 extern "C" {
7385 #endif
7386 char nm_test_var;
7387 void nm_test_func(void);
7388 void nm_test_func(void){}
7389 #ifdef __cplusplus
7390 }
7391 #endif
7392 int main(void){nm_test_var='a';nm_test_func();return(0);}
7393 _LT_EOF
7394
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 # Now try to grab the symbols.
7401 nlist=conftest.nm
7402 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7403 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7404 # Try sorting and uniquifying the output.
7405 if sort "$nlist" | uniq > "$nlist"T; then
7406 mv -f "$nlist"T "$nlist"
7407 else
7408 rm -f "$nlist"T
7409 fi
7410
7411 # Make sure that we snagged all the symbols we need.
7412 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7413 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7414 cat <<_LT_EOF > conftest.$ac_ext
7415 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7416 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7417 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7418 relocations are performed -- see ld's documentation on pseudo-relocs. */
7419 # define LT_DLSYM_CONST
7420 #elif defined __osf__
7421 /* This system does not cope well with relocations in const data. */
7422 # define LT_DLSYM_CONST
7423 #else
7424 # define LT_DLSYM_CONST const
7425 #endif
7426
7427 #ifdef __cplusplus
7428 extern "C" {
7429 #endif
7430
7431 _LT_EOF
7432 # Now generate the symbol file.
7433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7434
7435 cat <<_LT_EOF >> conftest.$ac_ext
7436
7437 /* The mapping between symbol names and symbols. */
7438 LT_DLSYM_CONST struct {
7439 const char *name;
7440 void *address;
7441 }
7442 lt__PROGRAM__LTX_preloaded_symbols[] =
7443 {
7444 { "@PROGRAM@", (void *) 0 },
7445 _LT_EOF
7446 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7447 cat <<\_LT_EOF >> conftest.$ac_ext
7448 {0, (void *) 0}
7449 };
7450
7451 /* This works around a problem in FreeBSD linker */
7452 #ifdef FREEBSD_WORKAROUND
7453 static const void *lt_preloaded_setup() {
7454 return lt__PROGRAM__LTX_preloaded_symbols;
7455 }
7456 #endif
7457
7458 #ifdef __cplusplus
7459 }
7460 #endif
7461 _LT_EOF
7462 # Now try linking the two files.
7463 mv conftest.$ac_objext conftstm.$ac_objext
7464 lt_globsym_save_LIBS=$LIBS
7465 lt_globsym_save_CFLAGS=$CFLAGS
7466 LIBS=conftstm.$ac_objext
7467 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7469 (eval $ac_link) 2>&5
7470 ac_status=$?
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7473 pipe_works=yes
7474 fi
7475 LIBS=$lt_globsym_save_LIBS
7476 CFLAGS=$lt_globsym_save_CFLAGS
7477 else
7478 echo "cannot find nm_test_func in $nlist" >&5
7479 fi
7480 else
7481 echo "cannot find nm_test_var in $nlist" >&5
7482 fi
7483 else
7484 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7485 fi
7486 else
7487 echo "$progname: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7489 fi
7490 rm -rf conftest* conftst*
7491
7492 # Do not use the global_symbol_pipe unless it works.
7493 if test yes = "$pipe_works"; then
7494 break
7495 else
7496 lt_cv_sys_global_symbol_pipe=
7497 fi
7498 done
7499 ;;
7500 esac
7501 fi
7502
7503 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7504 lt_cv_sys_global_symbol_to_cdecl=
7505 fi
7506 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7508 printf "%s\n" "failed" >&6; }
7509 else
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7511 printf "%s\n" "ok" >&6; }
7512 fi
7513
7514 # Response file support.
7515 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7516 nm_file_list_spec='@'
7517 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7518 nm_file_list_spec='@'
7519 fi
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7558 printf %s "checking for sysroot... " >&6; }
7559
7560 # Check whether --with-sysroot was given.
7561 if test ${with_sysroot+y}
7562 then :
7563 withval=$with_sysroot;
7564 else case e in #(
7565 e) with_sysroot=no ;;
7566 esac
7567 fi
7568
7569
7570 lt_sysroot=
7571 case $with_sysroot in #(
7572 yes)
7573 if test yes = "$GCC"; then
7574 # Trim trailing / since we'll always append absolute paths and we want
7575 # to avoid //, if only for less confusing output for the user.
7576 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7577 fi
7578 ;; #(
7579 /*)
7580 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7581 ;; #(
7582 no|'')
7583 ;; #(
7584 *)
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7586 printf "%s\n" "$with_sysroot" >&6; }
7587 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7588 ;;
7589 esac
7590
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7592 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7593
7594
7595
7596
7597
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7599 printf %s "checking for a working dd... " >&6; }
7600 if test ${ac_cv_path_lt_DD+y}
7601 then :
7602 printf %s "(cached) " >&6
7603 else case e in #(
7604 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7605 cat conftest.i conftest.i >conftest2.i
7606 : ${lt_DD:=$DD}
7607 if test -z "$lt_DD"; then
7608 ac_path_lt_DD_found=false
7609 # Loop through the user's path and test for each of PROGNAME-LIST
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613 IFS=$as_save_IFS
7614 case $as_dir in #(((
7615 '') as_dir=./ ;;
7616 */) ;;
7617 *) as_dir=$as_dir/ ;;
7618 esac
7619 for ac_prog in dd
7620 do
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7623 as_fn_executable_p "$ac_path_lt_DD" || continue
7624 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7625 cmp -s conftest.i conftest.out \
7626 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7627 fi
7628 $ac_path_lt_DD_found && break 3
7629 done
7630 done
7631 done
7632 IFS=$as_save_IFS
7633 if test -z "$ac_cv_path_lt_DD"; then
7634 :
7635 fi
7636 else
7637 ac_cv_path_lt_DD=$lt_DD
7638 fi
7639
7640 rm -f conftest.i conftest2.i conftest.out ;;
7641 esac
7642 fi
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7644 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7645
7646
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7648 printf %s "checking how to truncate binary pipes... " >&6; }
7649 if test ${lt_cv_truncate_bin+y}
7650 then :
7651 printf %s "(cached) " >&6
7652 else case e in #(
7653 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7654 cat conftest.i conftest.i >conftest2.i
7655 lt_cv_truncate_bin=
7656 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7657 cmp -s conftest.i conftest.out \
7658 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7659 fi
7660 rm -f conftest.i conftest2.i conftest.out
7661 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7662 esac
7663 fi
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7665 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7666
7667
7668
7669
7670
7671
7672
7673 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7674 func_cc_basename ()
7675 {
7676 for cc_temp in $*""; do
7677 case $cc_temp in
7678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7680 \-*) ;;
7681 *) break;;
7682 esac
7683 done
7684 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7685 }
7686
7687 # Check whether --enable-libtool-lock was given.
7688 if test ${enable_libtool_lock+y}
7689 then :
7690 enableval=$enable_libtool_lock;
7691 fi
7692
7693 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7694
7695 # Some flags need to be propagated to the compiler or linker for good
7696 # libtool support.
7697 case $host in
7698 ia64-*-hpux*)
7699 # Find out what ABI is being produced by ac_compile, and set mode
7700 # options accordingly.
7701 echo 'int i;' > conftest.$ac_ext
7702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7703 (eval $ac_compile) 2>&5
7704 ac_status=$?
7705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; }; then
7707 case `$FILECMD conftest.$ac_objext` in
7708 *ELF-32*)
7709 HPUX_IA64_MODE=32
7710 ;;
7711 *ELF-64*)
7712 HPUX_IA64_MODE=64
7713 ;;
7714 esac
7715 fi
7716 rm -rf conftest*
7717 ;;
7718 *-*-irix6*)
7719 # Find out what ABI is being produced by ac_compile, and set linker
7720 # options accordingly.
7721 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723 (eval $ac_compile) 2>&5
7724 ac_status=$?
7725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }; then
7727 if test yes = "$lt_cv_prog_gnu_ld"; then
7728 case `$FILECMD conftest.$ac_objext` in
7729 *32-bit*)
7730 LD="${LD-ld} -melf32bsmip"
7731 ;;
7732 *N32*)
7733 LD="${LD-ld} -melf32bmipn32"
7734 ;;
7735 *64-bit*)
7736 LD="${LD-ld} -melf64bmip"
7737 ;;
7738 esac
7739 else
7740 case `$FILECMD conftest.$ac_objext` in
7741 *32-bit*)
7742 LD="${LD-ld} -32"
7743 ;;
7744 *N32*)
7745 LD="${LD-ld} -n32"
7746 ;;
7747 *64-bit*)
7748 LD="${LD-ld} -64"
7749 ;;
7750 esac
7751 fi
7752 fi
7753 rm -rf conftest*
7754 ;;
7755
7756 mips64*-*linux*)
7757 # Find out what ABI is being produced by ac_compile, and set linker
7758 # options accordingly.
7759 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7761 (eval $ac_compile) 2>&5
7762 ac_status=$?
7763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764 test $ac_status = 0; }; then
7765 emul=elf
7766 case `$FILECMD conftest.$ac_objext` in
7767 *32-bit*)
7768 emul="${emul}32"
7769 ;;
7770 *64-bit*)
7771 emul="${emul}64"
7772 ;;
7773 esac
7774 case `$FILECMD conftest.$ac_objext` in
7775 *MSB*)
7776 emul="${emul}btsmip"
7777 ;;
7778 *LSB*)
7779 emul="${emul}ltsmip"
7780 ;;
7781 esac
7782 case `$FILECMD conftest.$ac_objext` in
7783 *N32*)
7784 emul="${emul}n32"
7785 ;;
7786 esac
7787 LD="${LD-ld} -m $emul"
7788 fi
7789 rm -rf conftest*
7790 ;;
7791
7792 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7793 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7794 # Find out what ABI is being produced by ac_compile, and set linker
7795 # options accordingly. Note that the listed cases only cover the
7796 # situations where additional linker options are needed (such as when
7797 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7798 # vice versa); the common cases where no linker options are needed do
7799 # not appear in the list.
7800 echo 'int i;' > conftest.$ac_ext
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802 (eval $ac_compile) 2>&5
7803 ac_status=$?
7804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 case `$FILECMD conftest.o` in
7807 *32-bit*)
7808 case $host in
7809 x86_64-*kfreebsd*-gnu)
7810 LD="${LD-ld} -m elf_i386_fbsd"
7811 ;;
7812 x86_64-*linux*|x86_64-gnu*)
7813 case `$FILECMD conftest.o` in
7814 *x86-64*)
7815 LD="${LD-ld} -m elf32_x86_64"
7816 ;;
7817 *)
7818 LD="${LD-ld} -m elf_i386"
7819 ;;
7820 esac
7821 ;;
7822 powerpc64le-*linux*)
7823 LD="${LD-ld} -m elf32lppclinux"
7824 ;;
7825 powerpc64-*linux*)
7826 LD="${LD-ld} -m elf32ppclinux"
7827 ;;
7828 s390x-*linux*)
7829 LD="${LD-ld} -m elf_s390"
7830 ;;
7831 sparc64-*linux*)
7832 LD="${LD-ld} -m elf32_sparc"
7833 ;;
7834 esac
7835 ;;
7836 *64-bit*)
7837 case $host in
7838 x86_64-*kfreebsd*-gnu)
7839 LD="${LD-ld} -m elf_x86_64_fbsd"
7840 ;;
7841 x86_64-*linux*|x86_64-gnu*)
7842 LD="${LD-ld} -m elf_x86_64"
7843 ;;
7844 powerpcle-*linux*)
7845 LD="${LD-ld} -m elf64lppc"
7846 ;;
7847 powerpc-*linux*)
7848 LD="${LD-ld} -m elf64ppc"
7849 ;;
7850 s390*-*linux*|s390*-*tpf*)
7851 LD="${LD-ld} -m elf64_s390"
7852 ;;
7853 sparc*-*linux*)
7854 LD="${LD-ld} -m elf64_sparc"
7855 ;;
7856 esac
7857 ;;
7858 esac
7859 fi
7860 rm -rf conftest*
7861 ;;
7862
7863 *-*-sco3.2v5*)
7864 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7865 SAVE_CFLAGS=$CFLAGS
7866 CFLAGS="$CFLAGS -belf"
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7868 printf %s "checking whether the C compiler needs -belf... " >&6; }
7869 if test ${lt_cv_cc_needs_belf+y}
7870 then :
7871 printf %s "(cached) " >&6
7872 else case e in #(
7873 e) ac_ext=c
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881
7882 int
7883 main (void)
7884 {
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_link "$LINENO"
7891 then :
7892 lt_cv_cc_needs_belf=yes
7893 else case e in #(
7894 e) lt_cv_cc_needs_belf=no ;;
7895 esac
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7898 conftest$ac_exeext conftest.$ac_ext
7899 ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904 ;;
7905 esac
7906 fi
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7908 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7909 if test yes != "$lt_cv_cc_needs_belf"; then
7910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7911 CFLAGS=$SAVE_CFLAGS
7912 fi
7913 ;;
7914 *-*solaris*)
7915 # Find out what ABI is being produced by ac_compile, and set linker
7916 # options accordingly.
7917 echo 'int i;' > conftest.$ac_ext
7918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7919 (eval $ac_compile) 2>&5
7920 ac_status=$?
7921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922 test $ac_status = 0; }; then
7923 case `$FILECMD conftest.o` in
7924 *64-bit*)
7925 case $lt_cv_prog_gnu_ld in
7926 yes*)
7927 case $host in
7928 i?86-*-solaris*|x86_64-*-solaris*)
7929 LD="${LD-ld} -m elf_x86_64"
7930 ;;
7931 sparc*-*-solaris*)
7932 LD="${LD-ld} -m elf64_sparc"
7933 ;;
7934 esac
7935 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7936 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7937 LD=${LD-ld}_sol2
7938 fi
7939 ;;
7940 *)
7941 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7942 LD="${LD-ld} -64"
7943 fi
7944 ;;
7945 esac
7946 ;;
7947 esac
7948 fi
7949 rm -rf conftest*
7950 ;;
7951 esac
7952
7953 need_locks=$enable_libtool_lock
7954
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}mt; ac_word=$2
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 printf %s "checking for $ac_word... " >&6; }
7960 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else case e in #(
7964 e) if test -n "$MANIFEST_TOOL"; then
7965 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 case $as_dir in #(((
7972 '') as_dir=./ ;;
7973 */) ;;
7974 *) as_dir=$as_dir/ ;;
7975 esac
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi ;;
7987 esac
7988 fi
7989 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7990 if test -n "$MANIFEST_TOOL"; then
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7992 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7993 else
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 printf "%s\n" "no" >&6; }
7996 fi
7997
7998
7999 fi
8000 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8001 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8002 # Extract the first word of "mt", so it can be a program name with args.
8003 set dummy mt; ac_word=$2
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 printf %s "checking for $ac_word... " >&6; }
8006 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8007 then :
8008 printf %s "(cached) " >&6
8009 else case e in #(
8010 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8011 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 case $as_dir in #(((
8018 '') as_dir=./ ;;
8019 */) ;;
8020 *) as_dir=$as_dir/ ;;
8021 esac
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi ;;
8033 esac
8034 fi
8035 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8036 if test -n "$ac_ct_MANIFEST_TOOL"; then
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8038 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8039 else
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 printf "%s\n" "no" >&6; }
8042 fi
8043
8044 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8045 MANIFEST_TOOL=":"
8046 else
8047 case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8054 fi
8055 else
8056 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8057 fi
8058
8059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8061 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8062 if test ${lt_cv_path_manifest_tool+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else case e in #(
8066 e) lt_cv_path_manifest_tool=no
8067 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8068 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8069 cat conftest.err >&5
8070 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8071 lt_cv_path_manifest_tool=yes
8072 fi
8073 rm -f conftest* ;;
8074 esac
8075 fi
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8077 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8078 if test yes != "$lt_cv_path_manifest_tool"; then
8079 MANIFEST_TOOL=:
8080 fi
8081
8082
8083
8084
8085
8086
8087 case $host_os in
8088 rhapsody* | darwin*)
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 printf %s "checking for $ac_word... " >&6; }
8094 if test ${ac_cv_prog_DSYMUTIL+y}
8095 then :
8096 printf %s "(cached) " >&6
8097 else case e in #(
8098 e) if test -n "$DSYMUTIL"; then
8099 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104 IFS=$as_save_IFS
8105 case $as_dir in #(((
8106 '') as_dir=./ ;;
8107 */) ;;
8108 *) as_dir=$as_dir/ ;;
8109 esac
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8112 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8114 break 2
8115 fi
8116 done
8117 done
8118 IFS=$as_save_IFS
8119
8120 fi ;;
8121 esac
8122 fi
8123 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8124 if test -n "$DSYMUTIL"; then
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8126 printf "%s\n" "$DSYMUTIL" >&6; }
8127 else
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 printf "%s\n" "no" >&6; }
8130 fi
8131
8132
8133 fi
8134 if test -z "$ac_cv_prog_DSYMUTIL"; then
8135 ac_ct_DSYMUTIL=$DSYMUTIL
8136 # Extract the first word of "dsymutil", so it can be a program name with args.
8137 set dummy dsymutil; ac_word=$2
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 printf %s "checking for $ac_word... " >&6; }
8140 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8141 then :
8142 printf %s "(cached) " >&6
8143 else case e in #(
8144 e) if test -n "$ac_ct_DSYMUTIL"; then
8145 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 case $as_dir in #(((
8152 '') as_dir=./ ;;
8153 */) ;;
8154 *) as_dir=$as_dir/ ;;
8155 esac
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166 fi ;;
8167 esac
8168 fi
8169 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8170 if test -n "$ac_ct_DSYMUTIL"; then
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8172 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8173 else
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 printf "%s\n" "no" >&6; }
8176 fi
8177
8178 if test "x$ac_ct_DSYMUTIL" = x; then
8179 DSYMUTIL=":"
8180 else
8181 case $cross_compiling:$ac_tool_warned in
8182 yes:)
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8185 ac_tool_warned=yes ;;
8186 esac
8187 DSYMUTIL=$ac_ct_DSYMUTIL
8188 fi
8189 else
8190 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8191 fi
8192
8193 if test -n "$ac_tool_prefix"; then
8194 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8195 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 printf %s "checking for $ac_word... " >&6; }
8198 if test ${ac_cv_prog_NMEDIT+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else case e in #(
8202 e) if test -n "$NMEDIT"; then
8203 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 case $as_dir in #(((
8210 '') as_dir=./ ;;
8211 */) ;;
8212 *) as_dir=$as_dir/ ;;
8213 esac
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi ;;
8225 esac
8226 fi
8227 NMEDIT=$ac_cv_prog_NMEDIT
8228 if test -n "$NMEDIT"; then
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8230 printf "%s\n" "$NMEDIT" >&6; }
8231 else
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 printf "%s\n" "no" >&6; }
8234 fi
8235
8236
8237 fi
8238 if test -z "$ac_cv_prog_NMEDIT"; then
8239 ac_ct_NMEDIT=$NMEDIT
8240 # Extract the first word of "nmedit", so it can be a program name with args.
8241 set dummy nmedit; ac_word=$2
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 printf %s "checking for $ac_word... " >&6; }
8244 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8245 then :
8246 printf %s "(cached) " >&6
8247 else case e in #(
8248 e) if test -n "$ac_ct_NMEDIT"; then
8249 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254 IFS=$as_save_IFS
8255 case $as_dir in #(((
8256 '') as_dir=./ ;;
8257 */) ;;
8258 *) as_dir=$as_dir/ ;;
8259 esac
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266 done
8267 done
8268 IFS=$as_save_IFS
8269
8270 fi ;;
8271 esac
8272 fi
8273 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8274 if test -n "$ac_ct_NMEDIT"; then
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8276 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8277 else
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 printf "%s\n" "no" >&6; }
8280 fi
8281
8282 if test "x$ac_ct_NMEDIT" = x; then
8283 NMEDIT=":"
8284 else
8285 case $cross_compiling:$ac_tool_warned in
8286 yes:)
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289 ac_tool_warned=yes ;;
8290 esac
8291 NMEDIT=$ac_ct_NMEDIT
8292 fi
8293 else
8294 NMEDIT="$ac_cv_prog_NMEDIT"
8295 fi
8296
8297 if test -n "$ac_tool_prefix"; then
8298 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8299 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_LIPO+y}
8303 then :
8304 printf %s "(cached) " >&6
8305 else case e in #(
8306 e) if test -n "$LIPO"; then
8307 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 case $as_dir in #(((
8314 '') as_dir=./ ;;
8315 */) ;;
8316 *) as_dir=$as_dir/ ;;
8317 esac
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi ;;
8329 esac
8330 fi
8331 LIPO=$ac_cv_prog_LIPO
8332 if test -n "$LIPO"; then
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8334 printf "%s\n" "$LIPO" >&6; }
8335 else
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 printf "%s\n" "no" >&6; }
8338 fi
8339
8340
8341 fi
8342 if test -z "$ac_cv_prog_LIPO"; then
8343 ac_ct_LIPO=$LIPO
8344 # Extract the first word of "lipo", so it can be a program name with args.
8345 set dummy lipo; ac_word=$2
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 printf %s "checking for $ac_word... " >&6; }
8348 if test ${ac_cv_prog_ac_ct_LIPO+y}
8349 then :
8350 printf %s "(cached) " >&6
8351 else case e in #(
8352 e) if test -n "$ac_ct_LIPO"; then
8353 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 case $as_dir in #(((
8360 '') as_dir=./ ;;
8361 */) ;;
8362 *) as_dir=$as_dir/ ;;
8363 esac
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_ac_ct_LIPO="lipo"
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 fi ;;
8375 esac
8376 fi
8377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8378 if test -n "$ac_ct_LIPO"; then
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8380 printf "%s\n" "$ac_ct_LIPO" >&6; }
8381 else
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 printf "%s\n" "no" >&6; }
8384 fi
8385
8386 if test "x$ac_ct_LIPO" = x; then
8387 LIPO=":"
8388 else
8389 case $cross_compiling:$ac_tool_warned in
8390 yes:)
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393 ac_tool_warned=yes ;;
8394 esac
8395 LIPO=$ac_ct_LIPO
8396 fi
8397 else
8398 LIPO="$ac_cv_prog_LIPO"
8399 fi
8400
8401 if test -n "$ac_tool_prefix"; then
8402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8403 set dummy ${ac_tool_prefix}otool; ac_word=$2
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 printf %s "checking for $ac_word... " >&6; }
8406 if test ${ac_cv_prog_OTOOL+y}
8407 then :
8408 printf %s "(cached) " >&6
8409 else case e in #(
8410 e) if test -n "$OTOOL"; then
8411 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416 IFS=$as_save_IFS
8417 case $as_dir in #(((
8418 '') as_dir=./ ;;
8419 */) ;;
8420 *) as_dir=$as_dir/ ;;
8421 esac
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8426 break 2
8427 fi
8428 done
8429 done
8430 IFS=$as_save_IFS
8431
8432 fi ;;
8433 esac
8434 fi
8435 OTOOL=$ac_cv_prog_OTOOL
8436 if test -n "$OTOOL"; then
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8438 printf "%s\n" "$OTOOL" >&6; }
8439 else
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 printf "%s\n" "no" >&6; }
8442 fi
8443
8444
8445 fi
8446 if test -z "$ac_cv_prog_OTOOL"; then
8447 ac_ct_OTOOL=$OTOOL
8448 # Extract the first word of "otool", so it can be a program name with args.
8449 set dummy otool; ac_word=$2
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 printf %s "checking for $ac_word... " >&6; }
8452 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8453 then :
8454 printf %s "(cached) " >&6
8455 else case e in #(
8456 e) if test -n "$ac_ct_OTOOL"; then
8457 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462 IFS=$as_save_IFS
8463 case $as_dir in #(((
8464 '') as_dir=./ ;;
8465 */) ;;
8466 *) as_dir=$as_dir/ ;;
8467 esac
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8470 ac_cv_prog_ac_ct_OTOOL="otool"
8471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474 done
8475 done
8476 IFS=$as_save_IFS
8477
8478 fi ;;
8479 esac
8480 fi
8481 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8482 if test -n "$ac_ct_OTOOL"; then
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8484 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8485 else
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 printf "%s\n" "no" >&6; }
8488 fi
8489
8490 if test "x$ac_ct_OTOOL" = x; then
8491 OTOOL=":"
8492 else
8493 case $cross_compiling:$ac_tool_warned in
8494 yes:)
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned=yes ;;
8498 esac
8499 OTOOL=$ac_ct_OTOOL
8500 fi
8501 else
8502 OTOOL="$ac_cv_prog_OTOOL"
8503 fi
8504
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 printf %s "checking for $ac_word... " >&6; }
8510 if test ${ac_cv_prog_OTOOL64+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else case e in #(
8514 e) if test -n "$OTOOL64"; then
8515 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 case $as_dir in #(((
8522 '') as_dir=./ ;;
8523 */) ;;
8524 *) as_dir=$as_dir/ ;;
8525 esac
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532 done
8533 done
8534 IFS=$as_save_IFS
8535
8536 fi ;;
8537 esac
8538 fi
8539 OTOOL64=$ac_cv_prog_OTOOL64
8540 if test -n "$OTOOL64"; then
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8542 printf "%s\n" "$OTOOL64" >&6; }
8543 else
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 printf "%s\n" "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_OTOOL64"; then
8551 ac_ct_OTOOL64=$OTOOL64
8552 # Extract the first word of "otool64", so it can be a program name with args.
8553 set dummy otool64; ac_word=$2
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 printf %s "checking for $ac_word... " >&6; }
8556 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8557 then :
8558 printf %s "(cached) " >&6
8559 else case e in #(
8560 e) if test -n "$ac_ct_OTOOL64"; then
8561 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 case $as_dir in #(((
8568 '') as_dir=./ ;;
8569 */) ;;
8570 *) as_dir=$as_dir/ ;;
8571 esac
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_ac_ct_OTOOL64="otool64"
8575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi ;;
8583 esac
8584 fi
8585 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8586 if test -n "$ac_ct_OTOOL64"; then
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8588 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8589 else
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 printf "%s\n" "no" >&6; }
8592 fi
8593
8594 if test "x$ac_ct_OTOOL64" = x; then
8595 OTOOL64=":"
8596 else
8597 case $cross_compiling:$ac_tool_warned in
8598 yes:)
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8601 ac_tool_warned=yes ;;
8602 esac
8603 OTOOL64=$ac_ct_OTOOL64
8604 fi
8605 else
8606 OTOOL64="$ac_cv_prog_OTOOL64"
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8636 printf %s "checking for -single_module linker flag... " >&6; }
8637 if test ${lt_cv_apple_cc_single_mod+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else case e in #(
8641 e) lt_cv_apple_cc_single_mod=no
8642 if test -z "$LT_MULTI_MODULE"; then
8643 # By default we will add the -single_module flag. You can override
8644 # by either setting the environment variable LT_MULTI_MODULE
8645 # non-empty at configure time, or by adding -multi_module to the
8646 # link flags.
8647 rm -rf libconftest.dylib*
8648 echo "int foo(void){return 1;}" > conftest.c
8649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8650 -dynamiclib -Wl,-single_module conftest.c" >&5
8651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8653 _lt_result=$?
8654 # If there is a non-empty error log, and "single_module"
8655 # appears in it, assume the flag caused a linker warning
8656 if test -s conftest.err && $GREP single_module conftest.err; then
8657 cat conftest.err >&5
8658 # Otherwise, if the output was created with a 0 exit code from
8659 # the compiler, it worked.
8660 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8661 lt_cv_apple_cc_single_mod=yes
8662 else
8663 cat conftest.err >&5
8664 fi
8665 rm -rf libconftest.dylib*
8666 rm -f conftest.*
8667 fi ;;
8668 esac
8669 fi
8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8671 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8672
8673 # Feature test to disable chained fixups since it is not
8674 # compatible with '-undefined dynamic_lookup'
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8676 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8677 if test ${lt_cv_support_no_fixup_chains+y}
8678 then :
8679 printf %s "(cached) " >&6
8680 else case e in #(
8681 e) save_LDFLAGS=$LDFLAGS
8682 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685
8686 int
8687 main (void)
8688 {
8689
8690 ;
8691 return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"
8695 then :
8696 lt_cv_support_no_fixup_chains=yes
8697 else case e in #(
8698 e) lt_cv_support_no_fixup_chains=no
8699 ;;
8700 esac
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LDFLAGS=$save_LDFLAGS
8705
8706 ;;
8707 esac
8708 fi
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8710 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8711
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8713 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8714 if test ${lt_cv_ld_exported_symbols_list+y}
8715 then :
8716 printf %s "(cached) " >&6
8717 else case e in #(
8718 e) lt_cv_ld_exported_symbols_list=no
8719 save_LDFLAGS=$LDFLAGS
8720 echo "_main" > conftest.sym
8721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724
8725 int
8726 main (void)
8727 {
8728
8729 ;
8730 return 0;
8731 }
8732 _ACEOF
8733 if ac_fn_c_try_link "$LINENO"
8734 then :
8735 lt_cv_ld_exported_symbols_list=yes
8736 else case e in #(
8737 e) lt_cv_ld_exported_symbols_list=no ;;
8738 esac
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LDFLAGS=$save_LDFLAGS
8743 ;;
8744 esac
8745 fi
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8747 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8748
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8750 printf %s "checking for -force_load linker flag... " >&6; }
8751 if test ${lt_cv_ld_force_load+y}
8752 then :
8753 printf %s "(cached) " >&6
8754 else case e in #(
8755 e) lt_cv_ld_force_load=no
8756 cat > conftest.c << _LT_EOF
8757 int forced_loaded() { return 2;}
8758 _LT_EOF
8759 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8760 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8761 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8762 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8763 echo "$RANLIB libconftest.a" >&5
8764 $RANLIB libconftest.a 2>&5
8765 cat > conftest.c << _LT_EOF
8766 int main(void) { return 0;}
8767 _LT_EOF
8768 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8769 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8770 _lt_result=$?
8771 if test -s conftest.err && $GREP force_load conftest.err; then
8772 cat conftest.err >&5
8773 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8774 lt_cv_ld_force_load=yes
8775 else
8776 cat conftest.err >&5
8777 fi
8778 rm -f conftest.err libconftest.a conftest conftest.c
8779 rm -rf conftest.dSYM
8780 ;;
8781 esac
8782 fi
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8784 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8785 case $host_os in
8786 rhapsody* | darwin1.[012])
8787 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8788 darwin1.*)
8789 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8790 darwin*)
8791 case $MACOSX_DEPLOYMENT_TARGET,$host in
8792 10.[012],*|,*powerpc*-darwin[5-8]*)
8793 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8794 *)
8795 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8796 if test yes = "$lt_cv_support_no_fixup_chains"; then
8797 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8798 fi
8799 ;;
8800 esac
8801 ;;
8802 esac
8803 if test yes = "$lt_cv_apple_cc_single_mod"; then
8804 _lt_dar_single_mod='$single_module'
8805 fi
8806 _lt_dar_needs_single_mod=no
8807 case $host_os in
8808 rhapsody* | darwin1.*)
8809 _lt_dar_needs_single_mod=yes ;;
8810 darwin*)
8811 # When targeting Mac OS X 10.4 (darwin 8) or later,
8812 # -single_module is the default and -multi_module is unsupported.
8813 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8814 # target any OS version that needs -single_module.
8815 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8816 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8817 _lt_dar_needs_single_mod=yes ;;
8818 esac
8819 ;;
8820 esac
8821 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8822 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8823 else
8824 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8825 fi
8826 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8827 _lt_dsymutil='~$DSYMUTIL $lib || :'
8828 else
8829 _lt_dsymutil=
8830 fi
8831 ;;
8832 esac
8833
8834 # func_munge_path_list VARIABLE PATH
8835 # -----------------------------------
8836 # VARIABLE is name of variable containing _space_ separated list of
8837 # directories to be munged by the contents of PATH, which is string
8838 # having a format:
8839 # "DIR[:DIR]:"
8840 # string "DIR[ DIR]" will be prepended to VARIABLE
8841 # ":DIR[:DIR]"
8842 # string "DIR[ DIR]" will be appended to VARIABLE
8843 # "DIRP[:DIRP]::[DIRA:]DIRA"
8844 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8845 # "DIRA[ DIRA]" will be appended to VARIABLE
8846 # "DIR[:DIR]"
8847 # VARIABLE will be replaced by "DIR[ DIR]"
8848 func_munge_path_list ()
8849 {
8850 case x$2 in
8851 x)
8852 ;;
8853 *:)
8854 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8855 ;;
8856 x:*)
8857 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8858 ;;
8859 *::*)
8860 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8861 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8862 ;;
8863 *)
8864 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8865 ;;
8866 esac
8867 }
8868
8869 ac_header= ac_cache=
8870 for ac_item in $ac_header_c_list
8871 do
8872 if test $ac_cache; then
8873 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8874 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8875 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8876 fi
8877 ac_header= ac_cache=
8878 elif test $ac_header; then
8879 ac_cache=$ac_item
8880 else
8881 ac_header=$ac_item
8882 fi
8883 done
8884
8885
8886
8887
8888
8889
8890
8891
8892 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8893 then :
8894
8895 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8896
8897 fi
8898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8899 "
8900 if test "x$ac_cv_header_dlfcn_h" = xyes
8901 then :
8902 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8903
8904 fi
8905
8906
8907
8908
8909
8910 # Set options
8911 enable_dlopen=yes
8912
8913
8914
8915
8916 enable_win32_dll=no
8917
8918
8919 # Check whether --enable-shared was given.
8920 if test ${enable_shared+y}
8921 then :
8922 enableval=$enable_shared; p=${PACKAGE-default}
8923 case $enableval in
8924 yes) enable_shared=yes ;;
8925 no) enable_shared=no ;;
8926 *)
8927 enable_shared=no
8928 # Look at the argument we got. We use all the common list separators.
8929 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8930 for pkg in $enableval; do
8931 IFS=$lt_save_ifs
8932 if test "X$pkg" = "X$p"; then
8933 enable_shared=yes
8934 fi
8935 done
8936 IFS=$lt_save_ifs
8937 ;;
8938 esac
8939 else case e in #(
8940 e) enable_shared=yes ;;
8941 esac
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952 # Check whether --enable-static was given.
8953 if test ${enable_static+y}
8954 then :
8955 enableval=$enable_static; p=${PACKAGE-default}
8956 case $enableval in
8957 yes) enable_static=yes ;;
8958 no) enable_static=no ;;
8959 *)
8960 enable_static=no
8961 # Look at the argument we got. We use all the common list separators.
8962 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8963 for pkg in $enableval; do
8964 IFS=$lt_save_ifs
8965 if test "X$pkg" = "X$p"; then
8966 enable_static=yes
8967 fi
8968 done
8969 IFS=$lt_save_ifs
8970 ;;
8971 esac
8972 else case e in #(
8973 e) enable_static=yes ;;
8974 esac
8975 fi
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985 # Check whether --enable-pic was given.
8986 if test ${enable_pic+y}
8987 then :
8988 enableval=$enable_pic; lt_p=${PACKAGE-default}
8989 case $enableval in
8990 yes|no) pic_mode=$enableval ;;
8991 *)
8992 pic_mode=default
8993 # Look at the argument we got. We use all the common list separators.
8994 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8995 for lt_pkg in $enableval; do
8996 IFS=$lt_save_ifs
8997 if test "X$lt_pkg" = "X$lt_p"; then
8998 pic_mode=yes
8999 fi
9000 done
9001 IFS=$lt_save_ifs
9002 ;;
9003 esac
9004 else case e in #(
9005 e) # Check whether --with-pic was given.
9006 if test ${with_pic+y}
9007 then :
9008 withval=$with_pic; lt_p=${PACKAGE-default}
9009 case $withval in
9010 yes|no) pic_mode=$withval ;;
9011 *)
9012 pic_mode=default
9013 # Look at the argument we got. We use all the common list separators.
9014 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9015 for lt_pkg in $withval; do
9016 IFS=$lt_save_ifs
9017 if test "X$lt_pkg" = "X$lt_p"; then
9018 pic_mode=yes
9019 fi
9020 done
9021 IFS=$lt_save_ifs
9022 ;;
9023 esac
9024 else case e in #(
9025 e) pic_mode=default ;;
9026 esac
9027 fi
9028
9029 ;;
9030 esac
9031 fi
9032
9033
9034
9035
9036
9037
9038
9039
9040 # Check whether --enable-fast-install was given.
9041 if test ${enable_fast_install+y}
9042 then :
9043 enableval=$enable_fast_install; p=${PACKAGE-default}
9044 case $enableval in
9045 yes) enable_fast_install=yes ;;
9046 no) enable_fast_install=no ;;
9047 *)
9048 enable_fast_install=no
9049 # Look at the argument we got. We use all the common list separators.
9050 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9051 for pkg in $enableval; do
9052 IFS=$lt_save_ifs
9053 if test "X$pkg" = "X$p"; then
9054 enable_fast_install=yes
9055 fi
9056 done
9057 IFS=$lt_save_ifs
9058 ;;
9059 esac
9060 else case e in #(
9061 e) enable_fast_install=yes ;;
9062 esac
9063 fi
9064
9065
9066
9067
9068
9069
9070
9071
9072 shared_archive_member_spec=
9073 case $host,$enable_shared in
9074 power*-*-aix[5-9]*,yes)
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9076 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9077 # Check whether --enable-aix-soname was given.
9078 if test ${enable_aix_soname+y}
9079 then :
9080 enableval=$enable_aix_soname; case $enableval in
9081 aix|svr4|both)
9082 ;;
9083 *)
9084 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9085 ;;
9086 esac
9087 lt_cv_with_aix_soname=$enable_aix_soname
9088 else case e in #(
9089 e) # Check whether --with-aix-soname was given.
9090 if test ${with_aix_soname+y}
9091 then :
9092 withval=$with_aix_soname; case $withval in
9093 aix|svr4|both)
9094 ;;
9095 *)
9096 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9097 ;;
9098 esac
9099 lt_cv_with_aix_soname=$with_aix_soname
9100 else case e in #(
9101 e) if test ${lt_cv_with_aix_soname+y}
9102 then :
9103 printf %s "(cached) " >&6
9104 else case e in #(
9105 e) lt_cv_with_aix_soname=aix ;;
9106 esac
9107 fi
9108 ;;
9109 esac
9110 fi
9111
9112 enable_aix_soname=$lt_cv_with_aix_soname ;;
9113 esac
9114 fi
9115
9116 with_aix_soname=$enable_aix_soname
9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9118 printf "%s\n" "$with_aix_soname" >&6; }
9119 if test aix != "$with_aix_soname"; then
9120 # For the AIX way of multilib, we name the shared archive member
9121 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9122 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9123 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9124 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9125 if test 64 = "${OBJECT_MODE-32}"; then
9126 shared_archive_member_spec=shr_64
9127 else
9128 shared_archive_member_spec=shr
9129 fi
9130 fi
9131 ;;
9132 *)
9133 with_aix_soname=aix
9134 ;;
9135 esac
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146 # This can be used to rebuild libtool when needed
9147 LIBTOOL_DEPS=$ltmain
9148
9149 # Always use our own libtool.
9150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 test -z "$LN_S" && LN_S="ln -s"
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196 if test -n "${ZSH_VERSION+set}"; then
9197 setopt NO_GLOB_SUBST
9198 fi
9199
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9201 printf %s "checking for objdir... " >&6; }
9202 if test ${lt_cv_objdir+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else case e in #(
9206 e) rm -f .libs 2>/dev/null
9207 mkdir .libs 2>/dev/null
9208 if test -d .libs; then
9209 lt_cv_objdir=.libs
9210 else
9211 # MS-DOS does not allow filenames that begin with a dot.
9212 lt_cv_objdir=_libs
9213 fi
9214 rmdir .libs 2>/dev/null ;;
9215 esac
9216 fi
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9218 printf "%s\n" "$lt_cv_objdir" >&6; }
9219 objdir=$lt_cv_objdir
9220
9221
9222
9223
9224
9225 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9226
9227
9228
9229
9230 case $host_os in
9231 aix3*)
9232 # AIX sometimes has problems with the GCC collect2 program. For some
9233 # reason, if we set the COLLECT_NAMES environment variable, the problems
9234 # vanish in a puff of smoke.
9235 if test set != "${COLLECT_NAMES+set}"; then
9236 COLLECT_NAMES=
9237 export COLLECT_NAMES
9238 fi
9239 ;;
9240 esac
9241
9242 # Global variables:
9243 ofile=libtool
9244 can_build_shared=yes
9245
9246 # All known linkers require a '.a' archive for static linking (except MSVC and
9247 # ICC, which need '.lib').
9248 libext=a
9249
9250 with_gnu_ld=$lt_cv_prog_gnu_ld
9251
9252 old_CC=$CC
9253 old_CFLAGS=$CFLAGS
9254
9255 # Set sane defaults for various variables
9256 test -z "$CC" && CC=cc
9257 test -z "$LTCC" && LTCC=$CC
9258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9259 test -z "$LD" && LD=ld
9260 test -z "$ac_objext" && ac_objext=o
9261
9262 func_cc_basename $compiler
9263 cc_basename=$func_cc_basename_result
9264
9265
9266 # Only perform the check for file, if the check method requires it
9267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9268 case $deplibs_check_method in
9269 file_magic*)
9270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9272 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9273 if test ${lt_cv_path_MAGIC_CMD+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else case e in #(
9277 e) case $MAGIC_CMD in
9278 [\\/*] | ?:[\\/]*)
9279 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9280 ;;
9281 *)
9282 lt_save_MAGIC_CMD=$MAGIC_CMD
9283 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9285 for ac_dir in $ac_dummy; do
9286 IFS=$lt_save_ifs
9287 test -z "$ac_dir" && ac_dir=.
9288 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9289 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9290 if test -n "$file_magic_test_file"; then
9291 case $deplibs_check_method in
9292 "file_magic "*)
9293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9294 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9296 $EGREP "$file_magic_regex" > /dev/null; then
9297 :
9298 else
9299 cat <<_LT_EOF 1>&2
9300
9301 *** Warning: the command libtool uses to detect shared libraries,
9302 *** $file_magic_cmd, produces output that libtool cannot recognize.
9303 *** The result is that libtool may fail to recognize shared libraries
9304 *** as such. This will affect the creation of libtool libraries that
9305 *** depend on shared libraries, but programs linked with such libtool
9306 *** libraries will work regardless of this problem. Nevertheless, you
9307 *** may want to report the problem to your system manager and/or to
9308 *** [email protected]
9309
9310 _LT_EOF
9311 fi ;;
9312 esac
9313 fi
9314 break
9315 fi
9316 done
9317 IFS=$lt_save_ifs
9318 MAGIC_CMD=$lt_save_MAGIC_CMD
9319 ;;
9320 esac ;;
9321 esac
9322 fi
9323
9324 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9325 if test -n "$MAGIC_CMD"; then
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9327 printf "%s\n" "$MAGIC_CMD" >&6; }
9328 else
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 printf "%s\n" "no" >&6; }
9331 fi
9332
9333
9334
9335
9336
9337 if test -z "$lt_cv_path_MAGIC_CMD"; then
9338 if test -n "$ac_tool_prefix"; then
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9340 printf %s "checking for file... " >&6; }
9341 if test ${lt_cv_path_MAGIC_CMD+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else case e in #(
9345 e) case $MAGIC_CMD in
9346 [\\/*] | ?:[\\/]*)
9347 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9348 ;;
9349 *)
9350 lt_save_MAGIC_CMD=$MAGIC_CMD
9351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9353 for ac_dir in $ac_dummy; do
9354 IFS=$lt_save_ifs
9355 test -z "$ac_dir" && ac_dir=.
9356 if test -f "$ac_dir/file"; then
9357 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9358 if test -n "$file_magic_test_file"; then
9359 case $deplibs_check_method in
9360 "file_magic "*)
9361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9364 $EGREP "$file_magic_regex" > /dev/null; then
9365 :
9366 else
9367 cat <<_LT_EOF 1>&2
9368
9369 *** Warning: the command libtool uses to detect shared libraries,
9370 *** $file_magic_cmd, produces output that libtool cannot recognize.
9371 *** The result is that libtool may fail to recognize shared libraries
9372 *** as such. This will affect the creation of libtool libraries that
9373 *** depend on shared libraries, but programs linked with such libtool
9374 *** libraries will work regardless of this problem. Nevertheless, you
9375 *** may want to report the problem to your system manager and/or to
9376 *** [email protected]
9377
9378 _LT_EOF
9379 fi ;;
9380 esac
9381 fi
9382 break
9383 fi
9384 done
9385 IFS=$lt_save_ifs
9386 MAGIC_CMD=$lt_save_MAGIC_CMD
9387 ;;
9388 esac ;;
9389 esac
9390 fi
9391
9392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9393 if test -n "$MAGIC_CMD"; then
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9395 printf "%s\n" "$MAGIC_CMD" >&6; }
9396 else
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 printf "%s\n" "no" >&6; }
9399 fi
9400
9401
9402 else
9403 MAGIC_CMD=:
9404 fi
9405 fi
9406
9407 fi
9408 ;;
9409 esac
9410
9411 # Use C for the default configuration in the libtool script
9412
9413 lt_save_CC=$CC
9414 ac_ext=c
9415 ac_cpp='$CPP $CPPFLAGS'
9416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9419
9420
9421 # Source file extension for C test sources.
9422 ac_ext=c
9423
9424 # Object file extension for compiled C test sources.
9425 objext=o
9426 objext=$objext
9427
9428 # Code to be used in simple compile tests
9429 lt_simple_compile_test_code="int some_variable = 0;"
9430
9431 # Code to be used in simple link tests
9432 lt_simple_link_test_code='int main(void){return(0);}'
9433
9434
9435
9436
9437
9438
9439
9440 # If no C compiler was specified, use CC.
9441 LTCC=${LTCC-"$CC"}
9442
9443 # If no C compiler flags were specified, use CFLAGS.
9444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9445
9446 # Allow CC to be a program name with arguments.
9447 compiler=$CC
9448
9449 # Save the default compiler, since it gets overwritten when the other
9450 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9451 compiler_DEFAULT=$CC
9452
9453 # save warnings/boilerplate of simple test code
9454 ac_outfile=conftest.$ac_objext
9455 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9457 _lt_compiler_boilerplate=`cat conftest.err`
9458 $RM conftest*
9459
9460 ac_outfile=conftest.$ac_objext
9461 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9463 _lt_linker_boilerplate=`cat conftest.err`
9464 $RM -r conftest*
9465
9466
9467 ## CAVEAT EMPTOR:
9468 ## There is no encapsulation within the following macros, do not change
9469 ## the running order or otherwise move them around unless you know exactly
9470 ## what you are doing...
9471 if test -n "$compiler"; then
9472
9473 lt_prog_compiler_no_builtin_flag=
9474
9475 if test yes = "$GCC"; then
9476 case $cc_basename in
9477 nvcc*)
9478 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9479 *)
9480 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9481 esac
9482
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9484 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9485 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else case e in #(
9489 e) lt_cv_prog_compiler_rtti_exceptions=no
9490 ac_outfile=conftest.$ac_objext
9491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9492 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9493 # Insert the option either (1) after the last *FLAGS variable, or
9494 # (2) before a word containing "conftest.", or (3) at the end.
9495 # Note that $ac_compile itself does not contain backslashes and begins
9496 # with a dollar sign (not a hyphen), so the echo should work correctly.
9497 # The option is referenced via a variable to avoid confusing sed.
9498 lt_compile=`echo "$ac_compile" | $SED \
9499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9501 -e 's:$: $lt_compiler_flag:'`
9502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9503 (eval "$lt_compile" 2>conftest.err)
9504 ac_status=$?
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 if (exit $ac_status) && test -s "$ac_outfile"; then
9508 # The compiler can only warn and ignore the option if not recognized
9509 # So say no if there are warnings other than the usual output.
9510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9513 lt_cv_prog_compiler_rtti_exceptions=yes
9514 fi
9515 fi
9516 $RM conftest*
9517 ;;
9518 esac
9519 fi
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9521 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9522
9523 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9524 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9525 else
9526 :
9527 fi
9528
9529 fi
9530
9531
9532
9533
9534
9535
9536 lt_prog_compiler_wl=
9537 lt_prog_compiler_pic=
9538 lt_prog_compiler_static=
9539
9540
9541 if test yes = "$GCC"; then
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_static='-static'
9544
9545 case $host_os in
9546 aix*)
9547 # All AIX code is PIC.
9548 if test ia64 = "$host_cpu"; then
9549 # AIX 5 now supports IA64 processor
9550 lt_prog_compiler_static='-Bstatic'
9551 fi
9552 lt_prog_compiler_pic='-fPIC'
9553 ;;
9554
9555 amigaos*)
9556 case $host_cpu in
9557 powerpc)
9558 # see comment about AmigaOS4 .so support
9559 lt_prog_compiler_pic='-fPIC'
9560 ;;
9561 m68k)
9562 # FIXME: we need at least 68020 code to build shared libraries, but
9563 # adding the '-m68020' flag to GCC prevents building anything better,
9564 # like '-m68040'.
9565 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9566 ;;
9567 esac
9568 ;;
9569
9570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9571 # PIC is the default for these OSes.
9572 ;;
9573
9574 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9575 # This hack is so that the source file can tell whether it is being
9576 # built for inclusion in a dll (and should export symbols for example).
9577 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9578 # (--disable-auto-import) libraries
9579 lt_prog_compiler_pic='-DDLL_EXPORT'
9580 case $host_os in
9581 os2*)
9582 lt_prog_compiler_static='$wl-static'
9583 ;;
9584 esac
9585 ;;
9586
9587 darwin* | rhapsody*)
9588 # PIC is the default on this platform
9589 # Common symbols not allowed in MH_DYLIB files
9590 lt_prog_compiler_pic='-fno-common'
9591 ;;
9592
9593 haiku*)
9594 # PIC is the default for Haiku.
9595 # The "-static" flag exists, but is broken.
9596 lt_prog_compiler_static=
9597 ;;
9598
9599 hpux*)
9600 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9601 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9602 # sets the default TLS model and affects inlining.
9603 case $host_cpu in
9604 hppa*64*)
9605 # +Z the default
9606 ;;
9607 *)
9608 lt_prog_compiler_pic='-fPIC'
9609 ;;
9610 esac
9611 ;;
9612
9613 interix[3-9]*)
9614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9615 # Instead, we relocate shared libraries at runtime.
9616 ;;
9617
9618 msdosdjgpp*)
9619 # Just because we use GCC doesn't mean we suddenly get shared libraries
9620 # on systems that don't support them.
9621 lt_prog_compiler_can_build_shared=no
9622 enable_shared=no
9623 ;;
9624
9625 *nto* | *qnx*)
9626 # QNX uses GNU C++, but need to define -shared option too, otherwise
9627 # it will coredump.
9628 lt_prog_compiler_pic='-fPIC -shared'
9629 ;;
9630
9631 sysv4*MP*)
9632 if test -d /usr/nec; then
9633 lt_prog_compiler_pic=-Kconform_pic
9634 fi
9635 ;;
9636
9637 *)
9638 lt_prog_compiler_pic='-fPIC'
9639 ;;
9640 esac
9641
9642 case $cc_basename in
9643 nvcc*) # Cuda Compiler Driver 2.2
9644 lt_prog_compiler_wl='-Xlinker '
9645 if test -n "$lt_prog_compiler_pic"; then
9646 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9647 fi
9648 ;;
9649 esac
9650 else
9651 # PORTME Check for flag to pass linker flags through the system compiler.
9652 case $host_os in
9653 aix*)
9654 lt_prog_compiler_wl='-Wl,'
9655 if test ia64 = "$host_cpu"; then
9656 # AIX 5 now supports IA64 processor
9657 lt_prog_compiler_static='-Bstatic'
9658 else
9659 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9660 fi
9661 ;;
9662
9663 darwin* | rhapsody*)
9664 # PIC is the default on this platform
9665 # Common symbols not allowed in MH_DYLIB files
9666 lt_prog_compiler_pic='-fno-common'
9667 case $cc_basename in
9668 nagfor*)
9669 # NAG Fortran compiler
9670 lt_prog_compiler_wl='-Wl,-Wl,,'
9671 lt_prog_compiler_pic='-PIC'
9672 lt_prog_compiler_static='-Bstatic'
9673 ;;
9674 esac
9675 ;;
9676
9677 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9678 # This hack is so that the source file can tell whether it is being
9679 # built for inclusion in a dll (and should export symbols for example).
9680 lt_prog_compiler_pic='-DDLL_EXPORT'
9681 case $host_os in
9682 os2*)
9683 lt_prog_compiler_static='$wl-static'
9684 ;;
9685 esac
9686 ;;
9687
9688 hpux9* | hpux10* | hpux11*)
9689 lt_prog_compiler_wl='-Wl,'
9690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9691 # not for PA HP-UX.
9692 case $host_cpu in
9693 hppa*64*|ia64*)
9694 # +Z the default
9695 ;;
9696 *)
9697 lt_prog_compiler_pic='+Z'
9698 ;;
9699 esac
9700 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9701 lt_prog_compiler_static='$wl-a ${wl}archive'
9702 ;;
9703
9704 irix5* | irix6* | nonstopux*)
9705 lt_prog_compiler_wl='-Wl,'
9706 # PIC (with -KPIC) is the default.
9707 lt_prog_compiler_static='-non_shared'
9708 ;;
9709
9710 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9711 case $cc_basename in
9712 # old Intel for x86_64, which still supported -KPIC.
9713 ecc*)
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_pic='-KPIC'
9716 lt_prog_compiler_static='-static'
9717 ;;
9718 *flang* | ftn | f18* | f95*)
9719 # Flang compiler.
9720 lt_prog_compiler_wl='-Wl,'
9721 lt_prog_compiler_pic='-fPIC'
9722 lt_prog_compiler_static='-static'
9723 ;;
9724 # flang / f18. f95 an alias for gfortran or flang on Debian
9725 flang* | f18* | f95*)
9726 lt_prog_compiler_wl='-Wl,'
9727 lt_prog_compiler_pic='-fPIC'
9728 lt_prog_compiler_static='-static'
9729 ;;
9730 # icc used to be incompatible with GCC.
9731 # ICC 10 doesn't accept -KPIC any more.
9732 icc* | ifort*)
9733 lt_prog_compiler_wl='-Wl,'
9734 lt_prog_compiler_pic='-fPIC'
9735 lt_prog_compiler_static='-static'
9736 ;;
9737 # Lahey Fortran 8.1.
9738 lf95*)
9739 lt_prog_compiler_wl='-Wl,'
9740 lt_prog_compiler_pic='--shared'
9741 lt_prog_compiler_static='--static'
9742 ;;
9743 nagfor*)
9744 # NAG Fortran compiler
9745 lt_prog_compiler_wl='-Wl,-Wl,,'
9746 lt_prog_compiler_pic='-PIC'
9747 lt_prog_compiler_static='-Bstatic'
9748 ;;
9749 tcc*)
9750 # Fabrice Bellard et al's Tiny C Compiler
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-fPIC'
9753 lt_prog_compiler_static='-static'
9754 ;;
9755 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9756 # Portland Group compilers (*not* the Pentium gcc compiler,
9757 # which looks to be a dead project)
9758 lt_prog_compiler_wl='-Wl,'
9759 lt_prog_compiler_pic='-fpic'
9760 lt_prog_compiler_static='-Bstatic'
9761 ;;
9762 ccc*)
9763 lt_prog_compiler_wl='-Wl,'
9764 # All Alpha code is PIC.
9765 lt_prog_compiler_static='-non_shared'
9766 ;;
9767 xl* | bgxl* | bgf* | mpixl*)
9768 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9769 lt_prog_compiler_wl='-Wl,'
9770 lt_prog_compiler_pic='-qpic'
9771 lt_prog_compiler_static='-qstaticlink'
9772 ;;
9773 *)
9774 case `$CC -V 2>&1 | $SED 5q` in
9775 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9777 lt_prog_compiler_pic='-KPIC'
9778 lt_prog_compiler_static='-Bstatic'
9779 lt_prog_compiler_wl=''
9780 ;;
9781 *Sun\ F* | *Sun*Fortran*)
9782 lt_prog_compiler_pic='-KPIC'
9783 lt_prog_compiler_static='-Bstatic'
9784 lt_prog_compiler_wl='-Qoption ld '
9785 ;;
9786 *Sun\ C*)
9787 # Sun C 5.9
9788 lt_prog_compiler_pic='-KPIC'
9789 lt_prog_compiler_static='-Bstatic'
9790 lt_prog_compiler_wl='-Wl,'
9791 ;;
9792 *Intel*\ [CF]*Compiler*)
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_pic='-fPIC'
9795 lt_prog_compiler_static='-static'
9796 ;;
9797 *Portland\ Group*)
9798 lt_prog_compiler_wl='-Wl,'
9799 lt_prog_compiler_pic='-fpic'
9800 lt_prog_compiler_static='-Bstatic'
9801 ;;
9802 esac
9803 ;;
9804 esac
9805 ;;
9806
9807 newsos6)
9808 lt_prog_compiler_pic='-KPIC'
9809 lt_prog_compiler_static='-Bstatic'
9810 ;;
9811
9812 *-mlibc)
9813 lt_prog_compiler_wl='-Wl,'
9814 lt_prog_compiler_pic='-fPIC'
9815 lt_prog_compiler_static='-static'
9816 ;;
9817
9818 *nto* | *qnx*)
9819 # QNX uses GNU C++, but need to define -shared option too, otherwise
9820 # it will coredump.
9821 lt_prog_compiler_pic='-fPIC -shared'
9822 ;;
9823
9824 osf3* | osf4* | osf5*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # All OSF/1 code is PIC.
9827 lt_prog_compiler_static='-non_shared'
9828 ;;
9829
9830 rdos*)
9831 lt_prog_compiler_static='-non_shared'
9832 ;;
9833
9834 serenity*)
9835 ;;
9836
9837 solaris*)
9838 lt_prog_compiler_pic='-KPIC'
9839 lt_prog_compiler_static='-Bstatic'
9840 case $cc_basename in
9841 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9842 lt_prog_compiler_wl='-Qoption ld ';;
9843 *)
9844 lt_prog_compiler_wl='-Wl,';;
9845 esac
9846 ;;
9847
9848 sunos4*)
9849 lt_prog_compiler_wl='-Qoption ld '
9850 lt_prog_compiler_pic='-PIC'
9851 lt_prog_compiler_static='-Bstatic'
9852 ;;
9853
9854 sysv4 | sysv4.2uw2* | sysv4.3*)
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-Bstatic'
9858 ;;
9859
9860 sysv4*MP*)
9861 if test -d /usr/nec; then
9862 lt_prog_compiler_pic='-Kconform_pic'
9863 lt_prog_compiler_static='-Bstatic'
9864 fi
9865 ;;
9866
9867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9868 lt_prog_compiler_wl='-Wl,'
9869 lt_prog_compiler_pic='-KPIC'
9870 lt_prog_compiler_static='-Bstatic'
9871 ;;
9872
9873 unicos*)
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_can_build_shared=no
9876 ;;
9877
9878 uts4*)
9879 lt_prog_compiler_pic='-pic'
9880 lt_prog_compiler_static='-Bstatic'
9881 ;;
9882
9883 *)
9884 lt_prog_compiler_can_build_shared=no
9885 ;;
9886 esac
9887 fi
9888
9889 case $host_os in
9890 # For platforms that do not support PIC, -DPIC is meaningless:
9891 *djgpp*)
9892 lt_prog_compiler_pic=
9893 ;;
9894 *)
9895 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9896 ;;
9897 esac
9898
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9900 printf %s "checking for $compiler option to produce PIC... " >&6; }
9901 if test ${lt_cv_prog_compiler_pic+y}
9902 then :
9903 printf %s "(cached) " >&6
9904 else case e in #(
9905 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9906 esac
9907 fi
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9909 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9910 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9911
9912 #
9913 # Check to make sure the PIC flag actually works.
9914 #
9915 if test -n "$lt_prog_compiler_pic"; then
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9917 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9918 if test ${lt_cv_prog_compiler_pic_works+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else case e in #(
9922 e) lt_cv_prog_compiler_pic_works=no
9923 ac_outfile=conftest.$ac_objext
9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9925 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9926 # Insert the option either (1) after the last *FLAGS variable, or
9927 # (2) before a word containing "conftest.", or (3) at the end.
9928 # Note that $ac_compile itself does not contain backslashes and begins
9929 # with a dollar sign (not a hyphen), so the echo should work correctly.
9930 # The option is referenced via a variable to avoid confusing sed.
9931 lt_compile=`echo "$ac_compile" | $SED \
9932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934 -e 's:$: $lt_compiler_flag:'`
9935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9936 (eval "$lt_compile" 2>conftest.err)
9937 ac_status=$?
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 if (exit $ac_status) && test -s "$ac_outfile"; then
9941 # The compiler can only warn and ignore the option if not recognized
9942 # So say no if there are warnings other than the usual output.
9943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9946 lt_cv_prog_compiler_pic_works=yes
9947 fi
9948 fi
9949 $RM conftest*
9950 ;;
9951 esac
9952 fi
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9954 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9955
9956 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9957 case $lt_prog_compiler_pic in
9958 "" | " "*) ;;
9959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9960 esac
9961 else
9962 lt_prog_compiler_pic=
9963 lt_prog_compiler_can_build_shared=no
9964 fi
9965
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 #
9979 # Check to make sure the static flag actually works.
9980 #
9981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9983 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9984 if test ${lt_cv_prog_compiler_static_works+y}
9985 then :
9986 printf %s "(cached) " >&6
9987 else case e in #(
9988 e) lt_cv_prog_compiler_static_works=no
9989 save_LDFLAGS=$LDFLAGS
9990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9993 # The linker can only warn and ignore the option if not recognized
9994 # So say no if there are warnings
9995 if test -s conftest.err; then
9996 # Append any errors to the config.log.
9997 cat conftest.err 1>&5
9998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10000 if diff conftest.exp conftest.er2 >/dev/null; then
10001 lt_cv_prog_compiler_static_works=yes
10002 fi
10003 else
10004 lt_cv_prog_compiler_static_works=yes
10005 fi
10006 fi
10007 $RM -r conftest*
10008 LDFLAGS=$save_LDFLAGS
10009 ;;
10010 esac
10011 fi
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10013 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10014
10015 if test yes = "$lt_cv_prog_compiler_static_works"; then
10016 :
10017 else
10018 lt_prog_compiler_static=
10019 fi
10020
10021
10022
10023
10024
10025
10026
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10028 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10029 if test ${lt_cv_prog_compiler_c_o+y}
10030 then :
10031 printf %s "(cached) " >&6
10032 else case e in #(
10033 e) lt_cv_prog_compiler_c_o=no
10034 $RM -r conftest 2>/dev/null
10035 mkdir conftest
10036 cd conftest
10037 mkdir out
10038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10039
10040 lt_compiler_flag="-o out/conftest2.$ac_objext"
10041 # Insert the option either (1) after the last *FLAGS variable, or
10042 # (2) before a word containing "conftest.", or (3) at the end.
10043 # Note that $ac_compile itself does not contain backslashes and begins
10044 # with a dollar sign (not a hyphen), so the echo should work correctly.
10045 lt_compile=`echo "$ac_compile" | $SED \
10046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10048 -e 's:$: $lt_compiler_flag:'`
10049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10050 (eval "$lt_compile" 2>out/conftest.err)
10051 ac_status=$?
10052 cat out/conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10055 then
10056 # The compiler can only warn and ignore the option if not recognized
10057 # So say no if there are warnings
10058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10061 lt_cv_prog_compiler_c_o=yes
10062 fi
10063 fi
10064 chmod u+w . 2>&5
10065 $RM conftest*
10066 # SGI C++ compiler will create directory out/ii_files/ for
10067 # template instantiation
10068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10069 $RM out/* && rmdir out
10070 cd ..
10071 $RM -r conftest
10072 $RM conftest*
10073 ;;
10074 esac
10075 fi
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10077 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10078
10079
10080
10081
10082
10083
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10085 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10086 if test ${lt_cv_prog_compiler_c_o+y}
10087 then :
10088 printf %s "(cached) " >&6
10089 else case e in #(
10090 e) lt_cv_prog_compiler_c_o=no
10091 $RM -r conftest 2>/dev/null
10092 mkdir conftest
10093 cd conftest
10094 mkdir out
10095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10096
10097 lt_compiler_flag="-o out/conftest2.$ac_objext"
10098 # Insert the option either (1) after the last *FLAGS variable, or
10099 # (2) before a word containing "conftest.", or (3) at the end.
10100 # Note that $ac_compile itself does not contain backslashes and begins
10101 # with a dollar sign (not a hyphen), so the echo should work correctly.
10102 lt_compile=`echo "$ac_compile" | $SED \
10103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10105 -e 's:$: $lt_compiler_flag:'`
10106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10107 (eval "$lt_compile" 2>out/conftest.err)
10108 ac_status=$?
10109 cat out/conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10112 then
10113 # The compiler can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10118 lt_cv_prog_compiler_c_o=yes
10119 fi
10120 fi
10121 chmod u+w . 2>&5
10122 $RM conftest*
10123 # SGI C++ compiler will create directory out/ii_files/ for
10124 # template instantiation
10125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10126 $RM out/* && rmdir out
10127 cd ..
10128 $RM -r conftest
10129 $RM conftest*
10130 ;;
10131 esac
10132 fi
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10134 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10135
10136
10137
10138
10139 hard_links=nottested
10140 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10141 # do not overwrite the value of need_locks provided by the user
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10143 printf %s "checking if we can lock with hard links... " >&6; }
10144 hard_links=yes
10145 $RM conftest*
10146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10147 touch conftest.a
10148 ln conftest.a conftest.b 2>&5 || hard_links=no
10149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10151 printf "%s\n" "$hard_links" >&6; }
10152 if test no = "$hard_links"; then
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10154 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10155 need_locks=warn
10156 fi
10157 else
10158 need_locks=no
10159 fi
10160
10161
10162
10163
10164
10165
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10167 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10168
10169 runpath_var=
10170 allow_undefined_flag=
10171 always_export_symbols=no
10172 archive_cmds=
10173 archive_expsym_cmds=
10174 compiler_needs_object=no
10175 enable_shared_with_static_runtimes=no
10176 export_dynamic_flag_spec=
10177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10178 hardcode_automatic=no
10179 hardcode_direct=no
10180 hardcode_direct_absolute=no
10181 hardcode_libdir_flag_spec=
10182 hardcode_libdir_separator=
10183 hardcode_minus_L=no
10184 hardcode_shlibpath_var=unsupported
10185 inherit_rpath=no
10186 link_all_deplibs=unknown
10187 module_cmds=
10188 module_expsym_cmds=
10189 old_archive_from_new_cmds=
10190 old_archive_from_expsyms_cmds=
10191 thread_safe_flag_spec=
10192 whole_archive_flag_spec=
10193 # include_expsyms should be a list of space-separated symbols to be *always*
10194 # included in the symbol list
10195 include_expsyms=
10196 # exclude_expsyms can be an extended regexp of symbols to exclude
10197 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10198 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10199 # as well as any symbol that contains 'd'.
10200 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10202 # platforms (ab)use it in PIC code, but their linkers get confused if
10203 # the symbol is explicitly referenced. Since portable code cannot
10204 # rely on this symbol name, it's probably fine to never include it in
10205 # preloaded symbol tables.
10206 # Exclude shared library initialization/finalization symbols.
10207 extract_expsyms_cmds=
10208
10209 case $host_os in
10210 cygwin* | mingw* | windows* | pw32* | cegcc*)
10211 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10212 # When not using gcc, we currently assume that we are using
10213 # Microsoft Visual C++ or Intel C++ Compiler.
10214 if test yes != "$GCC"; then
10215 with_gnu_ld=no
10216 fi
10217 ;;
10218 interix*)
10219 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10220 with_gnu_ld=yes
10221 ;;
10222 linux* | k*bsd*-gnu | gnu*)
10223 link_all_deplibs=no
10224 ;;
10225 esac
10226
10227 ld_shlibs=yes
10228
10229 # On some targets, GNU ld is compatible enough with the native linker
10230 # that we're better off using the native interface for both.
10231 lt_use_gnu_ld_interface=no
10232 if test yes = "$with_gnu_ld"; then
10233 case $host_os in
10234 aix*)
10235 # The AIX port of GNU ld has always aspired to compatibility
10236 # with the native linker. However, as the warning in the GNU ld
10237 # block says, versions before 2.19.5* couldn't really create working
10238 # shared libraries, regardless of the interface used.
10239 case `$LD -v 2>&1` in
10240 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10241 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10242 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10243 *)
10244 lt_use_gnu_ld_interface=yes
10245 ;;
10246 esac
10247 ;;
10248 *)
10249 lt_use_gnu_ld_interface=yes
10250 ;;
10251 esac
10252 fi
10253
10254 if test yes = "$lt_use_gnu_ld_interface"; then
10255 # If archive_cmds runs LD, not CC, wlarc should be empty
10256 wlarc='$wl'
10257
10258 # Set some defaults for GNU ld with shared library support. These
10259 # are reset later if shared libraries are not supported. Putting them
10260 # here allows them to be overridden if necessary.
10261 runpath_var=LD_RUN_PATH
10262 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10263 export_dynamic_flag_spec='$wl--export-dynamic'
10264 # ancient GNU ld didn't support --whole-archive et. al.
10265 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10266 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10267 else
10268 whole_archive_flag_spec=
10269 fi
10270 supports_anon_versioning=no
10271 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10272 *GNU\ gold*) supports_anon_versioning=yes ;;
10273 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10274 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10275 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10276 *\ 2.11.*) ;; # other 2.11 versions
10277 *) supports_anon_versioning=yes ;;
10278 esac
10279
10280 # See if GNU ld supports shared libraries.
10281 case $host_os in
10282 aix[3-9]*)
10283 # On AIX/PPC, the GNU linker is very broken
10284 if test ia64 != "$host_cpu"; then
10285 ld_shlibs=no
10286 cat <<_LT_EOF 1>&2
10287
10288 *** Warning: the GNU linker, at least up to release 2.19, is reported
10289 *** to be unable to reliably create shared libraries on AIX.
10290 *** Therefore, libtool is disabling shared libraries support. If you
10291 *** really care for shared libraries, you may want to install binutils
10292 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10293 *** You will then need to restart the configuration process.
10294
10295 _LT_EOF
10296 fi
10297 ;;
10298
10299 amigaos*)
10300 case $host_cpu in
10301 powerpc)
10302 # see comment about AmigaOS4 .so support
10303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10304 archive_expsym_cmds=''
10305 ;;
10306 m68k)
10307 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)'
10308 hardcode_libdir_flag_spec='-L$libdir'
10309 hardcode_minus_L=yes
10310 ;;
10311 esac
10312 ;;
10313
10314 beos*)
10315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10316 allow_undefined_flag=unsupported
10317 # Joseph Beckenbach <[email protected]> says some releases of gcc
10318 # support --undefined. This deserves some investigation. FIXME
10319 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10320 else
10321 ld_shlibs=no
10322 fi
10323 ;;
10324
10325 cygwin* | mingw* | windows* | pw32* | cegcc*)
10326 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10327 # as there is no search path for DLLs.
10328 hardcode_libdir_flag_spec='-L$libdir'
10329 export_dynamic_flag_spec='$wl--export-all-symbols'
10330 allow_undefined_flag=unsupported
10331 always_export_symbols=no
10332 enable_shared_with_static_runtimes=yes
10333 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'
10334 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10335 file_list_spec='@'
10336
10337 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10339 # If the export-symbols file already is a .def file, use it as
10340 # is; otherwise, prepend EXPORTS...
10341 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10342 cp $export_symbols $output_objdir/$soname.def;
10343 else
10344 echo EXPORTS > $output_objdir/$soname.def;
10345 cat $export_symbols >> $output_objdir/$soname.def;
10346 fi~
10347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10348 else
10349 ld_shlibs=no
10350 fi
10351 ;;
10352
10353 haiku*)
10354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10355 link_all_deplibs=no
10356 ;;
10357
10358 os2*)
10359 hardcode_libdir_flag_spec='-L$libdir'
10360 hardcode_minus_L=yes
10361 allow_undefined_flag=unsupported
10362 shrext_cmds=.dll
10363 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10364 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10365 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10366 $ECHO EXPORTS >> $output_objdir/$libname.def~
10367 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10368 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10369 emximp -o $lib $output_objdir/$libname.def'
10370 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10371 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10372 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10373 $ECHO EXPORTS >> $output_objdir/$libname.def~
10374 prefix_cmds="$SED"~
10375 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10376 prefix_cmds="$prefix_cmds -e 1d";
10377 fi~
10378 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10379 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10380 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10381 emximp -o $lib $output_objdir/$libname.def'
10382 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10383 enable_shared_with_static_runtimes=yes
10384 file_list_spec='@'
10385 ;;
10386
10387 interix[3-9]*)
10388 hardcode_direct=no
10389 hardcode_shlibpath_var=no
10390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10391 export_dynamic_flag_spec='$wl-E'
10392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10393 # Instead, shared libraries are loaded at an image base (0x10000000 by
10394 # default) and relocated if they conflict, which is a slow very memory
10395 # consuming and fragmenting process. To avoid this, we pick a random,
10396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10399 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'
10400 ;;
10401
10402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10403 tmp_diet=no
10404 if test linux-dietlibc = "$host_os"; then
10405 case $cc_basename in
10406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10407 esac
10408 fi
10409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10410 && test no = "$tmp_diet"
10411 then
10412 tmp_addflag=' $pic_flag'
10413 tmp_sharedflag='-shared'
10414 case $cc_basename,$host_cpu in
10415 pgcc*) # Portland Group C compiler
10416 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'
10417 tmp_addflag=' $pic_flag'
10418 ;;
10419 pgf77* | pgf90* | pgf95* | pgfortran*)
10420 # Portland Group f77 and f90 compilers
10421 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'
10422 tmp_addflag=' $pic_flag -Mnomain' ;;
10423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10424 tmp_addflag=' -i_dynamic' ;;
10425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10426 tmp_addflag=' -i_dynamic -nofor_main' ;;
10427 ifc* | ifort*) # Intel Fortran compiler
10428 tmp_addflag=' -nofor_main' ;;
10429 lf95*) # Lahey Fortran 8.1
10430 whole_archive_flag_spec=
10431 tmp_sharedflag='--shared' ;;
10432 nagfor*) # NAGFOR 5.3
10433 tmp_sharedflag='-Wl,-shared' ;;
10434 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10435 tmp_sharedflag='-qmkshrobj'
10436 tmp_addflag= ;;
10437 nvcc*) # Cuda Compiler Driver 2.2
10438 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'
10439 compiler_needs_object=yes
10440 ;;
10441 esac
10442 case `$CC -V 2>&1 | $SED 5q` in
10443 *Sun\ C*) # Sun C 5.9
10444 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'
10445 compiler_needs_object=yes
10446 tmp_sharedflag='-G' ;;
10447 *Sun\ F*) # Sun Fortran 8.3
10448 tmp_sharedflag='-G' ;;
10449 esac
10450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10451
10452 if test yes = "$supports_anon_versioning"; then
10453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10454 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10455 echo "local: *; };" >> $output_objdir/$libname.ver~
10456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10457 fi
10458
10459 case $cc_basename in
10460 tcc*)
10461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10462 export_dynamic_flag_spec='-rdynamic'
10463 ;;
10464 xlf* | bgf* | bgxlf* | mpixlf*)
10465 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10466 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10468 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10469 if test yes = "$supports_anon_versioning"; then
10470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10471 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10472 echo "local: *; };" >> $output_objdir/$libname.ver~
10473 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10474 fi
10475 ;;
10476 esac
10477 else
10478 ld_shlibs=no
10479 fi
10480 ;;
10481
10482 *-mlibc)
10483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10484 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10485 ;;
10486
10487 netbsd* | netbsdelf*-gnu)
10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10490 wlarc=
10491 else
10492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10493 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10494 fi
10495 ;;
10496
10497 solaris*)
10498 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10499 ld_shlibs=no
10500 cat <<_LT_EOF 1>&2
10501
10502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10503 *** create shared libraries on Solaris systems. Therefore, libtool
10504 *** is disabling shared libraries support. We urge you to upgrade GNU
10505 *** binutils to release 2.9.1 or newer. Another option is to modify
10506 *** your PATH or compiler configuration so that the native linker is
10507 *** used, and then restart.
10508
10509 _LT_EOF
10510 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10512 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10513 else
10514 ld_shlibs=no
10515 fi
10516 ;;
10517
10518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10519 case `$LD -v 2>&1` in
10520 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10521 ld_shlibs=no
10522 cat <<_LT_EOF 1>&2
10523
10524 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10525 *** reliably create shared libraries on SCO systems. Therefore, libtool
10526 *** is disabling shared libraries support. We urge you to upgrade GNU
10527 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10528 *** your PATH or compiler configuration so that the native linker is
10529 *** used, and then restart.
10530
10531 _LT_EOF
10532 ;;
10533 *)
10534 # For security reasons, it is highly recommended that you always
10535 # use absolute paths for naming shared libraries, and exclude the
10536 # DT_RUNPATH tag from executables and libraries. But doing so
10537 # requires that you compile everything twice, which is a pain.
10538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10542 else
10543 ld_shlibs=no
10544 fi
10545 ;;
10546 esac
10547 ;;
10548
10549 sunos4*)
10550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10551 wlarc=
10552 hardcode_direct=yes
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 *)
10557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10560 else
10561 ld_shlibs=no
10562 fi
10563 ;;
10564 esac
10565
10566 if test no = "$ld_shlibs"; then
10567 runpath_var=
10568 hardcode_libdir_flag_spec=
10569 export_dynamic_flag_spec=
10570 whole_archive_flag_spec=
10571 fi
10572 else
10573 # PORTME fill in a description of your system's linker (not GNU ld)
10574 case $host_os in
10575 aix3*)
10576 allow_undefined_flag=unsupported
10577 always_export_symbols=yes
10578 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'
10579 # Note: this linker hardcodes the directories in LIBPATH if there
10580 # are no directories specified by -L.
10581 hardcode_minus_L=yes
10582 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10583 # Neither direct hardcoding nor static linking is supported with a
10584 # broken collect2.
10585 hardcode_direct=unsupported
10586 fi
10587 ;;
10588
10589 aix[4-9]*)
10590 if test ia64 = "$host_cpu"; then
10591 # On IA64, the linker does run time linking by default, so we don't
10592 # have to do anything special.
10593 aix_use_runtimelinking=no
10594 exp_sym_flag='-Bexport'
10595 no_entry_flag=
10596 else
10597 # If we're using GNU nm, then we don't want the "-C" option.
10598 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10599 # Without the "-l" option, or with the "-B" option, AIX nm treats
10600 # weak defined symbols like other global defined symbols, whereas
10601 # GNU nm marks them as "W".
10602 # While the 'weak' keyword is ignored in the Export File, we need
10603 # it in the Import File for the 'aix-soname' feature, so we have
10604 # to replace the "-B" option with "-P" for AIX nm.
10605 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10606 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'
10607 else
10608 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'
10609 fi
10610 aix_use_runtimelinking=no
10611
10612 # Test if we are trying to use run time linking or normal
10613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10614 # have runtime linking enabled, and use it for executables.
10615 # For shared libraries, we enable/disable runtime linking
10616 # depending on the kind of the shared library created -
10617 # when "with_aix_soname,aix_use_runtimelinking" is:
10618 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10619 # "aix,yes" lib.so shared, rtl:yes, for executables
10620 # lib.a static archive
10621 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10622 # lib.a(lib.so.V) shared, rtl:no, for executables
10623 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10624 # lib.a(lib.so.V) shared, rtl:no
10625 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10626 # lib.a static archive
10627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10628 for ld_flag in $LDFLAGS; do
10629 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10630 aix_use_runtimelinking=yes
10631 break
10632 fi
10633 done
10634 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10635 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10636 # so we don't have lib.a shared libs to link our executables.
10637 # We have to force runtime linking in this case.
10638 aix_use_runtimelinking=yes
10639 LDFLAGS="$LDFLAGS -Wl,-brtl"
10640 fi
10641 ;;
10642 esac
10643
10644 exp_sym_flag='-bexport'
10645 no_entry_flag='-bnoentry'
10646 fi
10647
10648 # When large executables or shared objects are built, AIX ld can
10649 # have problems creating the table of contents. If linking a library
10650 # or program results in "error TOC overflow" add -mminimal-toc to
10651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10653
10654 archive_cmds=''
10655 hardcode_direct=yes
10656 hardcode_direct_absolute=yes
10657 hardcode_libdir_separator=':'
10658 link_all_deplibs=yes
10659 file_list_spec='$wl-f,'
10660 case $with_aix_soname,$aix_use_runtimelinking in
10661 aix,*) ;; # traditional, no import file
10662 svr4,* | *,yes) # use import file
10663 # The Import File defines what to hardcode.
10664 hardcode_direct=no
10665 hardcode_direct_absolute=no
10666 ;;
10667 esac
10668
10669 if test yes = "$GCC"; then
10670 case $host_os in aix4.[012]|aix4.[012].*)
10671 # We only want to do this on AIX 4.2 and lower, the check
10672 # below for broken collect2 doesn't work under 4.3+
10673 collect2name=`$CC -print-prog-name=collect2`
10674 if test -f "$collect2name" &&
10675 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10676 then
10677 # We have reworked collect2
10678 :
10679 else
10680 # We have old collect2
10681 hardcode_direct=unsupported
10682 # It fails to find uninstalled libraries when the uninstalled
10683 # path is not listed in the libpath. Setting hardcode_minus_L
10684 # to unsupported forces relinking
10685 hardcode_minus_L=yes
10686 hardcode_libdir_flag_spec='-L$libdir'
10687 hardcode_libdir_separator=
10688 fi
10689 ;;
10690 esac
10691 shared_flag='-shared'
10692 if test yes = "$aix_use_runtimelinking"; then
10693 shared_flag="$shared_flag "'$wl-G'
10694 fi
10695 # Need to ensure runtime linking is disabled for the traditional
10696 # shared library, or the linker may eventually find shared libraries
10697 # /with/ Import File - we do not want to mix them.
10698 shared_flag_aix='-shared'
10699 shared_flag_svr4='-shared $wl-G'
10700 else
10701 # not using gcc
10702 if test ia64 = "$host_cpu"; then
10703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10704 # chokes on -Wl,-G. The following line is correct:
10705 shared_flag='-G'
10706 else
10707 if test yes = "$aix_use_runtimelinking"; then
10708 shared_flag='$wl-G'
10709 else
10710 shared_flag='$wl-bM:SRE'
10711 fi
10712 shared_flag_aix='$wl-bM:SRE'
10713 shared_flag_svr4='$wl-G'
10714 fi
10715 fi
10716
10717 export_dynamic_flag_spec='$wl-bexpall'
10718 # It seems that -bexpall does not export symbols beginning with
10719 # underscore (_), so it is better to generate a list of symbols to export.
10720 always_export_symbols=yes
10721 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10722 # Warning - without using the other runtime loading flags (-brtl),
10723 # -berok will link without error, but may produce a broken library.
10724 allow_undefined_flag='-berok'
10725 # Determine the default libpath from the value encoded in an
10726 # empty executable.
10727 if test set = "${lt_cv_aix_libpath+set}"; then
10728 aix_libpath=$lt_cv_aix_libpath
10729 else
10730 if test ${lt_cv_aix_libpath_+y}
10731 then :
10732 printf %s "(cached) " >&6
10733 else case e in #(
10734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736
10737 int
10738 main (void)
10739 {
10740
10741 ;
10742 return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"
10746 then :
10747
10748 lt_aix_libpath_sed='
10749 /Import File Strings/,/^$/ {
10750 /^0/ {
10751 s/^0 *\([^ ]*\) *$/\1/
10752 p
10753 }
10754 }'
10755 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10756 # Check for a 64-bit object if we didn't find anything.
10757 if test -z "$lt_cv_aix_libpath_"; then
10758 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10759 fi
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10762 conftest$ac_exeext conftest.$ac_ext
10763 if test -z "$lt_cv_aix_libpath_"; then
10764 lt_cv_aix_libpath_=/usr/lib:/lib
10765 fi
10766 ;;
10767 esac
10768 fi
10769
10770 aix_libpath=$lt_cv_aix_libpath_
10771 fi
10772
10773 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10774 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
10775 else
10776 if test ia64 = "$host_cpu"; then
10777 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10778 allow_undefined_flag="-z nodefs"
10779 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"
10780 else
10781 # Determine the default libpath from the value encoded in an
10782 # empty executable.
10783 if test set = "${lt_cv_aix_libpath+set}"; then
10784 aix_libpath=$lt_cv_aix_libpath
10785 else
10786 if test ${lt_cv_aix_libpath_+y}
10787 then :
10788 printf %s "(cached) " >&6
10789 else case e in #(
10790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792
10793 int
10794 main (void)
10795 {
10796
10797 ;
10798 return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"
10802 then :
10803
10804 lt_aix_libpath_sed='
10805 /Import File Strings/,/^$/ {
10806 /^0/ {
10807 s/^0 *\([^ ]*\) *$/\1/
10808 p
10809 }
10810 }'
10811 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10812 # Check for a 64-bit object if we didn't find anything.
10813 if test -z "$lt_cv_aix_libpath_"; then
10814 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10815 fi
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10818 conftest$ac_exeext conftest.$ac_ext
10819 if test -z "$lt_cv_aix_libpath_"; then
10820 lt_cv_aix_libpath_=/usr/lib:/lib
10821 fi
10822 ;;
10823 esac
10824 fi
10825
10826 aix_libpath=$lt_cv_aix_libpath_
10827 fi
10828
10829 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10830 # Warning - without using the other run time loading flags,
10831 # -berok will link without error, but may produce a broken library.
10832 no_undefined_flag=' $wl-bernotok'
10833 allow_undefined_flag=' $wl-berok'
10834 if test yes = "$with_gnu_ld"; then
10835 # We only use this code for GNU lds that support --whole-archive.
10836 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10837 else
10838 # Exported symbols can be pulled into shared objects from archives
10839 whole_archive_flag_spec='$convenience'
10840 fi
10841 archive_cmds_need_lc=yes
10842 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10843 # -brtl affects multiple linker settings, -berok does not and is overridden later
10844 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10845 if test svr4 != "$with_aix_soname"; then
10846 # This is similar to how AIX traditionally builds its shared libraries.
10847 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'
10848 fi
10849 if test aix != "$with_aix_soname"; then
10850 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'
10851 else
10852 # used by -dlpreopen to get the symbols
10853 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10854 fi
10855 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10856 fi
10857 fi
10858 ;;
10859
10860 amigaos*)
10861 case $host_cpu in
10862 powerpc)
10863 # see comment about AmigaOS4 .so support
10864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10865 archive_expsym_cmds=''
10866 ;;
10867 m68k)
10868 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)'
10869 hardcode_libdir_flag_spec='-L$libdir'
10870 hardcode_minus_L=yes
10871 ;;
10872 esac
10873 ;;
10874
10875 bsdi[45]*)
10876 export_dynamic_flag_spec=-rdynamic
10877 ;;
10878
10879 cygwin* | mingw* | windows* | pw32* | cegcc*)
10880 # When not using gcc, we currently assume that we are using
10881 # Microsoft Visual C++ or Intel C++ Compiler.
10882 # hardcode_libdir_flag_spec is actually meaningless, as there is
10883 # no search path for DLLs.
10884 case $cc_basename in
10885 cl* | icl*)
10886 # Native MSVC or ICC
10887 hardcode_libdir_flag_spec=' '
10888 allow_undefined_flag=unsupported
10889 always_export_symbols=yes
10890 file_list_spec='@'
10891 # Tell ltmain to make .lib files, not .a files.
10892 libext=lib
10893 # Tell ltmain to make .dll files, not .so files.
10894 shrext_cmds=.dll
10895 # FIXME: Setting linknames here is a bad hack.
10896 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10897 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10898 cp "$export_symbols" "$output_objdir/$soname.def";
10899 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10900 else
10901 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10902 fi~
10903 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10904 linknames='
10905 # The linker will not automatically build a static lib if we build a DLL.
10906 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10907 enable_shared_with_static_runtimes=yes
10908 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10909 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10910 # Don't use ranlib
10911 old_postinstall_cmds='chmod 644 $oldlib'
10912 postlink_cmds='lt_outputfile="@OUTPUT@"~
10913 lt_tool_outputfile="@TOOL_OUTPUT@"~
10914 case $lt_outputfile in
10915 *.exe|*.EXE) ;;
10916 *)
10917 lt_outputfile=$lt_outputfile.exe
10918 lt_tool_outputfile=$lt_tool_outputfile.exe
10919 ;;
10920 esac~
10921 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10922 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10923 $RM "$lt_outputfile.manifest";
10924 fi'
10925 ;;
10926 *)
10927 # Assume MSVC and ICC wrapper
10928 hardcode_libdir_flag_spec=' '
10929 allow_undefined_flag=unsupported
10930 # Tell ltmain to make .lib files, not .a files.
10931 libext=lib
10932 # Tell ltmain to make .dll files, not .so files.
10933 shrext_cmds=.dll
10934 # FIXME: Setting linknames here is a bad hack.
10935 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10936 # The linker will automatically build a .lib file if we build a DLL.
10937 old_archive_from_new_cmds='true'
10938 # FIXME: Should let the user specify the lib program.
10939 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10940 enable_shared_with_static_runtimes=yes
10941 ;;
10942 esac
10943 ;;
10944
10945 darwin* | rhapsody*)
10946
10947
10948 archive_cmds_need_lc=no
10949 hardcode_direct=no
10950 hardcode_automatic=yes
10951 hardcode_shlibpath_var=unsupported
10952 if test yes = "$lt_cv_ld_force_load"; then
10953 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\"`'
10954
10955 else
10956 whole_archive_flag_spec=''
10957 fi
10958 link_all_deplibs=yes
10959 allow_undefined_flag=$_lt_dar_allow_undefined
10960 case $cc_basename in
10961 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10962 *) _lt_dar_can_shared=$GCC ;;
10963 esac
10964 if test yes = "$_lt_dar_can_shared"; then
10965 output_verbose_link_cmd=func_echo_all
10966 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10967 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10968 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"
10969 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"
10970
10971 else
10972 ld_shlibs=no
10973 fi
10974
10975 ;;
10976
10977 dgux*)
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_libdir_flag_spec='-L$libdir'
10980 hardcode_shlibpath_var=no
10981 ;;
10982
10983 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10984 # support. Future versions do this automatically, but an explicit c++rt0.o
10985 # does not break anything, and helps significantly (at the cost of a little
10986 # extra space).
10987 freebsd2.2*)
10988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10989 hardcode_libdir_flag_spec='-R$libdir'
10990 hardcode_direct=yes
10991 hardcode_shlibpath_var=no
10992 ;;
10993
10994 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10995 freebsd2.*)
10996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10997 hardcode_direct=yes
10998 hardcode_minus_L=yes
10999 hardcode_shlibpath_var=no
11000 ;;
11001
11002 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11003 freebsd* | dragonfly* | midnightbsd*)
11004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11005 hardcode_libdir_flag_spec='-R$libdir'
11006 hardcode_direct=yes
11007 hardcode_shlibpath_var=no
11008 ;;
11009
11010 hpux9*)
11011 if test yes = "$GCC"; then
11012 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'
11013 else
11014 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'
11015 fi
11016 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11017 hardcode_libdir_separator=:
11018 hardcode_direct=yes
11019
11020 # hardcode_minus_L: Not really in the search PATH,
11021 # but as the default location of the library.
11022 hardcode_minus_L=yes
11023 export_dynamic_flag_spec='$wl-E'
11024 ;;
11025
11026 hpux10*)
11027 if test yes,no = "$GCC,$with_gnu_ld"; then
11028 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11029 else
11030 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11031 fi
11032 if test no = "$with_gnu_ld"; then
11033 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11034 hardcode_libdir_separator=:
11035 hardcode_direct=yes
11036 hardcode_direct_absolute=yes
11037 export_dynamic_flag_spec='$wl-E'
11038 # hardcode_minus_L: Not really in the search PATH,
11039 # but as the default location of the library.
11040 hardcode_minus_L=yes
11041 fi
11042 ;;
11043
11044 hpux11*)
11045 if test yes,no = "$GCC,$with_gnu_ld"; then
11046 case $host_cpu in
11047 hppa*64*)
11048 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 ;;
11050 ia64*)
11051 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11052 ;;
11053 *)
11054 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11055 ;;
11056 esac
11057 else
11058 case $host_cpu in
11059 hppa*64*)
11060 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 ;;
11062 ia64*)
11063 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11064 ;;
11065 *)
11066
11067 # Older versions of the 11.00 compiler do not understand -b yet
11068 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11070 printf %s "checking if $CC understands -b... " >&6; }
11071 if test ${lt_cv_prog_compiler__b+y}
11072 then :
11073 printf %s "(cached) " >&6
11074 else case e in #(
11075 e) lt_cv_prog_compiler__b=no
11076 save_LDFLAGS=$LDFLAGS
11077 LDFLAGS="$LDFLAGS -b"
11078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11080 # The linker can only warn and ignore the option if not recognized
11081 # So say no if there are warnings
11082 if test -s conftest.err; then
11083 # Append any errors to the config.log.
11084 cat conftest.err 1>&5
11085 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11087 if diff conftest.exp conftest.er2 >/dev/null; then
11088 lt_cv_prog_compiler__b=yes
11089 fi
11090 else
11091 lt_cv_prog_compiler__b=yes
11092 fi
11093 fi
11094 $RM -r conftest*
11095 LDFLAGS=$save_LDFLAGS
11096 ;;
11097 esac
11098 fi
11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11100 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11101
11102 if test yes = "$lt_cv_prog_compiler__b"; then
11103 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11104 else
11105 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11106 fi
11107
11108 ;;
11109 esac
11110 fi
11111 if test no = "$with_gnu_ld"; then
11112 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11113 hardcode_libdir_separator=:
11114
11115 case $host_cpu in
11116 hppa*64*|ia64*)
11117 hardcode_direct=no
11118 hardcode_shlibpath_var=no
11119 ;;
11120 *)
11121 hardcode_direct=yes
11122 hardcode_direct_absolute=yes
11123 export_dynamic_flag_spec='$wl-E'
11124
11125 # hardcode_minus_L: Not really in the search PATH,
11126 # but as the default location of the library.
11127 hardcode_minus_L=yes
11128 ;;
11129 esac
11130 fi
11131 ;;
11132
11133 irix5* | irix6* | nonstopux*)
11134 if test yes = "$GCC"; then
11135 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'
11136 # Try to use the -exported_symbol ld option, if it does not
11137 # work, assume that -exports_file does not work either and
11138 # implicitly export all symbols.
11139 # This should be the same for all languages, so no per-tag cache variable.
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11141 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11142 if test ${lt_cv_irix_exported_symbol+y}
11143 then :
11144 printf %s "(cached) " >&6
11145 else case e in #(
11146 e) save_LDFLAGS=$LDFLAGS
11147 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150 int foo (void) { return 0; }
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"
11153 then :
11154 lt_cv_irix_exported_symbol=yes
11155 else case e in #(
11156 e) lt_cv_irix_exported_symbol=no ;;
11157 esac
11158 fi
11159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LDFLAGS=$save_LDFLAGS ;;
11162 esac
11163 fi
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11165 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11166 if test yes = "$lt_cv_irix_exported_symbol"; then
11167 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'
11168 fi
11169 link_all_deplibs=no
11170 else
11171 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'
11172 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'
11173 fi
11174 archive_cmds_need_lc='no'
11175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11176 hardcode_libdir_separator=:
11177 inherit_rpath=yes
11178 link_all_deplibs=yes
11179 ;;
11180
11181 linux*)
11182 case $cc_basename in
11183 tcc*)
11184 # Fabrice Bellard et al's Tiny C Compiler
11185 ld_shlibs=yes
11186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188 ;;
11189 esac
11190 ;;
11191
11192 *-mlibc)
11193 ;;
11194
11195 netbsd* | netbsdelf*-gnu)
11196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11198 else
11199 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11200 fi
11201 hardcode_libdir_flag_spec='-R$libdir'
11202 hardcode_direct=yes
11203 hardcode_shlibpath_var=no
11204 ;;
11205
11206 newsos6)
11207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11208 hardcode_direct=yes
11209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11210 hardcode_libdir_separator=:
11211 hardcode_shlibpath_var=no
11212 ;;
11213
11214 *nto* | *qnx*)
11215 ;;
11216
11217 openbsd*)
11218 if test -f /usr/libexec/ld.so; then
11219 hardcode_direct=yes
11220 hardcode_shlibpath_var=no
11221 hardcode_direct_absolute=yes
11222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11224 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11225 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11226 export_dynamic_flag_spec='$wl-E'
11227 else
11228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11229 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11230 fi
11231 else
11232 ld_shlibs=no
11233 fi
11234 ;;
11235
11236 os2*)
11237 hardcode_libdir_flag_spec='-L$libdir'
11238 hardcode_minus_L=yes
11239 allow_undefined_flag=unsupported
11240 shrext_cmds=.dll
11241 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11242 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11243 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11244 $ECHO EXPORTS >> $output_objdir/$libname.def~
11245 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11246 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11247 emximp -o $lib $output_objdir/$libname.def'
11248 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11251 $ECHO EXPORTS >> $output_objdir/$libname.def~
11252 prefix_cmds="$SED"~
11253 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11254 prefix_cmds="$prefix_cmds -e 1d";
11255 fi~
11256 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11257 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11259 emximp -o $lib $output_objdir/$libname.def'
11260 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11261 enable_shared_with_static_runtimes=yes
11262 file_list_spec='@'
11263 ;;
11264
11265 osf3*)
11266 if test yes = "$GCC"; then
11267 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11268 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'
11269 else
11270 allow_undefined_flag=' -expect_unresolved \*'
11271 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'
11272 fi
11273 archive_cmds_need_lc='no'
11274 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11275 hardcode_libdir_separator=:
11276 ;;
11277
11278 osf4* | osf5*) # as osf3* with the addition of -msym flag
11279 if test yes = "$GCC"; then
11280 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11281 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'
11282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11283 else
11284 allow_undefined_flag=' -expect_unresolved \*'
11285 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'
11286 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~
11287 $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'
11288
11289 # Both c and cxx compiler support -rpath directly
11290 hardcode_libdir_flag_spec='-rpath $libdir'
11291 fi
11292 archive_cmds_need_lc='no'
11293 hardcode_libdir_separator=:
11294 ;;
11295
11296 serenity*)
11297 ;;
11298
11299 solaris*)
11300 no_undefined_flag=' -z defs'
11301 if test yes = "$GCC"; then
11302 wlarc='$wl'
11303 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11305 $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'
11306 else
11307 case `$CC -V 2>&1` in
11308 *"Compilers 5.0"*)
11309 wlarc=''
11310 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11312 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11313 ;;
11314 *)
11315 wlarc='$wl'
11316 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11318 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11319 ;;
11320 esac
11321 fi
11322 hardcode_libdir_flag_spec='-R$libdir'
11323 hardcode_shlibpath_var=no
11324 case $host_os in
11325 solaris2.[0-5] | solaris2.[0-5].*) ;;
11326 *)
11327 # The compiler driver will combine and reorder linker options,
11328 # but understands '-z linker_flag'. GCC discards it without '$wl',
11329 # but is careful enough not to reorder.
11330 # Supported since Solaris 2.6 (maybe 2.5.1?)
11331 if test yes = "$GCC"; then
11332 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11333 else
11334 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11335 fi
11336 ;;
11337 esac
11338 link_all_deplibs=yes
11339 ;;
11340
11341 sunos4*)
11342 if test sequent = "$host_vendor"; then
11343 # Use $CC to link under sequent, because it throws in some extra .o
11344 # files that make .init and .fini sections work.
11345 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11346 else
11347 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11348 fi
11349 hardcode_libdir_flag_spec='-L$libdir'
11350 hardcode_direct=yes
11351 hardcode_minus_L=yes
11352 hardcode_shlibpath_var=no
11353 ;;
11354
11355 sysv4)
11356 case $host_vendor in
11357 sni)
11358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11359 hardcode_direct=yes # is this really true???
11360 ;;
11361 siemens)
11362 ## LD is ld it makes a PLAMLIB
11363 ## CC just makes a GrossModule.
11364 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11365 reload_cmds='$CC -r -o $output$reload_objs'
11366 hardcode_direct=no
11367 ;;
11368 motorola)
11369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11371 ;;
11372 esac
11373 runpath_var='LD_RUN_PATH'
11374 hardcode_shlibpath_var=no
11375 ;;
11376
11377 sysv4.3*)
11378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379 hardcode_shlibpath_var=no
11380 export_dynamic_flag_spec='-Bexport'
11381 ;;
11382
11383 sysv4*MP*)
11384 if test -d /usr/nec; then
11385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386 hardcode_shlibpath_var=no
11387 runpath_var=LD_RUN_PATH
11388 hardcode_runpath_var=yes
11389 ld_shlibs=yes
11390 fi
11391 ;;
11392
11393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11394 no_undefined_flag='$wl-z,text'
11395 archive_cmds_need_lc=no
11396 hardcode_shlibpath_var=no
11397 runpath_var='LD_RUN_PATH'
11398
11399 if test yes = "$GCC"; then
11400 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 else
11403 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 fi
11406 ;;
11407
11408 sysv5* | sco3.2v5* | sco5v6*)
11409 # Note: We CANNOT use -z defs as we might desire, because we do not
11410 # link with -lc, and that would cause any symbols used from libc to
11411 # always be unresolved, which means just about no library would
11412 # ever link correctly. If we're not using GNU ld we use -z text
11413 # though, which does catch some bad symbols but isn't as heavy-handed
11414 # as -z defs.
11415 no_undefined_flag='$wl-z,text'
11416 allow_undefined_flag='$wl-z,nodefs'
11417 archive_cmds_need_lc=no
11418 hardcode_shlibpath_var=no
11419 hardcode_libdir_flag_spec='$wl-R,$libdir'
11420 hardcode_libdir_separator=':'
11421 link_all_deplibs=yes
11422 export_dynamic_flag_spec='$wl-Bexport'
11423 runpath_var='LD_RUN_PATH'
11424
11425 if test yes = "$GCC"; then
11426 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428 else
11429 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431 fi
11432 ;;
11433
11434 uts4*)
11435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11436 hardcode_libdir_flag_spec='-L$libdir'
11437 hardcode_shlibpath_var=no
11438 ;;
11439
11440 *)
11441 ld_shlibs=no
11442 ;;
11443 esac
11444
11445 if test sni = "$host_vendor"; then
11446 case $host in
11447 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11448 export_dynamic_flag_spec='$wl-Blargedynsym'
11449 ;;
11450 esac
11451 fi
11452 fi
11453
11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11455 printf "%s\n" "$ld_shlibs" >&6; }
11456 test no = "$ld_shlibs" && can_build_shared=no
11457
11458 with_gnu_ld=$with_gnu_ld
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474 #
11475 # Do we need to explicitly link libc?
11476 #
11477 case "x$archive_cmds_need_lc" in
11478 x|xyes)
11479 # Assume -lc should be added
11480 archive_cmds_need_lc=yes
11481
11482 if test yes,yes = "$GCC,$enable_shared"; then
11483 case $archive_cmds in
11484 *'~'*)
11485 # FIXME: we may have to deal with multi-command sequences.
11486 ;;
11487 '$CC '*)
11488 # Test whether the compiler implicitly links with -lc since on some
11489 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11490 # to ld, don't add -lc before -lgcc.
11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11492 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11493 if test ${lt_cv_archive_cmds_need_lc+y}
11494 then :
11495 printf %s "(cached) " >&6
11496 else case e in #(
11497 e) $RM conftest*
11498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11499
11500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11501 (eval $ac_compile) 2>&5
11502 ac_status=$?
11503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504 test $ac_status = 0; } 2>conftest.err; then
11505 soname=conftest
11506 lib=conftest
11507 libobjs=conftest.$ac_objext
11508 deplibs=
11509 wl=$lt_prog_compiler_wl
11510 pic_flag=$lt_prog_compiler_pic
11511 compiler_flags=-v
11512 linker_flags=-v
11513 verstring=
11514 output_objdir=.
11515 libname=conftest
11516 lt_save_allow_undefined_flag=$allow_undefined_flag
11517 allow_undefined_flag=
11518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11519 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11520 ac_status=$?
11521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11522 test $ac_status = 0; }
11523 then
11524 lt_cv_archive_cmds_need_lc=no
11525 else
11526 lt_cv_archive_cmds_need_lc=yes
11527 fi
11528 allow_undefined_flag=$lt_save_allow_undefined_flag
11529 else
11530 cat conftest.err 1>&5
11531 fi
11532 $RM conftest*
11533 ;;
11534 esac
11535 fi
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11537 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11538 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11539 ;;
11540 esac
11541 fi
11542 ;;
11543 esac
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11697 printf %s "checking dynamic linker characteristics... " >&6; }
11698
11699 if test yes = "$GCC"; then
11700 case $host_os in
11701 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11702 *) lt_awk_arg='/^libraries:/' ;;
11703 esac
11704 case $host_os in
11705 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11706 *) lt_sed_strip_eq='s|=/|/|g' ;;
11707 esac
11708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11709 case $lt_search_path_spec in
11710 *\;*)
11711 # if the path contains ";" then we assume it to be the separator
11712 # otherwise default to the standard path separator (i.e. ":") - it is
11713 # assumed that no part of a normal pathname contains ";" but that should
11714 # okay in the real world where ";" in dirpaths is itself problematic.
11715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11716 ;;
11717 *)
11718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11719 ;;
11720 esac
11721 # Ok, now we have the path, separated by spaces, we can step through it
11722 # and add multilib dir if necessary...
11723 lt_tmp_lt_search_path_spec=
11724 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11725 # ...but if some path component already ends with the multilib dir we assume
11726 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11727 case "$lt_multi_os_dir; $lt_search_path_spec " in
11728 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11729 lt_multi_os_dir=
11730 ;;
11731 esac
11732 for lt_sys_path in $lt_search_path_spec; do
11733 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11734 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11735 elif test -n "$lt_multi_os_dir"; then
11736 test -d "$lt_sys_path" && \
11737 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11738 fi
11739 done
11740 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11741 BEGIN {RS = " "; FS = "/|\n";} {
11742 lt_foo = "";
11743 lt_count = 0;
11744 for (lt_i = NF; lt_i > 0; lt_i--) {
11745 if ($lt_i != "" && $lt_i != ".") {
11746 if ($lt_i == "..") {
11747 lt_count++;
11748 } else {
11749 if (lt_count == 0) {
11750 lt_foo = "/" $lt_i lt_foo;
11751 } else {
11752 lt_count--;
11753 }
11754 }
11755 }
11756 }
11757 if (lt_foo != "") { lt_freq[lt_foo]++; }
11758 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11759 }'`
11760 # AWK program above erroneously prepends '/' to C:/dos/paths
11761 # for these hosts.
11762 case $host_os in
11763 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11764 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11765 esac
11766 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11767 else
11768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11769 fi
11770 library_names_spec=
11771 libname_spec='lib$name'
11772 soname_spec=
11773 shrext_cmds=.so
11774 postinstall_cmds=
11775 postuninstall_cmds=
11776 finish_cmds=
11777 finish_eval=
11778 shlibpath_var=
11779 shlibpath_overrides_runpath=unknown
11780 version_type=none
11781 dynamic_linker="$host_os ld.so"
11782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11783 need_lib_prefix=unknown
11784 hardcode_into_libs=no
11785
11786 # when you set need_version to no, make sure it does not cause -set_version
11787 # flags to be left without arguments
11788 need_version=unknown
11789
11790
11791
11792 case $host_os in
11793 aix3*)
11794 version_type=linux # correct to gnu/linux during the next big refactor
11795 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11796 shlibpath_var=LIBPATH
11797
11798 # AIX 3 has no versioning support, so we append a major version to the name.
11799 soname_spec='$libname$release$shared_ext$major'
11800 ;;
11801
11802 aix[4-9]*)
11803 version_type=linux # correct to gnu/linux during the next big refactor
11804 need_lib_prefix=no
11805 need_version=no
11806 hardcode_into_libs=yes
11807 if test ia64 = "$host_cpu"; then
11808 # AIX 5 supports IA64
11809 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 else
11812 # With GCC up to 2.95.x, collect2 would create an import file
11813 # for dependence libraries. The import file would start with
11814 # the line '#! .'. This would cause the generated library to
11815 # depend on '.', always an invalid library. This was fixed in
11816 # development snapshots of GCC prior to 3.0.
11817 case $host_os in
11818 aix4 | aix4.[01] | aix4.[01].*)
11819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11820 echo ' yes '
11821 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11822 :
11823 else
11824 can_build_shared=no
11825 fi
11826 ;;
11827 esac
11828 # Using Import Files as archive members, it is possible to support
11829 # filename-based versioning of shared library archives on AIX. While
11830 # this would work for both with and without runtime linking, it will
11831 # prevent static linking of such archives. So we do filename-based
11832 # shared library versioning with .so extension only, which is used
11833 # when both runtime linking and shared linking is enabled.
11834 # Unfortunately, runtime linking may impact performance, so we do
11835 # not want this to be the default eventually. Also, we use the
11836 # versioned .so libs for executables only if there is the -brtl
11837 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11838 # To allow for filename-based versioning support, we need to create
11839 # libNAME.so.V as an archive file, containing:
11840 # *) an Import File, referring to the versioned filename of the
11841 # archive as well as the shared archive member, telling the
11842 # bitwidth (32 or 64) of that shared object, and providing the
11843 # list of exported symbols of that shared object, eventually
11844 # decorated with the 'weak' keyword
11845 # *) the shared object with the F_LOADONLY flag set, to really avoid
11846 # it being seen by the linker.
11847 # At run time we better use the real file rather than another symlink,
11848 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11849
11850 case $with_aix_soname,$aix_use_runtimelinking in
11851 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11852 # soname into executable. Probably we can add versioning support to
11853 # collect2, so additional links can be useful in future.
11854 aix,yes) # traditional libtool
11855 dynamic_linker='AIX unversionable lib.so'
11856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11857 # instead of lib<name>.a to let people know that these are not
11858 # typical AIX shared libraries.
11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860 ;;
11861 aix,no) # traditional AIX only
11862 dynamic_linker='AIX lib.a(lib.so.V)'
11863 # We preserve .a as extension for shared libraries through AIX4.2
11864 # and later when we are not doing run time linking.
11865 library_names_spec='$libname$release.a $libname.a'
11866 soname_spec='$libname$release$shared_ext$major'
11867 ;;
11868 svr4,*) # full svr4 only
11869 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11870 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11871 # We do not specify a path in Import Files, so LIBPATH fires.
11872 shlibpath_overrides_runpath=yes
11873 ;;
11874 *,yes) # both, prefer svr4
11875 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11876 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11877 # unpreferred sharedlib libNAME.a needs extra handling
11878 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"'
11879 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"'
11880 # We do not specify a path in Import Files, so LIBPATH fires.
11881 shlibpath_overrides_runpath=yes
11882 ;;
11883 *,no) # both, prefer aix
11884 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11885 library_names_spec='$libname$release.a $libname.a'
11886 soname_spec='$libname$release$shared_ext$major'
11887 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11888 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)'
11889 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"'
11890 ;;
11891 esac
11892 shlibpath_var=LIBPATH
11893 fi
11894 ;;
11895
11896 amigaos*)
11897 case $host_cpu in
11898 powerpc)
11899 # Since July 2007 AmigaOS4 officially supports .so libraries.
11900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902 ;;
11903 m68k)
11904 library_names_spec='$libname.ixlibrary $libname.a'
11905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11906 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'
11907 ;;
11908 esac
11909 ;;
11910
11911 beos*)
11912 library_names_spec='$libname$shared_ext'
11913 dynamic_linker="$host_os ld.so"
11914 shlibpath_var=LIBRARY_PATH
11915 ;;
11916
11917 bsdi[45]*)
11918 version_type=linux # correct to gnu/linux during the next big refactor
11919 need_version=no
11920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11921 soname_spec='$libname$release$shared_ext$major'
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11926 # the default ld.so.conf also contains /usr/contrib/lib and
11927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11928 # libtool to hard-code these into programs
11929 ;;
11930
11931 cygwin* | mingw* | windows* | pw32* | cegcc*)
11932 version_type=windows
11933 shrext_cmds=.dll
11934 need_version=no
11935 need_lib_prefix=no
11936
11937 case $GCC,$cc_basename in
11938 yes,*)
11939 # gcc
11940 library_names_spec='$libname.dll.a'
11941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11942 # If user builds GCC with multilib enabled,
11943 # it should just install on $(libdir)
11944 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11945 if test xyes = x"$multilib"; then
11946 postinstall_cmds='base_file=`basename \$file`~
11947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11948 dldir=$destdir/`dirname \$dlpath`~
11949 $install_prog $dir/$dlname $destdir/$dlname~
11950 chmod a+x $destdir/$dlname~
11951 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11952 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11953 fi'
11954 else
11955 postinstall_cmds='base_file=`basename \$file`~
11956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11957 dldir=$destdir/`dirname \$dlpath`~
11958 test -d \$dldir || mkdir -p \$dldir~
11959 $install_prog $dir/$dlname \$dldir/$dlname~
11960 chmod a+x \$dldir/$dlname~
11961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11963 fi'
11964 fi
11965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11966 dlpath=$dir/\$dldll~
11967 $RM \$dlpath'
11968 shlibpath_overrides_runpath=yes
11969
11970 case $host_os in
11971 cygwin*)
11972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11973 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11974
11975 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11976 ;;
11977 mingw* | windows* | cegcc*)
11978 # MinGW DLLs use traditional 'lib' prefix
11979 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11980 ;;
11981 pw32*)
11982 # pw32 DLLs use 'pw' prefix rather than 'lib'
11983 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11984 ;;
11985 esac
11986 dynamic_linker='Win32 ld.exe'
11987 ;;
11988
11989 *,cl* | *,icl*)
11990 # Native MSVC or ICC
11991 libname_spec='$name'
11992 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11993 library_names_spec='$libname.dll.lib'
11994
11995 case $build_os in
11996 mingw* | windows*)
11997 sys_lib_search_path_spec=
11998 lt_save_ifs=$IFS
11999 IFS=';'
12000 for lt_path in $LIB
12001 do
12002 IFS=$lt_save_ifs
12003 # Let DOS variable expansion print the short 8.3 style file name.
12004 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12005 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12006 done
12007 IFS=$lt_save_ifs
12008 # Convert to MSYS style.
12009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12010 ;;
12011 cygwin*)
12012 # Convert to unix form, then to dos form, then back to unix form
12013 # but this time dos style (no spaces!) so that the unix form looks
12014 # like /cygdrive/c/PROGRA~1:/cygdr...
12015 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12016 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12017 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12018 ;;
12019 *)
12020 sys_lib_search_path_spec=$LIB
12021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12022 # It is most probably a Windows format PATH.
12023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12024 else
12025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12026 fi
12027 # FIXME: find the short name or the path components, as spaces are
12028 # common. (e.g. "Program Files" -> "PROGRA~1")
12029 ;;
12030 esac
12031
12032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12033 postinstall_cmds='base_file=`basename \$file`~
12034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12035 dldir=$destdir/`dirname \$dlpath`~
12036 test -d \$dldir || mkdir -p \$dldir~
12037 $install_prog $dir/$dlname \$dldir/$dlname'
12038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12039 dlpath=$dir/\$dldll~
12040 $RM \$dlpath'
12041 shlibpath_overrides_runpath=yes
12042 dynamic_linker='Win32 link.exe'
12043 ;;
12044
12045 *)
12046 # Assume MSVC and ICC wrapper
12047 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12048 dynamic_linker='Win32 ld.exe'
12049 ;;
12050 esac
12051 # FIXME: first we should search . and the directory the executable is in
12052 shlibpath_var=PATH
12053 ;;
12054
12055 darwin* | rhapsody*)
12056 dynamic_linker="$host_os dyld"
12057 version_type=darwin
12058 need_lib_prefix=no
12059 need_version=no
12060 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12061 soname_spec='$libname$release$major$shared_ext'
12062 shlibpath_overrides_runpath=yes
12063 shlibpath_var=DYLD_LIBRARY_PATH
12064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12065
12066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12068 ;;
12069
12070 dgux*)
12071 version_type=linux # correct to gnu/linux during the next big refactor
12072 need_lib_prefix=no
12073 need_version=no
12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12075 soname_spec='$libname$release$shared_ext$major'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 ;;
12078
12079 freebsd* | dragonfly* | midnightbsd*)
12080 # DragonFly does not have aout. When/if they implement a new
12081 # versioning mechanism, adjust this.
12082 if test -x /usr/bin/objformat; then
12083 objformat=`/usr/bin/objformat`
12084 else
12085 case $host_os in
12086 freebsd[23].*) objformat=aout ;;
12087 *) objformat=elf ;;
12088 esac
12089 fi
12090 version_type=freebsd-$objformat
12091 case $version_type in
12092 freebsd-elf*)
12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12094 soname_spec='$libname$release$shared_ext$major'
12095 need_version=no
12096 need_lib_prefix=no
12097 ;;
12098 freebsd-*)
12099 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12100 need_version=yes
12101 ;;
12102 esac
12103 case $host_cpu in
12104 powerpc64)
12105 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12106 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 int test_pointer_size[sizeof (void *) - 5];
12110
12111 _ACEOF
12112 if ac_fn_c_try_compile "$LINENO"
12113 then :
12114 shlibpath_var=LD_LIBRARY_PATH
12115 else case e in #(
12116 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12117 esac
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12120 ;;
12121 *)
12122 shlibpath_var=LD_LIBRARY_PATH
12123 ;;
12124 esac
12125 case $host_os in
12126 freebsd2.*)
12127 shlibpath_overrides_runpath=yes
12128 ;;
12129 freebsd3.[01]* | freebsdelf3.[01]*)
12130 shlibpath_overrides_runpath=yes
12131 hardcode_into_libs=yes
12132 ;;
12133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12135 shlibpath_overrides_runpath=no
12136 hardcode_into_libs=yes
12137 ;;
12138 *) # from 4.6 on, and DragonFly
12139 shlibpath_overrides_runpath=yes
12140 hardcode_into_libs=yes
12141 ;;
12142 esac
12143 ;;
12144
12145 haiku*)
12146 version_type=linux # correct to gnu/linux during the next big refactor
12147 need_lib_prefix=no
12148 need_version=no
12149 dynamic_linker="$host_os runtime_loader"
12150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12151 soname_spec='$libname$release$shared_ext$major'
12152 shlibpath_var=LIBRARY_PATH
12153 shlibpath_overrides_runpath=no
12154 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12155 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12156 hardcode_into_libs=no
12157 ;;
12158
12159 hpux9* | hpux10* | hpux11*)
12160 # Give a soname corresponding to the major version so that dld.sl refuses to
12161 # link against other versions.
12162 version_type=sunos
12163 need_lib_prefix=no
12164 need_version=no
12165 case $host_cpu in
12166 ia64*)
12167 shrext_cmds='.so'
12168 hardcode_into_libs=yes
12169 dynamic_linker="$host_os dld.so"
12170 shlibpath_var=LD_LIBRARY_PATH
12171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12173 soname_spec='$libname$release$shared_ext$major'
12174 if test 32 = "$HPUX_IA64_MODE"; then
12175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12176 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12177 else
12178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12179 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12180 fi
12181 ;;
12182 hppa*64*)
12183 shrext_cmds='.sl'
12184 hardcode_into_libs=yes
12185 dynamic_linker="$host_os dld.sl"
12186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189 soname_spec='$libname$release$shared_ext$major'
12190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12192 ;;
12193 *)
12194 shrext_cmds='.sl'
12195 dynamic_linker="$host_os dld.sl"
12196 shlibpath_var=SHLIB_PATH
12197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12200 ;;
12201 esac
12202 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12203 postinstall_cmds='chmod 555 $lib'
12204 # or fails outright, so override atomically:
12205 install_override_mode=555
12206 ;;
12207
12208 interix[3-9]*)
12209 version_type=linux # correct to gnu/linux during the next big refactor
12210 need_lib_prefix=no
12211 need_version=no
12212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12213 soname_spec='$libname$release$shared_ext$major'
12214 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12215 shlibpath_var=LD_LIBRARY_PATH
12216 shlibpath_overrides_runpath=no
12217 hardcode_into_libs=yes
12218 ;;
12219
12220 irix5* | irix6* | nonstopux*)
12221 case $host_os in
12222 nonstopux*) version_type=nonstopux ;;
12223 *)
12224 if test yes = "$lt_cv_prog_gnu_ld"; then
12225 version_type=linux # correct to gnu/linux during the next big refactor
12226 else
12227 version_type=irix
12228 fi ;;
12229 esac
12230 need_lib_prefix=no
12231 need_version=no
12232 soname_spec='$libname$release$shared_ext$major'
12233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12234 case $host_os in
12235 irix5* | nonstopux*)
12236 libsuff= shlibsuff=
12237 ;;
12238 *)
12239 case $LD in # libtool.m4 will add one of these switches to LD
12240 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12241 libsuff= shlibsuff= libmagic=32-bit;;
12242 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12243 libsuff=32 shlibsuff=N32 libmagic=N32;;
12244 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12245 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12246 *) libsuff= shlibsuff= libmagic=never-match;;
12247 esac
12248 ;;
12249 esac
12250 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12251 shlibpath_overrides_runpath=no
12252 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12253 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12254 hardcode_into_libs=yes
12255 ;;
12256
12257 # No shared lib support for Linux oldld, aout, or coff.
12258 linux*oldld* | linux*aout* | linux*coff*)
12259 dynamic_linker=no
12260 ;;
12261
12262 linux*android*)
12263 version_type=none # Android doesn't support versioned libraries.
12264 need_lib_prefix=no
12265 need_version=no
12266 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12267 soname_spec='$libname$release$shared_ext'
12268 finish_cmds=
12269 shlibpath_var=LD_LIBRARY_PATH
12270 shlibpath_overrides_runpath=yes
12271
12272 # This implies no fast_install, which is unacceptable.
12273 # Some rework will be needed to allow for fast_install
12274 # before this can be enabled.
12275 hardcode_into_libs=yes
12276
12277 dynamic_linker='Android linker'
12278 # -rpath works at least for libraries that are not overridden by
12279 # libraries installed in system locations.
12280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12281 ;;
12282
12283 # This must be glibc/ELF.
12284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12285 version_type=linux # correct to gnu/linux during the next big refactor
12286 need_lib_prefix=no
12287 need_version=no
12288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12289 soname_spec='$libname$release$shared_ext$major'
12290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 shlibpath_overrides_runpath=no
12293
12294 # Some binutils ld are patched to set DT_RUNPATH
12295 if test ${lt_cv_shlibpath_overrides_runpath+y}
12296 then :
12297 printf %s "(cached) " >&6
12298 else case e in #(
12299 e) lt_cv_shlibpath_overrides_runpath=no
12300 save_LDFLAGS=$LDFLAGS
12301 save_libdir=$libdir
12302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306
12307 int
12308 main (void)
12309 {
12310
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"
12316 then :
12317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12318 then :
12319 lt_cv_shlibpath_overrides_runpath=yes
12320 fi
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LDFLAGS=$save_LDFLAGS
12325 libdir=$save_libdir
12326 ;;
12327 esac
12328 fi
12329
12330 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12331
12332 # This implies no fast_install, which is unacceptable.
12333 # Some rework will be needed to allow for fast_install
12334 # before this can be enabled.
12335 hardcode_into_libs=yes
12336
12337 # Ideally, we could use ldconfig to report *all* directories which are
12338 # searched for libraries, however this is still not possible. Aside from not
12339 # being certain /sbin/ldconfig is available, command
12340 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12341 # even though it is searched at run-time. Try to do the best guess by
12342 # appending ld.so.conf contents (and includes) to the search path.
12343 if test -f /etc/ld.so.conf; then
12344 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' ' '`
12345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12346 fi
12347
12348 # We used to test for /lib/ld.so.1 and disable shared libraries on
12349 # powerpc, because MkLinux only supported shared libraries with the
12350 # GNU dynamic linker. Since this was broken with cross compilers,
12351 # most powerpc-linux boxes support dynamic linking these days and
12352 # people can always --disable-shared, the test was removed, and we
12353 # assume the GNU/Linux dynamic linker is in use.
12354 dynamic_linker='GNU/Linux ld.so'
12355 ;;
12356
12357 netbsdelf*-gnu)
12358 version_type=linux
12359 need_lib_prefix=no
12360 need_version=no
12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12362 soname_spec='$libname$release$shared_ext$major'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=no
12365 hardcode_into_libs=yes
12366 dynamic_linker='NetBSD ld.elf_so'
12367 ;;
12368
12369 netbsdelf*-gnu)
12370 version_type=linux
12371 need_lib_prefix=no
12372 need_version=no
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 shlibpath_overrides_runpath=no
12377 hardcode_into_libs=yes
12378 dynamic_linker='NetBSD ld.elf_so'
12379 ;;
12380
12381 netbsd*)
12382 version_type=sunos
12383 need_lib_prefix=no
12384 need_version=no
12385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12386 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12388 dynamic_linker='NetBSD (a.out) ld.so'
12389 else
12390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391 soname_spec='$libname$release$shared_ext$major'
12392 dynamic_linker='NetBSD ld.elf_so'
12393 fi
12394 shlibpath_var=LD_LIBRARY_PATH
12395 shlibpath_overrides_runpath=yes
12396 hardcode_into_libs=yes
12397 ;;
12398
12399 *-mlibc)
12400 version_type=linux # correct to gnu/linux during the next big refactor
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 soname_spec='$libname$release$shared_ext$major'
12405 dynamic_linker='mlibc ld.so'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 hardcode_into_libs=yes
12409 ;;
12410
12411 newsos6)
12412 version_type=linux # correct to gnu/linux during the next big refactor
12413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes
12416 ;;
12417
12418 *nto* | *qnx*)
12419 version_type=qnx
12420 need_lib_prefix=no
12421 need_version=no
12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12423 soname_spec='$libname$release$shared_ext$major'
12424 shlibpath_var=LD_LIBRARY_PATH
12425 shlibpath_overrides_runpath=no
12426 hardcode_into_libs=yes
12427 dynamic_linker='ldqnx.so'
12428 ;;
12429
12430 openbsd*)
12431 version_type=sunos
12432 sys_lib_dlsearch_path_spec=/usr/lib
12433 need_lib_prefix=no
12434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12435 need_version=no
12436 else
12437 need_version=yes
12438 fi
12439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 shlibpath_overrides_runpath=yes
12443 ;;
12444
12445 os2*)
12446 libname_spec='$name'
12447 version_type=windows
12448 shrext_cmds=.dll
12449 need_version=no
12450 need_lib_prefix=no
12451 # OS/2 can only load a DLL with a base name of 8 characters or less.
12452 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12453 v=$($ECHO $release$versuffix | tr -d .-);
12454 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12455 $ECHO $n$v`$shared_ext'
12456 library_names_spec='${libname}_dll.$libext'
12457 dynamic_linker='OS/2 ld.exe'
12458 shlibpath_var=BEGINLIBPATH
12459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12461 postinstall_cmds='base_file=`basename \$file`~
12462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12463 dldir=$destdir/`dirname \$dlpath`~
12464 test -d \$dldir || mkdir -p \$dldir~
12465 $install_prog $dir/$dlname \$dldir/$dlname~
12466 chmod a+x \$dldir/$dlname~
12467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12469 fi'
12470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12471 dlpath=$dir/\$dldll~
12472 $RM \$dlpath'
12473 ;;
12474
12475 osf3* | osf4* | osf5*)
12476 version_type=osf
12477 need_lib_prefix=no
12478 need_version=no
12479 soname_spec='$libname$release$shared_ext$major'
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481 shlibpath_var=LD_LIBRARY_PATH
12482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12484 ;;
12485
12486 rdos*)
12487 dynamic_linker=no
12488 ;;
12489
12490 serenity*)
12491 version_type=linux # correct to gnu/linux during the next big refactor
12492 need_lib_prefix=no
12493 need_version=no
12494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12495 soname_spec='$libname$release$shared_ext$major'
12496 shlibpath_var=LD_LIBRARY_PATH
12497 shlibpath_overrides_runpath=no
12498 dynamic_linker='SerenityOS LibELF'
12499 ;;
12500
12501 solaris*)
12502 version_type=linux # correct to gnu/linux during the next big refactor
12503 need_lib_prefix=no
12504 need_version=no
12505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12506 soname_spec='$libname$release$shared_ext$major'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 shlibpath_overrides_runpath=yes
12509 hardcode_into_libs=yes
12510 # ldd complains unless libraries are executable
12511 postinstall_cmds='chmod +x $lib'
12512 ;;
12513
12514 sunos4*)
12515 version_type=sunos
12516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12518 shlibpath_var=LD_LIBRARY_PATH
12519 shlibpath_overrides_runpath=yes
12520 if test yes = "$with_gnu_ld"; then
12521 need_lib_prefix=no
12522 fi
12523 need_version=yes
12524 ;;
12525
12526 sysv4 | sysv4.3*)
12527 version_type=linux # correct to gnu/linux during the next big refactor
12528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12529 soname_spec='$libname$release$shared_ext$major'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 case $host_vendor in
12532 sni)
12533 shlibpath_overrides_runpath=no
12534 need_lib_prefix=no
12535 runpath_var=LD_RUN_PATH
12536 ;;
12537 siemens)
12538 need_lib_prefix=no
12539 ;;
12540 motorola)
12541 need_lib_prefix=no
12542 need_version=no
12543 shlibpath_overrides_runpath=no
12544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12545 ;;
12546 esac
12547 ;;
12548
12549 sysv4*MP*)
12550 if test -d /usr/nec; then
12551 version_type=linux # correct to gnu/linux during the next big refactor
12552 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12553 soname_spec='$libname$shared_ext.$major'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 fi
12556 ;;
12557
12558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12559 version_type=sco
12560 need_lib_prefix=no
12561 need_version=no
12562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12563 soname_spec='$libname$release$shared_ext$major'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 shlibpath_overrides_runpath=yes
12566 hardcode_into_libs=yes
12567 if test yes = "$with_gnu_ld"; then
12568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12569 else
12570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12571 case $host_os in
12572 sco3.2v5*)
12573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12574 ;;
12575 esac
12576 fi
12577 sys_lib_dlsearch_path_spec='/usr/lib'
12578 ;;
12579
12580 tpf*)
12581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 need_lib_prefix=no
12584 need_version=no
12585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=no
12588 hardcode_into_libs=yes
12589 ;;
12590
12591 uts4*)
12592 version_type=linux # correct to gnu/linux during the next big refactor
12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12594 soname_spec='$libname$release$shared_ext$major'
12595 shlibpath_var=LD_LIBRARY_PATH
12596 ;;
12597
12598 emscripten*)
12599 version_type=none
12600 need_lib_prefix=no
12601 need_version=no
12602 library_names_spec='$libname$release$shared_ext'
12603 soname_spec='$libname$release$shared_ext'
12604 finish_cmds=
12605 dynamic_linker="Emscripten linker"
12606 lt_prog_compiler_wl=
12607 lt_prog_compiler_pic=
12608 lt_prog_compiler_static=
12609
12610
12611 if test yes = "$GCC"; then
12612 lt_prog_compiler_wl='-Wl,'
12613 lt_prog_compiler_static='-static'
12614
12615 case $host_os in
12616 aix*)
12617 # All AIX code is PIC.
12618 if test ia64 = "$host_cpu"; then
12619 # AIX 5 now supports IA64 processor
12620 lt_prog_compiler_static='-Bstatic'
12621 fi
12622 lt_prog_compiler_pic='-fPIC'
12623 ;;
12624
12625 amigaos*)
12626 case $host_cpu in
12627 powerpc)
12628 # see comment about AmigaOS4 .so support
12629 lt_prog_compiler_pic='-fPIC'
12630 ;;
12631 m68k)
12632 # FIXME: we need at least 68020 code to build shared libraries, but
12633 # adding the '-m68020' flag to GCC prevents building anything better,
12634 # like '-m68040'.
12635 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12636 ;;
12637 esac
12638 ;;
12639
12640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12641 # PIC is the default for these OSes.
12642 ;;
12643
12644 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12645 # This hack is so that the source file can tell whether it is being
12646 # built for inclusion in a dll (and should export symbols for example).
12647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12648 # (--disable-auto-import) libraries
12649 lt_prog_compiler_pic='-DDLL_EXPORT'
12650 case $host_os in
12651 os2*)
12652 lt_prog_compiler_static='$wl-static'
12653 ;;
12654 esac
12655 ;;
12656
12657 darwin* | rhapsody*)
12658 # PIC is the default on this platform
12659 # Common symbols not allowed in MH_DYLIB files
12660 lt_prog_compiler_pic='-fno-common'
12661 ;;
12662
12663 haiku*)
12664 # PIC is the default for Haiku.
12665 # The "-static" flag exists, but is broken.
12666 lt_prog_compiler_static=
12667 ;;
12668
12669 hpux*)
12670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12672 # sets the default TLS model and affects inlining.
12673 case $host_cpu in
12674 hppa*64*)
12675 # +Z the default
12676 ;;
12677 *)
12678 lt_prog_compiler_pic='-fPIC'
12679 ;;
12680 esac
12681 ;;
12682
12683 interix[3-9]*)
12684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12685 # Instead, we relocate shared libraries at runtime.
12686 ;;
12687
12688 msdosdjgpp*)
12689 # Just because we use GCC doesn't mean we suddenly get shared libraries
12690 # on systems that don't support them.
12691 lt_prog_compiler_can_build_shared=no
12692 enable_shared=no
12693 ;;
12694
12695 *nto* | *qnx*)
12696 # QNX uses GNU C++, but need to define -shared option too, otherwise
12697 # it will coredump.
12698 lt_prog_compiler_pic='-fPIC -shared'
12699 ;;
12700
12701 sysv4*MP*)
12702 if test -d /usr/nec; then
12703 lt_prog_compiler_pic=-Kconform_pic
12704 fi
12705 ;;
12706
12707 *)
12708 lt_prog_compiler_pic='-fPIC'
12709 ;;
12710 esac
12711
12712 case $cc_basename in
12713 nvcc*) # Cuda Compiler Driver 2.2
12714 lt_prog_compiler_wl='-Xlinker '
12715 if test -n "$lt_prog_compiler_pic"; then
12716 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12717 fi
12718 ;;
12719 esac
12720 else
12721 # PORTME Check for flag to pass linker flags through the system compiler.
12722 case $host_os in
12723 aix*)
12724 lt_prog_compiler_wl='-Wl,'
12725 if test ia64 = "$host_cpu"; then
12726 # AIX 5 now supports IA64 processor
12727 lt_prog_compiler_static='-Bstatic'
12728 else
12729 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12730 fi
12731 ;;
12732
12733 darwin* | rhapsody*)
12734 # PIC is the default on this platform
12735 # Common symbols not allowed in MH_DYLIB files
12736 lt_prog_compiler_pic='-fno-common'
12737 case $cc_basename in
12738 nagfor*)
12739 # NAG Fortran compiler
12740 lt_prog_compiler_wl='-Wl,-Wl,,'
12741 lt_prog_compiler_pic='-PIC'
12742 lt_prog_compiler_static='-Bstatic'
12743 ;;
12744 esac
12745 ;;
12746
12747 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12748 # This hack is so that the source file can tell whether it is being
12749 # built for inclusion in a dll (and should export symbols for example).
12750 lt_prog_compiler_pic='-DDLL_EXPORT'
12751 case $host_os in
12752 os2*)
12753 lt_prog_compiler_static='$wl-static'
12754 ;;
12755 esac
12756 ;;
12757
12758 hpux9* | hpux10* | hpux11*)
12759 lt_prog_compiler_wl='-Wl,'
12760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12761 # not for PA HP-UX.
12762 case $host_cpu in
12763 hppa*64*|ia64*)
12764 # +Z the default
12765 ;;
12766 *)
12767 lt_prog_compiler_pic='+Z'
12768 ;;
12769 esac
12770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12771 lt_prog_compiler_static='$wl-a ${wl}archive'
12772 ;;
12773
12774 irix5* | irix6* | nonstopux*)
12775 lt_prog_compiler_wl='-Wl,'
12776 # PIC (with -KPIC) is the default.
12777 lt_prog_compiler_static='-non_shared'
12778 ;;
12779
12780 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12781 case $cc_basename in
12782 # old Intel for x86_64, which still supported -KPIC.
12783 ecc*)
12784 lt_prog_compiler_wl='-Wl,'
12785 lt_prog_compiler_pic='-KPIC'
12786 lt_prog_compiler_static='-static'
12787 ;;
12788 *flang* | ftn | f18* | f95*)
12789 # Flang compiler.
12790 lt_prog_compiler_wl='-Wl,'
12791 lt_prog_compiler_pic='-fPIC'
12792 lt_prog_compiler_static='-static'
12793 ;;
12794 # flang / f18. f95 an alias for gfortran or flang on Debian
12795 flang* | f18* | f95*)
12796 lt_prog_compiler_wl='-Wl,'
12797 lt_prog_compiler_pic='-fPIC'
12798 lt_prog_compiler_static='-static'
12799 ;;
12800 # icc used to be incompatible with GCC.
12801 # ICC 10 doesn't accept -KPIC any more.
12802 icc* | ifort*)
12803 lt_prog_compiler_wl='-Wl,'
12804 lt_prog_compiler_pic='-fPIC'
12805 lt_prog_compiler_static='-static'
12806 ;;
12807 # Lahey Fortran 8.1.
12808 lf95*)
12809 lt_prog_compiler_wl='-Wl,'
12810 lt_prog_compiler_pic='--shared'
12811 lt_prog_compiler_static='--static'
12812 ;;
12813 nagfor*)
12814 # NAG Fortran compiler
12815 lt_prog_compiler_wl='-Wl,-Wl,,'
12816 lt_prog_compiler_pic='-PIC'
12817 lt_prog_compiler_static='-Bstatic'
12818 ;;
12819 tcc*)
12820 # Fabrice Bellard et al's Tiny C Compiler
12821 lt_prog_compiler_wl='-Wl,'
12822 lt_prog_compiler_pic='-fPIC'
12823 lt_prog_compiler_static='-static'
12824 ;;
12825 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12826 # Portland Group compilers (*not* the Pentium gcc compiler,
12827 # which looks to be a dead project)
12828 lt_prog_compiler_wl='-Wl,'
12829 lt_prog_compiler_pic='-fpic'
12830 lt_prog_compiler_static='-Bstatic'
12831 ;;
12832 ccc*)
12833 lt_prog_compiler_wl='-Wl,'
12834 # All Alpha code is PIC.
12835 lt_prog_compiler_static='-non_shared'
12836 ;;
12837 xl* | bgxl* | bgf* | mpixl*)
12838 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12839 lt_prog_compiler_wl='-Wl,'
12840 lt_prog_compiler_pic='-qpic'
12841 lt_prog_compiler_static='-qstaticlink'
12842 ;;
12843 *)
12844 case `$CC -V 2>&1 | $SED 5q` in
12845 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12846 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12847 lt_prog_compiler_pic='-KPIC'
12848 lt_prog_compiler_static='-Bstatic'
12849 lt_prog_compiler_wl=''
12850 ;;
12851 *Sun\ F* | *Sun*Fortran*)
12852 lt_prog_compiler_pic='-KPIC'
12853 lt_prog_compiler_static='-Bstatic'
12854 lt_prog_compiler_wl='-Qoption ld '
12855 ;;
12856 *Sun\ C*)
12857 # Sun C 5.9
12858 lt_prog_compiler_pic='-KPIC'
12859 lt_prog_compiler_static='-Bstatic'
12860 lt_prog_compiler_wl='-Wl,'
12861 ;;
12862 *Intel*\ [CF]*Compiler*)
12863 lt_prog_compiler_wl='-Wl,'
12864 lt_prog_compiler_pic='-fPIC'
12865 lt_prog_compiler_static='-static'
12866 ;;
12867 *Portland\ Group*)
12868 lt_prog_compiler_wl='-Wl,'
12869 lt_prog_compiler_pic='-fpic'
12870 lt_prog_compiler_static='-Bstatic'
12871 ;;
12872 esac
12873 ;;
12874 esac
12875 ;;
12876
12877 newsos6)
12878 lt_prog_compiler_pic='-KPIC'
12879 lt_prog_compiler_static='-Bstatic'
12880 ;;
12881
12882 *-mlibc)
12883 lt_prog_compiler_wl='-Wl,'
12884 lt_prog_compiler_pic='-fPIC'
12885 lt_prog_compiler_static='-static'
12886 ;;
12887
12888 *nto* | *qnx*)
12889 # QNX uses GNU C++, but need to define -shared option too, otherwise
12890 # it will coredump.
12891 lt_prog_compiler_pic='-fPIC -shared'
12892 ;;
12893
12894 osf3* | osf4* | osf5*)
12895 lt_prog_compiler_wl='-Wl,'
12896 # All OSF/1 code is PIC.
12897 lt_prog_compiler_static='-non_shared'
12898 ;;
12899
12900 rdos*)
12901 lt_prog_compiler_static='-non_shared'
12902 ;;
12903
12904 serenity*)
12905 ;;
12906
12907 solaris*)
12908 lt_prog_compiler_pic='-KPIC'
12909 lt_prog_compiler_static='-Bstatic'
12910 case $cc_basename in
12911 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12912 lt_prog_compiler_wl='-Qoption ld ';;
12913 *)
12914 lt_prog_compiler_wl='-Wl,';;
12915 esac
12916 ;;
12917
12918 sunos4*)
12919 lt_prog_compiler_wl='-Qoption ld '
12920 lt_prog_compiler_pic='-PIC'
12921 lt_prog_compiler_static='-Bstatic'
12922 ;;
12923
12924 sysv4 | sysv4.2uw2* | sysv4.3*)
12925 lt_prog_compiler_wl='-Wl,'
12926 lt_prog_compiler_pic='-KPIC'
12927 lt_prog_compiler_static='-Bstatic'
12928 ;;
12929
12930 sysv4*MP*)
12931 if test -d /usr/nec; then
12932 lt_prog_compiler_pic='-Kconform_pic'
12933 lt_prog_compiler_static='-Bstatic'
12934 fi
12935 ;;
12936
12937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12938 lt_prog_compiler_wl='-Wl,'
12939 lt_prog_compiler_pic='-KPIC'
12940 lt_prog_compiler_static='-Bstatic'
12941 ;;
12942
12943 unicos*)
12944 lt_prog_compiler_wl='-Wl,'
12945 lt_prog_compiler_can_build_shared=no
12946 ;;
12947
12948 uts4*)
12949 lt_prog_compiler_pic='-pic'
12950 lt_prog_compiler_static='-Bstatic'
12951 ;;
12952
12953 *)
12954 lt_prog_compiler_can_build_shared=no
12955 ;;
12956 esac
12957 fi
12958
12959 case $host_os in
12960 # For platforms that do not support PIC, -DPIC is meaningless:
12961 *djgpp*)
12962 lt_prog_compiler_pic=
12963 ;;
12964 *)
12965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12966 ;;
12967 esac
12968
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12970 printf %s "checking for $compiler option to produce PIC... " >&6; }
12971 if test ${lt_cv_prog_compiler_pic+y}
12972 then :
12973 printf %s "(cached) " >&6
12974 else case e in #(
12975 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12976 esac
12977 fi
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12979 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12980 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12981
12982 #
12983 # Check to make sure the PIC flag actually works.
12984 #
12985 if test -n "$lt_prog_compiler_pic"; then
12986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12987 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12988 if test ${lt_cv_prog_compiler_pic_works+y}
12989 then :
12990 printf %s "(cached) " >&6
12991 else case e in #(
12992 e) lt_cv_prog_compiler_pic_works=no
12993 ac_outfile=conftest.$ac_objext
12994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12996 # Insert the option either (1) after the last *FLAGS variable, or
12997 # (2) before a word containing "conftest.", or (3) at the end.
12998 # Note that $ac_compile itself does not contain backslashes and begins
12999 # with a dollar sign (not a hyphen), so the echo should work correctly.
13000 # The option is referenced via a variable to avoid confusing sed.
13001 lt_compile=`echo "$ac_compile" | $SED \
13002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13004 -e 's:$: $lt_compiler_flag:'`
13005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13006 (eval "$lt_compile" 2>conftest.err)
13007 ac_status=$?
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 if (exit $ac_status) && test -s "$ac_outfile"; then
13011 # The compiler can only warn and ignore the option if not recognized
13012 # So say no if there are warnings other than the usual output.
13013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13016 lt_cv_prog_compiler_pic_works=yes
13017 fi
13018 fi
13019 $RM conftest*
13020 ;;
13021 esac
13022 fi
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13024 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13025
13026 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13027 case $lt_prog_compiler_pic in
13028 "" | " "*) ;;
13029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13030 esac
13031 else
13032 lt_prog_compiler_pic=
13033 lt_prog_compiler_can_build_shared=no
13034 fi
13035
13036 fi
13037
13038
13039
13040
13041
13042 #
13043 # Check to make sure the static flag actually works.
13044 #
13045 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13047 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13048 if test ${lt_cv_prog_compiler_static_works+y}
13049 then :
13050 printf %s "(cached) " >&6
13051 else case e in #(
13052 e) lt_cv_prog_compiler_static_works=no
13053 save_LDFLAGS=$LDFLAGS
13054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13057 # The linker can only warn and ignore the option if not recognized
13058 # So say no if there are warnings
13059 if test -s conftest.err; then
13060 # Append any errors to the config.log.
13061 cat conftest.err 1>&5
13062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13064 if diff conftest.exp conftest.er2 >/dev/null; then
13065 lt_cv_prog_compiler_static_works=yes
13066 fi
13067 else
13068 lt_cv_prog_compiler_static_works=yes
13069 fi
13070 fi
13071 $RM -r conftest*
13072 LDFLAGS=$save_LDFLAGS
13073 ;;
13074 esac
13075 fi
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13077 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13078
13079 if test yes = "$lt_cv_prog_compiler_static_works"; then
13080 :
13081 else
13082 lt_prog_compiler_static=
13083 fi
13084
13085
13086
13087 ='-fPIC'
13088 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13089 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'
13090 archive_cmds_need_lc=no
13091 no_undefined_flag=
13092 ;;
13093
13094 *)
13095 dynamic_linker=no
13096 ;;
13097 esac
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13099 printf "%s\n" "$dynamic_linker" >&6; }
13100 test no = "$dynamic_linker" && can_build_shared=no
13101
13102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13103 if test yes = "$GCC"; then
13104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13105 fi
13106
13107 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13108 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13109 fi
13110
13111 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13112 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13113 fi
13114
13115 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13116 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13117
13118 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13119 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13120
13121 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13122 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13221 printf %s "checking how to hardcode library paths into programs... " >&6; }
13222 hardcode_action=
13223 if test -n "$hardcode_libdir_flag_spec" ||
13224 test -n "$runpath_var" ||
13225 test yes = "$hardcode_automatic"; then
13226
13227 # We can hardcode non-existent directories.
13228 if test no != "$hardcode_direct" &&
13229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230 # have to relink, otherwise we might link with an installed library
13231 # when we should be linking with a yet-to-be-installed one
13232 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13233 test no != "$hardcode_minus_L"; then
13234 # Linking always hardcodes the temporary library directory.
13235 hardcode_action=relink
13236 else
13237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238 hardcode_action=immediate
13239 fi
13240 else
13241 # We cannot hardcode anything, or else we can only hardcode existing
13242 # directories.
13243 hardcode_action=unsupported
13244 fi
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13246 printf "%s\n" "$hardcode_action" >&6; }
13247
13248 if test relink = "$hardcode_action" ||
13249 test yes = "$inherit_rpath"; then
13250 # Fast installation is not supported
13251 enable_fast_install=no
13252 elif test yes = "$shlibpath_overrides_runpath" ||
13253 test no = "$enable_shared"; then
13254 # Fast installation is not necessary
13255 enable_fast_install=needless
13256 fi
13257
13258
13259
13260
13261
13262
13263 if test yes != "$enable_dlopen"; then
13264 enable_dlopen=unknown
13265 enable_dlopen_self=unknown
13266 enable_dlopen_self_static=unknown
13267 else
13268 lt_cv_dlopen=no
13269 lt_cv_dlopen_libs=
13270
13271 case $host_os in
13272 beos*)
13273 lt_cv_dlopen=load_add_on
13274 lt_cv_dlopen_libs=
13275 lt_cv_dlopen_self=yes
13276 ;;
13277
13278 mingw* | windows* | pw32* | cegcc*)
13279 lt_cv_dlopen=LoadLibrary
13280 lt_cv_dlopen_libs=
13281 ;;
13282
13283 cygwin*)
13284 lt_cv_dlopen=dlopen
13285 lt_cv_dlopen_libs=
13286 ;;
13287
13288 darwin*)
13289 # if libdl is installed we need to link against it
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13291 printf %s "checking for dlopen in -ldl... " >&6; }
13292 if test ${ac_cv_lib_dl_dlopen+y}
13293 then :
13294 printf %s "(cached) " >&6
13295 else case e in #(
13296 e) ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-ldl $LIBS"
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply.
13304 The 'extern "C"' is for builds by C++ compilers;
13305 although this is not generally supported in C code supporting it here
13306 has little cost and some practical benefit (sr 110532). */
13307 #ifdef __cplusplus
13308 extern "C"
13309 #endif
13310 char dlopen (void);
13311 int
13312 main (void)
13313 {
13314 return dlopen ();
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_c_try_link "$LINENO"
13320 then :
13321 ac_cv_lib_dl_dlopen=yes
13322 else case e in #(
13323 e) ac_cv_lib_dl_dlopen=no ;;
13324 esac
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS ;;
13329 esac
13330 fi
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13332 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13333 if test "x$ac_cv_lib_dl_dlopen" = xyes
13334 then :
13335 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13336 else case e in #(
13337 e)
13338 lt_cv_dlopen=dyld
13339 lt_cv_dlopen_libs=
13340 lt_cv_dlopen_self=yes
13341 ;;
13342 esac
13343 fi
13344
13345 ;;
13346
13347 tpf*)
13348 # Don't try to run any link tests for TPF. We know it's impossible
13349 # because TPF is a cross-compiler, and we know how we open DSOs.
13350 lt_cv_dlopen=dlopen
13351 lt_cv_dlopen_libs=
13352 lt_cv_dlopen_self=no
13353 ;;
13354
13355 *)
13356 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13357 if test "x$ac_cv_func_shl_load" = xyes
13358 then :
13359 lt_cv_dlopen=shl_load
13360 else case e in #(
13361 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13362 printf %s "checking for shl_load in -ldld... " >&6; }
13363 if test ${ac_cv_lib_dld_shl_load+y}
13364 then :
13365 printf %s "(cached) " >&6
13366 else case e in #(
13367 e) ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-ldld $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply.
13375 The 'extern "C"' is for builds by C++ compilers;
13376 although this is not generally supported in C code supporting it here
13377 has little cost and some practical benefit (sr 110532). */
13378 #ifdef __cplusplus
13379 extern "C"
13380 #endif
13381 char shl_load (void);
13382 int
13383 main (void)
13384 {
13385 return shl_load ();
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"
13391 then :
13392 ac_cv_lib_dld_shl_load=yes
13393 else case e in #(
13394 e) ac_cv_lib_dld_shl_load=no ;;
13395 esac
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS ;;
13400 esac
13401 fi
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13403 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13404 if test "x$ac_cv_lib_dld_shl_load" = xyes
13405 then :
13406 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13407 else case e in #(
13408 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13409 if test "x$ac_cv_func_dlopen" = xyes
13410 then :
13411 lt_cv_dlopen=dlopen
13412 else case e in #(
13413 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13414 printf %s "checking for dlopen in -ldl... " >&6; }
13415 if test ${ac_cv_lib_dl_dlopen+y}
13416 then :
13417 printf %s "(cached) " >&6
13418 else case e in #(
13419 e) ac_check_lib_save_LIBS=$LIBS
13420 LIBS="-ldl $LIBS"
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply.
13427 The 'extern "C"' is for builds by C++ compilers;
13428 although this is not generally supported in C code supporting it here
13429 has little cost and some practical benefit (sr 110532). */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char dlopen (void);
13434 int
13435 main (void)
13436 {
13437 return dlopen ();
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"
13443 then :
13444 ac_cv_lib_dl_dlopen=yes
13445 else case e in #(
13446 e) ac_cv_lib_dl_dlopen=no ;;
13447 esac
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13450 conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS ;;
13452 esac
13453 fi
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13455 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13456 if test "x$ac_cv_lib_dl_dlopen" = xyes
13457 then :
13458 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13459 else case e in #(
13460 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13461 printf %s "checking for dlopen in -lsvld... " >&6; }
13462 if test ${ac_cv_lib_svld_dlopen+y}
13463 then :
13464 printf %s "(cached) " >&6
13465 else case e in #(
13466 e) ac_check_lib_save_LIBS=$LIBS
13467 LIBS="-lsvld $LIBS"
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470
13471 /* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply.
13474 The 'extern "C"' is for builds by C++ compilers;
13475 although this is not generally supported in C code supporting it here
13476 has little cost and some practical benefit (sr 110532). */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char dlopen (void);
13481 int
13482 main (void)
13483 {
13484 return dlopen ();
13485 ;
13486 return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"
13490 then :
13491 ac_cv_lib_svld_dlopen=yes
13492 else case e in #(
13493 e) ac_cv_lib_svld_dlopen=no ;;
13494 esac
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13497 conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS ;;
13499 esac
13500 fi
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13502 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13503 if test "x$ac_cv_lib_svld_dlopen" = xyes
13504 then :
13505 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13506 else case e in #(
13507 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13508 printf %s "checking for dld_link in -ldld... " >&6; }
13509 if test ${ac_cv_lib_dld_dld_link+y}
13510 then :
13511 printf %s "(cached) " >&6
13512 else case e in #(
13513 e) ac_check_lib_save_LIBS=$LIBS
13514 LIBS="-ldld $LIBS"
13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply.
13521 The 'extern "C"' is for builds by C++ compilers;
13522 although this is not generally supported in C code supporting it here
13523 has little cost and some practical benefit (sr 110532). */
13524 #ifdef __cplusplus
13525 extern "C"
13526 #endif
13527 char dld_link (void);
13528 int
13529 main (void)
13530 {
13531 return dld_link ();
13532 ;
13533 return 0;
13534 }
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"
13537 then :
13538 ac_cv_lib_dld_dld_link=yes
13539 else case e in #(
13540 e) ac_cv_lib_dld_dld_link=no ;;
13541 esac
13542 fi
13543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13544 conftest$ac_exeext conftest.$ac_ext
13545 LIBS=$ac_check_lib_save_LIBS ;;
13546 esac
13547 fi
13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13549 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13550 if test "x$ac_cv_lib_dld_dld_link" = xyes
13551 then :
13552 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13553 fi
13554
13555 ;;
13556 esac
13557 fi
13558
13559 ;;
13560 esac
13561 fi
13562
13563 ;;
13564 esac
13565 fi
13566
13567 ;;
13568 esac
13569 fi
13570
13571 ;;
13572 esac
13573 fi
13574
13575 ;;
13576 esac
13577
13578 if test no = "$lt_cv_dlopen"; then
13579 enable_dlopen=no
13580 else
13581 enable_dlopen=yes
13582 fi
13583
13584 case $lt_cv_dlopen in
13585 dlopen)
13586 save_CPPFLAGS=$CPPFLAGS
13587 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13588
13589 save_LDFLAGS=$LDFLAGS
13590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13591
13592 save_LIBS=$LIBS
13593 LIBS="$lt_cv_dlopen_libs $LIBS"
13594
13595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13596 printf %s "checking whether a program can dlopen itself... " >&6; }
13597 if test ${lt_cv_dlopen_self+y}
13598 then :
13599 printf %s "(cached) " >&6
13600 else case e in #(
13601 e) if test yes = "$cross_compiling"; then :
13602 lt_cv_dlopen_self=cross
13603 else
13604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13605 lt_status=$lt_dlunknown
13606 cat > conftest.$ac_ext <<_LT_EOF
13607 #line $LINENO "configure"
13608 #include "confdefs.h"
13609
13610 #if HAVE_DLFCN_H
13611 #include <dlfcn.h>
13612 #endif
13613
13614 #include <stdio.h>
13615
13616 #ifdef RTLD_GLOBAL
13617 # define LT_DLGLOBAL RTLD_GLOBAL
13618 #else
13619 # ifdef DL_GLOBAL
13620 # define LT_DLGLOBAL DL_GLOBAL
13621 # else
13622 # define LT_DLGLOBAL 0
13623 # endif
13624 #endif
13625
13626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13627 find out it does not work in some platform. */
13628 #ifndef LT_DLLAZY_OR_NOW
13629 # ifdef RTLD_LAZY
13630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13631 # else
13632 # ifdef DL_LAZY
13633 # define LT_DLLAZY_OR_NOW DL_LAZY
13634 # else
13635 # ifdef RTLD_NOW
13636 # define LT_DLLAZY_OR_NOW RTLD_NOW
13637 # else
13638 # ifdef DL_NOW
13639 # define LT_DLLAZY_OR_NOW DL_NOW
13640 # else
13641 # define LT_DLLAZY_OR_NOW 0
13642 # endif
13643 # endif
13644 # endif
13645 # endif
13646 #endif
13647
13648 /* When -fvisibility=hidden is used, assume the code has been annotated
13649 correspondingly for the symbols needed. */
13650 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13651 int fnord (void) __attribute__((visibility("default")));
13652 #endif
13653
13654 int fnord (void) { return 42; }
13655 int main (void)
13656 {
13657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13658 int status = $lt_dlunknown;
13659
13660 if (self)
13661 {
13662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13663 else
13664 {
13665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13666 else puts (dlerror ());
13667 }
13668 /* dlclose (self); */
13669 }
13670 else
13671 puts (dlerror ());
13672
13673 return status;
13674 }
13675 _LT_EOF
13676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13677 (eval $ac_link) 2>&5
13678 ac_status=$?
13679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13680 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13681 (./conftest; exit; ) >&5 2>/dev/null
13682 lt_status=$?
13683 case x$lt_status in
13684 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13685 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13686 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13687 esac
13688 else :
13689 # compilation failed
13690 lt_cv_dlopen_self=no
13691 fi
13692 fi
13693 rm -fr conftest*
13694
13695 ;;
13696 esac
13697 fi
13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13699 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13700
13701 if test yes = "$lt_cv_dlopen_self"; then
13702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13704 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13705 if test ${lt_cv_dlopen_self_static+y}
13706 then :
13707 printf %s "(cached) " >&6
13708 else case e in #(
13709 e) if test yes = "$cross_compiling"; then :
13710 lt_cv_dlopen_self_static=cross
13711 else
13712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13713 lt_status=$lt_dlunknown
13714 cat > conftest.$ac_ext <<_LT_EOF
13715 #line $LINENO "configure"
13716 #include "confdefs.h"
13717
13718 #if HAVE_DLFCN_H
13719 #include <dlfcn.h>
13720 #endif
13721
13722 #include <stdio.h>
13723
13724 #ifdef RTLD_GLOBAL
13725 # define LT_DLGLOBAL RTLD_GLOBAL
13726 #else
13727 # ifdef DL_GLOBAL
13728 # define LT_DLGLOBAL DL_GLOBAL
13729 # else
13730 # define LT_DLGLOBAL 0
13731 # endif
13732 #endif
13733
13734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13735 find out it does not work in some platform. */
13736 #ifndef LT_DLLAZY_OR_NOW
13737 # ifdef RTLD_LAZY
13738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13739 # else
13740 # ifdef DL_LAZY
13741 # define LT_DLLAZY_OR_NOW DL_LAZY
13742 # else
13743 # ifdef RTLD_NOW
13744 # define LT_DLLAZY_OR_NOW RTLD_NOW
13745 # else
13746 # ifdef DL_NOW
13747 # define LT_DLLAZY_OR_NOW DL_NOW
13748 # else
13749 # define LT_DLLAZY_OR_NOW 0
13750 # endif
13751 # endif
13752 # endif
13753 # endif
13754 #endif
13755
13756 /* When -fvisibility=hidden is used, assume the code has been annotated
13757 correspondingly for the symbols needed. */
13758 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13759 int fnord (void) __attribute__((visibility("default")));
13760 #endif
13761
13762 int fnord (void) { return 42; }
13763 int main (void)
13764 {
13765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13766 int status = $lt_dlunknown;
13767
13768 if (self)
13769 {
13770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13771 else
13772 {
13773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13774 else puts (dlerror ());
13775 }
13776 /* dlclose (self); */
13777 }
13778 else
13779 puts (dlerror ());
13780
13781 return status;
13782 }
13783 _LT_EOF
13784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13785 (eval $ac_link) 2>&5
13786 ac_status=$?
13787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13788 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13789 (./conftest; exit; ) >&5 2>/dev/null
13790 lt_status=$?
13791 case x$lt_status in
13792 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13793 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13794 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13795 esac
13796 else :
13797 # compilation failed
13798 lt_cv_dlopen_self_static=no
13799 fi
13800 fi
13801 rm -fr conftest*
13802
13803 ;;
13804 esac
13805 fi
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13807 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13808 fi
13809
13810 CPPFLAGS=$save_CPPFLAGS
13811 LDFLAGS=$save_LDFLAGS
13812 LIBS=$save_LIBS
13813 ;;
13814 esac
13815
13816 case $lt_cv_dlopen_self in
13817 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13818 *) enable_dlopen_self=unknown ;;
13819 esac
13820
13821 case $lt_cv_dlopen_self_static in
13822 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13823 *) enable_dlopen_self_static=unknown ;;
13824 esac
13825 fi
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 striplib=
13844 old_striplib=
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13846 printf %s "checking whether stripping libraries is possible... " >&6; }
13847 if test -z "$STRIP"; then
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 printf "%s\n" "no" >&6; }
13850 else
13851 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13852 old_striplib="$STRIP --strip-debug"
13853 striplib="$STRIP --strip-unneeded"
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 printf "%s\n" "yes" >&6; }
13856 else
13857 case $host_os in
13858 darwin*)
13859 # FIXME - insert some real tests, host_os isn't really good enough
13860 striplib="$STRIP -x"
13861 old_striplib="$STRIP -S"
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13863 printf "%s\n" "yes" >&6; }
13864 ;;
13865 freebsd*)
13866 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13867 old_striplib="$STRIP --strip-debug"
13868 striplib="$STRIP --strip-unneeded"
13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870 printf "%s\n" "yes" >&6; }
13871 else
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 printf "%s\n" "no" >&6; }
13874 fi
13875 ;;
13876 *)
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878 printf "%s\n" "no" >&6; }
13879 ;;
13880 esac
13881 fi
13882 fi
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895 # Report what library types will actually be built
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13897 printf %s "checking if libtool supports shared libraries... " >&6; }
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13899 printf "%s\n" "$can_build_shared" >&6; }
13900
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13902 printf %s "checking whether to build shared libraries... " >&6; }
13903 test no = "$can_build_shared" && enable_shared=no
13904
13905 # On AIX, shared libraries and static libraries use the same namespace, and
13906 # are all built from PIC.
13907 case $host_os in
13908 aix3*)
13909 test yes = "$enable_shared" && enable_static=no
13910 if test -n "$RANLIB"; then
13911 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13912 postinstall_cmds='$RANLIB $lib'
13913 fi
13914 ;;
13915
13916 aix[4-9]*)
13917 if test ia64 != "$host_cpu"; then
13918 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13919 yes,aix,yes) ;; # shared object as lib.so file only
13920 yes,svr4,*) ;; # shared object as lib.so archive member only
13921 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13922 esac
13923 fi
13924 ;;
13925 esac
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13927 printf "%s\n" "$enable_shared" >&6; }
13928
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13930 printf %s "checking whether to build static libraries... " >&6; }
13931 # Make sure either enable_shared or enable_static is yes.
13932 test yes = "$enable_shared" || enable_static=yes
13933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13934 printf "%s\n" "$enable_static" >&6; }
13935
13936
13937
13938
13939 fi
13940 ac_ext=c
13941 ac_cpp='$CPP $CPPFLAGS'
13942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13945
13946 CC=$lt_save_CC
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962 ac_config_commands="$ac_config_commands libtool"
13963
13964
13965
13966
13967 # Only expand once:
13968
13969
13970 ac_ext=c
13971 ac_cpp='$CPP $CPPFLAGS'
13972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13975 if test -n "$ac_tool_prefix"; then
13976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 printf %s "checking for $ac_word... " >&6; }
13980 if test ${ac_cv_prog_CC+y}
13981 then :
13982 printf %s "(cached) " >&6
13983 else case e in #(
13984 e) if test -n "$CC"; then
13985 ac_cv_prog_CC="$CC" # Let the user override the test.
13986 else
13987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13988 for as_dir in $PATH
13989 do
13990 IFS=$as_save_IFS
13991 case $as_dir in #(((
13992 '') as_dir=./ ;;
13993 */) ;;
13994 *) as_dir=$as_dir/ ;;
13995 esac
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14000 break 2
14001 fi
14002 done
14003 done
14004 IFS=$as_save_IFS
14005
14006 fi ;;
14007 esac
14008 fi
14009 CC=$ac_cv_prog_CC
14010 if test -n "$CC"; then
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14012 printf "%s\n" "$CC" >&6; }
14013 else
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 printf "%s\n" "no" >&6; }
14016 fi
14017
14018
14019 fi
14020 if test -z "$ac_cv_prog_CC"; then
14021 ac_ct_CC=$CC
14022 # Extract the first word of "gcc", so it can be a program name with args.
14023 set dummy gcc; ac_word=$2
14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025 printf %s "checking for $ac_word... " >&6; }
14026 if test ${ac_cv_prog_ac_ct_CC+y}
14027 then :
14028 printf %s "(cached) " >&6
14029 else case e in #(
14030 e) if test -n "$ac_ct_CC"; then
14031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14032 else
14033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034 for as_dir in $PATH
14035 do
14036 IFS=$as_save_IFS
14037 case $as_dir in #(((
14038 '') as_dir=./ ;;
14039 */) ;;
14040 *) as_dir=$as_dir/ ;;
14041 esac
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14044 ac_cv_prog_ac_ct_CC="gcc"
14045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14046 break 2
14047 fi
14048 done
14049 done
14050 IFS=$as_save_IFS
14051
14052 fi ;;
14053 esac
14054 fi
14055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14056 if test -n "$ac_ct_CC"; then
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14058 printf "%s\n" "$ac_ct_CC" >&6; }
14059 else
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 printf "%s\n" "no" >&6; }
14062 fi
14063
14064 if test "x$ac_ct_CC" = x; then
14065 CC=""
14066 else
14067 case $cross_compiling:$ac_tool_warned in
14068 yes:)
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14070 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14071 ac_tool_warned=yes ;;
14072 esac
14073 CC=$ac_ct_CC
14074 fi
14075 else
14076 CC="$ac_cv_prog_CC"
14077 fi
14078
14079 if test -z "$CC"; then
14080 if test -n "$ac_tool_prefix"; then
14081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14082 set dummy ${ac_tool_prefix}cc; ac_word=$2
14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 printf %s "checking for $ac_word... " >&6; }
14085 if test ${ac_cv_prog_CC+y}
14086 then :
14087 printf %s "(cached) " >&6
14088 else case e in #(
14089 e) if test -n "$CC"; then
14090 ac_cv_prog_CC="$CC" # Let the user override the test.
14091 else
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14094 do
14095 IFS=$as_save_IFS
14096 case $as_dir in #(((
14097 '') as_dir=./ ;;
14098 */) ;;
14099 *) as_dir=$as_dir/ ;;
14100 esac
14101 for ac_exec_ext in '' $ac_executable_extensions; do
14102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14103 ac_cv_prog_CC="${ac_tool_prefix}cc"
14104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14105 break 2
14106 fi
14107 done
14108 done
14109 IFS=$as_save_IFS
14110
14111 fi ;;
14112 esac
14113 fi
14114 CC=$ac_cv_prog_CC
14115 if test -n "$CC"; then
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14117 printf "%s\n" "$CC" >&6; }
14118 else
14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 printf "%s\n" "no" >&6; }
14121 fi
14122
14123
14124 fi
14125 fi
14126 if test -z "$CC"; then
14127 # Extract the first word of "cc", so it can be a program name with args.
14128 set dummy cc; ac_word=$2
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 printf %s "checking for $ac_word... " >&6; }
14131 if test ${ac_cv_prog_CC+y}
14132 then :
14133 printf %s "(cached) " >&6
14134 else case e in #(
14135 e) if test -n "$CC"; then
14136 ac_cv_prog_CC="$CC" # Let the user override the test.
14137 else
14138 ac_prog_rejected=no
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14141 do
14142 IFS=$as_save_IFS
14143 case $as_dir in #(((
14144 '') as_dir=./ ;;
14145 */) ;;
14146 *) as_dir=$as_dir/ ;;
14147 esac
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14150 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14151 ac_prog_rejected=yes
14152 continue
14153 fi
14154 ac_cv_prog_CC="cc"
14155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14156 break 2
14157 fi
14158 done
14159 done
14160 IFS=$as_save_IFS
14161
14162 if test $ac_prog_rejected = yes; then
14163 # We found a bogon in the path, so make sure we never use it.
14164 set dummy $ac_cv_prog_CC
14165 shift
14166 if test $# != 0; then
14167 # We chose a different compiler from the bogus one.
14168 # However, it has the same basename, so the bogon will be chosen
14169 # first if we set CC to just the basename; use the full file name.
14170 shift
14171 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14172 fi
14173 fi
14174 fi ;;
14175 esac
14176 fi
14177 CC=$ac_cv_prog_CC
14178 if test -n "$CC"; then
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14180 printf "%s\n" "$CC" >&6; }
14181 else
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 printf "%s\n" "no" >&6; }
14184 fi
14185
14186
14187 fi
14188 if test -z "$CC"; then
14189 if test -n "$ac_tool_prefix"; then
14190 for ac_prog in cl.exe
14191 do
14192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14195 printf %s "checking for $ac_word... " >&6; }
14196 if test ${ac_cv_prog_CC+y}
14197 then :
14198 printf %s "(cached) " >&6
14199 else case e in #(
14200 e) if test -n "$CC"; then
14201 ac_cv_prog_CC="$CC" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206 IFS=$as_save_IFS
14207 case $as_dir in #(((
14208 '') as_dir=./ ;;
14209 */) ;;
14210 *) as_dir=$as_dir/ ;;
14211 esac
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 fi ;;
14223 esac
14224 fi
14225 CC=$ac_cv_prog_CC
14226 if test -n "$CC"; then
14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14228 printf "%s\n" "$CC" >&6; }
14229 else
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 printf "%s\n" "no" >&6; }
14232 fi
14233
14234
14235 test -n "$CC" && break
14236 done
14237 fi
14238 if test -z "$CC"; then
14239 ac_ct_CC=$CC
14240 for ac_prog in cl.exe
14241 do
14242 # Extract the first word of "$ac_prog", so it can be a program name with args.
14243 set dummy $ac_prog; ac_word=$2
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 printf %s "checking for $ac_word... " >&6; }
14246 if test ${ac_cv_prog_ac_ct_CC+y}
14247 then :
14248 printf %s "(cached) " >&6
14249 else case e in #(
14250 e) if test -n "$ac_ct_CC"; then
14251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 case $as_dir in #(((
14258 '') as_dir=./ ;;
14259 */) ;;
14260 *) as_dir=$as_dir/ ;;
14261 esac
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_ac_ct_CC="$ac_prog"
14265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268 done
14269 done
14270 IFS=$as_save_IFS
14271
14272 fi ;;
14273 esac
14274 fi
14275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14276 if test -n "$ac_ct_CC"; then
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14278 printf "%s\n" "$ac_ct_CC" >&6; }
14279 else
14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 printf "%s\n" "no" >&6; }
14282 fi
14283
14284
14285 test -n "$ac_ct_CC" && break
14286 done
14287
14288 if test "x$ac_ct_CC" = x; then
14289 CC=""
14290 else
14291 case $cross_compiling:$ac_tool_warned in
14292 yes:)
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14295 ac_tool_warned=yes ;;
14296 esac
14297 CC=$ac_ct_CC
14298 fi
14299 fi
14300
14301 fi
14302 if test -z "$CC"; then
14303 if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14305 set dummy ${ac_tool_prefix}clang; ac_word=$2
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 printf %s "checking for $ac_word... " >&6; }
14308 if test ${ac_cv_prog_CC+y}
14309 then :
14310 printf %s "(cached) " >&6
14311 else case e in #(
14312 e) if test -n "$CC"; then
14313 ac_cv_prog_CC="$CC" # Let the user override the test.
14314 else
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14317 do
14318 IFS=$as_save_IFS
14319 case $as_dir in #(((
14320 '') as_dir=./ ;;
14321 */) ;;
14322 *) as_dir=$as_dir/ ;;
14323 esac
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14326 ac_cv_prog_CC="${ac_tool_prefix}clang"
14327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14328 break 2
14329 fi
14330 done
14331 done
14332 IFS=$as_save_IFS
14333
14334 fi ;;
14335 esac
14336 fi
14337 CC=$ac_cv_prog_CC
14338 if test -n "$CC"; then
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14340 printf "%s\n" "$CC" >&6; }
14341 else
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 printf "%s\n" "no" >&6; }
14344 fi
14345
14346
14347 fi
14348 if test -z "$ac_cv_prog_CC"; then
14349 ac_ct_CC=$CC
14350 # Extract the first word of "clang", so it can be a program name with args.
14351 set dummy clang; ac_word=$2
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14353 printf %s "checking for $ac_word... " >&6; }
14354 if test ${ac_cv_prog_ac_ct_CC+y}
14355 then :
14356 printf %s "(cached) " >&6
14357 else case e in #(
14358 e) if test -n "$ac_ct_CC"; then
14359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364 IFS=$as_save_IFS
14365 case $as_dir in #(((
14366 '') as_dir=./ ;;
14367 */) ;;
14368 *) as_dir=$as_dir/ ;;
14369 esac
14370 for ac_exec_ext in '' $ac_executable_extensions; do
14371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14372 ac_cv_prog_ac_ct_CC="clang"
14373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14374 break 2
14375 fi
14376 done
14377 done
14378 IFS=$as_save_IFS
14379
14380 fi ;;
14381 esac
14382 fi
14383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14384 if test -n "$ac_ct_CC"; then
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14386 printf "%s\n" "$ac_ct_CC" >&6; }
14387 else
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 printf "%s\n" "no" >&6; }
14390 fi
14391
14392 if test "x$ac_ct_CC" = x; then
14393 CC=""
14394 else
14395 case $cross_compiling:$ac_tool_warned in
14396 yes:)
14397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14399 ac_tool_warned=yes ;;
14400 esac
14401 CC=$ac_ct_CC
14402 fi
14403 else
14404 CC="$ac_cv_prog_CC"
14405 fi
14406
14407 fi
14408
14409
14410 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14411 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14412 as_fn_error $? "no acceptable C compiler found in \$PATH
14413 See 'config.log' for more details" "$LINENO" 5; }
14414
14415 # Provide some information about the compiler.
14416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14417 set X $ac_compile
14418 ac_compiler=$2
14419 for ac_option in --version -v -V -qversion -version; do
14420 { { ac_try="$ac_compiler $ac_option >&5"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424 esac
14425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14426 printf "%s\n" "$ac_try_echo"; } >&5
14427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14428 ac_status=$?
14429 if test -s conftest.err; then
14430 sed '10a\
14431 ... rest of stderr output deleted ...
14432 10q' conftest.err >conftest.er1
14433 cat conftest.er1 >&5
14434 fi
14435 rm -f conftest.er1 conftest.err
14436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14437 test $ac_status = 0; }
14438 done
14439
14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14441 printf %s "checking whether the compiler supports GNU C... " >&6; }
14442 if test ${ac_cv_c_compiler_gnu+y}
14443 then :
14444 printf %s "(cached) " >&6
14445 else case e in #(
14446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14448
14449 int
14450 main (void)
14451 {
14452 #ifndef __GNUC__
14453 choke me
14454 #endif
14455
14456 ;
14457 return 0;
14458 }
14459 _ACEOF
14460 if ac_fn_c_try_compile "$LINENO"
14461 then :
14462 ac_compiler_gnu=yes
14463 else case e in #(
14464 e) ac_compiler_gnu=no ;;
14465 esac
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14469 ;;
14470 esac
14471 fi
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14473 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14475
14476 if test $ac_compiler_gnu = yes; then
14477 GCC=yes
14478 else
14479 GCC=
14480 fi
14481 ac_test_CFLAGS=${CFLAGS+y}
14482 ac_save_CFLAGS=$CFLAGS
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14484 printf %s "checking whether $CC accepts -g... " >&6; }
14485 if test ${ac_cv_prog_cc_g+y}
14486 then :
14487 printf %s "(cached) " >&6
14488 else case e in #(
14489 e) ac_save_c_werror_flag=$ac_c_werror_flag
14490 ac_c_werror_flag=yes
14491 ac_cv_prog_cc_g=no
14492 CFLAGS="-g"
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495
14496 int
14497 main (void)
14498 {
14499
14500 ;
14501 return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"
14505 then :
14506 ac_cv_prog_cc_g=yes
14507 else case e in #(
14508 e) CFLAGS=""
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511
14512 int
14513 main (void)
14514 {
14515
14516 ;
14517 return 0;
14518 }
14519 _ACEOF
14520 if ac_fn_c_try_compile "$LINENO"
14521 then :
14522
14523 else case e in #(
14524 e) ac_c_werror_flag=$ac_save_c_werror_flag
14525 CFLAGS="-g"
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14528
14529 int
14530 main (void)
14531 {
14532
14533 ;
14534 return 0;
14535 }
14536 _ACEOF
14537 if ac_fn_c_try_compile "$LINENO"
14538 then :
14539 ac_cv_prog_cc_g=yes
14540 fi
14541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14542 esac
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14545 esac
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14548 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14549 esac
14550 fi
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14552 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14553 if test $ac_test_CFLAGS; then
14554 CFLAGS=$ac_save_CFLAGS
14555 elif test $ac_cv_prog_cc_g = yes; then
14556 if test "$GCC" = yes; then
14557 CFLAGS="-g -O2"
14558 else
14559 CFLAGS="-g"
14560 fi
14561 else
14562 if test "$GCC" = yes; then
14563 CFLAGS="-O2"
14564 else
14565 CFLAGS=
14566 fi
14567 fi
14568 ac_prog_cc_stdc=no
14569 if test x$ac_prog_cc_stdc = xno
14570 then :
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14572 printf %s "checking for $CC option to enable C11 features... " >&6; }
14573 if test ${ac_cv_prog_cc_c11+y}
14574 then :
14575 printf %s "(cached) " >&6
14576 else case e in #(
14577 e) ac_cv_prog_cc_c11=no
14578 ac_save_CC=$CC
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 $ac_c_conftest_c11_program
14582 _ACEOF
14583 for ac_arg in '' -std=gnu11
14584 do
14585 CC="$ac_save_CC $ac_arg"
14586 if ac_fn_c_try_compile "$LINENO"
14587 then :
14588 ac_cv_prog_cc_c11=$ac_arg
14589 fi
14590 rm -f core conftest.err conftest.$ac_objext conftest.beam
14591 test "x$ac_cv_prog_cc_c11" != "xno" && break
14592 done
14593 rm -f conftest.$ac_ext
14594 CC=$ac_save_CC ;;
14595 esac
14596 fi
14597
14598 if test "x$ac_cv_prog_cc_c11" = xno
14599 then :
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14601 printf "%s\n" "unsupported" >&6; }
14602 else case e in #(
14603 e) if test "x$ac_cv_prog_cc_c11" = x
14604 then :
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14606 printf "%s\n" "none needed" >&6; }
14607 else case e in #(
14608 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14609 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14610 CC="$CC $ac_cv_prog_cc_c11" ;;
14611 esac
14612 fi
14613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14614 ac_prog_cc_stdc=c11 ;;
14615 esac
14616 fi
14617 fi
14618 if test x$ac_prog_cc_stdc = xno
14619 then :
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14621 printf %s "checking for $CC option to enable C99 features... " >&6; }
14622 if test ${ac_cv_prog_cc_c99+y}
14623 then :
14624 printf %s "(cached) " >&6
14625 else case e in #(
14626 e) ac_cv_prog_cc_c99=no
14627 ac_save_CC=$CC
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14630 $ac_c_conftest_c99_program
14631 _ACEOF
14632 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14633 do
14634 CC="$ac_save_CC $ac_arg"
14635 if ac_fn_c_try_compile "$LINENO"
14636 then :
14637 ac_cv_prog_cc_c99=$ac_arg
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.beam
14640 test "x$ac_cv_prog_cc_c99" != "xno" && break
14641 done
14642 rm -f conftest.$ac_ext
14643 CC=$ac_save_CC ;;
14644 esac
14645 fi
14646
14647 if test "x$ac_cv_prog_cc_c99" = xno
14648 then :
14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14650 printf "%s\n" "unsupported" >&6; }
14651 else case e in #(
14652 e) if test "x$ac_cv_prog_cc_c99" = x
14653 then :
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14655 printf "%s\n" "none needed" >&6; }
14656 else case e in #(
14657 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14658 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14659 CC="$CC $ac_cv_prog_cc_c99" ;;
14660 esac
14661 fi
14662 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14663 ac_prog_cc_stdc=c99 ;;
14664 esac
14665 fi
14666 fi
14667 if test x$ac_prog_cc_stdc = xno
14668 then :
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14670 printf %s "checking for $CC option to enable C89 features... " >&6; }
14671 if test ${ac_cv_prog_cc_c89+y}
14672 then :
14673 printf %s "(cached) " >&6
14674 else case e in #(
14675 e) ac_cv_prog_cc_c89=no
14676 ac_save_CC=$CC
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679 $ac_c_conftest_c89_program
14680 _ACEOF
14681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14682 do
14683 CC="$ac_save_CC $ac_arg"
14684 if ac_fn_c_try_compile "$LINENO"
14685 then :
14686 ac_cv_prog_cc_c89=$ac_arg
14687 fi
14688 rm -f core conftest.err conftest.$ac_objext conftest.beam
14689 test "x$ac_cv_prog_cc_c89" != "xno" && break
14690 done
14691 rm -f conftest.$ac_ext
14692 CC=$ac_save_CC ;;
14693 esac
14694 fi
14695
14696 if test "x$ac_cv_prog_cc_c89" = xno
14697 then :
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14699 printf "%s\n" "unsupported" >&6; }
14700 else case e in #(
14701 e) if test "x$ac_cv_prog_cc_c89" = x
14702 then :
14703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14704 printf "%s\n" "none needed" >&6; }
14705 else case e in #(
14706 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14707 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14708 CC="$CC $ac_cv_prog_cc_c89" ;;
14709 esac
14710 fi
14711 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14712 ac_prog_cc_stdc=c89 ;;
14713 esac
14714 fi
14715 fi
14716
14717 ac_ext=c
14718 ac_cpp='$CPP $CPPFLAGS'
14719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14722
14723
14724 ac_ext=c
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14730 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14731 if test ${am_cv_prog_cc_c_o+y}
14732 then :
14733 printf %s "(cached) " >&6
14734 else case e in #(
14735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737
14738 int
14739 main (void)
14740 {
14741
14742 ;
14743 return 0;
14744 }
14745 _ACEOF
14746 # Make sure it works both with $CC and with simple cc.
14747 # Following AC_PROG_CC_C_O, we do the test twice because some
14748 # compilers refuse to overwrite an existing .o file with -o,
14749 # though they will create one.
14750 am_cv_prog_cc_c_o=yes
14751 for am_i in 1 2; do
14752 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14753 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } \
14757 && test -f conftest2.$ac_objext; then
14758 : OK
14759 else
14760 am_cv_prog_cc_c_o=no
14761 break
14762 fi
14763 done
14764 # aligned with autoconf, so not including core; see bug#72225.
14765 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
14766 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
14767 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
14768 unset am_i ;;
14769 esac
14770 fi
14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14772 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14773 if test "$am_cv_prog_cc_c_o" != yes; then
14774 # Losing compiler, so override with the script.
14775 # FIXME: It is wrong to rewrite CC.
14776 # But if we don't then we get into trouble of one sort or another.
14777 # A longer-term fix would be to have automake use am__CC in this case,
14778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14779 CC="$am_aux_dir/compile $CC"
14780 fi
14781 ac_ext=c
14782 ac_cpp='$CPP $CPPFLAGS'
14783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14786
14787
14788 depcc="$CC" am_compiler_list=
14789
14790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14791 printf %s "checking dependency style of $depcc... " >&6; }
14792 if test ${am_cv_CC_dependencies_compiler_type+y}
14793 then :
14794 printf %s "(cached) " >&6
14795 else case e in #(
14796 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14797 # We make a subdir and do the tests there. Otherwise we can end up
14798 # making bogus files that we don't know about and never remove. For
14799 # instance it was reported that on HP-UX the gcc test will end up
14800 # making a dummy file named 'D' -- because '-MD' means "put the output
14801 # in D".
14802 rm -rf conftest.dir
14803 mkdir conftest.dir
14804 # Copy depcomp to subdir because otherwise we won't find it if we're
14805 # using a relative directory.
14806 cp "$am_depcomp" conftest.dir
14807 cd conftest.dir
14808 # We will build objects and dependencies in a subdirectory because
14809 # it helps to detect inapplicable dependency modes. For instance
14810 # both Tru64's cc and ICC support -MD to output dependencies as a
14811 # side effect of compilation, but ICC will put the dependencies in
14812 # the current directory while Tru64 will put them in the object
14813 # directory.
14814 mkdir sub
14815
14816 am_cv_CC_dependencies_compiler_type=none
14817 if test "$am_compiler_list" = ""; then
14818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14819 fi
14820 am__universal=false
14821 case " $depcc " in #(
14822 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14823 esac
14824
14825 for depmode in $am_compiler_list; do
14826 # Setup a source with many dependencies, because some compilers
14827 # like to wrap large dependency lists on column 80 (with \), and
14828 # we should not choose a depcomp mode which is confused by this.
14829 #
14830 # We need to recreate these files for each test, as the compiler may
14831 # overwrite some of them when testing with obscure command lines.
14832 # This happens at least with the AIX C compiler.
14833 : > sub/conftest.c
14834 for i in 1 2 3 4 5 6; do
14835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14836 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14837 # Solaris 10 /bin/sh.
14838 echo '/* dummy */' > sub/conftst$i.h
14839 done
14840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14841
14842 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14843 # mode. It turns out that the SunPro C++ compiler does not properly
14844 # handle '-M -o', and we need to detect this. Also, some Intel
14845 # versions had trouble with output in subdirs.
14846 am__obj=sub/conftest.${OBJEXT-o}
14847 am__minus_obj="-o $am__obj"
14848 case $depmode in
14849 gcc)
14850 # This depmode causes a compiler race in universal mode.
14851 test "$am__universal" = false || continue
14852 ;;
14853 nosideeffect)
14854 # After this tag, mechanisms are not by side-effect, so they'll
14855 # only be used when explicitly requested.
14856 if test "x$enable_dependency_tracking" = xyes; then
14857 continue
14858 else
14859 break
14860 fi
14861 ;;
14862 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14863 # This compiler won't grok '-c -o', but also, the minuso test has
14864 # not run yet. These depmodes are late enough in the game, and
14865 # so weak that their functioning should not be impacted.
14866 am__obj=conftest.${OBJEXT-o}
14867 am__minus_obj=
14868 ;;
14869 none) break ;;
14870 esac
14871 if depmode=$depmode \
14872 source=sub/conftest.c object=$am__obj \
14873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14874 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14875 >/dev/null 2>conftest.err &&
14876 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14877 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14878 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14879 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14880 # icc doesn't choke on unknown options, it will just issue warnings
14881 # or remarks (even with -Werror). So we grep stderr for any message
14882 # that says an option was ignored or not supported.
14883 # When given -MP, icc 7.0 and 7.1 complain thus:
14884 # icc: Command line warning: ignoring option '-M'; no argument required
14885 # The diagnosis changed in icc 8.0:
14886 # icc: Command line remark: option '-MP' not supported
14887 if (grep 'ignoring option' conftest.err ||
14888 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14889 am_cv_CC_dependencies_compiler_type=$depmode
14890 break
14891 fi
14892 fi
14893 done
14894
14895 cd ..
14896 rm -rf conftest.dir
14897 else
14898 am_cv_CC_dependencies_compiler_type=none
14899 fi
14900 ;;
14901 esac
14902 fi
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14904 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14906
14907 if
14908 test "x$enable_dependency_tracking" != xno \
14909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14910 am__fastdepCC_TRUE=
14911 am__fastdepCC_FALSE='#'
14912 else
14913 am__fastdepCC_TRUE='#'
14914 am__fastdepCC_FALSE=
14915 fi
14916
14917
14918
14919
14920
14921
14922 # allow to override gcov location
14923
14924 # Check whether --with-gcov was given.
14925 if test ${with_gcov+y}
14926 then :
14927 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14928 else case e in #(
14929 e) _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov ;;
14930 esac
14931 fi
14932
14933
14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14935 printf %s "checking whether to build with code coverage support... " >&6; }
14936 # Check whether --enable-code-coverage was given.
14937 if test ${enable_code_coverage+y}
14938 then :
14939 enableval=$enable_code_coverage;
14940 else case e in #(
14941 e) enable_code_coverage=no ;;
14942 esac
14943 fi
14944
14945
14946 if test x$enable_code_coverage = xyes; then
14947 CODE_COVERAGE_ENABLED_TRUE=
14948 CODE_COVERAGE_ENABLED_FALSE='#'
14949 else
14950 CODE_COVERAGE_ENABLED_TRUE='#'
14951 CODE_COVERAGE_ENABLED_FALSE=
14952 fi
14953
14954 CODE_COVERAGE_ENABLED=$enable_code_coverage
14955
14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14957 printf "%s\n" "$enable_code_coverage" >&6; }
14958
14959 if test "$enable_code_coverage" = "yes"
14960 then :
14961
14962 # check for gcov
14963 if test -n "$ac_tool_prefix"; then
14964 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14965 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14967 printf %s "checking for $ac_word... " >&6; }
14968 if test ${ac_cv_prog_GCOV+y}
14969 then :
14970 printf %s "(cached) " >&6
14971 else case e in #(
14972 e) if test -n "$GCOV"; then
14973 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978 IFS=$as_save_IFS
14979 case $as_dir in #(((
14980 '') as_dir=./ ;;
14981 */) ;;
14982 *) as_dir=$as_dir/ ;;
14983 esac
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14988 break 2
14989 fi
14990 done
14991 done
14992 IFS=$as_save_IFS
14993
14994 fi ;;
14995 esac
14996 fi
14997 GCOV=$ac_cv_prog_GCOV
14998 if test -n "$GCOV"; then
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
15000 printf "%s\n" "$GCOV" >&6; }
15001 else
15002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 printf "%s\n" "no" >&6; }
15004 fi
15005
15006
15007 fi
15008 if test -z "$ac_cv_prog_GCOV"; then
15009 ac_ct_GCOV=$GCOV
15010 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
15011 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15013 printf %s "checking for $ac_word... " >&6; }
15014 if test ${ac_cv_prog_ac_ct_GCOV+y}
15015 then :
15016 printf %s "(cached) " >&6
15017 else case e in #(
15018 e) if test -n "$ac_ct_GCOV"; then
15019 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
15020 else
15021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15022 for as_dir in $PATH
15023 do
15024 IFS=$as_save_IFS
15025 case $as_dir in #(((
15026 '') as_dir=./ ;;
15027 */) ;;
15028 *) as_dir=$as_dir/ ;;
15029 esac
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15032 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
15033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15034 break 2
15035 fi
15036 done
15037 done
15038 IFS=$as_save_IFS
15039
15040 fi ;;
15041 esac
15042 fi
15043 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
15044 if test -n "$ac_ct_GCOV"; then
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
15046 printf "%s\n" "$ac_ct_GCOV" >&6; }
15047 else
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 printf "%s\n" "no" >&6; }
15050 fi
15051
15052 if test "x$ac_ct_GCOV" = x; then
15053 GCOV=":"
15054 else
15055 case $cross_compiling:$ac_tool_warned in
15056 yes:)
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15059 ac_tool_warned=yes ;;
15060 esac
15061 GCOV=$ac_ct_GCOV
15062 fi
15063 else
15064 GCOV="$ac_cv_prog_GCOV"
15065 fi
15066
15067 if test "X$GCOV" = "X:"
15068 then :
15069 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
15070 fi
15071
15072
15073 if test "$GCC" = "no"
15074 then :
15075
15076 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
15077
15078 fi
15079
15080 # Extract the first word of "lcov", so it can be a program name with args.
15081 set dummy lcov; ac_word=$2
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15083 printf %s "checking for $ac_word... " >&6; }
15084 if test ${ac_cv_prog_LCOV+y}
15085 then :
15086 printf %s "(cached) " >&6
15087 else case e in #(
15088 e) if test -n "$LCOV"; then
15089 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
15090 else
15091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15092 for as_dir in $PATH
15093 do
15094 IFS=$as_save_IFS
15095 case $as_dir in #(((
15096 '') as_dir=./ ;;
15097 */) ;;
15098 *) as_dir=$as_dir/ ;;
15099 esac
15100 for ac_exec_ext in '' $ac_executable_extensions; do
15101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15102 ac_cv_prog_LCOV="lcov"
15103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15104 break 2
15105 fi
15106 done
15107 done
15108 IFS=$as_save_IFS
15109
15110 fi ;;
15111 esac
15112 fi
15113 LCOV=$ac_cv_prog_LCOV
15114 if test -n "$LCOV"; then
15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15116 printf "%s\n" "$LCOV" >&6; }
15117 else
15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 printf "%s\n" "no" >&6; }
15120 fi
15121
15122
15123 # Extract the first word of "genhtml", so it can be a program name with args.
15124 set dummy genhtml; ac_word=$2
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15126 printf %s "checking for $ac_word... " >&6; }
15127 if test ${ac_cv_prog_GENHTML+y}
15128 then :
15129 printf %s "(cached) " >&6
15130 else case e in #(
15131 e) if test -n "$GENHTML"; then
15132 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
15133 else
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15136 do
15137 IFS=$as_save_IFS
15138 case $as_dir in #(((
15139 '') as_dir=./ ;;
15140 */) ;;
15141 *) as_dir=$as_dir/ ;;
15142 esac
15143 for ac_exec_ext in '' $ac_executable_extensions; do
15144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15145 ac_cv_prog_GENHTML="genhtml"
15146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15147 break 2
15148 fi
15149 done
15150 done
15151 IFS=$as_save_IFS
15152
15153 fi ;;
15154 esac
15155 fi
15156 GENHTML=$ac_cv_prog_GENHTML
15157 if test -n "$GENHTML"; then
15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15159 printf "%s\n" "$GENHTML" >&6; }
15160 else
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 printf "%s\n" "no" >&6; }
15163 fi
15164
15165
15166
15167 if test -z "$LCOV"
15168 then :
15169
15170 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
15171
15172 fi
15173
15174 if test -z "$GENHTML"
15175 then :
15176
15177 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
15178
15179 fi
15180
15181 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
15182 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15183 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15184 #CODE_COVERAGE_LIBS="-lgcov"
15185 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
15186
15187
15188
15189
15190
15191
15192
15193 CODE_COVERAGE_RULES_CHECK='
15194 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
15195 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
15196 '
15197 CODE_COVERAGE_RULES_CAPTURE='
15198 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
15199 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
15200 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
15201 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --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)
15202 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
15203 '
15204 CODE_COVERAGE_RULES_CLEAN='
15205 clean: code-coverage-clean
15206 distclean: code-coverage-clean
15207 code-coverage-clean:
15208 -$(LCOV) --directory $(top_builddir) -z
15209 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15210 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
15211 '
15212
15213 else case e in #(
15214 e)
15215 CODE_COVERAGE_RULES_CHECK='
15216 @echo "Need to reconfigure with --enable-code-coverage"
15217 '
15218 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
15219 CODE_COVERAGE_RULES_CLEAN=''
15220 ;;
15221 esac
15222 fi
15223
15224 CODE_COVERAGE_RULES='
15225 # Code coverage
15226 #
15227 # Optional:
15228 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
15229 # Multiple directories may be specified, separated by whitespace.
15230 # (Default: $(top_builddir))
15231 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
15232 # by lcov for code coverage. (Default:
15233 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
15234 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
15235 # reports to be created. (Default:
15236 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
15237 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
15238 # set to 0 to disable it and leave empty to stay with the default.
15239 # (Default: empty)
15240 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
15241 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
15242 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
15243 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
15244 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
15245 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
15246 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15247 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
15248 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15249 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
15250 # lcov instance. (Default: empty)
15251 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
15252 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
15253 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
15254 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
15255 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
15256 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
15257 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
15258 #
15259 # The generated report will be titled using the $(PACKAGE_NAME) and
15260 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
15261 # use the git-version-gen script, available online.
15262
15263 # Optional variables
15264 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
15265 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
15266 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
15267 CODE_COVERAGE_BRANCH_COVERAGE ?=
15268 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
15269 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
15270 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
15271 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
15272 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15273 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15274 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
15275 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
15276 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
15277 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
15278 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
15279 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
15280 CODE_COVERAGE_IGNORE_PATTERN ?=
15281
15282 GITIGNOREFILES ?=
15283 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15284
15285 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
15286 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
15287 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
15288 $(CODE_COVERAGE_OUTPUT_FILE);
15289 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
15290 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
15291 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
15292 $(CODE_COVERAGE_IGNORE_PATTERN);
15293 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
15294 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
15295 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
15296 code_coverage_quiet = $(code_coverage_quiet_$(V))
15297 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
15298 code_coverage_quiet_0 = --quiet
15299
15300 # sanitizes the test-name: replaces with underscores: dashes and dots
15301 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
15302
15303 # Use recursive makes in order to ignore errors during check
15304 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
15305
15306 # Capture code coverage data
15307 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
15308
15309 # Hook rule executed before code-coverage-capture, overridable by the user
15310 code-coverage-capture-hook:
15311
15312 '"$CODE_COVERAGE_RULES_CLEAN"'
15313
15314 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
15315 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
15316
15317 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
15318 '
15319
15320
15321
15322
15323
15324 LIBOAUTH2_LIBRARY_VERSION=1:1:0
15325 LIBTOOL_EXTRA_FLAGS="-version-info $LIBOAUTH2_LIBRARY_VERSION"
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15336 if test -n "$ac_tool_prefix"; then
15337 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15338 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15340 printf %s "checking for $ac_word... " >&6; }
15341 if test ${ac_cv_path_PKG_CONFIG+y}
15342 then :
15343 printf %s "(cached) " >&6
15344 else case e in #(
15345 e) case $PKG_CONFIG in
15346 [\\/]* | ?:[\\/]*)
15347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15348 ;;
15349 *)
15350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15351 for as_dir in $PATH
15352 do
15353 IFS=$as_save_IFS
15354 case $as_dir in #(((
15355 '') as_dir=./ ;;
15356 */) ;;
15357 *) as_dir=$as_dir/ ;;
15358 esac
15359 for ac_exec_ext in '' $ac_executable_extensions; do
15360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15361 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15363 break 2
15364 fi
15365 done
15366 done
15367 IFS=$as_save_IFS
15368
15369 ;;
15370 esac ;;
15371 esac
15372 fi
15373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15374 if test -n "$PKG_CONFIG"; then
15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15376 printf "%s\n" "$PKG_CONFIG" >&6; }
15377 else
15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15379 printf "%s\n" "no" >&6; }
15380 fi
15381
15382
15383 fi
15384 if test -z "$ac_cv_path_PKG_CONFIG"; then
15385 ac_pt_PKG_CONFIG=$PKG_CONFIG
15386 # Extract the first word of "pkg-config", so it can be a program name with args.
15387 set dummy pkg-config; ac_word=$2
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15389 printf %s "checking for $ac_word... " >&6; }
15390 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15391 then :
15392 printf %s "(cached) " >&6
15393 else case e in #(
15394 e) case $ac_pt_PKG_CONFIG in
15395 [\\/]* | ?:[\\/]*)
15396 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15397 ;;
15398 *)
15399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15401 do
15402 IFS=$as_save_IFS
15403 case $as_dir in #(((
15404 '') as_dir=./ ;;
15405 */) ;;
15406 *) as_dir=$as_dir/ ;;
15407 esac
15408 for ac_exec_ext in '' $ac_executable_extensions; do
15409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15410 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15412 break 2
15413 fi
15414 done
15415 done
15416 IFS=$as_save_IFS
15417
15418 ;;
15419 esac ;;
15420 esac
15421 fi
15422 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15423 if test -n "$ac_pt_PKG_CONFIG"; then
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15425 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15426 else
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15428 printf "%s\n" "no" >&6; }
15429 fi
15430
15431 if test "x$ac_pt_PKG_CONFIG" = x; then
15432 PKG_CONFIG=""
15433 else
15434 case $cross_compiling:$ac_tool_warned in
15435 yes:)
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15437 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15438 ac_tool_warned=yes ;;
15439 esac
15440 PKG_CONFIG=$ac_pt_PKG_CONFIG
15441 fi
15442 else
15443 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15444 fi
15445
15446 fi
15447 if test -n "$PKG_CONFIG"; then
15448 _pkg_min_version=0.9.0
15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15450 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15451 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15453 printf "%s\n" "yes" >&6; }
15454 else
15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15456 printf "%s\n" "no" >&6; }
15457 PKG_CONFIG=""
15458 fi
15459 fi
15460 if test -z "$PKG_CONFIG"; then
15461 as_fn_error $? "pkg-config not found" "$LINENO" 5
15462 fi
15463
15464 pkg_failed=no
15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
15466 printf %s "checking for openssl... " >&6; }
15467
15468 if test -n "$OPENSSL_CFLAGS"; then
15469 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15470 elif test -n "$PKG_CONFIG"; then
15471 if test -n "$PKG_CONFIG" && \
15472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15473 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15474 ac_status=$?
15475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15476 test $ac_status = 0; }; then
15477 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
15478 test "x$?" != "x0" && pkg_failed=yes
15479 else
15480 pkg_failed=yes
15481 fi
15482 else
15483 pkg_failed=untried
15484 fi
15485 if test -n "$OPENSSL_LIBS"; then
15486 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15487 elif test -n "$PKG_CONFIG"; then
15488 if test -n "$PKG_CONFIG" && \
15489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15490 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15491 ac_status=$?
15492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15493 test $ac_status = 0; }; then
15494 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
15495 test "x$?" != "x0" && pkg_failed=yes
15496 else
15497 pkg_failed=yes
15498 fi
15499 else
15500 pkg_failed=untried
15501 fi
15502
15503
15504
15505 if test $pkg_failed = yes; then
15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507 printf "%s\n" "no" >&6; }
15508
15509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15510 _pkg_short_errors_supported=yes
15511 else
15512 _pkg_short_errors_supported=no
15513 fi
15514 if test $_pkg_short_errors_supported = yes; then
15515 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
15516 else
15517 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
15518 fi
15519 # Put the nasty error message in config.log where it belongs
15520 echo "$OPENSSL_PKG_ERRORS" >&5
15521
15522 as_fn_error $? "Package requirements (openssl) were not met:
15523
15524 $OPENSSL_PKG_ERRORS
15525
15526 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15527 installed software in a non-standard prefix.
15528
15529 Alternatively, you may set the environment variables OPENSSL_CFLAGS
15530 and OPENSSL_LIBS to avoid the need to call pkg-config.
15531 See the pkg-config man page for more details." "$LINENO" 5
15532 elif test $pkg_failed = untried; then
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 printf "%s\n" "no" >&6; }
15535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15536 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15537 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15538 is in your PATH or set the PKG_CONFIG environment variable to the full
15539 path to pkg-config.
15540
15541 Alternatively, you may set the environment variables OPENSSL_CFLAGS
15542 and OPENSSL_LIBS to avoid the need to call pkg-config.
15543 See the pkg-config man page for more details.
15544
15545 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15546 See 'config.log' for more details" "$LINENO" 5; }
15547 else
15548 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15549 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15551 printf "%s\n" "yes" >&6; }
15552
15553 fi
15554
15555
15556
15557
15558 pkg_failed=no
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15560 printf %s "checking for libcurl... " >&6; }
15561
15562 if test -n "$CURL_CFLAGS"; then
15563 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
15564 elif test -n "$PKG_CONFIG"; then
15565 if test -n "$PKG_CONFIG" && \
15566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15567 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15568 ac_status=$?
15569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15570 test $ac_status = 0; }; then
15571 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
15572 test "x$?" != "x0" && pkg_failed=yes
15573 else
15574 pkg_failed=yes
15575 fi
15576 else
15577 pkg_failed=untried
15578 fi
15579 if test -n "$CURL_LIBS"; then
15580 pkg_cv_CURL_LIBS="$CURL_LIBS"
15581 elif test -n "$PKG_CONFIG"; then
15582 if test -n "$PKG_CONFIG" && \
15583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15584 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15585 ac_status=$?
15586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15587 test $ac_status = 0; }; then
15588 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
15589 test "x$?" != "x0" && pkg_failed=yes
15590 else
15591 pkg_failed=yes
15592 fi
15593 else
15594 pkg_failed=untried
15595 fi
15596
15597
15598
15599 if test $pkg_failed = yes; then
15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15601 printf "%s\n" "no" >&6; }
15602
15603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15604 _pkg_short_errors_supported=yes
15605 else
15606 _pkg_short_errors_supported=no
15607 fi
15608 if test $_pkg_short_errors_supported = yes; then
15609 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
15610 else
15611 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
15612 fi
15613 # Put the nasty error message in config.log where it belongs
15614 echo "$CURL_PKG_ERRORS" >&5
15615
15616 as_fn_error $? "Package requirements (libcurl) were not met:
15617
15618 $CURL_PKG_ERRORS
15619
15620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15621 installed software in a non-standard prefix.
15622
15623 Alternatively, you may set the environment variables CURL_CFLAGS
15624 and CURL_LIBS to avoid the need to call pkg-config.
15625 See the pkg-config man page for more details." "$LINENO" 5
15626 elif test $pkg_failed = untried; then
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 printf "%s\n" "no" >&6; }
15629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15630 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15631 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15632 is in your PATH or set the PKG_CONFIG environment variable to the full
15633 path to pkg-config.
15634
15635 Alternatively, you may set the environment variables CURL_CFLAGS
15636 and CURL_LIBS to avoid the need to call pkg-config.
15637 See the pkg-config man page for more details.
15638
15639 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15640 See 'config.log' for more details" "$LINENO" 5; }
15641 else
15642 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
15643 CURL_LIBS=$pkg_cv_CURL_LIBS
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15645 printf "%s\n" "yes" >&6; }
15646
15647 fi
15648
15649
15650
15651
15652 pkg_failed=no
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15654 printf %s "checking for jansson... " >&6; }
15655
15656 if test -n "$JANSSON_CFLAGS"; then
15657 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15658 elif test -n "$PKG_CONFIG"; then
15659 if test -n "$PKG_CONFIG" && \
15660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15661 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15662 ac_status=$?
15663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15664 test $ac_status = 0; }; then
15665 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15666 test "x$?" != "x0" && pkg_failed=yes
15667 else
15668 pkg_failed=yes
15669 fi
15670 else
15671 pkg_failed=untried
15672 fi
15673 if test -n "$JANSSON_LIBS"; then
15674 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15675 elif test -n "$PKG_CONFIG"; then
15676 if test -n "$PKG_CONFIG" && \
15677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15678 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15679 ac_status=$?
15680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15681 test $ac_status = 0; }; then
15682 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15683 test "x$?" != "x0" && pkg_failed=yes
15684 else
15685 pkg_failed=yes
15686 fi
15687 else
15688 pkg_failed=untried
15689 fi
15690
15691
15692
15693 if test $pkg_failed = yes; then
15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 printf "%s\n" "no" >&6; }
15696
15697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15698 _pkg_short_errors_supported=yes
15699 else
15700 _pkg_short_errors_supported=no
15701 fi
15702 if test $_pkg_short_errors_supported = yes; then
15703 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15704 else
15705 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15706 fi
15707 # Put the nasty error message in config.log where it belongs
15708 echo "$JANSSON_PKG_ERRORS" >&5
15709
15710 as_fn_error $? "Package requirements (jansson) were not met:
15711
15712 $JANSSON_PKG_ERRORS
15713
15714 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15715 installed software in a non-standard prefix.
15716
15717 Alternatively, you may set the environment variables JANSSON_CFLAGS
15718 and JANSSON_LIBS to avoid the need to call pkg-config.
15719 See the pkg-config man page for more details." "$LINENO" 5
15720 elif test $pkg_failed = untried; then
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15722 printf "%s\n" "no" >&6; }
15723 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15724 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15725 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15726 is in your PATH or set the PKG_CONFIG environment variable to the full
15727 path to pkg-config.
15728
15729 Alternatively, you may set the environment variables JANSSON_CFLAGS
15730 and JANSSON_LIBS to avoid the need to call pkg-config.
15731 See the pkg-config man page for more details.
15732
15733 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15734 See 'config.log' for more details" "$LINENO" 5; }
15735 else
15736 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15737 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15739 printf "%s\n" "yes" >&6; }
15740
15741 fi
15742
15743
15744
15745
15746 pkg_failed=no
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cjose" >&5
15748 printf %s "checking for cjose... " >&6; }
15749
15750 if test -n "$CJOSE_CFLAGS"; then
15751 pkg_cv_CJOSE_CFLAGS="$CJOSE_CFLAGS"
15752 elif test -n "$PKG_CONFIG"; then
15753 if test -n "$PKG_CONFIG" && \
15754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cjose\""; } >&5
15755 ($PKG_CONFIG --exists --print-errors "cjose") 2>&5
15756 ac_status=$?
15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758 test $ac_status = 0; }; then
15759 pkg_cv_CJOSE_CFLAGS=`$PKG_CONFIG --cflags "cjose" 2>/dev/null`
15760 test "x$?" != "x0" && pkg_failed=yes
15761 else
15762 pkg_failed=yes
15763 fi
15764 else
15765 pkg_failed=untried
15766 fi
15767 if test -n "$CJOSE_LIBS"; then
15768 pkg_cv_CJOSE_LIBS="$CJOSE_LIBS"
15769 elif test -n "$PKG_CONFIG"; then
15770 if test -n "$PKG_CONFIG" && \
15771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cjose\""; } >&5
15772 ($PKG_CONFIG --exists --print-errors "cjose") 2>&5
15773 ac_status=$?
15774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }; then
15776 pkg_cv_CJOSE_LIBS=`$PKG_CONFIG --libs "cjose" 2>/dev/null`
15777 test "x$?" != "x0" && pkg_failed=yes
15778 else
15779 pkg_failed=yes
15780 fi
15781 else
15782 pkg_failed=untried
15783 fi
15784
15785
15786
15787 if test $pkg_failed = yes; then
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 printf "%s\n" "no" >&6; }
15790
15791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15792 _pkg_short_errors_supported=yes
15793 else
15794 _pkg_short_errors_supported=no
15795 fi
15796 if test $_pkg_short_errors_supported = yes; then
15797 CJOSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cjose" 2>&1`
15798 else
15799 CJOSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cjose" 2>&1`
15800 fi
15801 # Put the nasty error message in config.log where it belongs
15802 echo "$CJOSE_PKG_ERRORS" >&5
15803
15804 as_fn_error $? "Package requirements (cjose) were not met:
15805
15806 $CJOSE_PKG_ERRORS
15807
15808 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15809 installed software in a non-standard prefix.
15810
15811 Alternatively, you may set the environment variables CJOSE_CFLAGS
15812 and CJOSE_LIBS to avoid the need to call pkg-config.
15813 See the pkg-config man page for more details." "$LINENO" 5
15814 elif test $pkg_failed = untried; then
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 printf "%s\n" "no" >&6; }
15817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15819 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15820 is in your PATH or set the PKG_CONFIG environment variable to the full
15821 path to pkg-config.
15822
15823 Alternatively, you may set the environment variables CJOSE_CFLAGS
15824 and CJOSE_LIBS to avoid the need to call pkg-config.
15825 See the pkg-config man page for more details.
15826
15827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15828 See 'config.log' for more details" "$LINENO" 5; }
15829 else
15830 CJOSE_CFLAGS=$pkg_cv_CJOSE_CFLAGS
15831 CJOSE_LIBS=$pkg_cv_CJOSE_LIBS
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15833 printf "%s\n" "yes" >&6; }
15834
15835 fi
15836
15837
15838
15839
15840 pkg_failed=no
15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8" >&5
15842 printf %s "checking for libpcre2-8... " >&6; }
15843
15844 if test -n "$PCRE2_CFLAGS"; then
15845 pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
15846 elif test -n "$PKG_CONFIG"; then
15847 if test -n "$PKG_CONFIG" && \
15848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
15849 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
15850 ac_status=$?
15851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15852 test $ac_status = 0; }; then
15853 pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null`
15854 test "x$?" != "x0" && pkg_failed=yes
15855 else
15856 pkg_failed=yes
15857 fi
15858 else
15859 pkg_failed=untried
15860 fi
15861 if test -n "$PCRE2_LIBS"; then
15862 pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
15863 elif test -n "$PKG_CONFIG"; then
15864 if test -n "$PKG_CONFIG" && \
15865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
15866 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
15867 ac_status=$?
15868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869 test $ac_status = 0; }; then
15870 pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null`
15871 test "x$?" != "x0" && pkg_failed=yes
15872 else
15873 pkg_failed=yes
15874 fi
15875 else
15876 pkg_failed=untried
15877 fi
15878
15879
15880
15881 if test $pkg_failed = yes; then
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 printf "%s\n" "no" >&6; }
15884
15885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15886 _pkg_short_errors_supported=yes
15887 else
15888 _pkg_short_errors_supported=no
15889 fi
15890 if test $_pkg_short_errors_supported = yes; then
15891 PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8" 2>&1`
15892 else
15893 PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8" 2>&1`
15894 fi
15895 # Put the nasty error message in config.log where it belongs
15896 echo "$PCRE2_PKG_ERRORS" >&5
15897
15898 as_fn_error $? "Package requirements (libpcre2-8) were not met:
15899
15900 $PCRE2_PKG_ERRORS
15901
15902 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15903 installed software in a non-standard prefix.
15904
15905 Alternatively, you may set the environment variables PCRE2_CFLAGS
15906 and PCRE2_LIBS to avoid the need to call pkg-config.
15907 See the pkg-config man page for more details." "$LINENO" 5
15908 elif test $pkg_failed = untried; then
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910 printf "%s\n" "no" >&6; }
15911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15912 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15913 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15914 is in your PATH or set the PKG_CONFIG environment variable to the full
15915 path to pkg-config.
15916
15917 Alternatively, you may set the environment variables PCRE2_CFLAGS
15918 and PCRE2_LIBS to avoid the need to call pkg-config.
15919 See the pkg-config man page for more details.
15920
15921 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15922 See 'config.log' for more details" "$LINENO" 5; }
15923 else
15924 PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
15925 PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927 printf "%s\n" "yes" >&6; }
15928
15929 fi
15930
15931
15932
15933
15934 # Check whether --with-memcache was given.
15935 if test ${with_memcache+y}
15936 then :
15937 withval=$with_memcache;
15938 fi
15939
15940 if test "x$with_memcache" != "xno"; then
15941
15942 pkg_failed=no
15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmemcached >= 1.0" >&5
15944 printf %s "checking for libmemcached >= 1.0... " >&6; }
15945
15946 if test -n "$MEMCACHE_CFLAGS"; then
15947 pkg_cv_MEMCACHE_CFLAGS="$MEMCACHE_CFLAGS"
15948 elif test -n "$PKG_CONFIG"; then
15949 if test -n "$PKG_CONFIG" && \
15950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmemcached >= 1.0\""; } >&5
15951 ($PKG_CONFIG --exists --print-errors "libmemcached >= 1.0") 2>&5
15952 ac_status=$?
15953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954 test $ac_status = 0; }; then
15955 pkg_cv_MEMCACHE_CFLAGS=`$PKG_CONFIG --cflags "libmemcached >= 1.0" 2>/dev/null`
15956 test "x$?" != "x0" && pkg_failed=yes
15957 else
15958 pkg_failed=yes
15959 fi
15960 else
15961 pkg_failed=untried
15962 fi
15963 if test -n "$MEMCACHE_LIBS"; then
15964 pkg_cv_MEMCACHE_LIBS="$MEMCACHE_LIBS"
15965 elif test -n "$PKG_CONFIG"; then
15966 if test -n "$PKG_CONFIG" && \
15967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmemcached >= 1.0\""; } >&5
15968 ($PKG_CONFIG --exists --print-errors "libmemcached >= 1.0") 2>&5
15969 ac_status=$?
15970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15971 test $ac_status = 0; }; then
15972 pkg_cv_MEMCACHE_LIBS=`$PKG_CONFIG --libs "libmemcached >= 1.0" 2>/dev/null`
15973 test "x$?" != "x0" && pkg_failed=yes
15974 else
15975 pkg_failed=yes
15976 fi
15977 else
15978 pkg_failed=untried
15979 fi
15980
15981
15982
15983 if test $pkg_failed = yes; then
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 printf "%s\n" "no" >&6; }
15986
15987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15988 _pkg_short_errors_supported=yes
15989 else
15990 _pkg_short_errors_supported=no
15991 fi
15992 if test $_pkg_short_errors_supported = yes; then
15993 MEMCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmemcached >= 1.0" 2>&1`
15994 else
15995 MEMCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmemcached >= 1.0" 2>&1`
15996 fi
15997 # Put the nasty error message in config.log where it belongs
15998 echo "$MEMCACHE_PKG_ERRORS" >&5
15999
16000 have_memcache="no"
16001 elif test $pkg_failed = untried; then
16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 printf "%s\n" "no" >&6; }
16004 have_memcache="no"
16005 else
16006 MEMCACHE_CFLAGS=$pkg_cv_MEMCACHE_CFLAGS
16007 MEMCACHE_LIBS=$pkg_cv_MEMCACHE_LIBS
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16009 printf "%s\n" "yes" >&6; }
16010 have_memcache="yes"
16011 fi
16012 fi
16013 if test x"$have_memcache" = "xyes"; then
16014 HAVE_LIBMEMCACHE_TRUE=
16015 HAVE_LIBMEMCACHE_FALSE='#'
16016 else
16017 HAVE_LIBMEMCACHE_TRUE='#'
16018 HAVE_LIBMEMCACHE_FALSE=
16019 fi
16020
16021
16022
16023 if test x"$have_memcache" = "xyes"; then
16024 MEMCACHE_PC=', libmemcached >= 1.0'
16025 fi
16026
16027
16028
16029 # Check whether --with-redis was given.
16030 if test ${with_redis+y}
16031 then :
16032 withval=$with_redis;
16033 fi
16034
16035 if test "x$with_redis" != "xno"; then
16036
16037 pkg_failed=no
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hiredis" >&5
16039 printf %s "checking for hiredis... " >&6; }
16040
16041 if test -n "$HIREDIS_CFLAGS"; then
16042 pkg_cv_HIREDIS_CFLAGS="$HIREDIS_CFLAGS"
16043 elif test -n "$PKG_CONFIG"; then
16044 if test -n "$PKG_CONFIG" && \
16045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis\""; } >&5
16046 ($PKG_CONFIG --exists --print-errors "hiredis") 2>&5
16047 ac_status=$?
16048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16049 test $ac_status = 0; }; then
16050 pkg_cv_HIREDIS_CFLAGS=`$PKG_CONFIG --cflags "hiredis" 2>/dev/null`
16051 test "x$?" != "x0" && pkg_failed=yes
16052 else
16053 pkg_failed=yes
16054 fi
16055 else
16056 pkg_failed=untried
16057 fi
16058 if test -n "$HIREDIS_LIBS"; then
16059 pkg_cv_HIREDIS_LIBS="$HIREDIS_LIBS"
16060 elif test -n "$PKG_CONFIG"; then
16061 if test -n "$PKG_CONFIG" && \
16062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis\""; } >&5
16063 ($PKG_CONFIG --exists --print-errors "hiredis") 2>&5
16064 ac_status=$?
16065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16066 test $ac_status = 0; }; then
16067 pkg_cv_HIREDIS_LIBS=`$PKG_CONFIG --libs "hiredis" 2>/dev/null`
16068 test "x$?" != "x0" && pkg_failed=yes
16069 else
16070 pkg_failed=yes
16071 fi
16072 else
16073 pkg_failed=untried
16074 fi
16075
16076
16077
16078 if test $pkg_failed = yes; then
16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16080 printf "%s\n" "no" >&6; }
16081
16082 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16083 _pkg_short_errors_supported=yes
16084 else
16085 _pkg_short_errors_supported=no
16086 fi
16087 if test $_pkg_short_errors_supported = yes; then
16088 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hiredis" 2>&1`
16089 else
16090 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hiredis" 2>&1`
16091 fi
16092 # Put the nasty error message in config.log where it belongs
16093 echo "$HIREDIS_PKG_ERRORS" >&5
16094
16095 have_redis="no"
16096 elif test $pkg_failed = untried; then
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16098 printf "%s\n" "no" >&6; }
16099 have_redis="no"
16100 else
16101 HIREDIS_CFLAGS=$pkg_cv_HIREDIS_CFLAGS
16102 HIREDIS_LIBS=$pkg_cv_HIREDIS_LIBS
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16104 printf "%s\n" "yes" >&6; }
16105 have_redis="yes"
16106 fi
16107 fi
16108 if test x"$have_redis" = "xyes"; then
16109 HAVE_LIBHIREDIS_TRUE=
16110 HAVE_LIBHIREDIS_FALSE='#'
16111 else
16112 HAVE_LIBHIREDIS_TRUE='#'
16113 HAVE_LIBHIREDIS_FALSE=
16114 fi
16115
16116
16117
16118 if test x"$have_redis" = "xyes"; then
16119 HIREDIS_PC=', hiredis'
16120 fi
16121
16122
16123 have_jq=no
16124
16125 # Check whether --with-jq was given.
16126 if test ${with_jq+y}
16127 then :
16128 withval=$with_jq;
16129 fi
16130
16131 if test -n "$with_jq" ; then
16132 if test "x$with_jq" != "xno"; then
16133 if test "x$with_jq" = "xyes"; then
16134
16135 pkg_failed=no
16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjq >= 1.6" >&5
16137 printf %s "checking for libjq >= 1.6... " >&6; }
16138
16139 if test -n "$JQ_CFLAGS"; then
16140 pkg_cv_JQ_CFLAGS="$JQ_CFLAGS"
16141 elif test -n "$PKG_CONFIG"; then
16142 if test -n "$PKG_CONFIG" && \
16143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjq >= 1.6\""; } >&5
16144 ($PKG_CONFIG --exists --print-errors "libjq >= 1.6") 2>&5
16145 ac_status=$?
16146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 test $ac_status = 0; }; then
16148 pkg_cv_JQ_CFLAGS=`$PKG_CONFIG --cflags "libjq >= 1.6" 2>/dev/null`
16149 test "x$?" != "x0" && pkg_failed=yes
16150 else
16151 pkg_failed=yes
16152 fi
16153 else
16154 pkg_failed=untried
16155 fi
16156 if test -n "$JQ_LIBS"; then
16157 pkg_cv_JQ_LIBS="$JQ_LIBS"
16158 elif test -n "$PKG_CONFIG"; then
16159 if test -n "$PKG_CONFIG" && \
16160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjq >= 1.6\""; } >&5
16161 ($PKG_CONFIG --exists --print-errors "libjq >= 1.6") 2>&5
16162 ac_status=$?
16163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16164 test $ac_status = 0; }; then
16165 pkg_cv_JQ_LIBS=`$PKG_CONFIG --libs "libjq >= 1.6" 2>/dev/null`
16166 test "x$?" != "x0" && pkg_failed=yes
16167 else
16168 pkg_failed=yes
16169 fi
16170 else
16171 pkg_failed=untried
16172 fi
16173
16174
16175
16176 if test $pkg_failed = yes; then
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 printf "%s\n" "no" >&6; }
16179
16180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16181 _pkg_short_errors_supported=yes
16182 else
16183 _pkg_short_errors_supported=no
16184 fi
16185 if test $_pkg_short_errors_supported = yes; then
16186 JQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjq >= 1.6" 2>&1`
16187 else
16188 JQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjq >= 1.6" 2>&1`
16189 fi
16190 # Put the nasty error message in config.log where it belongs
16191 echo "$JQ_PKG_ERRORS" >&5
16192
16193 have_jq="no"
16194 elif test $pkg_failed = untried; then
16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 printf "%s\n" "no" >&6; }
16197 have_jq="no"
16198 else
16199 JQ_CFLAGS=$pkg_cv_JQ_CFLAGS
16200 JQ_LIBS=$pkg_cv_JQ_LIBS
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 printf "%s\n" "yes" >&6; }
16203 have_jq="yes"
16204 fi
16205 else
16206 if test "$JQ_CFLAGS" = ""; then
16207 JQ_CFLAGS="-I$with_jq/include"
16208 fi
16209 if test "$JQ_LIBS" = ""; then
16210 JQ_LIBS="-L$with_jq/lib -ljq"
16211 fi
16212 CPPFLAGS="$JQ_CFLAGS $CPPFLAGS"
16213 ac_fn_c_check_header_compile "$LINENO" "jq.h" "ac_cv_header_jq_h" "$ac_includes_default"
16214 if test "x$ac_cv_header_jq_h" = xyes
16215 then :
16216 have_jq=yes
16217 else case e in #(
16218 e) have_jq=no ;;
16219 esac
16220 fi
16221
16222
16223 LDFLAGS="$JQ_LIBS $LDFLAGS"
16224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jq_init in -ljq" >&5
16225 printf %s "checking for jq_init in -ljq... " >&6; }
16226 if test ${ac_cv_lib_jq_jq_init+y}
16227 then :
16228 printf %s "(cached) " >&6
16229 else case e in #(
16230 e) ac_check_lib_save_LIBS=$LIBS
16231 LIBS="-ljq $LIBS"
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16234
16235 /* Override any GCC internal prototype to avoid an error.
16236 Use char because int might match the return type of a GCC
16237 builtin and then its argument prototype would still apply.
16238 The 'extern "C"' is for builds by C++ compilers;
16239 although this is not generally supported in C code supporting it here
16240 has little cost and some practical benefit (sr 110532). */
16241 #ifdef __cplusplus
16242 extern "C"
16243 #endif
16244 char jq_init (void);
16245 int
16246 main (void)
16247 {
16248 return jq_init ();
16249 ;
16250 return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_link "$LINENO"
16254 then :
16255 ac_cv_lib_jq_jq_init=yes
16256 else case e in #(
16257 e) ac_cv_lib_jq_jq_init=no ;;
16258 esac
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS ;;
16263 esac
16264 fi
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jq_jq_init" >&5
16266 printf "%s\n" "$ac_cv_lib_jq_jq_init" >&6; }
16267 if test "x$ac_cv_lib_jq_jq_init" = xyes
16268 then :
16269 have_jq=yes
16270 else case e in #(
16271 e) have_jq=no ;;
16272 esac
16273 fi
16274
16275 if test "x$have_jq" = "xno" ; then
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot find library for -ljq.\"" >&5
16277 printf "%s\n" "$as_me: WARNING: \"cannot find library for -ljq.\"" >&2;}
16278 JQ_CFLAGS=
16279 JQ_LIBS=
16280 fi
16281 fi
16282 fi
16283 fi
16284 if test x"$have_jq" = "xyes"; then
16285 HAVE_LIBJQ_TRUE=
16286 HAVE_LIBJQ_FALSE='#'
16287 else
16288 HAVE_LIBJQ_TRUE='#'
16289 HAVE_LIBJQ_FALSE=
16290 fi
16291
16292
16293
16294 if test x"$have_jq" = "xyes"; then
16295 # note the leading comma and space(s)
16296 JQ_LIBS_PC=', libjq >= 1.6'
16297 JQ_CFLAGS_PC=' -DOAUTH2_WITH_JQ'
16298 fi
16299
16300
16301
16302
16303 # Check whether --with-apache was given.
16304 if test ${with_apache+y}
16305 then :
16306 withval=$with_apache;
16307 fi
16308
16309
16310 # Check whether --with-apxs was given.
16311 if test ${with_apxs+y}
16312 then :
16313 withval=$with_apxs; APXS=$with_apxs
16314
16315 else case e in #(
16316 e) for ac_prog in apxs2 apxs
16317 do
16318 # Extract the first word of "$ac_prog", so it can be a program name with args.
16319 set dummy $ac_prog; ac_word=$2
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16321 printf %s "checking for $ac_word... " >&6; }
16322 if test ${ac_cv_path_APXS+y}
16323 then :
16324 printf %s "(cached) " >&6
16325 else case e in #(
16326 e) case $APXS in
16327 [\\/]* | ?:[\\/]*)
16328 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
16329 ;;
16330 *)
16331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH
16333 do
16334 IFS=$as_save_IFS
16335 case $as_dir in #(((
16336 '') as_dir=./ ;;
16337 */) ;;
16338 *) as_dir=$as_dir/ ;;
16339 esac
16340 for ac_exec_ext in '' $ac_executable_extensions; do
16341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16342 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
16343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16344 break 2
16345 fi
16346 done
16347 done
16348 IFS=$as_save_IFS
16349
16350 ;;
16351 esac ;;
16352 esac
16353 fi
16354 APXS=$ac_cv_path_APXS
16355 if test -n "$APXS"; then
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
16357 printf "%s\n" "$APXS" >&6; }
16358 else
16359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16360 printf "%s\n" "no" >&6; }
16361 fi
16362
16363
16364 test -n "$APXS" && break
16365 done
16366 ;;
16367 esac
16368 fi
16369
16370 if test "x$with_apache" != "xno"; then
16371
16372 pkg_failed=no
16373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for apr-1, apr-util-1" >&5
16374 printf %s "checking for apr-1, apr-util-1... " >&6; }
16375
16376 if test -n "$APR_CFLAGS"; then
16377 pkg_cv_APR_CFLAGS="$APR_CFLAGS"
16378 elif test -n "$PKG_CONFIG"; then
16379 if test -n "$PKG_CONFIG" && \
16380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-1, apr-util-1\""; } >&5
16381 ($PKG_CONFIG --exists --print-errors "apr-1, apr-util-1") 2>&5
16382 ac_status=$?
16383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16384 test $ac_status = 0; }; then
16385 pkg_cv_APR_CFLAGS=`$PKG_CONFIG --cflags "apr-1, apr-util-1" 2>/dev/null`
16386 test "x$?" != "x0" && pkg_failed=yes
16387 else
16388 pkg_failed=yes
16389 fi
16390 else
16391 pkg_failed=untried
16392 fi
16393 if test -n "$APR_LIBS"; then
16394 pkg_cv_APR_LIBS="$APR_LIBS"
16395 elif test -n "$PKG_CONFIG"; then
16396 if test -n "$PKG_CONFIG" && \
16397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-1, apr-util-1\""; } >&5
16398 ($PKG_CONFIG --exists --print-errors "apr-1, apr-util-1") 2>&5
16399 ac_status=$?
16400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16401 test $ac_status = 0; }; then
16402 pkg_cv_APR_LIBS=`$PKG_CONFIG --libs "apr-1, apr-util-1" 2>/dev/null`
16403 test "x$?" != "x0" && pkg_failed=yes
16404 else
16405 pkg_failed=yes
16406 fi
16407 else
16408 pkg_failed=untried
16409 fi
16410
16411
16412
16413 if test $pkg_failed = yes; then
16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16415 printf "%s\n" "no" >&6; }
16416
16417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16418 _pkg_short_errors_supported=yes
16419 else
16420 _pkg_short_errors_supported=no
16421 fi
16422 if test $_pkg_short_errors_supported = yes; then
16423 APR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "apr-1, apr-util-1" 2>&1`
16424 else
16425 APR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "apr-1, apr-util-1" 2>&1`
16426 fi
16427 # Put the nasty error message in config.log where it belongs
16428 echo "$APR_PKG_ERRORS" >&5
16429
16430 have_apache="no"
16431 elif test $pkg_failed = untried; then
16432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16433 printf "%s\n" "no" >&6; }
16434 have_apache="no"
16435 else
16436 APR_CFLAGS=$pkg_cv_APR_CFLAGS
16437 APR_LIBS=$pkg_cv_APR_LIBS
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439 printf "%s\n" "yes" >&6; }
16440 have_apache="yes"
16441 fi
16442
16443 if test "x${APXS}" != "x" -a -x "${APXS}"
16444 then :
16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs found at $APXS" >&5
16446 printf "%s\n" "$as_me: apxs found at $APXS" >&6;}
16447 else case e in #(
16448 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16449 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16450 as_fn_error $? "\"apxs not found. Use --with-apxs\"
16451 See 'config.log' for more details" "$LINENO" 5; } ;;
16452 esac
16453 fi
16454
16455 APACHE_CFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CPPFLAGS` -I`${APXS} -q INCLUDEDIR` ${APR_CFLAGS}"
16456 fi
16457 if test x"$have_apache" = "xyes"; then
16458 HAVE_APACHE_TRUE=
16459 HAVE_APACHE_FALSE='#'
16460 else
16461 HAVE_APACHE_TRUE='#'
16462 HAVE_APACHE_FALSE=
16463 fi
16464
16465
16466
16467
16468
16469 # Check whether --with-nginx was given.
16470 if test ${with_nginx+y}
16471 then :
16472 withval=$with_nginx; have_nginx="yes"
16473 else case e in #(
16474 e) have_nginx="no" ;;
16475 esac
16476 fi
16477
16478 if test x"$have_nginx" = "xyes" ; then
16479 if test ! -d "$withval"; then
16480 as_fn_error $? "Could not find NGINX. Please specify the path to the NGINX sources using the --with-nginx=/full/path/to/nginx-<version> option." "$LINENO" 5
16481 else
16482 NGINX_CFLAGS="-I $withval/src/core -I $withval/src/event -I $withval/src/event/modules -I $withval/src/event/quic -I $withval/src/os/unix -I $withval/objs -I $withval/src/http -I $withval/src/http/v2 -I $withval/src/http/v3 -I $withval/src/http/modules"
16483 NGINX_LIBS=
16484 CPPFLAGS_SAVE="$CPPFLAGS"
16485 CPPFLAGS="$NGINX_CFLAGS $CPPFLAGS"
16486 ac_fn_c_check_header_compile "$LINENO" "nginx.h" "ac_cv_header_nginx_h" "$ac_includes_default"
16487 if test "x$ac_cv_header_nginx_h" = xyes
16488 then :
16489
16490 else case e in #(
16491 e) have_nginx="no" NGINX_CFLAGS= NGINX_LIBS= ;;
16492 esac
16493 fi
16494
16495 CPPFLAGS="$CPPFLAGS_SAVE"
16496 fi
16497 fi
16498 if test x"$have_nginx" = "xyes"; then
16499 HAVE_NGINX_TRUE=
16500 HAVE_NGINX_FALSE='#'
16501 else
16502 HAVE_NGINX_TRUE='#'
16503 HAVE_NGINX_FALSE=
16504 fi
16505
16506
16507
16508
16509
16510 pkg_failed=no
16511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.4" >&5
16512 printf %s "checking for check >= 0.9.4... " >&6; }
16513
16514 if test -n "$CHECK_CFLAGS"; then
16515 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
16516 elif test -n "$PKG_CONFIG"; then
16517 if test -n "$PKG_CONFIG" && \
16518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16519 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16520 ac_status=$?
16521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 test $ac_status = 0; }; then
16523 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
16524 test "x$?" != "x0" && pkg_failed=yes
16525 else
16526 pkg_failed=yes
16527 fi
16528 else
16529 pkg_failed=untried
16530 fi
16531 if test -n "$CHECK_LIBS"; then
16532 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
16533 elif test -n "$PKG_CONFIG"; then
16534 if test -n "$PKG_CONFIG" && \
16535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16536 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16537 ac_status=$?
16538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16539 test $ac_status = 0; }; then
16540 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
16541 test "x$?" != "x0" && pkg_failed=yes
16542 else
16543 pkg_failed=yes
16544 fi
16545 else
16546 pkg_failed=untried
16547 fi
16548
16549
16550
16551 if test $pkg_failed = yes; then
16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 printf "%s\n" "no" >&6; }
16554
16555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16556 _pkg_short_errors_supported=yes
16557 else
16558 _pkg_short_errors_supported=no
16559 fi
16560 if test $_pkg_short_errors_supported = yes; then
16561 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
16562 else
16563 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
16564 fi
16565 # Put the nasty error message in config.log where it belongs
16566 echo "$CHECK_PKG_ERRORS" >&5
16567
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
16569 printf "%s\n" "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;};
16570 have_check="no"
16571
16572 elif test $pkg_failed = untried; then
16573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 printf "%s\n" "no" >&6; }
16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
16576 printf "%s\n" "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;};
16577 have_check="no"
16578
16579 else
16580 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
16581 CHECK_LIBS=$pkg_cv_CHECK_LIBS
16582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16583 printf "%s\n" "yes" >&6; }
16584 have_check="yes"
16585 fi
16586 if test x"$have_check" = "xyes"; then
16587 HAVE_CHECK_TRUE=
16588 HAVE_CHECK_FALSE='#'
16589 else
16590 HAVE_CHECK_TRUE='#'
16591 HAVE_CHECK_FALSE=
16592 fi
16593
16594
16595
16596
16597 ac_config_files="$ac_config_files include/oauth2/version.h liboauth2.pc liboauth2_apache.pc liboauth2_nginx.pc Makefile"
16598
16599
16600 cat >confcache <<\_ACEOF
16601 # This file is a shell script that caches the results of configure
16602 # tests run on this system so they can be shared between configure
16603 # scripts and configure runs, see configure's option --config-cache.
16604 # It is not useful on other systems. If it contains results you don't
16605 # want to keep, you may remove or edit it.
16606 #
16607 # config.status only pays attention to the cache file if you give it
16608 # the --recheck option to rerun configure.
16609 #
16610 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16611 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16612 # following values.
16613
16614 _ACEOF
16615
16616 # The following way of writing the cache mishandles newlines in values,
16617 # but we know of no workaround that is simple, portable, and efficient.
16618 # So, we kill variables containing newlines.
16619 # Ultrix sh set writes to stderr and can't be redirected directly,
16620 # and sets the high bit in the cache file unless we assign to the vars.
16621 (
16622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16623 eval ac_val=\$$ac_var
16624 case $ac_val in #(
16625 *${as_nl}*)
16626 case $ac_var in #(
16627 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16628 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16629 esac
16630 case $ac_var in #(
16631 _ | IFS | as_nl) ;; #(
16632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16633 *) { eval $ac_var=; unset $ac_var;} ;;
16634 esac ;;
16635 esac
16636 done
16637
16638 (set) 2>&1 |
16639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16640 *${as_nl}ac_space=\ *)
16641 # 'set' does not quote correctly, so add quotes: double-quote
16642 # substitution turns \\\\ into \\, and sed turns \\ into \.
16643 sed -n \
16644 "s/'/'\\\\''/g;
16645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16646 ;; #(
16647 *)
16648 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16650 ;;
16651 esac |
16652 sort
16653 ) |
16654 sed '
16655 /^ac_cv_env_/b end
16656 t clear
16657 :clear
16658 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16659 t end
16660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16661 :end' >>confcache
16662 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16663 if test -w "$cache_file"; then
16664 if test "x$cache_file" != "x/dev/null"; then
16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16666 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16667 if test ! -f "$cache_file" || test -h "$cache_file"; then
16668 cat confcache >"$cache_file"
16669 else
16670 case $cache_file in #(
16671 */* | ?:*)
16672 mv -f confcache "$cache_file"$$ &&
16673 mv -f "$cache_file"$$ "$cache_file" ;; #(
16674 *)
16675 mv -f confcache "$cache_file" ;;
16676 esac
16677 fi
16678 fi
16679 else
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16681 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16682 fi
16683 fi
16684 rm -f confcache
16685
16686 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16687 # Let make expand exec_prefix.
16688 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16689
16690 # Transform confdefs.h into DEFS.
16691 # Protect against shell expansion while executing Makefile rules.
16692 # Protect against Makefile macro expansion.
16693 #
16694 # If the first sed substitution is executed (which looks for macros that
16695 # take arguments), then branch to the quote section. Otherwise,
16696 # look for a macro that doesn't take arguments.
16697 ac_script='
16698 :mline
16699 /\\$/{
16700 N
16701 s,\\\n,,
16702 b mline
16703 }
16704 t clear
16705 :clear
16706 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16707 t quote
16708 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16709 t quote
16710 b any
16711 :quote
16712 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16713 s/\$/$$/g
16714 H
16715 :any
16716 ${
16717 g
16718 s/^\n//
16719 s/\n/ /g
16720 p
16721 }
16722 '
16723 DEFS=`sed -n "$ac_script" confdefs.h`
16724
16725
16726 ac_libobjs=
16727 ac_ltlibobjs=
16728 U=
16729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16730 # 1. Remove the extension, and $U if already installed.
16731 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16732 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16734 # will be set to the directory where LIBOBJS objects are built.
16735 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16736 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16737 done
16738 LIBOBJS=$ac_libobjs
16739
16740 LTLIBOBJS=$ac_ltlibobjs
16741
16742
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16744 printf %s "checking that generated files are newer than configure... " >&6; }
16745 if test -n "$am_sleep_pid"; then
16746 # Hide warnings about reused PIDs.
16747 wait $am_sleep_pid 2>/dev/null
16748 fi
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16750 printf "%s\n" "done" >&6; }
16751 case $enable_silent_rules in # (((
16752 yes) AM_DEFAULT_VERBOSITY=0;;
16753 no) AM_DEFAULT_VERBOSITY=1;;
16754 esac
16755 if test $am_cv_make_support_nested_variables = yes; then
16756 AM_V='$(V)'
16757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16758 else
16759 AM_V=$AM_DEFAULT_VERBOSITY
16760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16761 fi
16762
16763 if test -n "$EXEEXT"; then
16764 am__EXEEXT_TRUE=
16765 am__EXEEXT_FALSE='#'
16766 else
16767 am__EXEEXT_TRUE='#'
16768 am__EXEEXT_FALSE=
16769 fi
16770
16771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16772 as_fn_error $? "conditional \"AMDEP\" was never defined.
16773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16774 fi
16775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16778 fi
16779 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16780 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16782 fi
16783 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
16784 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
16785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16786 fi
16787 if test -z "${HAVE_LIBMEMCACHE_TRUE}" && test -z "${HAVE_LIBMEMCACHE_FALSE}"; then
16788 as_fn_error $? "conditional \"HAVE_LIBMEMCACHE\" was never defined.
16789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16790 fi
16791 if test -z "${HAVE_LIBHIREDIS_TRUE}" && test -z "${HAVE_LIBHIREDIS_FALSE}"; then
16792 as_fn_error $? "conditional \"HAVE_LIBHIREDIS\" was never defined.
16793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794 fi
16795 if test -z "${HAVE_LIBJQ_TRUE}" && test -z "${HAVE_LIBJQ_FALSE}"; then
16796 as_fn_error $? "conditional \"HAVE_LIBJQ\" was never defined.
16797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798 fi
16799 if test -z "${HAVE_APACHE_TRUE}" && test -z "${HAVE_APACHE_FALSE}"; then
16800 as_fn_error $? "conditional \"HAVE_APACHE\" was never defined.
16801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802 fi
16803 if test -z "${HAVE_NGINX_TRUE}" && test -z "${HAVE_NGINX_FALSE}"; then
16804 as_fn_error $? "conditional \"HAVE_NGINX\" was never defined.
16805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806 fi
16807 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
16808 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
16809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810 fi
16811
16812 : "${CONFIG_STATUS=./config.status}"
16813 ac_write_fail=0
16814 ac_clean_files_save=$ac_clean_files
16815 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16817 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16818 as_write_fail=0
16819 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16820 #! $SHELL
16821 # Generated by $as_me.
16822 # Run this file to recreate the current configuration.
16823 # Compiler output produced by configure, useful for debugging
16824 # configure, is in config.log if it exists.
16825
16826 debug=false
16827 ac_cs_recheck=false
16828 ac_cs_silent=false
16829
16830 SHELL=\${CONFIG_SHELL-$SHELL}
16831 export SHELL
16832 _ASEOF
16833 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16834 ## -------------------- ##
16835 ## M4sh Initialization. ##
16836 ## -------------------- ##
16837
16838 # Be more Bourne compatible
16839 DUALCASE=1; export DUALCASE # for MKS sh
16840 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16841 then :
16842 emulate sh
16843 NULLCMD=:
16844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16845 # is contrary to our usage. Disable this feature.
16846 alias -g '${1+"$@"}'='"$@"'
16847 setopt NO_GLOB_SUBST
16848 else case e in #(
16849 e) case `(set -o) 2>/dev/null` in #(
16850 *posix*) :
16851 set -o posix ;; #(
16852 *) :
16853 ;;
16854 esac ;;
16855 esac
16856 fi
16857
16858
16859
16860 # Reset variables that may have inherited troublesome values from
16861 # the environment.
16862
16863 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16864 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16865 # side effect of setting IFS to empty, thus disabling word splitting.)
16866 # Quoting is to prevent editors from complaining about space-tab.
16867 as_nl='
16868 '
16869 export as_nl
16870 IFS=" "" $as_nl"
16871
16872 PS1='$ '
16873 PS2='> '
16874 PS4='+ '
16875
16876 # Ensure predictable behavior from utilities with locale-dependent output.
16877 LC_ALL=C
16878 export LC_ALL
16879 LANGUAGE=C
16880 export LANGUAGE
16881
16882 # We cannot yet rely on "unset" to work, but we need these variables
16883 # to be unset--not just set to an empty or harmless value--now, to
16884 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16885 # also avoids known problems related to "unset" and subshell syntax
16886 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16887 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16888 do eval test \${$as_var+y} \
16889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16890 done
16891
16892 # Ensure that fds 0, 1, and 2 are open.
16893 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16894 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16895 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16896
16897 # The user is always right.
16898 if ${PATH_SEPARATOR+false} :; then
16899 PATH_SEPARATOR=:
16900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16901 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16902 PATH_SEPARATOR=';'
16903 }
16904 fi
16905
16906
16907 # Find who we are. Look in the path if we contain no directory separator.
16908 as_myself=
16909 case $0 in #((
16910 *[\\/]* ) as_myself=$0 ;;
16911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16913 do
16914 IFS=$as_save_IFS
16915 case $as_dir in #(((
16916 '') as_dir=./ ;;
16917 */) ;;
16918 *) as_dir=$as_dir/ ;;
16919 esac
16920 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16921 done
16922 IFS=$as_save_IFS
16923
16924 ;;
16925 esac
16926 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16927 # in which case we are not to be found in the path.
16928 if test "x$as_myself" = x; then
16929 as_myself=$0
16930 fi
16931 if test ! -f "$as_myself"; then
16932 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16933 exit 1
16934 fi
16935
16936
16937
16938 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16939 # ----------------------------------------
16940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16942 # script with STATUS, using 1 if that was 0.
16943 as_fn_error ()
16944 {
16945 as_status=$1; test $as_status -eq 0 && as_status=1
16946 if test "$4"; then
16947 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16949 fi
16950 printf "%s\n" "$as_me: error: $2" >&2
16951 as_fn_exit $as_status
16952 } # as_fn_error
16953
16954
16955 # as_fn_set_status STATUS
16956 # -----------------------
16957 # Set $? to STATUS, without forking.
16958 as_fn_set_status ()
16959 {
16960 return $1
16961 } # as_fn_set_status
16962
16963 # as_fn_exit STATUS
16964 # -----------------
16965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16966 as_fn_exit ()
16967 {
16968 set +e
16969 as_fn_set_status $1
16970 exit $1
16971 } # as_fn_exit
16972
16973 # as_fn_unset VAR
16974 # ---------------
16975 # Portably unset VAR.
16976 as_fn_unset ()
16977 {
16978 { eval $1=; unset $1;}
16979 }
16980 as_unset=as_fn_unset
16981
16982 # as_fn_append VAR VALUE
16983 # ----------------------
16984 # Append the text in VALUE to the end of the definition contained in VAR. Take
16985 # advantage of any shell optimizations that allow amortized linear growth over
16986 # repeated appends, instead of the typical quadratic growth present in naive
16987 # implementations.
16988 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16989 then :
16990 eval 'as_fn_append ()
16991 {
16992 eval $1+=\$2
16993 }'
16994 else case e in #(
16995 e) as_fn_append ()
16996 {
16997 eval $1=\$$1\$2
16998 } ;;
16999 esac
17000 fi # as_fn_append
17001
17002 # as_fn_arith ARG...
17003 # ------------------
17004 # Perform arithmetic evaluation on the ARGs, and store the result in the
17005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17006 # must be portable across $(()) and expr.
17007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17008 then :
17009 eval 'as_fn_arith ()
17010 {
17011 as_val=$(( $* ))
17012 }'
17013 else case e in #(
17014 e) as_fn_arith ()
17015 {
17016 as_val=`expr "$@" || test $? -eq 1`
17017 } ;;
17018 esac
17019 fi # as_fn_arith
17020
17021
17022 if expr a : '\(a\)' >/dev/null 2>&1 &&
17023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17024 as_expr=expr
17025 else
17026 as_expr=false
17027 fi
17028
17029 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17030 as_basename=basename
17031 else
17032 as_basename=false
17033 fi
17034
17035 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17036 as_dirname=dirname
17037 else
17038 as_dirname=false
17039 fi
17040
17041 as_me=`$as_basename -- "$0" ||
17042 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17043 X"$0" : 'X\(//\)$' \| \
17044 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17045 printf "%s\n" X/"$0" |
17046 sed '/^.*\/\([^/][^/]*\)\/*$/{
17047 s//\1/
17048 q
17049 }
17050 /^X\/\(\/\/\)$/{
17051 s//\1/
17052 q
17053 }
17054 /^X\/\(\/\).*/{
17055 s//\1/
17056 q
17057 }
17058 s/.*/./; q'`
17059
17060 # Avoid depending upon Character Ranges.
17061 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17062 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17063 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17064 as_cr_digits='0123456789'
17065 as_cr_alnum=$as_cr_Letters$as_cr_digits
17066
17067
17068 # Determine whether it's possible to make 'echo' print without a newline.
17069 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17070 # for compatibility with existing Makefiles.
17071 ECHO_C= ECHO_N= ECHO_T=
17072 case `echo -n x` in #(((((
17073 -n*)
17074 case `echo 'xy\c'` in
17075 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17076 xy) ECHO_C='\c';;
17077 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17078 ECHO_T=' ';;
17079 esac;;
17080 *)
17081 ECHO_N='-n';;
17082 esac
17083
17084 # For backward compatibility with old third-party macros, we provide
17085 # the shell variables $as_echo and $as_echo_n. New code should use
17086 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17087 as_echo='printf %s\n'
17088 as_echo_n='printf %s'
17089
17090 rm -f conf$$ conf$$.exe conf$$.file
17091 if test -d conf$$.dir; then
17092 rm -f conf$$.dir/conf$$.file
17093 else
17094 rm -f conf$$.dir
17095 mkdir conf$$.dir 2>/dev/null
17096 fi
17097 if (echo >conf$$.file) 2>/dev/null; then
17098 if ln -s conf$$.file conf$$ 2>/dev/null; then
17099 as_ln_s='ln -s'
17100 # ... but there are two gotchas:
17101 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17102 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17103 # In both cases, we have to default to 'cp -pR'.
17104 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17105 as_ln_s='cp -pR'
17106 elif ln conf$$.file conf$$ 2>/dev/null; then
17107 as_ln_s=ln
17108 else
17109 as_ln_s='cp -pR'
17110 fi
17111 else
17112 as_ln_s='cp -pR'
17113 fi
17114 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17115 rmdir conf$$.dir 2>/dev/null
17116
17117
17118 # as_fn_mkdir_p
17119 # -------------
17120 # Create "$as_dir" as a directory, including parents if necessary.
17121 as_fn_mkdir_p ()
17122 {
17123
17124 case $as_dir in #(
17125 -*) as_dir=./$as_dir;;
17126 esac
17127 test -d "$as_dir" || eval $as_mkdir_p || {
17128 as_dirs=
17129 while :; do
17130 case $as_dir in #(
17131 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17132 *) as_qdir=$as_dir;;
17133 esac
17134 as_dirs="'$as_qdir' $as_dirs"
17135 as_dir=`$as_dirname -- "$as_dir" ||
17136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17137 X"$as_dir" : 'X\(//\)[^/]' \| \
17138 X"$as_dir" : 'X\(//\)$' \| \
17139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17140 printf "%s\n" X"$as_dir" |
17141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17142 s//\1/
17143 q
17144 }
17145 /^X\(\/\/\)[^/].*/{
17146 s//\1/
17147 q
17148 }
17149 /^X\(\/\/\)$/{
17150 s//\1/
17151 q
17152 }
17153 /^X\(\/\).*/{
17154 s//\1/
17155 q
17156 }
17157 s/.*/./; q'`
17158 test -d "$as_dir" && break
17159 done
17160 test -z "$as_dirs" || eval "mkdir $as_dirs"
17161 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17162
17163
17164 } # as_fn_mkdir_p
17165 if mkdir -p . 2>/dev/null; then
17166 as_mkdir_p='mkdir -p "$as_dir"'
17167 else
17168 test -d ./-p && rmdir ./-p
17169 as_mkdir_p=false
17170 fi
17171
17172
17173 # as_fn_executable_p FILE
17174 # -----------------------
17175 # Test if FILE is an executable regular file.
17176 as_fn_executable_p ()
17177 {
17178 test -f "$1" && test -x "$1"
17179 } # as_fn_executable_p
17180 as_test_x='test -x'
17181 as_executable_p=as_fn_executable_p
17182
17183 # Sed expression to map a string onto a valid CPP name.
17184 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17185 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17186
17187 # Sed expression to map a string onto a valid variable name.
17188 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17189 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17190
17191
17192 exec 6>&1
17193 ## ----------------------------------- ##
17194 ## Main body of $CONFIG_STATUS script. ##
17195 ## ----------------------------------- ##
17196 _ASEOF
17197 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17198
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200 # Save the log message, to keep $0 and so on meaningful, and to
17201 # report actual input values of CONFIG_FILES etc. instead of their
17202 # values after options handling.
17203 ac_log="
17204 This file was extended by liboauth2 $as_me 2.3.0, which was
17205 generated by GNU Autoconf 2.72. Invocation command line was
17206
17207 CONFIG_FILES = $CONFIG_FILES
17208 CONFIG_HEADERS = $CONFIG_HEADERS
17209 CONFIG_LINKS = $CONFIG_LINKS
17210 CONFIG_COMMANDS = $CONFIG_COMMANDS
17211 $ $0 $@
17212
17213 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17214 "
17215
17216 _ACEOF
17217
17218 case $ac_config_files in *"
17219 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17220 esac
17221
17222
17223
17224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17225 # Files that config.status was made for.
17226 config_files="$ac_config_files"
17227 config_commands="$ac_config_commands"
17228
17229 _ACEOF
17230
17231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17232 ac_cs_usage="\
17233 '$as_me' instantiates files and other configuration actions
17234 from templates according to the current configuration. Unless the files
17235 and actions are specified as TAGs, all are instantiated by default.
17236
17237 Usage: $0 [OPTION]... [TAG]...
17238
17239 -h, --help print this help, then exit
17240 -V, --version print version number and configuration settings, then exit
17241 --config print configuration, then exit
17242 -q, --quiet, --silent
17243 do not print progress messages
17244 -d, --debug don't remove temporary files
17245 --recheck update $as_me by reconfiguring in the same conditions
17246 --file=FILE[:TEMPLATE]
17247 instantiate the configuration file FILE
17248
17249 Configuration files:
17250 $config_files
17251
17252 Configuration commands:
17253 $config_commands
17254
17255 Report bugs to <[email protected]>."
17256
17257 _ACEOF
17258 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17259 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17261 ac_cs_config='$ac_cs_config_escaped'
17262 ac_cs_version="\\
17263 liboauth2 config.status 2.3.0
17264 configured by $0, generated by GNU Autoconf 2.72,
17265 with options \\"\$ac_cs_config\\"
17266
17267 Copyright (C) 2023 Free Software Foundation, Inc.
17268 This config.status script is free software; the Free Software Foundation
17269 gives unlimited permission to copy, distribute and modify it."
17270
17271 ac_pwd='$ac_pwd'
17272 srcdir='$srcdir'
17273 INSTALL='$INSTALL'
17274 MKDIR_P='$MKDIR_P'
17275 AWK='$AWK'
17276 test -n "\$AWK" || AWK=awk
17277 _ACEOF
17278
17279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17280 # The default lists apply if the user does not specify any file.
17281 ac_need_defaults=:
17282 while test $# != 0
17283 do
17284 case $1 in
17285 --*=?*)
17286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17288 ac_shift=:
17289 ;;
17290 --*=)
17291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17292 ac_optarg=
17293 ac_shift=:
17294 ;;
17295 *)
17296 ac_option=$1
17297 ac_optarg=$2
17298 ac_shift=shift
17299 ;;
17300 esac
17301
17302 case $ac_option in
17303 # Handling of the options.
17304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17305 ac_cs_recheck=: ;;
17306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17307 printf "%s\n" "$ac_cs_version"; exit ;;
17308 --config | --confi | --conf | --con | --co | --c )
17309 printf "%s\n" "$ac_cs_config"; exit ;;
17310 --debug | --debu | --deb | --de | --d | -d )
17311 debug=: ;;
17312 --file | --fil | --fi | --f )
17313 $ac_shift
17314 case $ac_optarg in
17315 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17316 '') as_fn_error $? "missing file argument" ;;
17317 esac
17318 as_fn_append CONFIG_FILES " '$ac_optarg'"
17319 ac_need_defaults=false;;
17320 --he | --h | --help | --hel | -h )
17321 printf "%s\n" "$ac_cs_usage"; exit ;;
17322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17324 ac_cs_silent=: ;;
17325
17326 # This is an error.
17327 -*) as_fn_error $? "unrecognized option: '$1'
17328 Try '$0 --help' for more information." ;;
17329
17330 *) as_fn_append ac_config_targets " $1"
17331 ac_need_defaults=false ;;
17332
17333 esac
17334 shift
17335 done
17336
17337 ac_configure_extra_args=
17338
17339 if $ac_cs_silent; then
17340 exec 6>/dev/null
17341 ac_configure_extra_args="$ac_configure_extra_args --silent"
17342 fi
17343
17344 _ACEOF
17345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17346 if \$ac_cs_recheck; then
17347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17348 shift
17349 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17350 CONFIG_SHELL='$SHELL'
17351 export CONFIG_SHELL
17352 exec "\$@"
17353 fi
17354
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 exec 5>>config.log
17358 {
17359 echo
17360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17361 ## Running $as_me. ##
17362 _ASBOX
17363 printf "%s\n" "$ac_log"
17364 } >&5
17365
17366 _ACEOF
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368 #
17369 # INIT-COMMANDS
17370 #
17371 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17372
17373
17374 # The HP-UX ksh and POSIX shell print the target directory to stdout
17375 # if CDPATH is set.
17376 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17377
17378 sed_quote_subst='$sed_quote_subst'
17379 double_quote_subst='$double_quote_subst'
17380 delay_variable_subst='$delay_variable_subst'
17381 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17382 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17383 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17384 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17385 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17386 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17387 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17388 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17389 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17390 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17391 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17392 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17393 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17394 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17395 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17396 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17397 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17398 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17399 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17400 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17401 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17402 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17403 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17404 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17405 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17406 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17407 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17408 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17409 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17410 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17411 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17412 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17413 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17414 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17415 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17416 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17417 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17418 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17419 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17420 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17421 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17422 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17423 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17424 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17425 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17426 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17427 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17428 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17429 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17430 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17431 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17432 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17433 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17434 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17435 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17436 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17437 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17438 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17439 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17440 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17441 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"`'
17442 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17443 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17444 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17445 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17446 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17447 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17448 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17449 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17450 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17451 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17452 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17453 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17454 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17455 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17456 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17457 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17458 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17459 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17460 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17461 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17462 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17463 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17464 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17465 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17466 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17467 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17468 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17469 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17470 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17471 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17472 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17473 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17474 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17475 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17476 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17477 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17478 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17479 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17480 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17481 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17482 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17483 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17484 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17485 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17486 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17487 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17488 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17489 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17490 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17491 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17492 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17493 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17494 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17495 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17496 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17497 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17498 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17499 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17500 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17501 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17502 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17503 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17504 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17505 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17506 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17507 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17508 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17509 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17510 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17511 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17512 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17513 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17514 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17515 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17516 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17517 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17518
17519 LTCC='$LTCC'
17520 LTCFLAGS='$LTCFLAGS'
17521 compiler='$compiler_DEFAULT'
17522
17523 # A function that is used when there is no print builtin or printf.
17524 func_fallback_echo ()
17525 {
17526 eval 'cat <<_LTECHO_EOF
17527 \$1
17528 _LTECHO_EOF'
17529 }
17530
17531 # Quote evaled strings.
17532 for var in SHELL \
17533 ECHO \
17534 PATH_SEPARATOR \
17535 SED \
17536 GREP \
17537 EGREP \
17538 FGREP \
17539 LD \
17540 NM \
17541 LN_S \
17542 lt_SP2NL \
17543 lt_NL2SP \
17544 reload_flag \
17545 FILECMD \
17546 OBJDUMP \
17547 deplibs_check_method \
17548 file_magic_cmd \
17549 file_magic_glob \
17550 want_nocaseglob \
17551 DLLTOOL \
17552 sharedlib_from_linklib_cmd \
17553 AR \
17554 archiver_list_spec \
17555 STRIP \
17556 RANLIB \
17557 CC \
17558 CFLAGS \
17559 compiler \
17560 lt_cv_sys_global_symbol_pipe \
17561 lt_cv_sys_global_symbol_to_cdecl \
17562 lt_cv_sys_global_symbol_to_import \
17563 lt_cv_sys_global_symbol_to_c_name_address \
17564 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17565 lt_cv_nm_interface \
17566 nm_file_list_spec \
17567 lt_cv_truncate_bin \
17568 lt_prog_compiler_no_builtin_flag \
17569 lt_prog_compiler_pic \
17570 lt_prog_compiler_wl \
17571 lt_prog_compiler_static \
17572 lt_cv_prog_compiler_c_o \
17573 need_locks \
17574 MANIFEST_TOOL \
17575 DSYMUTIL \
17576 NMEDIT \
17577 LIPO \
17578 OTOOL \
17579 OTOOL64 \
17580 shrext_cmds \
17581 export_dynamic_flag_spec \
17582 whole_archive_flag_spec \
17583 compiler_needs_object \
17584 with_gnu_ld \
17585 allow_undefined_flag \
17586 no_undefined_flag \
17587 hardcode_libdir_flag_spec \
17588 hardcode_libdir_separator \
17589 exclude_expsyms \
17590 include_expsyms \
17591 file_list_spec \
17592 variables_saved_for_relink \
17593 libname_spec \
17594 library_names_spec \
17595 soname_spec \
17596 install_override_mode \
17597 finish_eval \
17598 old_striplib \
17599 striplib; do
17600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17601 *[\\\\\\\`\\"\\\$]*)
17602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17603 ;;
17604 *)
17605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17606 ;;
17607 esac
17608 done
17609
17610 # Double-quote double-evaled strings.
17611 for var in reload_cmds \
17612 old_postinstall_cmds \
17613 old_postuninstall_cmds \
17614 old_archive_cmds \
17615 extract_expsyms_cmds \
17616 old_archive_from_new_cmds \
17617 old_archive_from_expsyms_cmds \
17618 archive_cmds \
17619 archive_expsym_cmds \
17620 module_cmds \
17621 module_expsym_cmds \
17622 export_symbols_cmds \
17623 prelink_cmds \
17624 postlink_cmds \
17625 postinstall_cmds \
17626 postuninstall_cmds \
17627 finish_cmds \
17628 sys_lib_search_path_spec \
17629 configure_time_dlsearch_path \
17630 configure_time_lt_sys_library_path; do
17631 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17632 *[\\\\\\\`\\"\\\$]*)
17633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17634 ;;
17635 *)
17636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17637 ;;
17638 esac
17639 done
17640
17641 ac_aux_dir='$ac_aux_dir'
17642
17643 # See if we are running on zsh, and set the options that allow our
17644 # commands through without removal of \ escapes INIT.
17645 if test -n "\${ZSH_VERSION+set}"; then
17646 setopt NO_GLOB_SUBST
17647 fi
17648
17649
17650 PACKAGE='$PACKAGE'
17651 VERSION='$VERSION'
17652 RM='$RM'
17653 ofile='$ofile'
17654
17655
17656
17657
17658 _ACEOF
17659
17660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17661
17662 # Handling of arguments.
17663 for ac_config_target in $ac_config_targets
17664 do
17665 case $ac_config_target in
17666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17667 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17668 "include/oauth2/version.h") CONFIG_FILES="$CONFIG_FILES include/oauth2/version.h" ;;
17669 "liboauth2.pc") CONFIG_FILES="$CONFIG_FILES liboauth2.pc" ;;
17670 "liboauth2_apache.pc") CONFIG_FILES="$CONFIG_FILES liboauth2_apache.pc" ;;
17671 "liboauth2_nginx.pc") CONFIG_FILES="$CONFIG_FILES liboauth2_nginx.pc" ;;
17672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17673
17674 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17675 esac
17676 done
17677
17678
17679 # If the user did not use the arguments to specify the items to instantiate,
17680 # then the envvar interface is used. Set only those that are not.
17681 # We use the long form for the default assignment because of an extremely
17682 # bizarre bug on SunOS 4.1.3.
17683 if $ac_need_defaults; then
17684 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17685 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17686 fi
17687
17688 # Have a temporary directory for convenience. Make it in the build tree
17689 # simply because there is no reason against having it here, and in addition,
17690 # creating and moving files from /tmp can sometimes cause problems.
17691 # Hook for its removal unless debugging.
17692 # Note that there is a small window in which the directory will not be cleaned:
17693 # after its creation but before its name has been assigned to '$tmp'.
17694 $debug ||
17695 {
17696 tmp= ac_tmp=
17697 trap 'exit_status=$?
17698 : "${ac_tmp:=$tmp}"
17699 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17700 ' 0
17701 trap 'as_fn_exit 1' 1 2 13 15
17702 }
17703 # Create a (secure) tmp directory for tmp files.
17704
17705 {
17706 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17707 test -d "$tmp"
17708 } ||
17709 {
17710 tmp=./conf$$-$RANDOM
17711 (umask 077 && mkdir "$tmp")
17712 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17713 ac_tmp=$tmp
17714
17715 # Set up the scripts for CONFIG_FILES section.
17716 # No need to generate them if there are no CONFIG_FILES.
17717 # This happens for instance with './config.status config.h'.
17718 if test -n "$CONFIG_FILES"; then
17719
17720
17721 ac_cr=`echo X | tr X '\015'`
17722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17723 # But we know of no other shell where ac_cr would be empty at this
17724 # point, so we can use a bashism as a fallback.
17725 if test "x$ac_cr" = x; then
17726 eval ac_cr=\$\'\\r\'
17727 fi
17728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17730 ac_cs_awk_cr='\\r'
17731 else
17732 ac_cs_awk_cr=$ac_cr
17733 fi
17734
17735 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17736 _ACEOF
17737
17738
17739 {
17740 echo "cat >conf$$subs.awk <<_ACEOF" &&
17741 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17742 echo "_ACEOF"
17743 } >conf$$subs.sh ||
17744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17745 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17746 ac_delim='%!_!# '
17747 for ac_last_try in false false false false false :; do
17748 . ./conf$$subs.sh ||
17749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17750
17751 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17752 if test $ac_delim_n = $ac_delim_num; then
17753 break
17754 elif $ac_last_try; then
17755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17756 else
17757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17758 fi
17759 done
17760 rm -f conf$$subs.sh
17761
17762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17763 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17764 _ACEOF
17765 sed -n '
17766 h
17767 s/^/S["/; s/!.*/"]=/
17768 p
17769 g
17770 s/^[^!]*!//
17771 :repl
17772 t repl
17773 s/'"$ac_delim"'$//
17774 t delim
17775 :nl
17776 h
17777 s/\(.\{148\}\)..*/\1/
17778 t more1
17779 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17780 p
17781 n
17782 b repl
17783 :more1
17784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17785 p
17786 g
17787 s/.\{148\}//
17788 t nl
17789 :delim
17790 h
17791 s/\(.\{148\}\)..*/\1/
17792 t more2
17793 s/["\\]/\\&/g; s/^/"/; s/$/"/
17794 p
17795 b
17796 :more2
17797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17798 p
17799 g
17800 s/.\{148\}//
17801 t delim
17802 ' <conf$$subs.awk | sed '
17803 /^[^""]/{
17804 N
17805 s/\n//
17806 }
17807 ' >>$CONFIG_STATUS || ac_write_fail=1
17808 rm -f conf$$subs.awk
17809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17810 _ACAWK
17811 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17812 for (key in S) S_is_set[key] = 1
17813 FS = ""
17814
17815 }
17816 {
17817 line = $ 0
17818 nfields = split(line, field, "@")
17819 substed = 0
17820 len = length(field[1])
17821 for (i = 2; i < nfields; i++) {
17822 key = field[i]
17823 keylen = length(key)
17824 if (S_is_set[key]) {
17825 value = S[key]
17826 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17827 len += length(value) + length(field[++i])
17828 substed = 1
17829 } else
17830 len += 1 + keylen
17831 }
17832
17833 print line
17834 }
17835
17836 _ACAWK
17837 _ACEOF
17838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17839 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17840 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17841 else
17842 cat
17843 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17844 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17845 _ACEOF
17846
17847 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17848 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17849 # trailing colons and then remove the whole line if VPATH becomes empty
17850 # (actually we leave an empty line to preserve line numbers).
17851 if test "x$srcdir" = x.; then
17852 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17853 h
17854 s///
17855 s/^/:/
17856 s/[ ]*$/:/
17857 s/:\$(srcdir):/:/g
17858 s/:\${srcdir}:/:/g
17859 s/:@srcdir@:/:/g
17860 s/^:*//
17861 s/:*$//
17862 x
17863 s/\(=[ ]*\).*/\1/
17864 G
17865 s/\n//
17866 s/^[^=]*=[ ]*$//
17867 }'
17868 fi
17869
17870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17871 fi # test -n "$CONFIG_FILES"
17872
17873
17874 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17875 shift
17876 for ac_tag
17877 do
17878 case $ac_tag in
17879 :[FHLC]) ac_mode=$ac_tag; continue;;
17880 esac
17881 case $ac_mode$ac_tag in
17882 :[FHL]*:*);;
17883 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17884 :[FH]-) ac_tag=-:-;;
17885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17886 esac
17887 ac_save_IFS=$IFS
17888 IFS=:
17889 set x $ac_tag
17890 IFS=$ac_save_IFS
17891 shift
17892 ac_file=$1
17893 shift
17894
17895 case $ac_mode in
17896 :L) ac_source=$1;;
17897 :[FH])
17898 ac_file_inputs=
17899 for ac_f
17900 do
17901 case $ac_f in
17902 -) ac_f="$ac_tmp/stdin";;
17903 *) # Look for the file first in the build tree, then in the source tree
17904 # (if the path is not absolute). The absolute path cannot be DOS-style,
17905 # because $ac_f cannot contain ':'.
17906 test -f "$ac_f" ||
17907 case $ac_f in
17908 [\\/$]*) false;;
17909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17910 esac ||
17911 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17912 esac
17913 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17914 as_fn_append ac_file_inputs " '$ac_f'"
17915 done
17916
17917 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17918 # use $as_me), people would be surprised to read:
17919 # /* config.h. Generated by config.status. */
17920 configure_input='Generated from '`
17921 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17922 `' by configure.'
17923 if test x"$ac_file" != x-; then
17924 configure_input="$ac_file. $configure_input"
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17926 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17927 fi
17928 # Neutralize special characters interpreted by sed in replacement strings.
17929 case $configure_input in #(
17930 *\&* | *\|* | *\\* )
17931 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17933 *) ac_sed_conf_input=$configure_input;;
17934 esac
17935
17936 case $ac_tag in
17937 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17939 esac
17940 ;;
17941 esac
17942
17943 ac_dir=`$as_dirname -- "$ac_file" ||
17944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17945 X"$ac_file" : 'X\(//\)[^/]' \| \
17946 X"$ac_file" : 'X\(//\)$' \| \
17947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17948 printf "%s\n" X"$ac_file" |
17949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17950 s//\1/
17951 q
17952 }
17953 /^X\(\/\/\)[^/].*/{
17954 s//\1/
17955 q
17956 }
17957 /^X\(\/\/\)$/{
17958 s//\1/
17959 q
17960 }
17961 /^X\(\/\).*/{
17962 s//\1/
17963 q
17964 }
17965 s/.*/./; q'`
17966 as_dir="$ac_dir"; as_fn_mkdir_p
17967 ac_builddir=.
17968
17969 case "$ac_dir" in
17970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17971 *)
17972 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17973 # A ".." for each directory in $ac_dir_suffix.
17974 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17975 case $ac_top_builddir_sub in
17976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17978 esac ;;
17979 esac
17980 ac_abs_top_builddir=$ac_pwd
17981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17982 # for backward compatibility:
17983 ac_top_builddir=$ac_top_build_prefix
17984
17985 case $srcdir in
17986 .) # We are building in place.
17987 ac_srcdir=.
17988 ac_top_srcdir=$ac_top_builddir_sub
17989 ac_abs_top_srcdir=$ac_pwd ;;
17990 [\\/]* | ?:[\\/]* ) # Absolute name.
17991 ac_srcdir=$srcdir$ac_dir_suffix;
17992 ac_top_srcdir=$srcdir
17993 ac_abs_top_srcdir=$srcdir ;;
17994 *) # Relative name.
17995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17996 ac_top_srcdir=$ac_top_build_prefix$srcdir
17997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17998 esac
17999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18000
18001
18002 case $ac_mode in
18003 :F)
18004 #
18005 # CONFIG_FILE
18006 #
18007
18008 case $INSTALL in
18009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18011 esac
18012 ac_MKDIR_P=$MKDIR_P
18013 case $MKDIR_P in
18014 [\\/$]* | ?:[\\/]* ) ;;
18015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18016 esac
18017 _ACEOF
18018
18019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18020 # If the template does not know about datarootdir, expand it.
18021 # FIXME: This hack should be removed a few years after 2.60.
18022 ac_datarootdir_hack=; ac_datarootdir_seen=
18023 ac_sed_dataroot='
18024 /datarootdir/ {
18025 p
18026 q
18027 }
18028 /@datadir@/p
18029 /@docdir@/p
18030 /@infodir@/p
18031 /@localedir@/p
18032 /@mandir@/p'
18033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18034 *datarootdir*) ac_datarootdir_seen=yes;;
18035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18037 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18038 _ACEOF
18039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18040 ac_datarootdir_hack='
18041 s&@datadir@&$datadir&g
18042 s&@docdir@&$docdir&g
18043 s&@infodir@&$infodir&g
18044 s&@localedir@&$localedir&g
18045 s&@mandir@&$mandir&g
18046 s&\\\${datarootdir}&$datarootdir&g' ;;
18047 esac
18048 _ACEOF
18049
18050 # Neutralize VPATH when '$srcdir' = '.'.
18051 # Shell code in configure.ac might set extrasub.
18052 # FIXME: do we really want to maintain this feature?
18053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18054 ac_sed_extra="$ac_vpsub
18055 $extrasub
18056 _ACEOF
18057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18058 :t
18059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18060 s|@configure_input@|$ac_sed_conf_input|;t t
18061 s&@top_builddir@&$ac_top_builddir_sub&;t t
18062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18063 s&@srcdir@&$ac_srcdir&;t t
18064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18065 s&@top_srcdir@&$ac_top_srcdir&;t t
18066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18067 s&@builddir@&$ac_builddir&;t t
18068 s&@abs_builddir@&$ac_abs_builddir&;t t
18069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18070 s&@INSTALL@&$ac_INSTALL&;t t
18071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18072 $ac_datarootdir_hack
18073 "
18074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18076
18077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18082 which seems to be undefined. Please make sure it is defined" >&5
18083 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18084 which seems to be undefined. Please make sure it is defined" >&2;}
18085
18086 rm -f "$ac_tmp/stdin"
18087 case $ac_file in
18088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18090 esac \
18091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18092 ;;
18093
18094
18095 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18096 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18097 ;;
18098 esac
18099
18100
18101 case $ac_file$ac_mode in
18102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18103 # Older Autoconf quotes --file arguments for eval, but not when files
18104 # are listed without --file. Let's play safe and only enable the eval
18105 # if we detect the quoting.
18106 # TODO: see whether this extra hack can be removed once we start
18107 # requiring Autoconf 2.70 or later.
18108 case $CONFIG_FILES in #(
18109 *\'*) :
18110 eval set x "$CONFIG_FILES" ;; #(
18111 *) :
18112 set x $CONFIG_FILES ;; #(
18113 *) :
18114 ;;
18115 esac
18116 shift
18117 # Used to flag and report bootstrapping failures.
18118 am_rc=0
18119 for am_mf
18120 do
18121 # Strip MF so we end up with the name of the file.
18122 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18123 # Check whether this is an Automake generated Makefile which includes
18124 # dependency-tracking related rules and includes.
18125 # Grep'ing the whole file directly is not great: AIX grep has a line
18126 # limit of 2048, but all sed's we know have understand at least 4000.
18127 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18128 || continue
18129 am_dirpart=`$as_dirname -- "$am_mf" ||
18130 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18131 X"$am_mf" : 'X\(//\)[^/]' \| \
18132 X"$am_mf" : 'X\(//\)$' \| \
18133 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18134 printf "%s\n" X"$am_mf" |
18135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18136 s//\1/
18137 q
18138 }
18139 /^X\(\/\/\)[^/].*/{
18140 s//\1/
18141 q
18142 }
18143 /^X\(\/\/\)$/{
18144 s//\1/
18145 q
18146 }
18147 /^X\(\/\).*/{
18148 s//\1/
18149 q
18150 }
18151 s/.*/./; q'`
18152 am_filepart=`$as_basename -- "$am_mf" ||
18153 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18154 X"$am_mf" : 'X\(//\)$' \| \
18155 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18156 printf "%s\n" X/"$am_mf" |
18157 sed '/^.*\/\([^/][^/]*\)\/*$/{
18158 s//\1/
18159 q
18160 }
18161 /^X\/\(\/\/\)$/{
18162 s//\1/
18163 q
18164 }
18165 /^X\/\(\/\).*/{
18166 s//\1/
18167 q
18168 }
18169 s/.*/./; q'`
18170 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18171 && sed -e '/# am--include-marker/d' "$am_filepart" \
18172 | $MAKE -f - am--depfiles" >&5
18173 (cd "$am_dirpart" \
18174 && sed -e '/# am--include-marker/d' "$am_filepart" \
18175 | $MAKE -f - am--depfiles) >&5 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } || am_rc=$?
18179 done
18180 if test $am_rc -ne 0; then
18181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18182 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18183 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18184 for automatic dependency tracking. If GNU make was not used, consider
18185 re-running the configure script with MAKE=\"gmake\" (or whatever is
18186 necessary). You can also try re-running configure with the
18187 '--disable-dependency-tracking' option to at least be able to build
18188 the package (albeit without support for automatic dependency tracking).
18189 See 'config.log' for more details" "$LINENO" 5; }
18190 fi
18191 { am_dirpart=; unset am_dirpart;}
18192 { am_filepart=; unset am_filepart;}
18193 { am_mf=; unset am_mf;}
18194 { am_rc=; unset am_rc;}
18195 rm -f conftest-deps.mk
18196 }
18197 ;;
18198 "libtool":C)
18199
18200 # See if we are running on zsh, and set the options that allow our
18201 # commands through without removal of \ escapes.
18202 if test -n "${ZSH_VERSION+set}"; then
18203 setopt NO_GLOB_SUBST
18204 fi
18205
18206 cfgfile=${ofile}T
18207 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18208 $RM "$cfgfile"
18209
18210 cat <<_LT_EOF >> "$cfgfile"
18211 #! $SHELL
18212 # Generated automatically by $as_me ($PACKAGE) $VERSION
18213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18214
18215 # Provide generalized library-building support services.
18216 # Written by Gordon Matzigkeit, 1996
18217
18218 # Copyright (C) 2024 Free Software Foundation, Inc.
18219 # This is free software; see the source for copying conditions. There is NO
18220 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18221
18222 # GNU Libtool is free software; you can redistribute it and/or modify
18223 # it under the terms of the GNU General Public License as published by
18224 # the Free Software Foundation; either version 2 of the License, or
18225 # (at your option) any later version.
18226 #
18227 # As a special exception to the GNU General Public License, if you
18228 # distribute this file as part of a program or library that is built
18229 # using GNU Libtool, you may include this file under the same
18230 # distribution terms that you use for the rest of that program.
18231 #
18232 # GNU Libtool is distributed in the hope that it will be useful, but
18233 # WITHOUT ANY WARRANTY; without even the implied warranty of
18234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18235 # GNU General Public License for more details.
18236 #
18237 # You should have received a copy of the GNU General Public License
18238 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18239
18240
18241 # The names of the tagged configurations supported by this script.
18242 available_tags=''
18243
18244 # Configured defaults for sys_lib_dlsearch_path munging.
18245 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18246
18247 # ### BEGIN LIBTOOL CONFIG
18248
18249 # Which release of libtool.m4 was used?
18250 macro_version=$macro_version
18251 macro_revision=$macro_revision
18252
18253 # Whether or not to build shared libraries.
18254 build_libtool_libs=$enable_shared
18255
18256 # Whether or not to build static libraries.
18257 build_old_libs=$enable_static
18258
18259 # What type of objects to build.
18260 pic_mode=$pic_mode
18261
18262 # Whether or not to optimize for fast installation.
18263 fast_install=$enable_fast_install
18264
18265 # Shared archive member basename,for filename based shared library versioning on AIX.
18266 shared_archive_member_spec=$shared_archive_member_spec
18267
18268 # Shell to use when invoking shell scripts.
18269 SHELL=$lt_SHELL
18270
18271 # An echo program that protects backslashes.
18272 ECHO=$lt_ECHO
18273
18274 # The PATH separator for the build system.
18275 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18276
18277 # The host system.
18278 host_alias=$host_alias
18279 host=$host
18280 host_os=$host_os
18281
18282 # The build system.
18283 build_alias=$build_alias
18284 build=$build
18285 build_os=$build_os
18286
18287 # A sed program that does not truncate output.
18288 SED=$lt_SED
18289
18290 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18291 Xsed="\$SED -e 1s/^X//"
18292
18293 # A grep program that handles long lines.
18294 GREP=$lt_GREP
18295
18296 # An ERE matcher.
18297 EGREP=$lt_EGREP
18298
18299 # A literal string matcher.
18300 FGREP=$lt_FGREP
18301
18302 # A BSD- or MS-compatible name lister.
18303 NM=$lt_NM
18304
18305 # Whether we need soft or hard links.
18306 LN_S=$lt_LN_S
18307
18308 # What is the maximum length of a command?
18309 max_cmd_len=$max_cmd_len
18310
18311 # Object file suffix (normally "o").
18312 objext=$ac_objext
18313
18314 # Executable file suffix (normally "").
18315 exeext=$exeext
18316
18317 # whether the shell understands "unset".
18318 lt_unset=$lt_unset
18319
18320 # turn spaces into newlines.
18321 SP2NL=$lt_lt_SP2NL
18322
18323 # turn newlines into spaces.
18324 NL2SP=$lt_lt_NL2SP
18325
18326 # convert \$build file names to \$host format.
18327 to_host_file_cmd=$lt_cv_to_host_file_cmd
18328
18329 # convert \$build files to toolchain format.
18330 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18331
18332 # A file(cmd) program that detects file types.
18333 FILECMD=$lt_FILECMD
18334
18335 # An object symbol dumper.
18336 OBJDUMP=$lt_OBJDUMP
18337
18338 # Method to check whether dependent libraries are shared objects.
18339 deplibs_check_method=$lt_deplibs_check_method
18340
18341 # Command to use when deplibs_check_method = "file_magic".
18342 file_magic_cmd=$lt_file_magic_cmd
18343
18344 # How to find potential files when deplibs_check_method = "file_magic".
18345 file_magic_glob=$lt_file_magic_glob
18346
18347 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18348 want_nocaseglob=$lt_want_nocaseglob
18349
18350 # DLL creation program.
18351 DLLTOOL=$lt_DLLTOOL
18352
18353 # Command to associate shared and link libraries.
18354 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18355
18356 # The archiver.
18357 AR=$lt_AR
18358
18359 # Flags to create an archive (by configure).
18360 lt_ar_flags=$lt_ar_flags
18361
18362 # Flags to create an archive.
18363 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18364
18365 # How to feed a file listing to the archiver.
18366 archiver_list_spec=$lt_archiver_list_spec
18367
18368 # A symbol stripping program.
18369 STRIP=$lt_STRIP
18370
18371 # Commands used to install an old-style archive.
18372 RANLIB=$lt_RANLIB
18373 old_postinstall_cmds=$lt_old_postinstall_cmds
18374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18375
18376 # Whether to use a lock for old archive extraction.
18377 lock_old_archive_extraction=$lock_old_archive_extraction
18378
18379 # A C compiler.
18380 LTCC=$lt_CC
18381
18382 # LTCC compiler flags.
18383 LTCFLAGS=$lt_CFLAGS
18384
18385 # Take the output of nm and produce a listing of raw symbols and C names.
18386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18387
18388 # Transform the output of nm in a proper C declaration.
18389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18390
18391 # Transform the output of nm into a list of symbols to manually relocate.
18392 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18393
18394 # Transform the output of nm in a C name address pair.
18395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18396
18397 # Transform the output of nm in a C name address pair when lib prefix is needed.
18398 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18399
18400 # The name lister interface.
18401 nm_interface=$lt_lt_cv_nm_interface
18402
18403 # Specify filename containing input files for \$NM.
18404 nm_file_list_spec=$lt_nm_file_list_spec
18405
18406 # The root where to search for dependent libraries,and where our libraries should be installed.
18407 lt_sysroot=$lt_sysroot
18408
18409 # Command to truncate a binary pipe.
18410 lt_truncate_bin=$lt_lt_cv_truncate_bin
18411
18412 # The name of the directory that contains temporary libtool files.
18413 objdir=$objdir
18414
18415 # Used to examine libraries when file_magic_cmd begins with "file".
18416 MAGIC_CMD=$MAGIC_CMD
18417
18418 # Must we lock files when doing compilation?
18419 need_locks=$lt_need_locks
18420
18421 # Manifest tool.
18422 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18423
18424 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18425 DSYMUTIL=$lt_DSYMUTIL
18426
18427 # Tool to change global to local symbols on Mac OS X.
18428 NMEDIT=$lt_NMEDIT
18429
18430 # Tool to manipulate fat objects and archives on Mac OS X.
18431 LIPO=$lt_LIPO
18432
18433 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18434 OTOOL=$lt_OTOOL
18435
18436 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18437 OTOOL64=$lt_OTOOL64
18438
18439 # Old archive suffix (normally "a").
18440 libext=$libext
18441
18442 # Shared library suffix (normally ".so").
18443 shrext_cmds=$lt_shrext_cmds
18444
18445 # The commands to extract the exported symbol list from a shared archive.
18446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18447
18448 # Variables whose values should be saved in libtool wrapper scripts and
18449 # restored at link time.
18450 variables_saved_for_relink=$lt_variables_saved_for_relink
18451
18452 # Do we need the "lib" prefix for modules?
18453 need_lib_prefix=$need_lib_prefix
18454
18455 # Do we need a version for libraries?
18456 need_version=$need_version
18457
18458 # Library versioning type.
18459 version_type=$version_type
18460
18461 # Shared library runtime path variable.
18462 runpath_var=$runpath_var
18463
18464 # Shared library path variable.
18465 shlibpath_var=$shlibpath_var
18466
18467 # Is shlibpath searched before the hard-coded library search path?
18468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18469
18470 # Format of library name prefix.
18471 libname_spec=$lt_libname_spec
18472
18473 # List of archive names. First name is the real one, the rest are links.
18474 # The last name is the one that the linker finds with -lNAME
18475 library_names_spec=$lt_library_names_spec
18476
18477 # The coded name of the library, if different from the real name.
18478 soname_spec=$lt_soname_spec
18479
18480 # Permission mode override for installation of shared libraries.
18481 install_override_mode=$lt_install_override_mode
18482
18483 # Command to use after installation of a shared archive.
18484 postinstall_cmds=$lt_postinstall_cmds
18485
18486 # Command to use after uninstallation of a shared archive.
18487 postuninstall_cmds=$lt_postuninstall_cmds
18488
18489 # Commands used to finish a libtool library installation in a directory.
18490 finish_cmds=$lt_finish_cmds
18491
18492 # As "finish_cmds", except a single script fragment to be evaled but
18493 # not shown.
18494 finish_eval=$lt_finish_eval
18495
18496 # Whether we should hardcode library paths into libraries.
18497 hardcode_into_libs=$hardcode_into_libs
18498
18499 # Compile-time system search path for libraries.
18500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18501
18502 # Detected run-time system search path for libraries.
18503 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18504
18505 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18506 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18507
18508 # Whether dlopen is supported.
18509 dlopen_support=$enable_dlopen
18510
18511 # Whether dlopen of programs is supported.
18512 dlopen_self=$enable_dlopen_self
18513
18514 # Whether dlopen of statically linked programs is supported.
18515 dlopen_self_static=$enable_dlopen_self_static
18516
18517 # Commands to strip libraries.
18518 old_striplib=$lt_old_striplib
18519 striplib=$lt_striplib
18520
18521
18522 # The linker used to build libraries.
18523 LD=$lt_LD
18524
18525 # How to create reloadable object files.
18526 reload_flag=$lt_reload_flag
18527 reload_cmds=$lt_reload_cmds
18528
18529 # Commands used to build an old-style archive.
18530 old_archive_cmds=$lt_old_archive_cmds
18531
18532 # A language specific compiler.
18533 CC=$lt_compiler
18534
18535 # Is the compiler the GNU compiler?
18536 with_gcc=$GCC
18537
18538 # Compiler flag to turn off builtin functions.
18539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18540
18541 # Additional compiler flags for building library objects.
18542 pic_flag=$lt_lt_prog_compiler_pic
18543
18544 # How to pass a linker flag through the compiler.
18545 wl=$lt_lt_prog_compiler_wl
18546
18547 # Compiler flag to prevent dynamic linking.
18548 link_static_flag=$lt_lt_prog_compiler_static
18549
18550 # Does compiler simultaneously support -c and -o options?
18551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18552
18553 # Whether or not to add -lc for building shared libraries.
18554 build_libtool_need_lc=$archive_cmds_need_lc
18555
18556 # Whether or not to disallow shared libs when runtime libs are static.
18557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18558
18559 # Compiler flag to allow reflexive dlopens.
18560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18561
18562 # Compiler flag to generate shared objects directly from archives.
18563 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18564
18565 # Whether the compiler copes with passing no objects directly.
18566 compiler_needs_object=$lt_compiler_needs_object
18567
18568 # Create an old-style archive from a shared archive.
18569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18570
18571 # Create a temporary old-style archive to link instead of a shared archive.
18572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18573
18574 # Commands used to build a shared archive.
18575 archive_cmds=$lt_archive_cmds
18576 archive_expsym_cmds=$lt_archive_expsym_cmds
18577
18578 # Commands used to build a loadable module if different from building
18579 # a shared archive.
18580 module_cmds=$lt_module_cmds
18581 module_expsym_cmds=$lt_module_expsym_cmds
18582
18583 # Whether we are building with GNU ld or not.
18584 with_gnu_ld=$lt_with_gnu_ld
18585
18586 # Flag that allows shared libraries with undefined symbols to be built.
18587 allow_undefined_flag=$lt_allow_undefined_flag
18588
18589 # Flag that enforces no undefined symbols.
18590 no_undefined_flag=$lt_no_undefined_flag
18591
18592 # Flag to hardcode \$libdir into a binary during linking.
18593 # This must work even if \$libdir does not exist
18594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18595
18596 # Whether we need a single "-rpath" flag with a separated argument.
18597 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18598
18599 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18600 # DIR into the resulting binary.
18601 hardcode_direct=$hardcode_direct
18602
18603 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18604 # DIR into the resulting binary and the resulting library dependency is
18605 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18606 # library is relocated.
18607 hardcode_direct_absolute=$hardcode_direct_absolute
18608
18609 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18610 # into the resulting binary.
18611 hardcode_minus_L=$hardcode_minus_L
18612
18613 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18614 # into the resulting binary.
18615 hardcode_shlibpath_var=$hardcode_shlibpath_var
18616
18617 # Set to "yes" if building a shared library automatically hardcodes DIR
18618 # into the library and all subsequent libraries and executables linked
18619 # against it.
18620 hardcode_automatic=$hardcode_automatic
18621
18622 # Set to yes if linker adds runtime paths of dependent libraries
18623 # to runtime path list.
18624 inherit_rpath=$inherit_rpath
18625
18626 # Whether libtool must link a program against all its dependency libraries.
18627 link_all_deplibs=$link_all_deplibs
18628
18629 # Set to "yes" if exported symbols are required.
18630 always_export_symbols=$always_export_symbols
18631
18632 # The commands to list exported symbols.
18633 export_symbols_cmds=$lt_export_symbols_cmds
18634
18635 # Symbols that should not be listed in the preloaded symbols.
18636 exclude_expsyms=$lt_exclude_expsyms
18637
18638 # Symbols that must always be exported.
18639 include_expsyms=$lt_include_expsyms
18640
18641 # Commands necessary for linking programs (against libraries) with templates.
18642 prelink_cmds=$lt_prelink_cmds
18643
18644 # Commands necessary for finishing linking programs.
18645 postlink_cmds=$lt_postlink_cmds
18646
18647 # Specify filename containing input files.
18648 file_list_spec=$lt_file_list_spec
18649
18650 # How to hardcode a shared library path into an executable.
18651 hardcode_action=$hardcode_action
18652
18653 # ### END LIBTOOL CONFIG
18654
18655 _LT_EOF
18656
18657 cat <<'_LT_EOF' >> "$cfgfile"
18658
18659 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18660
18661 # func_munge_path_list VARIABLE PATH
18662 # -----------------------------------
18663 # VARIABLE is name of variable containing _space_ separated list of
18664 # directories to be munged by the contents of PATH, which is string
18665 # having a format:
18666 # "DIR[:DIR]:"
18667 # string "DIR[ DIR]" will be prepended to VARIABLE
18668 # ":DIR[:DIR]"
18669 # string "DIR[ DIR]" will be appended to VARIABLE
18670 # "DIRP[:DIRP]::[DIRA:]DIRA"
18671 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18672 # "DIRA[ DIRA]" will be appended to VARIABLE
18673 # "DIR[:DIR]"
18674 # VARIABLE will be replaced by "DIR[ DIR]"
18675 func_munge_path_list ()
18676 {
18677 case x$2 in
18678 x)
18679 ;;
18680 *:)
18681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18682 ;;
18683 x:*)
18684 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18685 ;;
18686 *::*)
18687 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18688 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18689 ;;
18690 *)
18691 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18692 ;;
18693 esac
18694 }
18695
18696
18697 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18698 func_cc_basename ()
18699 {
18700 for cc_temp in $*""; do
18701 case $cc_temp in
18702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18704 \-*) ;;
18705 *) break;;
18706 esac
18707 done
18708 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18709 }
18710
18711
18712 # ### END FUNCTIONS SHARED WITH CONFIGURE
18713
18714 _LT_EOF
18715
18716 case $host_os in
18717 aix3*)
18718 cat <<\_LT_EOF >> "$cfgfile"
18719 # AIX sometimes has problems with the GCC collect2 program. For some
18720 # reason, if we set the COLLECT_NAMES environment variable, the problems
18721 # vanish in a puff of smoke.
18722 if test set != "${COLLECT_NAMES+set}"; then
18723 COLLECT_NAMES=
18724 export COLLECT_NAMES
18725 fi
18726 _LT_EOF
18727 ;;
18728 esac
18729
18730
18731
18732 ltmain=$ac_aux_dir/ltmain.sh
18733
18734
18735 # We use sed instead of cat because bash on DJGPP gets confused if
18736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18737 # text mode, it properly converts lines to CR/LF. This bash problem
18738 # is reportedly fixed, but why not run on old versions too?
18739 $SED '$q' "$ltmain" >> "$cfgfile" \
18740 || (rm -f "$cfgfile"; exit 1)
18741
18742 mv -f "$cfgfile" "$ofile" ||
18743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18744 chmod +x "$ofile"
18745
18746 ;;
18747
18748 esac
18749 done # for ac_tag
18750
18751
18752 as_fn_exit 0
18753 _ACEOF
18754 ac_clean_files=$ac_clean_files_save
18755
18756 test $ac_write_fail = 0 ||
18757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18758
18759
18760 # configure is writing to config.log, and then calls config.status.
18761 # config.status does its own redirection, appending to config.log.
18762 # Unfortunately, on DOS this fails, as config.log is still kept open
18763 # by configure, so config.status won't be able to write to it; its
18764 # output is simply discarded. So we exec the FD to /dev/null,
18765 # effectively closing config.log, so it can be properly (re)opened and
18766 # appended to by config.status. When coming back to configure, we
18767 # need to make the FD available again.
18768 if test "$no_create" != yes; then
18769 ac_cs_success=:
18770 ac_config_status_args=
18771 test "$silent" = yes &&
18772 ac_config_status_args="$ac_config_status_args --quiet"
18773 exec 5>/dev/null
18774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18775 exec 5>>config.log
18776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18777 # would make configure fail if this is the last instruction.
18778 $ac_cs_success || as_fn_exit 1
18779 fi
18780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18782 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18783 fi
18784
18785