Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for mod_sts 3.4.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='mod_sts'
623 PACKAGE_TARNAME='mod_sts'
624 PACKAGE_VERSION='3.4.0'
625 PACKAGE_STRING='mod_sts 3.4.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 XML_LIBS
666 XML_CFLAGS
667 OAUTH2_APACHE_LIBS
668 OAUTH2_APACHE_CFLAGS
669 OAUTH2_LIBS
670 OAUTH2_CFLAGS
671 APXS_OPTS
672 APACHE_CFLAGS
673 HAVE_APACHE_FALSE
674 HAVE_APACHE_TRUE
675 APR_LIBS
676 APR_CFLAGS
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 APXS
681 CODE_COVERAGE_RULES
682 CODE_COVERAGE_LDFLAGS
683 CODE_COVERAGE_LIBS
684 CODE_COVERAGE_CXXFLAGS
685 CODE_COVERAGE_CFLAGS
686 CODE_COVERAGE_CPPFLAGS
687 GENHTML
688 LCOV
689 GCOV
690 CODE_COVERAGE_ENABLED
691 CODE_COVERAGE_ENABLED_FALSE
692 CODE_COVERAGE_ENABLED_TRUE
693 LT_SYS_LIBRARY_PATH
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 DLLTOOL
704 OBJDUMP
705 FILECMD
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 LIBTOOL
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 CSCOPE
745 ETAGS
746 CTAGS
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_alias
771 host_alias
772 build_alias
773 LIBS
774 ECHO_T
775 ECHO_N
776 ECHO_C
777 DEFS
778 mandir
779 localedir
780 libdir
781 psdir
782 pdfdir
783 dvidir
784 htmldir
785 infodir
786 docdir
787 oldincludedir
788 includedir
789 runstatedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL
809 am__quote'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 enable_silent_rules
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_aix_soname
819 enable_dependency_tracking
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 with_gcov
824 enable_code_coverage
825 with_apache
826 with_apxs
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 LT_SYS_LIBRARY_PATH
837 PKG_CONFIG
838 PKG_CONFIG_PATH
839 PKG_CONFIG_LIBDIR
840 APR_CFLAGS
841 APR_LIBS
842 APXS_OPTS
843 OAUTH2_CFLAGS
844 OAUTH2_LIBS
845 OAUTH2_APACHE_CFLAGS
846 OAUTH2_APACHE_LIBS
847 XML_CFLAGS
848 XML_LIBS'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: \`$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: \`$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: \`$ac_useropt'"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 printf "%s\n" X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures mod_sts 3.4.0 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_sts]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of mod_sts 3.4.0:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-code-coverage Whether to enable code coverage support
1488
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1493 both]
1494 --with-aix-soname=aix|svr4|both
1495 shared library versioning (aka "SONAME") variant to
1496 provide on AIX, [default=aix].
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1499 compiler's sysroot if not specified).
1500 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1501 --with-apache build with Apache support [default=autodetect]
1502 --with-apxs=PATH/NAME path to the apxs binary for Apache [[apxs]]
1503
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 LT_SYS_LIBRARY_PATH
1513 User-defined run-time library search path.
1514 PKG_CONFIG path to pkg-config utility
1515 PKG_CONFIG_PATH
1516 directories to add to pkg-config's search path
1517 PKG_CONFIG_LIBDIR
1518 path overriding pkg-config's built-in search path
1519 APR_CFLAGS C compiler flags for APR, overriding pkg-config
1520 APR_LIBS linker flags for APR, overriding pkg-config
1521 APXS_OPTS additional command line options to pass to apxs
1522 OAUTH2_CFLAGS
1523 C compiler flags for OAUTH2, overriding pkg-config
1524 OAUTH2_LIBS linker flags for OAUTH2, overriding pkg-config
1525 OAUTH2_APACHE_CFLAGS
1526 C compiler flags for OAUTH2_APACHE, overriding pkg-config
1527 OAUTH2_APACHE_LIBS
1528 linker flags for OAUTH2_APACHE, overriding pkg-config
1529 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1530 XML_LIBS linker flags for XML, overriding pkg-config
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <[email protected]>.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for configure.gnu first; this name is used for a wrapper for
1582 # Metaconfig's "Configure" on case-insensitive file systems.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 mod_sts configure 3.4.0
1600 generated by GNU Autoconf 2.71
1601
1602 Copyright (C) 2021 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest.beam
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 printf "%s\n" "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext
1639 then :
1640 ac_retval=0
1641 else $as_nop
1642 printf "%s\n" "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else $as_nop
1684 printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else $as_nop
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"
1718 then :
1719 eval "$3=yes"
1720 else $as_nop
1721 eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else $as_nop
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below. */
1752
1753 #include <limits.h>
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main (void)
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"
1779 then :
1780 eval "$3=yes"
1781 else $as_nop
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793 ac_configure_args_raw=
1794 for ac_arg
1795 do
1796 case $ac_arg in
1797 *\'*)
1798 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 esac
1800 as_fn_append ac_configure_args_raw " '$ac_arg'"
1801 done
1802
1803 case $ac_configure_args_raw in
1804 *$as_nl*)
1805 ac_safe_unquote= ;;
1806 *)
1807 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1808 ac_unsafe_a="$ac_unsafe_z#~"
1809 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1810 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1811 esac
1812
1813 cat >config.log <<_ACEOF
1814 This file contains any messages produced by compilers while
1815 running configure, to aid debugging if configure makes a mistake.
1816
1817 It was created by mod_sts $as_me 3.4.0, which was
1818 generated by GNU Autoconf 2.71. Invocation command line was
1819
1820 $ $0$ac_configure_args_raw
1821
1822 _ACEOF
1823 exec 5>>config.log
1824 {
1825 cat <<_ASUNAME
1826 ## --------- ##
1827 ## Platform. ##
1828 ## --------- ##
1829
1830 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1831 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1832 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1833 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1834 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1835
1836 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1837 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1838
1839 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1840 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1841 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1842 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1843 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1844 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1845 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1846
1847 _ASUNAME
1848
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852 IFS=$as_save_IFS
1853 case $as_dir in #(((
1854 '') as_dir=./ ;;
1855 */) ;;
1856 *) as_dir=$as_dir/ ;;
1857 esac
1858 printf "%s\n" "PATH: $as_dir"
1859 done
1860 IFS=$as_save_IFS
1861
1862 } >&5
1863
1864 cat >&5 <<_ACEOF
1865
1866
1867 ## ----------- ##
1868 ## Core tests. ##
1869 ## ----------- ##
1870
1871 _ACEOF
1872
1873
1874 # Keep a trace of the command line.
1875 # Strip out --no-create and --no-recursion so they do not pile up.
1876 # Strip out --silent because we don't want to record it for future runs.
1877 # Also quote any args containing shell meta-characters.
1878 # Make two passes to allow for proper duplicate-argument suppression.
1879 ac_configure_args=
1880 ac_configure_args0=
1881 ac_configure_args1=
1882 ac_must_keep_next=false
1883 for ac_pass in 1 2
1884 do
1885 for ac_arg
1886 do
1887 case $ac_arg in
1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1890 | -silent | --silent | --silen | --sile | --sil)
1891 continue ;;
1892 *\'*)
1893 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 esac
1895 case $ac_pass in
1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1897 2)
1898 as_fn_append ac_configure_args1 " '$ac_arg'"
1899 if test $ac_must_keep_next = true; then
1900 ac_must_keep_next=false # Got value, back to normal.
1901 else
1902 case $ac_arg in
1903 *=* | --config-cache | -C | -disable-* | --disable-* \
1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1906 | -with-* | --with-* | -without-* | --without-* | --x)
1907 case "$ac_configure_args0 " in
1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 esac
1910 ;;
1911 -* ) ac_must_keep_next=true ;;
1912 esac
1913 fi
1914 as_fn_append ac_configure_args " '$ac_arg'"
1915 ;;
1916 esac
1917 done
1918 done
1919 { ac_configure_args0=; unset ac_configure_args0;}
1920 { ac_configure_args1=; unset ac_configure_args1;}
1921
1922 # When interrupted or exit'd, cleanup temporary files, and complete
1923 # config.log. We remove comments because anyway the quotes in there
1924 # would cause problems or look ugly.
1925 # WARNING: Use '\'' to represent an apostrophe within the trap.
1926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1927 trap 'exit_status=$?
1928 # Sanitize IFS.
1929 IFS=" "" $as_nl"
1930 # Save into config.log some information that might help in debugging.
1931 {
1932 echo
1933
1934 printf "%s\n" "## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##"
1937 echo
1938 # The following way of writing the cache mishandles newlines in values,
1939 (
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in #(
1943 *${as_nl}*)
1944 case $ac_var in #(
1945 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 esac
1948 case $ac_var in #(
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) { eval $ac_var=; unset $ac_var;} ;;
1952 esac ;;
1953 esac
1954 done
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 sed -n \
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 ;; #(
1962 *)
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 ;;
1965 esac |
1966 sort
1967 )
1968 echo
1969
1970 printf "%s\n" "## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##"
1973 echo
1974 for ac_var in $ac_subst_vars
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 printf "%s\n" "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983
1984 if test -n "$ac_subst_files"; then
1985 printf "%s\n" "## ------------------- ##
1986 ## File substitutions. ##
1987 ## ------------------- ##"
1988 echo
1989 for ac_var in $ac_subst_files
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 printf "%s\n" "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1998 fi
1999
2000 if test -s confdefs.h; then
2001 printf "%s\n" "## ----------- ##
2002 ## confdefs.h. ##
2003 ## ----------- ##"
2004 echo
2005 cat confdefs.h
2006 echo
2007 fi
2008 test "$ac_signal" != 0 &&
2009 printf "%s\n" "$as_me: caught signal $ac_signal"
2010 printf "%s\n" "$as_me: exit $exit_status"
2011 } >&5
2012 rm -f core *.core core.conftest.* &&
2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2014 exit $exit_status
2015 ' 0
2016 for ac_signal in 1 2 13 15; do
2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2018 done
2019 ac_signal=0
2020
2021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2022 rm -f -r conftest* confdefs.h
2023
2024 printf "%s\n" "/* confdefs.h */" > confdefs.h
2025
2026 # Predefined preprocessor variables.
2027
2028 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2039
2040
2041 # Let the site file select an alternate cache file if it wants to.
2042 # Prefer an explicitly selected file to automatically selected ones.
2043 if test -n "$CONFIG_SITE"; then
2044 ac_site_files="$CONFIG_SITE"
2045 elif test "x$prefix" != xNONE; then
2046 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2047 else
2048 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2049 fi
2050
2051 for ac_site_file in $ac_site_files
2052 do
2053 case $ac_site_file in #(
2054 */*) :
2055 ;; #(
2056 *) :
2057 ac_site_file=./$ac_site_file ;;
2058 esac
2059 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2062 sed 's/^/| /' "$ac_site_file" >&5
2063 . "$ac_site_file" \
2064 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2066 as_fn_error $? "failed to load site script $ac_site_file
2067 See \`config.log' for more details" "$LINENO" 5; }
2068 fi
2069 done
2070
2071 if test -r "$cache_file"; then
2072 # Some versions of bash will fail to source /dev/null (special files
2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2077 case $cache_file in
2078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079 *) . "./$cache_file";;
2080 esac
2081 fi
2082 else
2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2085 >$cache_file
2086 fi
2087
2088 # Test code for whether the C compiler supports C89 (global declarations)
2089 ac_c_conftest_c89_globals='
2090 /* Does the compiler advertise C89 conformance?
2091 Do not test the value of __STDC__, because some compilers set it to 0
2092 while being otherwise adequately conformant. */
2093 #if !defined __STDC__
2094 # error "Compiler does not advertise C89 conformance"
2095 #endif
2096
2097 #include <stddef.h>
2098 #include <stdarg.h>
2099 struct stat;
2100 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2101 struct buf { int x; };
2102 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2103 static char *e (p, i)
2104 char **p;
2105 int i;
2106 {
2107 return p[i];
2108 }
2109 static char *f (char * (*g) (char **, int), char **p, ...)
2110 {
2111 char *s;
2112 va_list v;
2113 va_start (v,p);
2114 s = g (p, va_arg (v,int));
2115 va_end (v);
2116 return s;
2117 }
2118
2119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2120 function prototypes and stuff, but not \xHH hex character constants.
2121 These do not provoke an error unfortunately, instead are silently treated
2122 as an "x". The following induces an error, until -std is added to get
2123 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2124 array size at least. It is necessary to write \x00 == 0 to get something
2125 that is true only with -std. */
2126 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2127
2128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2129 inside strings and character constants. */
2130 #define FOO(x) '\''x'\''
2131 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2132
2133 int test (int i, double x);
2134 struct s1 {int (*f) (int a);};
2135 struct s2 {int (*f) (double a);};
2136 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2137 int, int);'
2138
2139 # Test code for whether the C compiler supports C89 (body of main).
2140 ac_c_conftest_c89_main='
2141 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2142 '
2143
2144 # Test code for whether the C compiler supports C99 (global declarations)
2145 ac_c_conftest_c99_globals='
2146 // Does the compiler advertise C99 conformance?
2147 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2148 # error "Compiler does not advertise C99 conformance"
2149 #endif
2150
2151 #include <stdbool.h>
2152 extern int puts (const char *);
2153 extern int printf (const char *, ...);
2154 extern int dprintf (int, const char *, ...);
2155 extern void *malloc (size_t);
2156
2157 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2158 // dprintf is used instead of fprintf to avoid needing to declare
2159 // FILE and stderr.
2160 #define debug(...) dprintf (2, __VA_ARGS__)
2161 #define showlist(...) puts (#__VA_ARGS__)
2162 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2163 static void
2164 test_varargs_macros (void)
2165 {
2166 int x = 1234;
2167 int y = 5678;
2168 debug ("Flag");
2169 debug ("X = %d\n", x);
2170 showlist (The first, second, and third items.);
2171 report (x>y, "x is %d but y is %d", x, y);
2172 }
2173
2174 // Check long long types.
2175 #define BIG64 18446744073709551615ull
2176 #define BIG32 4294967295ul
2177 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2178 #if !BIG_OK
2179 #error "your preprocessor is broken"
2180 #endif
2181 #if BIG_OK
2182 #else
2183 #error "your preprocessor is broken"
2184 #endif
2185 static long long int bignum = -9223372036854775807LL;
2186 static unsigned long long int ubignum = BIG64;
2187
2188 struct incomplete_array
2189 {
2190 int datasize;
2191 double data[];
2192 };
2193
2194 struct named_init {
2195 int number;
2196 const wchar_t *name;
2197 double average;
2198 };
2199
2200 typedef const char *ccp;
2201
2202 static inline int
2203 test_restrict (ccp restrict text)
2204 {
2205 // See if C++-style comments work.
2206 // Iterate through items via the restricted pointer.
2207 // Also check for declarations in for loops.
2208 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2209 continue;
2210 return 0;
2211 }
2212
2213 // Check varargs and va_copy.
2214 static bool
2215 test_varargs (const char *format, ...)
2216 {
2217 va_list args;
2218 va_start (args, format);
2219 va_list args_copy;
2220 va_copy (args_copy, args);
2221
2222 const char *str = "";
2223 int number = 0;
2224 float fnumber = 0;
2225
2226 while (*format)
2227 {
2228 switch (*format++)
2229 {
2230 case '\''s'\'': // string
2231 str = va_arg (args_copy, const char *);
2232 break;
2233 case '\''d'\'': // int
2234 number = va_arg (args_copy, int);
2235 break;
2236 case '\''f'\'': // float
2237 fnumber = va_arg (args_copy, double);
2238 break;
2239 default:
2240 break;
2241 }
2242 }
2243 va_end (args_copy);
2244 va_end (args);
2245
2246 return *str && number && fnumber;
2247 }
2248 '
2249
2250 # Test code for whether the C compiler supports C99 (body of main).
2251 ac_c_conftest_c99_main='
2252 // Check bool.
2253 _Bool success = false;
2254 success |= (argc != 0);
2255
2256 // Check restrict.
2257 if (test_restrict ("String literal") == 0)
2258 success = true;
2259 char *restrict newvar = "Another string";
2260
2261 // Check varargs.
2262 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2263 test_varargs_macros ();
2264
2265 // Check flexible array members.
2266 struct incomplete_array *ia =
2267 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2268 ia->datasize = 10;
2269 for (int i = 0; i < ia->datasize; ++i)
2270 ia->data[i] = i * 1.234;
2271
2272 // Check named initializers.
2273 struct named_init ni = {
2274 .number = 34,
2275 .name = L"Test wide string",
2276 .average = 543.34343,
2277 };
2278
2279 ni.number = 58;
2280
2281 int dynamic_array[ni.number];
2282 dynamic_array[0] = argv[0][0];
2283 dynamic_array[ni.number - 1] = 543;
2284
2285 // work around unused variable warnings
2286 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2287 || dynamic_array[ni.number - 1] != 543);
2288 '
2289
2290 # Test code for whether the C compiler supports C11 (global declarations)
2291 ac_c_conftest_c11_globals='
2292 // Does the compiler advertise C11 conformance?
2293 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2294 # error "Compiler does not advertise C11 conformance"
2295 #endif
2296
2297 // Check _Alignas.
2298 char _Alignas (double) aligned_as_double;
2299 char _Alignas (0) no_special_alignment;
2300 extern char aligned_as_int;
2301 char _Alignas (0) _Alignas (int) aligned_as_int;
2302
2303 // Check _Alignof.
2304 enum
2305 {
2306 int_alignment = _Alignof (int),
2307 int_array_alignment = _Alignof (int[100]),
2308 char_alignment = _Alignof (char)
2309 };
2310 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2311
2312 // Check _Noreturn.
2313 int _Noreturn does_not_return (void) { for (;;) continue; }
2314
2315 // Check _Static_assert.
2316 struct test_static_assert
2317 {
2318 int x;
2319 _Static_assert (sizeof (int) <= sizeof (long int),
2320 "_Static_assert does not work in struct");
2321 long int y;
2322 };
2323
2324 // Check UTF-8 literals.
2325 #define u8 syntax error!
2326 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2327
2328 // Check duplicate typedefs.
2329 typedef long *long_ptr;
2330 typedef long int *long_ptr;
2331 typedef long_ptr long_ptr;
2332
2333 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2334 struct anonymous
2335 {
2336 union {
2337 struct { int i; int j; };
2338 struct { int k; long int l; } w;
2339 };
2340 int m;
2341 } v1;
2342 '
2343
2344 # Test code for whether the C compiler supports C11 (body of main).
2345 ac_c_conftest_c11_main='
2346 _Static_assert ((offsetof (struct anonymous, i)
2347 == offsetof (struct anonymous, w.k)),
2348 "Anonymous union alignment botch");
2349 v1.i = 2;
2350 v1.w.k = 5;
2351 ok |= v1.i != 5;
2352 '
2353
2354 # Test code for whether the C compiler supports C11 (complete).
2355 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2356 ${ac_c_conftest_c99_globals}
2357 ${ac_c_conftest_c11_globals}
2358
2359 int
2360 main (int argc, char **argv)
2361 {
2362 int ok = 0;
2363 ${ac_c_conftest_c89_main}
2364 ${ac_c_conftest_c99_main}
2365 ${ac_c_conftest_c11_main}
2366 return ok;
2367 }
2368 "
2369
2370 # Test code for whether the C compiler supports C99 (complete).
2371 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2372 ${ac_c_conftest_c99_globals}
2373
2374 int
2375 main (int argc, char **argv)
2376 {
2377 int ok = 0;
2378 ${ac_c_conftest_c89_main}
2379 ${ac_c_conftest_c99_main}
2380 return ok;
2381 }
2382 "
2383
2384 # Test code for whether the C compiler supports C89 (complete).
2385 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2386
2387 int
2388 main (int argc, char **argv)
2389 {
2390 int ok = 0;
2391 ${ac_c_conftest_c89_main}
2392 return ok;
2393 }
2394 "
2395
2396 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2397 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2398 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2399 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2400 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2401 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2402 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2403 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2404 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2405
2406 # Auxiliary files required by this configure script.
2407 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2408
2409 # Locations in which to look for auxiliary files.
2410 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2411
2412 # Search for a directory containing all of the required auxiliary files,
2413 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2414 # If we don't find one directory that contains all the files we need,
2415 # we report the set of missing files from the *first* directory in
2416 # $ac_aux_dir_candidates and give up.
2417 ac_missing_aux_files=""
2418 ac_first_candidate=:
2419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 as_found=false
2422 for as_dir in $ac_aux_dir_candidates
2423 do
2424 IFS=$as_save_IFS
2425 case $as_dir in #(((
2426 '') as_dir=./ ;;
2427 */) ;;
2428 *) as_dir=$as_dir/ ;;
2429 esac
2430 as_found=:
2431
2432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2433 ac_aux_dir_found=yes
2434 ac_install_sh=
2435 for ac_aux in $ac_aux_files
2436 do
2437 # As a special case, if "install-sh" is required, that requirement
2438 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2439 # and $ac_install_sh is set appropriately for whichever one is found.
2440 if test x"$ac_aux" = x"install-sh"
2441 then
2442 if test -f "${as_dir}install-sh"; then
2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2444 ac_install_sh="${as_dir}install-sh -c"
2445 elif test -f "${as_dir}install.sh"; then
2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2447 ac_install_sh="${as_dir}install.sh -c"
2448 elif test -f "${as_dir}shtool"; then
2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2450 ac_install_sh="${as_dir}shtool install -c"
2451 else
2452 ac_aux_dir_found=no
2453 if $ac_first_candidate; then
2454 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2455 else
2456 break
2457 fi
2458 fi
2459 else
2460 if test -f "${as_dir}${ac_aux}"; then
2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2462 else
2463 ac_aux_dir_found=no
2464 if $ac_first_candidate; then
2465 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2466 else
2467 break
2468 fi
2469 fi
2470 fi
2471 done
2472 if test "$ac_aux_dir_found" = yes; then
2473 ac_aux_dir="$as_dir"
2474 break
2475 fi
2476 ac_first_candidate=false
2477
2478 as_found=false
2479 done
2480 IFS=$as_save_IFS
2481 if $as_found
2482 then :
2483
2484 else $as_nop
2485 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2486 fi
2487
2488
2489 # These three variables are undocumented and unsupported,
2490 # and are intended to be withdrawn in a future Autoconf release.
2491 # They can cause serious problems if a builder's source tree is in a directory
2492 # whose full name contains unusual characters.
2493 if test -f "${ac_aux_dir}config.guess"; then
2494 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2495 fi
2496 if test -f "${ac_aux_dir}config.sub"; then
2497 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2498 fi
2499 if test -f "$ac_aux_dir/configure"; then
2500 ac_configure="$SHELL ${ac_aux_dir}configure"
2501 fi
2502
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2512 set,)
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,set)
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,);;
2521 *)
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2530 else
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2534 fi
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2539 fi;;
2540 esac
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2543 case $ac_new_val in
2544 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2546 esac
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550 esac
2551 fi
2552 done
2553 if $ac_cache_corrupted; then
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2559 and start over" "$LINENO" 5
2560 fi
2561 ## -------------------- ##
2562 ## Main body of script. ##
2563 ## -------------------- ##
2564
2565 ac_ext=c
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570
2571
2572
2573 am__api_version='1.16'
2574
2575
2576
2577 # Find a good install program. We prefer a C program (faster),
2578 # so one script is as good as another. But avoid the broken or
2579 # incompatible versions:
2580 # SysV /etc/install, /usr/sbin/install
2581 # SunOS /usr/etc/install
2582 # IRIX /sbin/install
2583 # AIX /bin/install
2584 # AmigaOS /C/install, which installs bootblocks on floppy discs
2585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2588 # OS/2's system install, which has a completely different semantic
2589 # ./install, which can be erroneously created by make from ./install.sh.
2590 # Reject install programs that cannot install multiple files.
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2592 printf %s "checking for a BSD-compatible install... " >&6; }
2593 if test -z "$INSTALL"; then
2594 if test ${ac_cv_path_install+y}
2595 then :
2596 printf %s "(cached) " >&6
2597 else $as_nop
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 case $as_dir in #(((
2603 '') as_dir=./ ;;
2604 */) ;;
2605 *) as_dir=$as_dir/ ;;
2606 esac
2607 # Account for fact that we put trailing slashes in our PATH walk.
2608 case $as_dir in #((
2609 ./ | /[cC]/* | \
2610 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2611 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2612 /usr/ucb/* ) ;;
2613 *)
2614 # OSF1 and SCO ODT 3.0 have their own names for install.
2615 # Don't use installbsd from OSF since it installs stuff as root
2616 # by default.
2617 for ac_prog in ginstall scoinst install; do
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2620 if test $ac_prog = install &&
2621 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622 # AIX install. It has an incompatible calling convention.
2623 :
2624 elif test $ac_prog = install &&
2625 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2626 # program-specific install script used by HP pwplus--don't use.
2627 :
2628 else
2629 rm -rf conftest.one conftest.two conftest.dir
2630 echo one > conftest.one
2631 echo two > conftest.two
2632 mkdir conftest.dir
2633 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2634 test -s conftest.one && test -s conftest.two &&
2635 test -s conftest.dir/conftest.one &&
2636 test -s conftest.dir/conftest.two
2637 then
2638 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2639 break 3
2640 fi
2641 fi
2642 fi
2643 done
2644 done
2645 ;;
2646 esac
2647
2648 done
2649 IFS=$as_save_IFS
2650
2651 rm -rf conftest.one conftest.two conftest.dir
2652
2653 fi
2654 if test ${ac_cv_path_install+y}; then
2655 INSTALL=$ac_cv_path_install
2656 else
2657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for INSTALL within a source directory, because that will
2659 # break other packages using the cache if that directory is
2660 # removed, or if the value is a relative name.
2661 INSTALL=$ac_install_sh
2662 fi
2663 fi
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2665 printf "%s\n" "$INSTALL" >&6; }
2666
2667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2668 # It thinks the first close brace ends the variable substitution.
2669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2670
2671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2672
2673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2674
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2676 printf %s "checking whether build environment is sane... " >&6; }
2677 # Reject unsafe characters in $srcdir or the absolute working directory
2678 # name. Accept space and tab only in the latter.
2679 am_lf='
2680 '
2681 case `pwd` in
2682 *[\\\"\#\$\&\'\`$am_lf]*)
2683 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2684 esac
2685 case $srcdir in
2686 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2687 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2688 esac
2689
2690 # Do 'set' in a subshell so we don't clobber the current shell's
2691 # arguments. Must try -L first in case configure is actually a
2692 # symlink; some systems play weird games with the mod time of symlinks
2693 # (eg FreeBSD returns the mod time of the symlink's containing
2694 # directory).
2695 if (
2696 am_has_slept=no
2697 for am_try in 1 2; do
2698 echo "timestamp, slept: $am_has_slept" > conftest.file
2699 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2700 if test "$*" = "X"; then
2701 # -L didn't work.
2702 set X `ls -t "$srcdir/configure" conftest.file`
2703 fi
2704 if test "$*" != "X $srcdir/configure conftest.file" \
2705 && test "$*" != "X conftest.file $srcdir/configure"; then
2706
2707 # If neither matched, then we have a broken ls. This can happen
2708 # if, for instance, CONFIG_SHELL is bash and it inherits a
2709 # broken ls alias from the environment. This has actually
2710 # happened. Such a system could not be considered "sane".
2711 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2712 alias in your environment" "$LINENO" 5
2713 fi
2714 if test "$2" = conftest.file || test $am_try -eq 2; then
2715 break
2716 fi
2717 # Just in case.
2718 sleep 1
2719 am_has_slept=yes
2720 done
2721 test "$2" = conftest.file
2722 )
2723 then
2724 # Ok.
2725 :
2726 else
2727 as_fn_error $? "newly created file is older than distributed files!
2728 Check your system clock" "$LINENO" 5
2729 fi
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 printf "%s\n" "yes" >&6; }
2732 # If we didn't sleep, we still need to ensure time stamps of config.status and
2733 # generated files are strictly newer.
2734 am_sleep_pid=
2735 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2736 ( sleep 1 ) &
2737 am_sleep_pid=$!
2738 fi
2739
2740 rm -f conftest.file
2741
2742 test "$program_prefix" != NONE &&
2743 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2744 # Use a double $ so make ignores it.
2745 test "$program_suffix" != NONE &&
2746 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2747 # Double any \ or $.
2748 # By default was `s,x,x', remove it if useless.
2749 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2750 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2751
2752
2753 # Expand $ac_aux_dir to an absolute path.
2754 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2755
2756
2757 if test x"${MISSING+set}" != xset; then
2758 MISSING="\${SHELL} '$am_aux_dir/missing'"
2759 fi
2760 # Use eval to expand $SHELL
2761 if eval "$MISSING --is-lightweight"; then
2762 am_missing_run="$MISSING "
2763 else
2764 am_missing_run=
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2766 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2767 fi
2768
2769 if test x"${install_sh+set}" != xset; then
2770 case $am_aux_dir in
2771 *\ * | *\ *)
2772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2773 *)
2774 install_sh="\${SHELL} $am_aux_dir/install-sh"
2775 esac
2776 fi
2777
2778 # Installed binaries are usually stripped using 'strip' when the user
2779 # run "make install-strip". However 'strip' might not be the right
2780 # tool to use in cross-compilation environments, therefore Automake
2781 # will honor the 'STRIP' environment variable to overrule this program.
2782 if test "$cross_compiling" != no; then
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}strip; ac_word=$2
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 printf %s "checking for $ac_word... " >&6; }
2788 if test ${ac_cv_prog_STRIP+y}
2789 then :
2790 printf %s "(cached) " >&6
2791 else $as_nop
2792 if test -n "$STRIP"; then
2793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 case $as_dir in #(((
2800 '') as_dir=./ ;;
2801 */) ;;
2802 *) as_dir=$as_dir/ ;;
2803 esac
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 STRIP=$ac_cv_prog_STRIP
2817 if test -n "$STRIP"; then
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2819 printf "%s\n" "$STRIP" >&6; }
2820 else
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 printf "%s\n" "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_STRIP"; then
2828 ac_ct_STRIP=$STRIP
2829 # Extract the first word of "strip", so it can be a program name with args.
2830 set dummy strip; ac_word=$2
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 printf %s "checking for $ac_word... " >&6; }
2833 if test ${ac_cv_prog_ac_ct_STRIP+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else $as_nop
2837 if test -n "$ac_ct_STRIP"; then
2838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 case $as_dir in #(((
2845 '') as_dir=./ ;;
2846 */) ;;
2847 *) as_dir=$as_dir/ ;;
2848 esac
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_STRIP="strip"
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 printf "%s\n" "$ac_ct_STRIP" >&6; }
2865 else
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 printf "%s\n" "no" >&6; }
2868 fi
2869
2870 if test "x$ac_ct_STRIP" = x; then
2871 STRIP=":"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 STRIP=$ac_ct_STRIP
2880 fi
2881 else
2882 STRIP="$ac_cv_prog_STRIP"
2883 fi
2884
2885 fi
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887
2888
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2890 printf %s "checking for a race-free mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if test ${ac_cv_path_mkdir+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else $as_nop
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898 do
2899 IFS=$as_save_IFS
2900 case $as_dir in #(((
2901 '') as_dir=./ ;;
2902 */) ;;
2903 *) as_dir=$as_dir/ ;;
2904 esac
2905 for ac_prog in mkdir gmkdir; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2908 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2909 'mkdir ('*'coreutils) '* | \
2910 'BusyBox '* | \
2911 'mkdir (fileutils) '4.1*)
2912 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2913 break 3;;
2914 esac
2915 done
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921
2922 test -d ./--version && rmdir ./--version
2923 if test ${ac_cv_path_mkdir+y}; then
2924 MKDIR_P="$ac_cv_path_mkdir -p"
2925 else
2926 # As a last resort, use the slow shell script. Don't cache a
2927 # value for MKDIR_P within a source directory, because that will
2928 # break other packages using the cache if that directory is
2929 # removed, or if the value is a relative name.
2930 MKDIR_P="$ac_install_sh -d"
2931 fi
2932 fi
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2934 printf "%s\n" "$MKDIR_P" >&6; }
2935
2936 for ac_prog in gawk mawk nawk awk
2937 do
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 printf %s "checking for $ac_word... " >&6; }
2942 if test ${ac_cv_prog_AWK+y}
2943 then :
2944 printf %s "(cached) " >&6
2945 else $as_nop
2946 if test -n "$AWK"; then
2947 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 case $as_dir in #(((
2954 '') as_dir=./ ;;
2955 */) ;;
2956 *) as_dir=$as_dir/ ;;
2957 esac
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_AWK="$ac_prog"
2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 printf "%s\n" "$AWK" >&6; }
2974 else
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 printf "%s\n" "no" >&6; }
2977 fi
2978
2979
2980 test -n "$AWK" && break
2981 done
2982
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2988 then :
2989 printf %s "(cached) " >&6
2990 else $as_nop
2991 cat >conftest.make <<\_ACEOF
2992 SHELL = /bin/sh
2993 all:
2994 @echo '@@@%%%=$(MAKE)=@@@%%%'
2995 _ACEOF
2996 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2998 *@@@%%%=?*=@@@%%%*)
2999 eval ac_cv_prog_make_${ac_make}_set=yes;;
3000 *)
3001 eval ac_cv_prog_make_${ac_make}_set=no;;
3002 esac
3003 rm -f conftest.make
3004 fi
3005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 printf "%s\n" "yes" >&6; }
3008 SET_MAKE=
3009 else
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 printf "%s\n" "no" >&6; }
3012 SET_MAKE="MAKE=${MAKE-make}"
3013 fi
3014
3015 rm -rf .tst 2>/dev/null
3016 mkdir .tst 2>/dev/null
3017 if test -d .tst; then
3018 am__leading_dot=.
3019 else
3020 am__leading_dot=_
3021 fi
3022 rmdir .tst 2>/dev/null
3023
3024 # Check whether --enable-silent-rules was given.
3025 if test ${enable_silent_rules+y}
3026 then :
3027 enableval=$enable_silent_rules;
3028 fi
3029
3030 case $enable_silent_rules in # (((
3031 yes) AM_DEFAULT_VERBOSITY=0;;
3032 no) AM_DEFAULT_VERBOSITY=1;;
3033 *) AM_DEFAULT_VERBOSITY=1;;
3034 esac
3035 am_make=${MAKE-make}
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3037 printf %s "checking whether $am_make supports nested variables... " >&6; }
3038 if test ${am_cv_make_support_nested_variables+y}
3039 then :
3040 printf %s "(cached) " >&6
3041 else $as_nop
3042 if printf "%s\n" 'TRUE=$(BAR$(V))
3043 BAR0=false
3044 BAR1=true
3045 V=1
3046 am__doit:
3047 @$(TRUE)
3048 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3049 am_cv_make_support_nested_variables=yes
3050 else
3051 am_cv_make_support_nested_variables=no
3052 fi
3053 fi
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3055 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3056 if test $am_cv_make_support_nested_variables = yes; then
3057 AM_V='$(V)'
3058 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3059 else
3060 AM_V=$AM_DEFAULT_VERBOSITY
3061 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3062 fi
3063 AM_BACKSLASH='\'
3064
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067 # is not polluted with repeated "-I."
3068 am__isrc=' -I$(srcdir)'
3069 # test to see if srcdir already configured
3070 if test -f $srcdir/config.status; then
3071 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3072 fi
3073 fi
3074
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077 if (cygpath --version) >/dev/null 2>/dev/null; then
3078 CYGPATH_W='cygpath -w'
3079 else
3080 CYGPATH_W=echo
3081 fi
3082 fi
3083
3084
3085 # Define the identity of the package.
3086 PACKAGE='mod_sts'
3087 VERSION='3.4.0'
3088
3089
3090 # Some tools Automake needs.
3091
3092 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093
3094
3095 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3096
3097
3098 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099
3100
3101 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3102
3103
3104 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3105
3106 # For better backward compatibility. To be removed once Automake 1.9.x
3107 # dies out for good. For more background, see:
3108 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3109 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3110 mkdir_p='$(MKDIR_P)'
3111
3112 # We need awk for the "check" target (and possibly the TAP driver). The
3113 # system "awk" is bad on some platforms.
3114 # Always define AMTAR for backward compatibility. Yes, it's still used
3115 # in the wild :-( We should find a proper way to deprecate it ...
3116 AMTAR='$${TAR-tar}'
3117
3118
3119 # We'll loop over all known methods to create a tar archive until one works.
3120 _am_tools='gnutar pax cpio none'
3121
3122 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3123
3124
3125
3126
3127
3128 # Variables for tags utilities; see am/tags.am
3129 if test -z "$CTAGS"; then
3130 CTAGS=ctags
3131 fi
3132
3133 if test -z "$ETAGS"; then
3134 ETAGS=etags
3135 fi
3136
3137 if test -z "$CSCOPE"; then
3138 CSCOPE=cscope
3139 fi
3140
3141
3142
3143 # POSIX will say in a future version that running "rm -f" with no argument
3144 # is OK; and we want to be able to make that assumption in our Makefile
3145 # recipes. So use an aggressive probe to check that the usage we want is
3146 # actually supported "in the wild" to an acceptable degree.
3147 # See automake bug#10828.
3148 # To make any issue more visible, cause the running configure to be aborted
3149 # by default if the 'rm' program in use doesn't match our expectations; the
3150 # user can still override this though.
3151 if rm -f && rm -fr && rm -rf; then : OK; else
3152 cat >&2 <<'END'
3153 Oops!
3154
3155 Your 'rm' program seems unable to run without file operands specified
3156 on the command line, even when the '-f' option is present. This is contrary
3157 to the behaviour of most rm programs out there, and not conforming with
3158 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159
3160 Please tell [email protected] about your system, including the value
3161 of your $PATH and any error possibly output before this message. This
3162 can help us improve future automake versions.
3163
3164 END
3165 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3166 echo 'Configuration will proceed anyway, since you have set the' >&2
3167 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3168 echo >&2
3169 else
3170 cat >&2 <<'END'
3171 Aborting the configuration process, to ensure you take notice of the issue.
3172
3173 You can download and install GNU coreutils to get an 'rm' implementation
3174 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3175
3176 If you want to complete the configuration process using your problematic
3177 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3178 to "yes", and re-run configure.
3179
3180 END
3181 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3182 fi
3183 fi
3184
3185
3186
3187 case `pwd` in
3188 *\ * | *\ *)
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3190 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3191 esac
3192
3193
3194
3195 macro_version='2.4.7'
3196 macro_revision='2.4.7'
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211 ltmain=$ac_aux_dir/ltmain.sh
3212
3213
3214
3215 # Make sure we can run config.sub.
3216 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3217 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3218
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3220 printf %s "checking build system type... " >&6; }
3221 if test ${ac_cv_build+y}
3222 then :
3223 printf %s "(cached) " >&6
3224 else $as_nop
3225 ac_build_alias=$build_alias
3226 test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3228 test "x$ac_build_alias" = x &&
3229 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3231 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3232
3233 fi
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 printf "%s\n" "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3237 *-*-*) ;;
3238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3239 esac
3240 build=$ac_cv_build
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_build
3243 shift
3244 build_cpu=$1
3245 build_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 build_os=$*
3250 IFS=$ac_save_IFS
3251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3252
3253
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 printf %s "checking host system type... " >&6; }
3256 if test ${ac_cv_host+y}
3257 then :
3258 printf %s "(cached) " >&6
3259 else $as_nop
3260 if test "x$host_alias" = x; then
3261 ac_cv_host=$ac_cv_build
3262 else
3263 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3264 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3265 fi
3266
3267 fi
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 printf "%s\n" "$ac_cv_host" >&6; }
3270 case $ac_cv_host in
3271 *-*-*) ;;
3272 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3273 esac
3274 host=$ac_cv_host
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_host
3277 shift
3278 host_cpu=$1
3279 host_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 host_os=$*
3284 IFS=$ac_save_IFS
3285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3286
3287
3288 # Backslashify metacharacters that are still active within
3289 # double-quoted strings.
3290 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3291
3292 # Same as above, but do not quote variable references.
3293 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3294
3295 # Sed substitution to delay expansion of an escaped shell variable in a
3296 # double_quote_subst'ed string.
3297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3298
3299 # Sed substitution to delay expansion of an escaped single quote.
3300 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3301
3302 # Sed substitution to avoid accidental globbing in evaled expressions
3303 no_glob_subst='s/\*/\\\*/g'
3304
3305 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3306 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3308
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3310 printf %s "checking how to print strings... " >&6; }
3311 # Test print first, because it will be a builtin if present.
3312 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3313 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3314 ECHO='print -r --'
3315 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3316 ECHO='printf %s\n'
3317 else
3318 # Use this function as a fallback that always works.
3319 func_fallback_echo ()
3320 {
3321 eval 'cat <<_LTECHO_EOF
3322 $1
3323 _LTECHO_EOF'
3324 }
3325 ECHO='func_fallback_echo'
3326 fi
3327
3328 # func_echo_all arg...
3329 # Invoke $ECHO with all args, space-separated.
3330 func_echo_all ()
3331 {
3332 $ECHO ""
3333 }
3334
3335 case $ECHO in
3336 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3337 printf "%s\n" "printf" >&6; } ;;
3338 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3339 printf "%s\n" "print -r" >&6; } ;;
3340 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3341 printf "%s\n" "cat" >&6; } ;;
3342 esac
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366 DEPDIR="${am__leading_dot}deps"
3367
3368 ac_config_commands="$ac_config_commands depfiles"
3369
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3371 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3372 cat > confinc.mk << 'END'
3373 am__doit:
3374 @echo this is the am__doit target >confinc.out
3375 .PHONY: am__doit
3376 END
3377 am__include="#"
3378 am__quote=
3379 # BSD make does it like this.
3380 echo '.include "confinc.mk" # ignored' > confmf.BSD
3381 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3382 echo 'include confinc.mk # ignored' > confmf.GNU
3383 _am_result=no
3384 for s in GNU BSD; do
3385 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3386 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }
3390 case $?:`cat confinc.out 2>/dev/null` in #(
3391 '0:this is the am__doit target') :
3392 case $s in #(
3393 BSD) :
3394 am__include='.include' am__quote='"' ;; #(
3395 *) :
3396 am__include='include' am__quote='' ;;
3397 esac ;; #(
3398 *) :
3399 ;;
3400 esac
3401 if test "$am__include" != "#"; then
3402 _am_result="yes ($s style)"
3403 break
3404 fi
3405 done
3406 rm -f confinc.* confmf.*
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3408 printf "%s\n" "${_am_result}" >&6; }
3409
3410 # Check whether --enable-dependency-tracking was given.
3411 if test ${enable_dependency_tracking+y}
3412 then :
3413 enableval=$enable_dependency_tracking;
3414 fi
3415
3416 if test "x$enable_dependency_tracking" != xno; then
3417 am_depcomp="$ac_aux_dir/depcomp"
3418 AMDEPBACKSLASH='\'
3419 am__nodep='_no'
3420 fi
3421 if test "x$enable_dependency_tracking" != xno; then
3422 AMDEP_TRUE=
3423 AMDEP_FALSE='#'
3424 else
3425 AMDEP_TRUE='#'
3426 AMDEP_FALSE=
3427 fi
3428
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 printf %s "checking for $ac_word... " >&6; }
3440 if test ${ac_cv_prog_CC+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else $as_nop
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 case $as_dir in #(((
3452 '') as_dir=./ ;;
3453 */) ;;
3454 *) as_dir=$as_dir/ ;;
3455 esac
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 CC=$ac_cv_prog_CC
3469 if test -n "$CC"; then
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 printf "%s\n" "$CC" >&6; }
3472 else
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 printf "%s\n" "no" >&6; }
3475 fi
3476
3477
3478 fi
3479 if test -z "$ac_cv_prog_CC"; then
3480 ac_ct_CC=$CC
3481 # Extract the first word of "gcc", so it can be a program name with args.
3482 set dummy gcc; ac_word=$2
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 printf %s "checking for $ac_word... " >&6; }
3485 if test ${ac_cv_prog_ac_ct_CC+y}
3486 then :
3487 printf %s "(cached) " >&6
3488 else $as_nop
3489 if test -n "$ac_ct_CC"; then
3490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495 IFS=$as_save_IFS
3496 case $as_dir in #(((
3497 '') as_dir=./ ;;
3498 */) ;;
3499 *) as_dir=$as_dir/ ;;
3500 esac
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_ac_ct_CC="gcc"
3504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3505 break 2
3506 fi
3507 done
3508 done
3509 IFS=$as_save_IFS
3510
3511 fi
3512 fi
3513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514 if test -n "$ac_ct_CC"; then
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3516 printf "%s\n" "$ac_ct_CC" >&6; }
3517 else
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 printf "%s\n" "no" >&6; }
3520 fi
3521
3522 if test "x$ac_ct_CC" = x; then
3523 CC=""
3524 else
3525 case $cross_compiling:$ac_tool_warned in
3526 yes:)
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3528 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529 ac_tool_warned=yes ;;
3530 esac
3531 CC=$ac_ct_CC
3532 fi
3533 else
3534 CC="$ac_cv_prog_CC"
3535 fi
3536
3537 if test -z "$CC"; then
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}cc; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 case $as_dir in #(((
3555 '') as_dir=./ ;;
3556 */) ;;
3557 *) as_dir=$as_dir/ ;;
3558 esac
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_CC="${ac_tool_prefix}cc"
3562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 printf "%s\n" "$CC" >&6; }
3575 else
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 printf "%s\n" "no" >&6; }
3578 fi
3579
3580
3581 fi
3582 fi
3583 if test -z "$CC"; then
3584 # Extract the first word of "cc", so it can be a program name with args.
3585 set dummy cc; ac_word=$2
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 printf %s "checking for $ac_word... " >&6; }
3588 if test ${ac_cv_prog_CC+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else $as_nop
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 ac_prog_rejected=no
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 case $as_dir in #(((
3601 '') as_dir=./ ;;
3602 */) ;;
3603 *) as_dir=$as_dir/ ;;
3604 esac
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608 ac_prog_rejected=yes
3609 continue
3610 fi
3611 ac_cv_prog_CC="cc"
3612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615 done
3616 done
3617 IFS=$as_save_IFS
3618
3619 if test $ac_prog_rejected = yes; then
3620 # We found a bogon in the path, so make sure we never use it.
3621 set dummy $ac_cv_prog_CC
3622 shift
3623 if test $# != 0; then
3624 # We chose a different compiler from the bogus one.
3625 # However, it has the same basename, so the bogon will be chosen
3626 # first if we set CC to just the basename; use the full file name.
3627 shift
3628 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3629 fi
3630 fi
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 printf "%s\n" "$CC" >&6; }
3637 else
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 printf "%s\n" "no" >&6; }
3640 fi
3641
3642
3643 fi
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog in cl.exe
3647 do
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 printf %s "checking for $ac_word... " >&6; }
3652 if test ${ac_cv_prog_CC+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else $as_nop
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 printf "%s\n" "$CC" >&6; }
3684 else
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 printf "%s\n" "no" >&6; }
3687 fi
3688
3689
3690 test -n "$CC" && break
3691 done
3692 fi
3693 if test -z "$CC"; then
3694 ac_ct_CC=$CC
3695 for ac_prog in cl.exe
3696 do
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 printf %s "checking for $ac_word... " >&6; }
3701 if test ${ac_cv_prog_ac_ct_CC+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else $as_nop
3705 if test -n "$ac_ct_CC"; then
3706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 case $as_dir in #(((
3713 '') as_dir=./ ;;
3714 */) ;;
3715 *) as_dir=$as_dir/ ;;
3716 esac
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_ac_ct_CC="$ac_prog"
3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 fi
3728 fi
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732 printf "%s\n" "$ac_ct_CC" >&6; }
3733 else
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 printf "%s\n" "no" >&6; }
3736 fi
3737
3738
3739 test -n "$ac_ct_CC" && break
3740 done
3741
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749 ac_tool_warned=yes ;;
3750 esac
3751 CC=$ac_ct_CC
3752 fi
3753 fi
3754
3755 fi
3756 if test -z "$CC"; then
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3759 set dummy ${ac_tool_prefix}clang; ac_word=$2
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 printf %s "checking for $ac_word... " >&6; }
3762 if test ${ac_cv_prog_CC+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 case $as_dir in #(((
3774 '') as_dir=./ ;;
3775 */) ;;
3776 *) as_dir=$as_dir/ ;;
3777 esac
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_CC="${ac_tool_prefix}clang"
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 CC=$ac_cv_prog_CC
3791 if test -n "$CC"; then
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3793 printf "%s\n" "$CC" >&6; }
3794 else
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 printf "%s\n" "no" >&6; }
3797 fi
3798
3799
3800 fi
3801 if test -z "$ac_cv_prog_CC"; then
3802 ac_ct_CC=$CC
3803 # Extract the first word of "clang", so it can be a program name with args.
3804 set dummy clang; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_ac_ct_CC+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3811 if test -n "$ac_ct_CC"; then
3812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817 IFS=$as_save_IFS
3818 case $as_dir in #(((
3819 '') as_dir=./ ;;
3820 */) ;;
3821 *) as_dir=$as_dir/ ;;
3822 esac
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC="clang"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836 if test -n "$ac_ct_CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838 printf "%s\n" "$ac_ct_CC" >&6; }
3839 else
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 fi
3843
3844 if test "x$ac_ct_CC" = x; then
3845 CC=""
3846 else
3847 case $cross_compiling:$ac_tool_warned in
3848 yes:)
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3851 ac_tool_warned=yes ;;
3852 esac
3853 CC=$ac_ct_CC
3854 fi
3855 else
3856 CC="$ac_cv_prog_CC"
3857 fi
3858
3859 fi
3860
3861
3862 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error $? "no acceptable C compiler found in \$PATH
3865 See \`config.log' for more details" "$LINENO" 5; }
3866
3867 # Provide some information about the compiler.
3868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3869 set X $ac_compile
3870 ac_compiler=$2
3871 for ac_option in --version -v -V -qversion -version; do
3872 { { ac_try="$ac_compiler $ac_option >&5"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 printf "%s\n" "$ac_try_echo"; } >&5
3879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3880 ac_status=$?
3881 if test -s conftest.err; then
3882 sed '10a\
3883 ... rest of stderr output deleted ...
3884 10q' conftest.err >conftest.er1
3885 cat conftest.er1 >&5
3886 fi
3887 rm -f conftest.er1 conftest.err
3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }
3890 done
3891
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894
3895 int
3896 main (void)
3897 {
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 ac_clean_files_save=$ac_clean_files
3904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3905 # Try to create an executable without -o first, disregard a.out.
3906 # It will help us diagnose broken compilers, and finding out an intuition
3907 # of exeext.
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3909 printf %s "checking whether the C compiler works... " >&6; }
3910 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3911
3912 # The possible output files:
3913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3914
3915 ac_rmfiles=
3916 for ac_file in $ac_files
3917 do
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3921 esac
3922 done
3923 rm -f $ac_rmfiles
3924
3925 if { { ac_try="$ac_link_default"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 printf "%s\n" "$ac_try_echo"; } >&5
3932 (eval "$ac_link_default") 2>&5
3933 ac_status=$?
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 then :
3937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3939 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3940 # so that the user can short-circuit this test for compilers unknown to
3941 # Autoconf.
3942 for ac_file in $ac_files ''
3943 do
3944 test -f "$ac_file" || continue
3945 case $ac_file in
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3947 ;;
3948 [ab].out )
3949 # We found the default executable, but exeext='' is most
3950 # certainly right.
3951 break;;
3952 *.* )
3953 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3954 then :; else
3955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3956 fi
3957 # We set ac_cv_exeext here because the later test for it is not
3958 # safe: cross compilers may not add the suffix if given an `-o'
3959 # argument, so we may need to know it at that point already.
3960 # Even if this section looks crufty: it has the advantage of
3961 # actually working.
3962 break;;
3963 * )
3964 break;;
3965 esac
3966 done
3967 test "$ac_cv_exeext" = no && ac_cv_exeext=
3968
3969 else $as_nop
3970 ac_file=''
3971 fi
3972 if test -z "$ac_file"
3973 then :
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 printf "%s\n" "no" >&6; }
3976 printf "%s\n" "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error 77 "C compiler cannot create executables
3982 See \`config.log' for more details" "$LINENO" 5; }
3983 else $as_nop
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 printf "%s\n" "yes" >&6; }
3986 fi
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3988 printf %s "checking for C compiler default output file name... " >&6; }
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3990 printf "%s\n" "$ac_file" >&6; }
3991 ac_exeext=$ac_cv_exeext
3992
3993 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3994 ac_clean_files=$ac_clean_files_save
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3996 printf %s "checking for suffix of executables... " >&6; }
3997 if { { ac_try="$ac_link"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 printf "%s\n" "$ac_try_echo"; } >&5
4004 (eval "$ac_link") 2>&5
4005 ac_status=$?
4006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008 then :
4009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4011 # work properly (i.e., refer to `conftest.exe'), while it won't with
4012 # `rm'.
4013 for ac_file in conftest.exe conftest conftest.*; do
4014 test -f "$ac_file" || continue
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4018 break;;
4019 * ) break;;
4020 esac
4021 done
4022 else $as_nop
4023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4026 See \`config.log' for more details" "$LINENO" 5; }
4027 fi
4028 rm -f conftest conftest$ac_cv_exeext
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4030 printf "%s\n" "$ac_cv_exeext" >&6; }
4031
4032 rm -f conftest.$ac_ext
4033 EXEEXT=$ac_cv_exeext
4034 ac_exeext=$EXEEXT
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037 #include <stdio.h>
4038 int
4039 main (void)
4040 {
4041 FILE *f = fopen ("conftest.out", "w");
4042 return ferror (f) || fclose (f) != 0;
4043
4044 ;
4045 return 0;
4046 }
4047 _ACEOF
4048 ac_clean_files="$ac_clean_files conftest.out"
4049 # Check that the compiler produces executables we can run. If not, either
4050 # the compiler is broken, or we cross compile.
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4052 printf %s "checking whether we are cross compiling... " >&6; }
4053 if test "$cross_compiling" != yes; then
4054 { { ac_try="$ac_link"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 printf "%s\n" "$ac_try_echo"; } >&5
4061 (eval "$ac_link") 2>&5
4062 ac_status=$?
4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }
4065 if { ac_try='./conftest$ac_cv_exeext'
4066 { { case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 printf "%s\n" "$ac_try_echo"; } >&5
4072 (eval "$ac_try") 2>&5
4073 ac_status=$?
4074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }; }; then
4076 cross_compiling=no
4077 else
4078 if test "$cross_compiling" = maybe; then
4079 cross_compiling=yes
4080 else
4081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error 77 "cannot run C compiled programs.
4084 If you meant to cross compile, use \`--host'.
4085 See \`config.log' for more details" "$LINENO" 5; }
4086 fi
4087 fi
4088 fi
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4090 printf "%s\n" "$cross_compiling" >&6; }
4091
4092 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4093 ac_clean_files=$ac_clean_files_save
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4095 printf %s "checking for suffix of object files... " >&6; }
4096 if test ${ac_cv_objext+y}
4097 then :
4098 printf %s "(cached) " >&6
4099 else $as_nop
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main (void)
4105 {
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 printf "%s\n" "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4120 ac_status=$?
4121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }
4123 then :
4124 for ac_file in conftest.o conftest.obj conftest.*; do
4125 test -f "$ac_file" || continue;
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129 break;;
4130 esac
4131 done
4132 else $as_nop
4133 printf "%s\n" "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "cannot compute suffix of object files: cannot compile
4139 See \`config.log' for more details" "$LINENO" 5; }
4140 fi
4141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 fi
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144 printf "%s\n" "$ac_cv_objext" >&6; }
4145 OBJEXT=$ac_cv_objext
4146 ac_objext=$OBJEXT
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4148 printf %s "checking whether the compiler supports GNU C... " >&6; }
4149 if test ${ac_cv_c_compiler_gnu+y}
4150 then :
4151 printf %s "(cached) " >&6
4152 else $as_nop
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main (void)
4158 {
4159 #ifndef __GNUC__
4160 choke me
4161 #endif
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"
4168 then :
4169 ac_compiler_gnu=yes
4170 else $as_nop
4171 ac_compiler_gnu=no
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4175
4176 fi
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4178 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181 if test $ac_compiler_gnu = yes; then
4182 GCC=yes
4183 else
4184 GCC=
4185 fi
4186 ac_test_CFLAGS=${CFLAGS+y}
4187 ac_save_CFLAGS=$CFLAGS
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4189 printf %s "checking whether $CC accepts -g... " >&6; }
4190 if test ${ac_cv_prog_cc_g+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else $as_nop
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 ac_cv_prog_cc_g=no
4197 CFLAGS="-g"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200
4201 int
4202 main (void)
4203 {
4204
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"
4210 then :
4211 ac_cv_prog_cc_g=yes
4212 else $as_nop
4213 CFLAGS=""
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 int
4218 main (void)
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 if ac_fn_c_try_compile "$LINENO"
4226 then :
4227
4228 else $as_nop
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4230 CFLAGS="-g"
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233
4234 int
4235 main (void)
4236 {
4237
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"
4243 then :
4244 ac_cv_prog_cc_g=yes
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4252 fi
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4254 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4255 if test $ac_test_CFLAGS; then
4256 CFLAGS=$ac_save_CFLAGS
4257 elif test $ac_cv_prog_cc_g = yes; then
4258 if test "$GCC" = yes; then
4259 CFLAGS="-g -O2"
4260 else
4261 CFLAGS="-g"
4262 fi
4263 else
4264 if test "$GCC" = yes; then
4265 CFLAGS="-O2"
4266 else
4267 CFLAGS=
4268 fi
4269 fi
4270 ac_prog_cc_stdc=no
4271 if test x$ac_prog_cc_stdc = xno
4272 then :
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4274 printf %s "checking for $CC option to enable C11 features... " >&6; }
4275 if test ${ac_cv_prog_cc_c11+y}
4276 then :
4277 printf %s "(cached) " >&6
4278 else $as_nop
4279 ac_cv_prog_cc_c11=no
4280 ac_save_CC=$CC
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 $ac_c_conftest_c11_program
4284 _ACEOF
4285 for ac_arg in '' -std=gnu11
4286 do
4287 CC="$ac_save_CC $ac_arg"
4288 if ac_fn_c_try_compile "$LINENO"
4289 then :
4290 ac_cv_prog_cc_c11=$ac_arg
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.beam
4293 test "x$ac_cv_prog_cc_c11" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC
4297 fi
4298
4299 if test "x$ac_cv_prog_cc_c11" = xno
4300 then :
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 printf "%s\n" "unsupported" >&6; }
4303 else $as_nop
4304 if test "x$ac_cv_prog_cc_c11" = x
4305 then :
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4307 printf "%s\n" "none needed" >&6; }
4308 else $as_nop
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4310 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4311 CC="$CC $ac_cv_prog_cc_c11"
4312 fi
4313 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4314 ac_prog_cc_stdc=c11
4315 fi
4316 fi
4317 if test x$ac_prog_cc_stdc = xno
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4320 printf %s "checking for $CC option to enable C99 features... " >&6; }
4321 if test ${ac_cv_prog_cc_c99+y}
4322 then :
4323 printf %s "(cached) " >&6
4324 else $as_nop
4325 ac_cv_prog_cc_c99=no
4326 ac_save_CC=$CC
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 $ac_c_conftest_c99_program
4330 _ACEOF
4331 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4332 do
4333 CC="$ac_save_CC $ac_arg"
4334 if ac_fn_c_try_compile "$LINENO"
4335 then :
4336 ac_cv_prog_cc_c99=$ac_arg
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.beam
4339 test "x$ac_cv_prog_cc_c99" != "xno" && break
4340 done
4341 rm -f conftest.$ac_ext
4342 CC=$ac_save_CC
4343 fi
4344
4345 if test "x$ac_cv_prog_cc_c99" = xno
4346 then :
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4348 printf "%s\n" "unsupported" >&6; }
4349 else $as_nop
4350 if test "x$ac_cv_prog_cc_c99" = x
4351 then :
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4353 printf "%s\n" "none needed" >&6; }
4354 else $as_nop
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4356 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4357 CC="$CC $ac_cv_prog_cc_c99"
4358 fi
4359 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4360 ac_prog_cc_stdc=c99
4361 fi
4362 fi
4363 if test x$ac_prog_cc_stdc = xno
4364 then :
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4366 printf %s "checking for $CC option to enable C89 features... " >&6; }
4367 if test ${ac_cv_prog_cc_c89+y}
4368 then :
4369 printf %s "(cached) " >&6
4370 else $as_nop
4371 ac_cv_prog_cc_c89=no
4372 ac_save_CC=$CC
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 $ac_c_conftest_c89_program
4376 _ACEOF
4377 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4378 do
4379 CC="$ac_save_CC $ac_arg"
4380 if ac_fn_c_try_compile "$LINENO"
4381 then :
4382 ac_cv_prog_cc_c89=$ac_arg
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.beam
4385 test "x$ac_cv_prog_cc_c89" != "xno" && break
4386 done
4387 rm -f conftest.$ac_ext
4388 CC=$ac_save_CC
4389 fi
4390
4391 if test "x$ac_cv_prog_cc_c89" = xno
4392 then :
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4394 printf "%s\n" "unsupported" >&6; }
4395 else $as_nop
4396 if test "x$ac_cv_prog_cc_c89" = x
4397 then :
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4399 printf "%s\n" "none needed" >&6; }
4400 else $as_nop
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4402 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4403 CC="$CC $ac_cv_prog_cc_c89"
4404 fi
4405 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4406 ac_prog_cc_stdc=c89
4407 fi
4408 fi
4409
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4423 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4424 if test ${am_cv_prog_cc_c_o+y}
4425 then :
4426 printf %s "(cached) " >&6
4427 else $as_nop
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430
4431 int
4432 main (void)
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 # Make sure it works both with $CC and with simple cc.
4440 # Following AC_PROG_CC_C_O, we do the test twice because some
4441 # compilers refuse to overwrite an existing .o file with -o,
4442 # though they will create one.
4443 am_cv_prog_cc_c_o=yes
4444 for am_i in 1 2; do
4445 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4446 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } \
4450 && test -f conftest2.$ac_objext; then
4451 : OK
4452 else
4453 am_cv_prog_cc_c_o=no
4454 break
4455 fi
4456 done
4457 rm -f core conftest*
4458 unset am_i
4459 fi
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4461 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4462 if test "$am_cv_prog_cc_c_o" != yes; then
4463 # Losing compiler, so override with the script.
4464 # FIXME: It is wrong to rewrite CC.
4465 # But if we don't then we get into trouble of one sort or another.
4466 # A longer-term fix would be to have automake use am__CC in this case,
4467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4468 CC="$am_aux_dir/compile $CC"
4469 fi
4470 ac_ext=c
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
4476
4477 depcc="$CC" am_compiler_list=
4478
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4480 printf %s "checking dependency style of $depcc... " >&6; }
4481 if test ${am_cv_CC_dependencies_compiler_type+y}
4482 then :
4483 printf %s "(cached) " >&6
4484 else $as_nop
4485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4486 # We make a subdir and do the tests there. Otherwise we can end up
4487 # making bogus files that we don't know about and never remove. For
4488 # instance it was reported that on HP-UX the gcc test will end up
4489 # making a dummy file named 'D' -- because '-MD' means "put the output
4490 # in D".
4491 rm -rf conftest.dir
4492 mkdir conftest.dir
4493 # Copy depcomp to subdir because otherwise we won't find it if we're
4494 # using a relative directory.
4495 cp "$am_depcomp" conftest.dir
4496 cd conftest.dir
4497 # We will build objects and dependencies in a subdirectory because
4498 # it helps to detect inapplicable dependency modes. For instance
4499 # both Tru64's cc and ICC support -MD to output dependencies as a
4500 # side effect of compilation, but ICC will put the dependencies in
4501 # the current directory while Tru64 will put them in the object
4502 # directory.
4503 mkdir sub
4504
4505 am_cv_CC_dependencies_compiler_type=none
4506 if test "$am_compiler_list" = ""; then
4507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4508 fi
4509 am__universal=false
4510 case " $depcc " in #(
4511 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4512 esac
4513
4514 for depmode in $am_compiler_list; do
4515 # Setup a source with many dependencies, because some compilers
4516 # like to wrap large dependency lists on column 80 (with \), and
4517 # we should not choose a depcomp mode which is confused by this.
4518 #
4519 # We need to recreate these files for each test, as the compiler may
4520 # overwrite some of them when testing with obscure command lines.
4521 # This happens at least with the AIX C compiler.
4522 : > sub/conftest.c
4523 for i in 1 2 3 4 5 6; do
4524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4525 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4526 # Solaris 10 /bin/sh.
4527 echo '/* dummy */' > sub/conftst$i.h
4528 done
4529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4530
4531 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4532 # mode. It turns out that the SunPro C++ compiler does not properly
4533 # handle '-M -o', and we need to detect this. Also, some Intel
4534 # versions had trouble with output in subdirs.
4535 am__obj=sub/conftest.${OBJEXT-o}
4536 am__minus_obj="-o $am__obj"
4537 case $depmode in
4538 gcc)
4539 # This depmode causes a compiler race in universal mode.
4540 test "$am__universal" = false || continue
4541 ;;
4542 nosideeffect)
4543 # After this tag, mechanisms are not by side-effect, so they'll
4544 # only be used when explicitly requested.
4545 if test "x$enable_dependency_tracking" = xyes; then
4546 continue
4547 else
4548 break
4549 fi
4550 ;;
4551 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4552 # This compiler won't grok '-c -o', but also, the minuso test has
4553 # not run yet. These depmodes are late enough in the game, and
4554 # so weak that their functioning should not be impacted.
4555 am__obj=conftest.${OBJEXT-o}
4556 am__minus_obj=
4557 ;;
4558 none) break ;;
4559 esac
4560 if depmode=$depmode \
4561 source=sub/conftest.c object=$am__obj \
4562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4564 >/dev/null 2>conftest.err &&
4565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4569 # icc doesn't choke on unknown options, it will just issue warnings
4570 # or remarks (even with -Werror). So we grep stderr for any message
4571 # that says an option was ignored or not supported.
4572 # When given -MP, icc 7.0 and 7.1 complain thusly:
4573 # icc: Command line warning: ignoring option '-M'; no argument required
4574 # The diagnosis changed in icc 8.0:
4575 # icc: Command line remark: option '-MP' not supported
4576 if (grep 'ignoring option' conftest.err ||
4577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4578 am_cv_CC_dependencies_compiler_type=$depmode
4579 break
4580 fi
4581 fi
4582 done
4583
4584 cd ..
4585 rm -rf conftest.dir
4586 else
4587 am_cv_CC_dependencies_compiler_type=none
4588 fi
4589
4590 fi
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4592 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4593 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4594
4595 if
4596 test "x$enable_dependency_tracking" != xno \
4597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4598 am__fastdepCC_TRUE=
4599 am__fastdepCC_FALSE='#'
4600 else
4601 am__fastdepCC_TRUE='#'
4602 am__fastdepCC_FALSE=
4603 fi
4604
4605
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4607 printf %s "checking for a sed that does not truncate output... " >&6; }
4608 if test ${ac_cv_path_SED+y}
4609 then :
4610 printf %s "(cached) " >&6
4611 else $as_nop
4612 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4613 for ac_i in 1 2 3 4 5 6 7; do
4614 ac_script="$ac_script$as_nl$ac_script"
4615 done
4616 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4617 { ac_script=; unset ac_script;}
4618 if test -z "$SED"; then
4619 ac_path_SED_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624 IFS=$as_save_IFS
4625 case $as_dir in #(((
4626 '') as_dir=./ ;;
4627 */) ;;
4628 *) as_dir=$as_dir/ ;;
4629 esac
4630 for ac_prog in sed gsed
4631 do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4634 as_fn_executable_p "$ac_path_SED" || continue
4635 # Check for GNU ac_path_SED and select it if it is found.
4636 # Check for GNU $ac_path_SED
4637 case `"$ac_path_SED" --version 2>&1` in
4638 *GNU*)
4639 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4640 *)
4641 ac_count=0
4642 printf %s 0123456789 >"conftest.in"
4643 while :
4644 do
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 printf "%s\n" '' >> "conftest.nl"
4649 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_SED_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_SED="$ac_path_SED"
4655 ac_path_SED_max=$ac_count
4656 fi
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4659 done
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4662
4663 $ac_path_SED_found && break 3
4664 done
4665 done
4666 done
4667 IFS=$as_save_IFS
4668 if test -z "$ac_cv_path_SED"; then
4669 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4670 fi
4671 else
4672 ac_cv_path_SED=$SED
4673 fi
4674
4675 fi
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4677 printf "%s\n" "$ac_cv_path_SED" >&6; }
4678 SED="$ac_cv_path_SED"
4679 rm -f conftest.sed
4680
4681 test -z "$SED" && SED=sed
4682 Xsed="$SED -e 1s/^X//"
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4695 printf %s "checking for grep that handles long lines and -e... " >&6; }
4696 if test ${ac_cv_path_GREP+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else $as_nop
4700 if test -z "$GREP"; then
4701 ac_path_GREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705 do
4706 IFS=$as_save_IFS
4707 case $as_dir in #(((
4708 '') as_dir=./ ;;
4709 */) ;;
4710 *) as_dir=$as_dir/ ;;
4711 esac
4712 for ac_prog in grep ggrep
4713 do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4716 as_fn_executable_p "$ac_path_GREP" || continue
4717 # Check for GNU ac_path_GREP and select it if it is found.
4718 # Check for GNU $ac_path_GREP
4719 case `"$ac_path_GREP" --version 2>&1` in
4720 *GNU*)
4721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4722 *)
4723 ac_count=0
4724 printf %s 0123456789 >"conftest.in"
4725 while :
4726 do
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
4730 printf "%s\n" 'GREP' >> "conftest.nl"
4731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733 as_fn_arith $ac_count + 1 && ac_count=$as_val
4734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_GREP="$ac_path_GREP"
4737 ac_path_GREP_max=$ac_count
4738 fi
4739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4741 done
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743 esac
4744
4745 $ac_path_GREP_found && break 3
4746 done
4747 done
4748 done
4749 IFS=$as_save_IFS
4750 if test -z "$ac_cv_path_GREP"; then
4751 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752 fi
4753 else
4754 ac_cv_path_GREP=$GREP
4755 fi
4756
4757 fi
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4759 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4760 GREP="$ac_cv_path_GREP"
4761
4762
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4764 printf %s "checking for egrep... " >&6; }
4765 if test ${ac_cv_path_EGREP+y}
4766 then :
4767 printf %s "(cached) " >&6
4768 else $as_nop
4769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4770 then ac_cv_path_EGREP="$GREP -E"
4771 else
4772 if test -z "$EGREP"; then
4773 ac_path_EGREP_found=false
4774 # Loop through the user's path and test for each of PROGNAME-LIST
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4777 do
4778 IFS=$as_save_IFS
4779 case $as_dir in #(((
4780 '') as_dir=./ ;;
4781 */) ;;
4782 *) as_dir=$as_dir/ ;;
4783 esac
4784 for ac_prog in egrep
4785 do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4788 as_fn_executable_p "$ac_path_EGREP" || continue
4789 # Check for GNU ac_path_EGREP and select it if it is found.
4790 # Check for GNU $ac_path_EGREP
4791 case `"$ac_path_EGREP" --version 2>&1` in
4792 *GNU*)
4793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4794 *)
4795 ac_count=0
4796 printf %s 0123456789 >"conftest.in"
4797 while :
4798 do
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 printf "%s\n" 'EGREP' >> "conftest.nl"
4803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4805 as_fn_arith $ac_count + 1 && ac_count=$as_val
4806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_EGREP="$ac_path_EGREP"
4809 ac_path_EGREP_max=$ac_count
4810 fi
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4813 done
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4815 esac
4816
4817 $ac_path_EGREP_found && break 3
4818 done
4819 done
4820 done
4821 IFS=$as_save_IFS
4822 if test -z "$ac_cv_path_EGREP"; then
4823 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4824 fi
4825 else
4826 ac_cv_path_EGREP=$EGREP
4827 fi
4828
4829 fi
4830 fi
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4832 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4833 EGREP="$ac_cv_path_EGREP"
4834
4835
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4837 printf %s "checking for fgrep... " >&6; }
4838 if test ${ac_cv_path_FGREP+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else $as_nop
4842 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4843 then ac_cv_path_FGREP="$GREP -F"
4844 else
4845 if test -z "$FGREP"; then
4846 ac_path_FGREP_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4850 do
4851 IFS=$as_save_IFS
4852 case $as_dir in #(((
4853 '') as_dir=./ ;;
4854 */) ;;
4855 *) as_dir=$as_dir/ ;;
4856 esac
4857 for ac_prog in fgrep
4858 do
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4861 as_fn_executable_p "$ac_path_FGREP" || continue
4862 # Check for GNU ac_path_FGREP and select it if it is found.
4863 # Check for GNU $ac_path_FGREP
4864 case `"$ac_path_FGREP" --version 2>&1` in
4865 *GNU*)
4866 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4867 *)
4868 ac_count=0
4869 printf %s 0123456789 >"conftest.in"
4870 while :
4871 do
4872 cat "conftest.in" "conftest.in" >"conftest.tmp"
4873 mv "conftest.tmp" "conftest.in"
4874 cp "conftest.in" "conftest.nl"
4875 printf "%s\n" 'FGREP' >> "conftest.nl"
4876 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878 as_fn_arith $ac_count + 1 && ac_count=$as_val
4879 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4880 # Best one so far, save it but keep looking for a better one
4881 ac_cv_path_FGREP="$ac_path_FGREP"
4882 ac_path_FGREP_max=$ac_count
4883 fi
4884 # 10*(2^10) chars as input seems more than enough
4885 test $ac_count -gt 10 && break
4886 done
4887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888 esac
4889
4890 $ac_path_FGREP_found && break 3
4891 done
4892 done
4893 done
4894 IFS=$as_save_IFS
4895 if test -z "$ac_cv_path_FGREP"; then
4896 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4897 fi
4898 else
4899 ac_cv_path_FGREP=$FGREP
4900 fi
4901
4902 fi
4903 fi
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4905 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4906 FGREP="$ac_cv_path_FGREP"
4907
4908
4909 test -z "$GREP" && GREP=grep
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 # Check whether --with-gnu-ld was given.
4930 if test ${with_gnu_ld+y}
4931 then :
4932 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4933 else $as_nop
4934 with_gnu_ld=no
4935 fi
4936
4937 ac_prog=ld
4938 if test yes = "$GCC"; then
4939 # Check if gcc -print-prog-name=ld gives a path.
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4941 printf %s "checking for ld used by $CC... " >&6; }
4942 case $host in
4943 *-*-mingw*)
4944 # gcc leaves a trailing carriage return, which upsets mingw
4945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4946 *)
4947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4948 esac
4949 case $ac_prog in
4950 # Accept absolute paths.
4951 [\\/]* | ?:[\\/]*)
4952 re_direlt='/[^/][^/]*/\.\./'
4953 # Canonicalize the pathname of ld
4954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4957 done
4958 test -z "$LD" && LD=$ac_prog
4959 ;;
4960 "")
4961 # If it fails, then pretend we aren't using GCC.
4962 ac_prog=ld
4963 ;;
4964 *)
4965 # If it is relative, then search for the first ld in PATH.
4966 with_gnu_ld=unknown
4967 ;;
4968 esac
4969 elif test yes = "$with_gnu_ld"; then
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4971 printf %s "checking for GNU ld... " >&6; }
4972 else
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4974 printf %s "checking for non-GNU ld... " >&6; }
4975 fi
4976 if test ${lt_cv_path_LD+y}
4977 then :
4978 printf %s "(cached) " >&6
4979 else $as_nop
4980 if test -z "$LD"; then
4981 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4982 for ac_dir in $PATH; do
4983 IFS=$lt_save_ifs
4984 test -z "$ac_dir" && ac_dir=.
4985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4986 lt_cv_path_LD=$ac_dir/$ac_prog
4987 # Check to see if the program is GNU ld. I'd rather use --version,
4988 # but apparently some variants of GNU ld only accept -v.
4989 # Break only if it was the GNU/non-GNU ld that we prefer.
4990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4991 *GNU* | *'with BFD'*)
4992 test no != "$with_gnu_ld" && break
4993 ;;
4994 *)
4995 test yes != "$with_gnu_ld" && break
4996 ;;
4997 esac
4998 fi
4999 done
5000 IFS=$lt_save_ifs
5001 else
5002 lt_cv_path_LD=$LD # Let the user override the test with a path.
5003 fi
5004 fi
5005
5006 LD=$lt_cv_path_LD
5007 if test -n "$LD"; then
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5009 printf "%s\n" "$LD" >&6; }
5010 else
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 printf "%s\n" "no" >&6; }
5013 fi
5014 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5016 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5017 if test ${lt_cv_prog_gnu_ld+y}
5018 then :
5019 printf %s "(cached) " >&6
5020 else $as_nop
5021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5022 case `$LD -v 2>&1 </dev/null` in
5023 *GNU* | *'with BFD'*)
5024 lt_cv_prog_gnu_ld=yes
5025 ;;
5026 *)
5027 lt_cv_prog_gnu_ld=no
5028 ;;
5029 esac
5030 fi
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5032 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5033 with_gnu_ld=$lt_cv_prog_gnu_ld
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5044 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5045 if test ${lt_cv_path_NM+y}
5046 then :
5047 printf %s "(cached) " >&6
5048 else $as_nop
5049 if test -n "$NM"; then
5050 # Let the user override the test.
5051 lt_cv_path_NM=$NM
5052 else
5053 lt_nm_to_check=${ac_tool_prefix}nm
5054 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5055 lt_nm_to_check="$lt_nm_to_check nm"
5056 fi
5057 for lt_tmp_nm in $lt_nm_to_check; do
5058 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5059 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5060 IFS=$lt_save_ifs
5061 test -z "$ac_dir" && ac_dir=.
5062 tmp_nm=$ac_dir/$lt_tmp_nm
5063 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5064 # Check to see if the nm accepts a BSD-compat flag.
5065 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5066 # nm: unknown option "B" ignored
5067 # Tru64's nm complains that /dev/null is an invalid object file
5068 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5069 case $build_os in
5070 mingw*) lt_bad_file=conftest.nm/nofile ;;
5071 *) lt_bad_file=/dev/null ;;
5072 esac
5073 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5074 *$lt_bad_file* | *'Invalid file or object type'*)
5075 lt_cv_path_NM="$tmp_nm -B"
5076 break 2
5077 ;;
5078 *)
5079 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5080 */dev/null*)
5081 lt_cv_path_NM="$tmp_nm -p"
5082 break 2
5083 ;;
5084 *)
5085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5086 continue # so that we can try to find one that supports BSD flags
5087 ;;
5088 esac
5089 ;;
5090 esac
5091 fi
5092 done
5093 IFS=$lt_save_ifs
5094 done
5095 : ${lt_cv_path_NM=no}
5096 fi
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5099 printf "%s\n" "$lt_cv_path_NM" >&6; }
5100 if test no != "$lt_cv_path_NM"; then
5101 NM=$lt_cv_path_NM
5102 else
5103 # Didn't find any BSD compatible name lister, look for dumpbin.
5104 if test -n "$DUMPBIN"; then :
5105 # Let the user override the test.
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in dumpbin "link -dump"
5109 do
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 printf %s "checking for $ac_word... " >&6; }
5114 if test ${ac_cv_prog_DUMPBIN+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else $as_nop
5118 if test -n "$DUMPBIN"; then
5119 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 case $as_dir in #(((
5126 '') as_dir=./ ;;
5127 */) ;;
5128 *) as_dir=$as_dir/ ;;
5129 esac
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136 done
5137 done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 DUMPBIN=$ac_cv_prog_DUMPBIN
5143 if test -n "$DUMPBIN"; then
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5145 printf "%s\n" "$DUMPBIN" >&6; }
5146 else
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 printf "%s\n" "no" >&6; }
5149 fi
5150
5151
5152 test -n "$DUMPBIN" && break
5153 done
5154 fi
5155 if test -z "$DUMPBIN"; then
5156 ac_ct_DUMPBIN=$DUMPBIN
5157 for ac_prog in dumpbin "link -dump"
5158 do
5159 # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 printf %s "checking for $ac_word... " >&6; }
5163 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5164 then :
5165 printf %s "(cached) " >&6
5166 else $as_nop
5167 if test -n "$ac_ct_DUMPBIN"; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 case $as_dir in #(((
5175 '') as_dir=./ ;;
5176 */) ;;
5177 *) as_dir=$as_dir/ ;;
5178 esac
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185 done
5186 done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5192 if test -n "$ac_ct_DUMPBIN"; then
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5194 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5195 else
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 printf "%s\n" "no" >&6; }
5198 fi
5199
5200
5201 test -n "$ac_ct_DUMPBIN" && break
5202 done
5203
5204 if test "x$ac_ct_DUMPBIN" = x; then
5205 DUMPBIN=":"
5206 else
5207 case $cross_compiling:$ac_tool_warned in
5208 yes:)
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5210 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211 ac_tool_warned=yes ;;
5212 esac
5213 DUMPBIN=$ac_ct_DUMPBIN
5214 fi
5215 fi
5216
5217 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5218 *COFF*)
5219 DUMPBIN="$DUMPBIN -symbols -headers"
5220 ;;
5221 *)
5222 DUMPBIN=:
5223 ;;
5224 esac
5225 fi
5226
5227 if test : != "$DUMPBIN"; then
5228 NM=$DUMPBIN
5229 fi
5230 fi
5231 test -z "$NM" && NM=nm
5232
5233
5234
5235
5236
5237
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5239 printf %s "checking the name lister ($NM) interface... " >&6; }
5240 if test ${lt_cv_nm_interface+y}
5241 then :
5242 printf %s "(cached) " >&6
5243 else $as_nop
5244 lt_cv_nm_interface="BSD nm"
5245 echo "int some_variable = 0;" > conftest.$ac_ext
5246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5247 (eval "$ac_compile" 2>conftest.err)
5248 cat conftest.err >&5
5249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5251 cat conftest.err >&5
5252 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5253 cat conftest.out >&5
5254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5255 lt_cv_nm_interface="MS dumpbin"
5256 fi
5257 rm -f conftest*
5258 fi
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5260 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5261
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5263 printf %s "checking whether ln -s works... " >&6; }
5264 LN_S=$as_ln_s
5265 if test "$LN_S" = "ln -s"; then
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267 printf "%s\n" "yes" >&6; }
5268 else
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5270 printf "%s\n" "no, using $LN_S" >&6; }
5271 fi
5272
5273 # find the maximum length of command line arguments
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5275 printf %s "checking the maximum length of command line arguments... " >&6; }
5276 if test ${lt_cv_sys_max_cmd_len+y}
5277 then :
5278 printf %s "(cached) " >&6
5279 else $as_nop
5280 i=0
5281 teststring=ABCD
5282
5283 case $build_os in
5284 msdosdjgpp*)
5285 # On DJGPP, this test can blow up pretty badly due to problems in libc
5286 # (any single argument exceeding 2000 bytes causes a buffer overrun
5287 # during glob expansion). Even if it were fixed, the result of this
5288 # check would be larger than it should be.
5289 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5290 ;;
5291
5292 gnu*)
5293 # Under GNU Hurd, this test is not required because there is
5294 # no limit to the length of command line arguments.
5295 # Libtool will interpret -1 as no limit whatsoever
5296 lt_cv_sys_max_cmd_len=-1;
5297 ;;
5298
5299 cygwin* | mingw* | cegcc*)
5300 # On Win9x/ME, this test blows up -- it succeeds, but takes
5301 # about 5 minutes as the teststring grows exponentially.
5302 # Worse, since 9x/ME are not pre-emptively multitasking,
5303 # you end up with a "frozen" computer, even though with patience
5304 # the test eventually succeeds (with a max line length of 256k).
5305 # Instead, let's just punt: use the minimum linelength reported by
5306 # all of the supported platforms: 8192 (on NT/2K/XP).
5307 lt_cv_sys_max_cmd_len=8192;
5308 ;;
5309
5310 mint*)
5311 # On MiNT this can take a long time and run out of memory.
5312 lt_cv_sys_max_cmd_len=8192;
5313 ;;
5314
5315 amigaos*)
5316 # On AmigaOS with pdksh, this test takes hours, literally.
5317 # So we just punt and use a minimum line length of 8192.
5318 lt_cv_sys_max_cmd_len=8192;
5319 ;;
5320
5321 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5322 # This has been around since 386BSD, at least. Likely further.
5323 if test -x /sbin/sysctl; then
5324 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5325 elif test -x /usr/sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5327 else
5328 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5329 fi
5330 # And add a safety zone
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5333 ;;
5334
5335 interix*)
5336 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5337 lt_cv_sys_max_cmd_len=196608
5338 ;;
5339
5340 os2*)
5341 # The test takes a long time on OS/2.
5342 lt_cv_sys_max_cmd_len=8192
5343 ;;
5344
5345 osf*)
5346 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5347 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5348 # nice to cause kernel panics so lets avoid the loop below.
5349 # First set a reasonable default.
5350 lt_cv_sys_max_cmd_len=16384
5351 #
5352 if test -x /sbin/sysconfig; then
5353 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5354 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5355 esac
5356 fi
5357 ;;
5358 sco3.2v5*)
5359 lt_cv_sys_max_cmd_len=102400
5360 ;;
5361 sysv5* | sco5v6* | sysv4.2uw2*)
5362 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5363 if test -n "$kargmax"; then
5364 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5365 else
5366 lt_cv_sys_max_cmd_len=32768
5367 fi
5368 ;;
5369 *)
5370 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5371 if test -n "$lt_cv_sys_max_cmd_len" && \
5372 test undefined != "$lt_cv_sys_max_cmd_len"; then
5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5375 else
5376 # Make teststring a little bigger before we do anything with it.
5377 # a 1K string should be a reasonable start.
5378 for i in 1 2 3 4 5 6 7 8; do
5379 teststring=$teststring$teststring
5380 done
5381 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5382 # If test is not a shell built-in, we'll probably end up computing a
5383 # maximum length that is only half of the actual maximum length, but
5384 # we can't tell.
5385 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5386 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5387 test 17 != "$i" # 1/2 MB should be enough
5388 do
5389 i=`expr $i + 1`
5390 teststring=$teststring$teststring
5391 done
5392 # Only check the string length outside the loop.
5393 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5394 teststring=
5395 # Add a significant safety factor because C++ compilers can tack on
5396 # massive amounts of additional arguments before passing them to the
5397 # linker. It appears as though 1/2 is a usable value.
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5399 fi
5400 ;;
5401 esac
5402
5403 fi
5404
5405 if test -n "$lt_cv_sys_max_cmd_len"; then
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5407 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5408 else
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5410 printf "%s\n" "none" >&6; }
5411 fi
5412 max_cmd_len=$lt_cv_sys_max_cmd_len
5413
5414
5415
5416
5417
5418
5419 : ${CP="cp -f"}
5420 : ${MV="mv -f"}
5421 : ${RM="rm -f"}
5422
5423 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5424 lt_unset=unset
5425 else
5426 lt_unset=false
5427 fi
5428
5429
5430
5431
5432
5433 # test EBCDIC or ASCII
5434 case `echo X|tr X '\101'` in
5435 A) # ASCII based system
5436 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5437 lt_SP2NL='tr \040 \012'
5438 lt_NL2SP='tr \015\012 \040\040'
5439 ;;
5440 *) # EBCDIC based system
5441 lt_SP2NL='tr \100 \n'
5442 lt_NL2SP='tr \r\n \100\100'
5443 ;;
5444 esac
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5455 printf %s "checking how to convert $build file names to $host format... " >&6; }
5456 if test ${lt_cv_to_host_file_cmd+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else $as_nop
5460 case $host in
5461 *-*-mingw* )
5462 case $build in
5463 *-*-mingw* ) # actually msys
5464 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5465 ;;
5466 *-*-cygwin* )
5467 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5468 ;;
5469 * ) # otherwise, assume *nix
5470 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5471 ;;
5472 esac
5473 ;;
5474 *-*-cygwin* )
5475 case $build in
5476 *-*-mingw* ) # actually msys
5477 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5478 ;;
5479 *-*-cygwin* )
5480 lt_cv_to_host_file_cmd=func_convert_file_noop
5481 ;;
5482 * ) # otherwise, assume *nix
5483 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5484 ;;
5485 esac
5486 ;;
5487 * ) # unhandled hosts (and "normal" native builds)
5488 lt_cv_to_host_file_cmd=func_convert_file_noop
5489 ;;
5490 esac
5491
5492 fi
5493
5494 to_host_file_cmd=$lt_cv_to_host_file_cmd
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5496 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5497
5498
5499
5500
5501
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5503 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5504 if test ${lt_cv_to_tool_file_cmd+y}
5505 then :
5506 printf %s "(cached) " >&6
5507 else $as_nop
5508 #assume ordinary cross tools, or native build.
5509 lt_cv_to_tool_file_cmd=func_convert_file_noop
5510 case $host in
5511 *-*-mingw* )
5512 case $build in
5513 *-*-mingw* ) # actually msys
5514 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5515 ;;
5516 esac
5517 ;;
5518 esac
5519
5520 fi
5521
5522 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5524 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5525
5526
5527
5528
5529
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5531 printf %s "checking for $LD option to reload object files... " >&6; }
5532 if test ${lt_cv_ld_reload_flag+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else $as_nop
5536 lt_cv_ld_reload_flag='-r'
5537 fi
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5539 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5540 reload_flag=$lt_cv_ld_reload_flag
5541 case $reload_flag in
5542 "" | " "*) ;;
5543 *) reload_flag=" $reload_flag" ;;
5544 esac
5545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5546 case $host_os in
5547 cygwin* | mingw* | pw32* | cegcc*)
5548 if test yes != "$GCC"; then
5549 reload_cmds=false
5550 fi
5551 ;;
5552 darwin*)
5553 if test yes = "$GCC"; then
5554 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5555 else
5556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 fi
5558 ;;
5559 esac
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}file; ac_word=$2
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 printf %s "checking for $ac_word... " >&6; }
5574 if test ${ac_cv_prog_FILECMD+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else $as_nop
5578 if test -n "$FILECMD"; then
5579 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 case $as_dir in #(((
5586 '') as_dir=./ ;;
5587 */) ;;
5588 *) as_dir=$as_dir/ ;;
5589 esac
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 FILECMD=$ac_cv_prog_FILECMD
5603 if test -n "$FILECMD"; then
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5605 printf "%s\n" "$FILECMD" >&6; }
5606 else
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 printf "%s\n" "no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_FILECMD"; then
5614 ac_ct_FILECMD=$FILECMD
5615 # Extract the first word of "file", so it can be a program name with args.
5616 set dummy file; ac_word=$2
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 printf %s "checking for $ac_word... " >&6; }
5619 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5620 then :
5621 printf %s "(cached) " >&6
5622 else $as_nop
5623 if test -n "$ac_ct_FILECMD"; then
5624 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 case $as_dir in #(((
5631 '') as_dir=./ ;;
5632 */) ;;
5633 *) as_dir=$as_dir/ ;;
5634 esac
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_FILECMD="file"
5638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5648 if test -n "$ac_ct_FILECMD"; then
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5650 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5651 else
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 printf "%s\n" "no" >&6; }
5654 fi
5655
5656 if test "x$ac_ct_FILECMD" = x; then
5657 FILECMD=":"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 FILECMD=$ac_ct_FILECMD
5666 fi
5667 else
5668 FILECMD="$ac_cv_prog_FILECMD"
5669 fi
5670
5671
5672
5673
5674
5675
5676
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5679 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_OBJDUMP+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else $as_nop
5686 if test -n "$OBJDUMP"; then
5687 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 OBJDUMP=$ac_cv_prog_OBJDUMP
5711 if test -n "$OBJDUMP"; then
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5713 printf "%s\n" "$OBJDUMP" >&6; }
5714 else
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 printf "%s\n" "no" >&6; }
5717 fi
5718
5719
5720 fi
5721 if test -z "$ac_cv_prog_OBJDUMP"; then
5722 ac_ct_OBJDUMP=$OBJDUMP
5723 # Extract the first word of "objdump", so it can be a program name with args.
5724 set dummy objdump; ac_word=$2
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 printf %s "checking for $ac_word... " >&6; }
5727 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5728 then :
5729 printf %s "(cached) " >&6
5730 else $as_nop
5731 if test -n "$ac_ct_OBJDUMP"; then
5732 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 case $as_dir in #(((
5739 '') as_dir=./ ;;
5740 */) ;;
5741 *) as_dir=$as_dir/ ;;
5742 esac
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5756 if test -n "$ac_ct_OBJDUMP"; then
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5758 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5759 else
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 printf "%s\n" "no" >&6; }
5762 fi
5763
5764 if test "x$ac_ct_OBJDUMP" = x; then
5765 OBJDUMP="false"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773 OBJDUMP=$ac_ct_OBJDUMP
5774 fi
5775 else
5776 OBJDUMP="$ac_cv_prog_OBJDUMP"
5777 fi
5778
5779 test -z "$OBJDUMP" && OBJDUMP=objdump
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5790 printf %s "checking how to recognize dependent libraries... " >&6; }
5791 if test ${lt_cv_deplibs_check_method+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else $as_nop
5795 lt_cv_file_magic_cmd='$MAGIC_CMD'
5796 lt_cv_file_magic_test_file=
5797 lt_cv_deplibs_check_method='unknown'
5798 # Need to set the preceding variable on all platforms that support
5799 # interlibrary dependencies.
5800 # 'none' -- dependencies not supported.
5801 # 'unknown' -- same as none, but documents that we really don't know.
5802 # 'pass_all' -- all dependencies passed with no checks.
5803 # 'test_compile' -- check by making test program.
5804 # 'file_magic [[regex]]' -- check by looking for files in library path
5805 # that responds to the $file_magic_cmd with a given extended regex.
5806 # If you have 'file' or equivalent on your system and you're not sure
5807 # whether 'pass_all' will *always* work, you probably want this one.
5808
5809 case $host_os in
5810 aix[4-9]*)
5811 lt_cv_deplibs_check_method=pass_all
5812 ;;
5813
5814 beos*)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818 bsdi[45]*)
5819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5820 lt_cv_file_magic_cmd='$FILECMD -L'
5821 lt_cv_file_magic_test_file=/shlib/libc.so
5822 ;;
5823
5824 cygwin*)
5825 # func_win32_libid is a shell function defined in ltmain.sh
5826 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5827 lt_cv_file_magic_cmd='func_win32_libid'
5828 ;;
5829
5830 mingw* | pw32*)
5831 # Base MSYS/MinGW do not provide the 'file' command needed by
5832 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5833 # unless we find 'file', for example because we are cross-compiling.
5834 if ( file / ) >/dev/null 2>&1; then
5835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5836 lt_cv_file_magic_cmd='func_win32_libid'
5837 else
5838 # Keep this pattern in sync with the one in func_win32_libid.
5839 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5840 lt_cv_file_magic_cmd='$OBJDUMP -f'
5841 fi
5842 ;;
5843
5844 cegcc*)
5845 # use the weaker test based on 'objdump'. See mingw*.
5846 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5847 lt_cv_file_magic_cmd='$OBJDUMP -f'
5848 ;;
5849
5850 darwin* | rhapsody*)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853
5854 freebsd* | dragonfly* | midnightbsd*)
5855 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5856 case $host_cpu in
5857 i*86 )
5858 # Not sure whether the presence of OpenBSD here was a mistake.
5859 # Let's accept both of them until this is cleared up.
5860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5861 lt_cv_file_magic_cmd=$FILECMD
5862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5863 ;;
5864 esac
5865 else
5866 lt_cv_deplibs_check_method=pass_all
5867 fi
5868 ;;
5869
5870 haiku*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874 hpux10.20* | hpux11*)
5875 lt_cv_file_magic_cmd=$FILECMD
5876 case $host_cpu in
5877 ia64*)
5878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5880 ;;
5881 hppa*64*)
5882 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]'
5883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5884 ;;
5885 *)
5886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5888 ;;
5889 esac
5890 ;;
5891
5892 interix[3-9]*)
5893 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5895 ;;
5896
5897 irix5* | irix6* | nonstopux*)
5898 case $LD in
5899 *-32|*"-32 ") libmagic=32-bit;;
5900 *-n32|*"-n32 ") libmagic=N32;;
5901 *-64|*"-64 ") libmagic=64-bit;;
5902 *) libmagic=never-match;;
5903 esac
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
5906
5907 # This must be glibc/ELF.
5908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5909 lt_cv_deplibs_check_method=pass_all
5910 ;;
5911
5912 netbsd*)
5913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5915 else
5916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5917 fi
5918 ;;
5919
5920 newos6*)
5921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5922 lt_cv_file_magic_cmd=$FILECMD
5923 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5924 ;;
5925
5926 *nto* | *qnx*)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
5929
5930 openbsd* | bitrig*)
5931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5933 else
5934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5935 fi
5936 ;;
5937
5938 osf3* | osf4* | osf5*)
5939 lt_cv_deplibs_check_method=pass_all
5940 ;;
5941
5942 rdos*)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
5945
5946 solaris*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949
5950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954 sysv4 | sysv4.3*)
5955 case $host_vendor in
5956 motorola)
5957 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]'
5958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5959 ;;
5960 ncr)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963 sequent)
5964 lt_cv_file_magic_cmd='/bin/file'
5965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5966 ;;
5967 sni)
5968 lt_cv_file_magic_cmd='/bin/file'
5969 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5970 lt_cv_file_magic_test_file=/lib/libc.so
5971 ;;
5972 siemens)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975 pc)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978 esac
5979 ;;
5980
5981 tpf*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984 os2*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987 esac
5988
5989 fi
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5991 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5992
5993 file_magic_glob=
5994 want_nocaseglob=no
5995 if test "$build" = "$host"; then
5996 case $host_os in
5997 mingw* | pw32*)
5998 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5999 want_nocaseglob=yes
6000 else
6001 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6002 fi
6003 ;;
6004 esac
6005 fi
6006
6007 file_magic_cmd=$lt_cv_file_magic_cmd
6008 deplibs_check_method=$lt_cv_deplibs_check_method
6009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 printf %s "checking for $ac_word... " >&6; }
6037 if test ${ac_cv_prog_DLLTOOL+y}
6038 then :
6039 printf %s "(cached) " >&6
6040 else $as_nop
6041 if test -n "$DLLTOOL"; then
6042 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 case $as_dir in #(((
6049 '') as_dir=./ ;;
6050 */) ;;
6051 *) as_dir=$as_dir/ ;;
6052 esac
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 DLLTOOL=$ac_cv_prog_DLLTOOL
6066 if test -n "$DLLTOOL"; then
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068 printf "%s\n" "$DLLTOOL" >&6; }
6069 else
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 printf "%s\n" "no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_DLLTOOL"; then
6077 ac_ct_DLLTOOL=$DLLTOOL
6078 # Extract the first word of "dlltool", so it can be a program name with args.
6079 set dummy dlltool; ac_word=$2
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 printf %s "checking for $ac_word... " >&6; }
6082 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6083 then :
6084 printf %s "(cached) " >&6
6085 else $as_nop
6086 if test -n "$ac_ct_DLLTOOL"; then
6087 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 case $as_dir in #(((
6094 '') as_dir=./ ;;
6095 */) ;;
6096 *) as_dir=$as_dir/ ;;
6097 esac
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6111 if test -n "$ac_ct_DLLTOOL"; then
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6113 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6114 else
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 printf "%s\n" "no" >&6; }
6117 fi
6118
6119 if test "x$ac_ct_DLLTOOL" = x; then
6120 DLLTOOL="false"
6121 else
6122 case $cross_compiling:$ac_tool_warned in
6123 yes:)
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6125 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128 DLLTOOL=$ac_ct_DLLTOOL
6129 fi
6130 else
6131 DLLTOOL="$ac_cv_prog_DLLTOOL"
6132 fi
6133
6134 test -z "$DLLTOOL" && DLLTOOL=dlltool
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6146 printf %s "checking how to associate runtime and link libraries... " >&6; }
6147 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else $as_nop
6151 lt_cv_sharedlib_from_linklib_cmd='unknown'
6152
6153 case $host_os in
6154 cygwin* | mingw* | pw32* | cegcc*)
6155 # two different shell functions defined in ltmain.sh;
6156 # decide which one to use based on capabilities of $DLLTOOL
6157 case `$DLLTOOL --help 2>&1` in
6158 *--identify-strict*)
6159 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6160 ;;
6161 *)
6162 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6163 ;;
6164 esac
6165 ;;
6166 *)
6167 # fallback: assume linklib IS sharedlib
6168 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6169 ;;
6170 esac
6171
6172 fi
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6174 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6175 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6176 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6177
6178
6179
6180
6181
6182
6183
6184
6185 if test -n "$ac_tool_prefix"; then
6186 for ac_prog in ar
6187 do
6188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 printf %s "checking for $ac_word... " >&6; }
6192 if test ${ac_cv_prog_AR+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 if test -n "$AR"; then
6197 ac_cv_prog_AR="$AR" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202 IFS=$as_save_IFS
6203 case $as_dir in #(((
6204 '') as_dir=./ ;;
6205 */) ;;
6206 *) as_dir=$as_dir/ ;;
6207 esac
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 AR=$ac_cv_prog_AR
6221 if test -n "$AR"; then
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6223 printf "%s\n" "$AR" >&6; }
6224 else
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 printf "%s\n" "no" >&6; }
6227 fi
6228
6229
6230 test -n "$AR" && break
6231 done
6232 fi
6233 if test -z "$AR"; then
6234 ac_ct_AR=$AR
6235 for ac_prog in ar
6236 do
6237 # Extract the first word of "$ac_prog", so it can be a program name with args.
6238 set dummy $ac_prog; ac_word=$2
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 printf %s "checking for $ac_word... " >&6; }
6241 if test ${ac_cv_prog_ac_ct_AR+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 if test -n "$ac_ct_AR"; then
6246 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 case $as_dir in #(((
6253 '') as_dir=./ ;;
6254 */) ;;
6255 *) as_dir=$as_dir/ ;;
6256 esac
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_ac_ct_AR="$ac_prog"
6260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6270 if test -n "$ac_ct_AR"; then
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6272 printf "%s\n" "$ac_ct_AR" >&6; }
6273 else
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 printf "%s\n" "no" >&6; }
6276 fi
6277
6278
6279 test -n "$ac_ct_AR" && break
6280 done
6281
6282 if test "x$ac_ct_AR" = x; then
6283 AR="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 AR=$ac_ct_AR
6292 fi
6293 fi
6294
6295 : ${AR=ar}
6296
6297
6298
6299
6300
6301
6302 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6303 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6304 # higher priority because thats what people were doing historically (setting
6305 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6306 # variable obsoleted/removed.
6307
6308 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6309 lt_ar_flags=$AR_FLAGS
6310
6311
6312
6313
6314
6315
6316 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6317 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6318
6319
6320
6321
6322
6323
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6325 printf %s "checking for archiver @FILE support... " >&6; }
6326 if test ${lt_cv_ar_at_file+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else $as_nop
6330 lt_cv_ar_at_file=no
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333
6334 int
6335 main (void)
6336 {
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 if ac_fn_c_try_compile "$LINENO"
6343 then :
6344 echo conftest.$ac_objext > conftest.lst
6345 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6347 (eval $lt_ar_try) 2>&5
6348 ac_status=$?
6349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }
6351 if test 0 -eq "$ac_status"; then
6352 # Ensure the archiver fails upon bogus file names.
6353 rm -f conftest.$ac_objext libconftest.a
6354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6355 (eval $lt_ar_try) 2>&5
6356 ac_status=$?
6357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }
6359 if test 0 -ne "$ac_status"; then
6360 lt_cv_ar_at_file=@
6361 fi
6362 fi
6363 rm -f conftest.* libconftest.a
6364
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6367
6368 fi
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6370 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6371
6372 if test no = "$lt_cv_ar_at_file"; then
6373 archiver_list_spec=
6374 else
6375 archiver_list_spec=$lt_cv_ar_at_file
6376 fi
6377
6378
6379
6380
6381
6382
6383
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}strip; ac_word=$2
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 printf %s "checking for $ac_word... " >&6; }
6389 if test ${ac_cv_prog_STRIP+y}
6390 then :
6391 printf %s "(cached) " >&6
6392 else $as_nop
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 case $as_dir in #(((
6401 '') as_dir=./ ;;
6402 */) ;;
6403 *) as_dir=$as_dir/ ;;
6404 esac
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6409 break 2
6410 fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 STRIP=$ac_cv_prog_STRIP
6418 if test -n "$STRIP"; then
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6420 printf "%s\n" "$STRIP" >&6; }
6421 else
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 printf "%s\n" "no" >&6; }
6424 fi
6425
6426
6427 fi
6428 if test -z "$ac_cv_prog_STRIP"; then
6429 ac_ct_STRIP=$STRIP
6430 # Extract the first word of "strip", so it can be a program name with args.
6431 set dummy strip; ac_word=$2
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 printf %s "checking for $ac_word... " >&6; }
6434 if test ${ac_cv_prog_ac_ct_STRIP+y}
6435 then :
6436 printf %s "(cached) " >&6
6437 else $as_nop
6438 if test -n "$ac_ct_STRIP"; then
6439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 case $as_dir in #(((
6446 '') as_dir=./ ;;
6447 */) ;;
6448 *) as_dir=$as_dir/ ;;
6449 esac
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_ac_ct_STRIP="strip"
6453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6463 if test -n "$ac_ct_STRIP"; then
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6465 printf "%s\n" "$ac_ct_STRIP" >&6; }
6466 else
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 printf "%s\n" "no" >&6; }
6469 fi
6470
6471 if test "x$ac_ct_STRIP" = x; then
6472 STRIP=":"
6473 else
6474 case $cross_compiling:$ac_tool_warned in
6475 yes:)
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned=yes ;;
6479 esac
6480 STRIP=$ac_ct_STRIP
6481 fi
6482 else
6483 STRIP="$ac_cv_prog_STRIP"
6484 fi
6485
6486 test -z "$STRIP" && STRIP=:
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 printf %s "checking for $ac_word... " >&6; }
6498 if test ${ac_cv_prog_RANLIB+y}
6499 then :
6500 printf %s "(cached) " >&6
6501 else $as_nop
6502 if test -n "$RANLIB"; then
6503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 case $as_dir in #(((
6510 '') as_dir=./ ;;
6511 */) ;;
6512 *) as_dir=$as_dir/ ;;
6513 esac
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 RANLIB=$ac_cv_prog_RANLIB
6527 if test -n "$RANLIB"; then
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6529 printf "%s\n" "$RANLIB" >&6; }
6530 else
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 printf "%s\n" "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_RANLIB"; then
6538 ac_ct_RANLIB=$RANLIB
6539 # Extract the first word of "ranlib", so it can be a program name with args.
6540 set dummy ranlib; ac_word=$2
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 printf %s "checking for $ac_word... " >&6; }
6543 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6544 then :
6545 printf %s "(cached) " >&6
6546 else $as_nop
6547 if test -n "$ac_ct_RANLIB"; then
6548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 case $as_dir in #(((
6555 '') as_dir=./ ;;
6556 */) ;;
6557 *) as_dir=$as_dir/ ;;
6558 esac
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_RANLIB="ranlib"
6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6572 if test -n "$ac_ct_RANLIB"; then
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6574 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6575 else
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 printf "%s\n" "no" >&6; }
6578 fi
6579
6580 if test "x$ac_ct_RANLIB" = x; then
6581 RANLIB=":"
6582 else
6583 case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589 RANLIB=$ac_ct_RANLIB
6590 fi
6591 else
6592 RANLIB="$ac_cv_prog_RANLIB"
6593 fi
6594
6595 test -z "$RANLIB" && RANLIB=:
6596
6597
6598
6599
6600
6601
6602 # Determine commands to create old-style static archives.
6603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6604 old_postinstall_cmds='chmod 644 $oldlib'
6605 old_postuninstall_cmds=
6606
6607 if test -n "$RANLIB"; then
6608 case $host_os in
6609 bitrig* | openbsd*)
6610 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6611 ;;
6612 *)
6613 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6614 ;;
6615 esac
6616 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6617 fi
6618
6619 case $host_os in
6620 darwin*)
6621 lock_old_archive_extraction=yes ;;
6622 *)
6623 lock_old_archive_extraction=no ;;
6624 esac
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 # If no C compiler was specified, use CC.
6665 LTCC=${LTCC-"$CC"}
6666
6667 # If no C compiler flags were specified, use CFLAGS.
6668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6669
6670 # Allow CC to be a program name with arguments.
6671 compiler=$CC
6672
6673
6674 # Check for command to grab the raw symbol name followed by C symbol from nm.
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6676 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6677 if test ${lt_cv_sys_global_symbol_pipe+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else $as_nop
6681
6682 # These are sane defaults that work on at least a few old systems.
6683 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6684
6685 # Character class describing NM global symbol codes.
6686 symcode='[BCDEGRST]'
6687
6688 # Regexp to match symbols that can be accessed directly from C.
6689 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6690
6691 # Define system-specific variables.
6692 case $host_os in
6693 aix*)
6694 symcode='[BCDT]'
6695 ;;
6696 cygwin* | mingw* | pw32* | cegcc*)
6697 symcode='[ABCDGISTW]'
6698 ;;
6699 hpux*)
6700 if test ia64 = "$host_cpu"; then
6701 symcode='[ABCDEGRST]'
6702 fi
6703 ;;
6704 irix* | nonstopux*)
6705 symcode='[BCDEGRST]'
6706 ;;
6707 osf*)
6708 symcode='[BCDEGQRST]'
6709 ;;
6710 solaris*)
6711 symcode='[BDRT]'
6712 ;;
6713 sco3.2v5*)
6714 symcode='[DT]'
6715 ;;
6716 sysv4.2uw2*)
6717 symcode='[DT]'
6718 ;;
6719 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6720 symcode='[ABDT]'
6721 ;;
6722 sysv4)
6723 symcode='[DFNSTU]'
6724 ;;
6725 esac
6726
6727 # If we're using GNU nm, then use its standard symbol codes.
6728 case `$NM -V 2>&1` in
6729 *GNU* | *'with BFD'*)
6730 symcode='[ABCDGIRSTW]' ;;
6731 esac
6732
6733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6734 # Gets list of data symbols to import.
6735 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6736 # Adjust the below global symbol transforms to fixup imported variables.
6737 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6738 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6739 lt_c_name_lib_hook="\
6740 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6741 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6742 else
6743 # Disable hooks by default.
6744 lt_cv_sys_global_symbol_to_import=
6745 lt_cdecl_hook=
6746 lt_c_name_hook=
6747 lt_c_name_lib_hook=
6748 fi
6749
6750 # Transform an extracted symbol line into a proper C declaration.
6751 # Some systems (esp. on ia64) link data and code symbols differently,
6752 # so use this general approach.
6753 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6754 $lt_cdecl_hook\
6755 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6756 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6757
6758 # Transform an extracted symbol line into symbol name and symbol address
6759 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6760 $lt_c_name_hook\
6761 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6762 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6763
6764 # Transform an extracted symbol line into symbol name with lib prefix and
6765 # symbol address.
6766 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6767 $lt_c_name_lib_hook\
6768 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6769 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6770 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6771
6772 # Handle CRLF in mingw tool chain
6773 opt_cr=
6774 case $build_os in
6775 mingw*)
6776 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6777 ;;
6778 esac
6779
6780 # Try without a prefix underscore, then with it.
6781 for ac_symprfx in "" "_"; do
6782
6783 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6784 symxfrm="\\1 $ac_symprfx\\2 \\2"
6785
6786 # Write the raw and C identifiers.
6787 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6788 # Fake it for dumpbin and say T for any non-static function,
6789 # D for any global variable and I for any imported variable.
6790 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6791 # which start with @ or ?.
6792 lt_cv_sys_global_symbol_pipe="$AWK '"\
6793 " {last_section=section; section=\$ 3};"\
6794 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6795 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6796 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6797 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6798 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6799 " \$ 0!~/External *\|/{next};"\
6800 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6801 " {if(hide[section]) next};"\
6802 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6803 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6804 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6805 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6806 " ' prfx=^$ac_symprfx"
6807 else
6808 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6809 fi
6810 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6811
6812 # Check to see that the pipe works correctly.
6813 pipe_works=no
6814
6815 rm -f conftest*
6816 cat > conftest.$ac_ext <<_LT_EOF
6817 #ifdef __cplusplus
6818 extern "C" {
6819 #endif
6820 char nm_test_var;
6821 void nm_test_func(void);
6822 void nm_test_func(void){}
6823 #ifdef __cplusplus
6824 }
6825 #endif
6826 int main(){nm_test_var='a';nm_test_func();return(0);}
6827 _LT_EOF
6828
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
6832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 # Now try to grab the symbols.
6835 nlist=conftest.nm
6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6837 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6838 ac_status=$?
6839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; } && test -s "$nlist"; then
6841 # Try sorting and uniquifying the output.
6842 if sort "$nlist" | uniq > "$nlist"T; then
6843 mv -f "$nlist"T "$nlist"
6844 else
6845 rm -f "$nlist"T
6846 fi
6847
6848 # Make sure that we snagged all the symbols we need.
6849 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6850 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6851 cat <<_LT_EOF > conftest.$ac_ext
6852 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6853 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6854 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6855 relocations are performed -- see ld's documentation on pseudo-relocs. */
6856 # define LT_DLSYM_CONST
6857 #elif defined __osf__
6858 /* This system does not cope well with relocations in const data. */
6859 # define LT_DLSYM_CONST
6860 #else
6861 # define LT_DLSYM_CONST const
6862 #endif
6863
6864 #ifdef __cplusplus
6865 extern "C" {
6866 #endif
6867
6868 _LT_EOF
6869 # Now generate the symbol file.
6870 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6871
6872 cat <<_LT_EOF >> conftest.$ac_ext
6873
6874 /* The mapping between symbol names and symbols. */
6875 LT_DLSYM_CONST struct {
6876 const char *name;
6877 void *address;
6878 }
6879 lt__PROGRAM__LTX_preloaded_symbols[] =
6880 {
6881 { "@PROGRAM@", (void *) 0 },
6882 _LT_EOF
6883 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6884 cat <<\_LT_EOF >> conftest.$ac_ext
6885 {0, (void *) 0}
6886 };
6887
6888 /* This works around a problem in FreeBSD linker */
6889 #ifdef FREEBSD_WORKAROUND
6890 static const void *lt_preloaded_setup() {
6891 return lt__PROGRAM__LTX_preloaded_symbols;
6892 }
6893 #endif
6894
6895 #ifdef __cplusplus
6896 }
6897 #endif
6898 _LT_EOF
6899 # Now try linking the two files.
6900 mv conftest.$ac_objext conftstm.$ac_objext
6901 lt_globsym_save_LIBS=$LIBS
6902 lt_globsym_save_CFLAGS=$CFLAGS
6903 LIBS=conftstm.$ac_objext
6904 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6906 (eval $ac_link) 2>&5
6907 ac_status=$?
6908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6910 pipe_works=yes
6911 fi
6912 LIBS=$lt_globsym_save_LIBS
6913 CFLAGS=$lt_globsym_save_CFLAGS
6914 else
6915 echo "cannot find nm_test_func in $nlist" >&5
6916 fi
6917 else
6918 echo "cannot find nm_test_var in $nlist" >&5
6919 fi
6920 else
6921 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6922 fi
6923 else
6924 echo "$progname: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6926 fi
6927 rm -rf conftest* conftst*
6928
6929 # Do not use the global_symbol_pipe unless it works.
6930 if test yes = "$pipe_works"; then
6931 break
6932 else
6933 lt_cv_sys_global_symbol_pipe=
6934 fi
6935 done
6936
6937 fi
6938
6939 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6940 lt_cv_sys_global_symbol_to_cdecl=
6941 fi
6942 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6944 printf "%s\n" "failed" >&6; }
6945 else
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6947 printf "%s\n" "ok" >&6; }
6948 fi
6949
6950 # Response file support.
6951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6952 nm_file_list_spec='@'
6953 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6954 nm_file_list_spec='@'
6955 fi
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6994 printf %s "checking for sysroot... " >&6; }
6995
6996 # Check whether --with-sysroot was given.
6997 if test ${with_sysroot+y}
6998 then :
6999 withval=$with_sysroot;
7000 else $as_nop
7001 with_sysroot=no
7002 fi
7003
7004
7005 lt_sysroot=
7006 case $with_sysroot in #(
7007 yes)
7008 if test yes = "$GCC"; then
7009 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7010 fi
7011 ;; #(
7012 /*)
7013 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7014 ;; #(
7015 no|'')
7016 ;; #(
7017 *)
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7019 printf "%s\n" "$with_sysroot" >&6; }
7020 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7021 ;;
7022 esac
7023
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7025 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7026
7027
7028
7029
7030
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7032 printf %s "checking for a working dd... " >&6; }
7033 if test ${ac_cv_path_lt_DD+y}
7034 then :
7035 printf %s "(cached) " >&6
7036 else $as_nop
7037 printf 0123456789abcdef0123456789abcdef >conftest.i
7038 cat conftest.i conftest.i >conftest2.i
7039 : ${lt_DD:=$DD}
7040 if test -z "$lt_DD"; then
7041 ac_path_lt_DD_found=false
7042 # Loop through the user's path and test for each of PROGNAME-LIST
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 case $as_dir in #(((
7048 '') as_dir=./ ;;
7049 */) ;;
7050 *) as_dir=$as_dir/ ;;
7051 esac
7052 for ac_prog in dd
7053 do
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7056 as_fn_executable_p "$ac_path_lt_DD" || continue
7057 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7058 cmp -s conftest.i conftest.out \
7059 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7060 fi
7061 $ac_path_lt_DD_found && break 3
7062 done
7063 done
7064 done
7065 IFS=$as_save_IFS
7066 if test -z "$ac_cv_path_lt_DD"; then
7067 :
7068 fi
7069 else
7070 ac_cv_path_lt_DD=$lt_DD
7071 fi
7072
7073 rm -f conftest.i conftest2.i conftest.out
7074 fi
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7076 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7077
7078
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7080 printf %s "checking how to truncate binary pipes... " >&6; }
7081 if test ${lt_cv_truncate_bin+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else $as_nop
7085 printf 0123456789abcdef0123456789abcdef >conftest.i
7086 cat conftest.i conftest.i >conftest2.i
7087 lt_cv_truncate_bin=
7088 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7089 cmp -s conftest.i conftest.out \
7090 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7091 fi
7092 rm -f conftest.i conftest2.i conftest.out
7093 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7094 fi
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7096 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7097
7098
7099
7100
7101
7102
7103
7104 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7105 func_cc_basename ()
7106 {
7107 for cc_temp in $*""; do
7108 case $cc_temp in
7109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7111 \-*) ;;
7112 *) break;;
7113 esac
7114 done
7115 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7116 }
7117
7118 # Check whether --enable-libtool-lock was given.
7119 if test ${enable_libtool_lock+y}
7120 then :
7121 enableval=$enable_libtool_lock;
7122 fi
7123
7124 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7125
7126 # Some flags need to be propagated to the compiler or linker for good
7127 # libtool support.
7128 case $host in
7129 ia64-*-hpux*)
7130 # Find out what ABI is being produced by ac_compile, and set mode
7131 # options accordingly.
7132 echo 'int i;' > conftest.$ac_ext
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; }; then
7138 case `$FILECMD conftest.$ac_objext` in
7139 *ELF-32*)
7140 HPUX_IA64_MODE=32
7141 ;;
7142 *ELF-64*)
7143 HPUX_IA64_MODE=64
7144 ;;
7145 esac
7146 fi
7147 rm -rf conftest*
7148 ;;
7149 *-*-irix6*)
7150 # Find out what ABI is being produced by ac_compile, and set linker
7151 # options accordingly.
7152 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154 (eval $ac_compile) 2>&5
7155 ac_status=$?
7156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; }; then
7158 if test yes = "$lt_cv_prog_gnu_ld"; then
7159 case `$FILECMD conftest.$ac_objext` in
7160 *32-bit*)
7161 LD="${LD-ld} -melf32bsmip"
7162 ;;
7163 *N32*)
7164 LD="${LD-ld} -melf32bmipn32"
7165 ;;
7166 *64-bit*)
7167 LD="${LD-ld} -melf64bmip"
7168 ;;
7169 esac
7170 else
7171 case `$FILECMD conftest.$ac_objext` in
7172 *32-bit*)
7173 LD="${LD-ld} -32"
7174 ;;
7175 *N32*)
7176 LD="${LD-ld} -n32"
7177 ;;
7178 *64-bit*)
7179 LD="${LD-ld} -64"
7180 ;;
7181 esac
7182 fi
7183 fi
7184 rm -rf conftest*
7185 ;;
7186
7187 mips64*-*linux*)
7188 # Find out what ABI is being produced by ac_compile, and set linker
7189 # options accordingly.
7190 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7192 (eval $ac_compile) 2>&5
7193 ac_status=$?
7194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195 test $ac_status = 0; }; then
7196 emul=elf
7197 case `$FILECMD conftest.$ac_objext` in
7198 *32-bit*)
7199 emul="${emul}32"
7200 ;;
7201 *64-bit*)
7202 emul="${emul}64"
7203 ;;
7204 esac
7205 case `$FILECMD conftest.$ac_objext` in
7206 *MSB*)
7207 emul="${emul}btsmip"
7208 ;;
7209 *LSB*)
7210 emul="${emul}ltsmip"
7211 ;;
7212 esac
7213 case `$FILECMD conftest.$ac_objext` in
7214 *N32*)
7215 emul="${emul}n32"
7216 ;;
7217 esac
7218 LD="${LD-ld} -m $emul"
7219 fi
7220 rm -rf conftest*
7221 ;;
7222
7223 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7224 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7225 # Find out what ABI is being produced by ac_compile, and set linker
7226 # options accordingly. Note that the listed cases only cover the
7227 # situations where additional linker options are needed (such as when
7228 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7229 # vice versa); the common cases where no linker options are needed do
7230 # not appear in the list.
7231 echo 'int i;' > conftest.$ac_ext
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 case `$FILECMD conftest.o` in
7238 *32-bit*)
7239 case $host in
7240 x86_64-*kfreebsd*-gnu)
7241 LD="${LD-ld} -m elf_i386_fbsd"
7242 ;;
7243 x86_64-*linux*)
7244 case `$FILECMD conftest.o` in
7245 *x86-64*)
7246 LD="${LD-ld} -m elf32_x86_64"
7247 ;;
7248 *)
7249 LD="${LD-ld} -m elf_i386"
7250 ;;
7251 esac
7252 ;;
7253 powerpc64le-*linux*)
7254 LD="${LD-ld} -m elf32lppclinux"
7255 ;;
7256 powerpc64-*linux*)
7257 LD="${LD-ld} -m elf32ppclinux"
7258 ;;
7259 s390x-*linux*)
7260 LD="${LD-ld} -m elf_s390"
7261 ;;
7262 sparc64-*linux*)
7263 LD="${LD-ld} -m elf32_sparc"
7264 ;;
7265 esac
7266 ;;
7267 *64-bit*)
7268 case $host in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_x86_64_fbsd"
7271 ;;
7272 x86_64-*linux*)
7273 LD="${LD-ld} -m elf_x86_64"
7274 ;;
7275 powerpcle-*linux*)
7276 LD="${LD-ld} -m elf64lppc"
7277 ;;
7278 powerpc-*linux*)
7279 LD="${LD-ld} -m elf64ppc"
7280 ;;
7281 s390*-*linux*|s390*-*tpf*)
7282 LD="${LD-ld} -m elf64_s390"
7283 ;;
7284 sparc*-*linux*)
7285 LD="${LD-ld} -m elf64_sparc"
7286 ;;
7287 esac
7288 ;;
7289 esac
7290 fi
7291 rm -rf conftest*
7292 ;;
7293
7294 *-*-sco3.2v5*)
7295 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7296 SAVE_CFLAGS=$CFLAGS
7297 CFLAGS="$CFLAGS -belf"
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7299 printf %s "checking whether the C compiler needs -belf... " >&6; }
7300 if test ${lt_cv_cc_needs_belf+y}
7301 then :
7302 printf %s "(cached) " >&6
7303 else $as_nop
7304 ac_ext=c
7305 ac_cpp='$CPP $CPPFLAGS'
7306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 int
7314 main (void)
7315 {
7316
7317 ;
7318 return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_c_try_link "$LINENO"
7322 then :
7323 lt_cv_cc_needs_belf=yes
7324 else $as_nop
7325 lt_cv_cc_needs_belf=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7328 conftest$ac_exeext conftest.$ac_ext
7329 ac_ext=c
7330 ac_cpp='$CPP $CPPFLAGS'
7331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7334
7335 fi
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7337 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7338 if test yes != "$lt_cv_cc_needs_belf"; then
7339 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7340 CFLAGS=$SAVE_CFLAGS
7341 fi
7342 ;;
7343 *-*solaris*)
7344 # Find out what ABI is being produced by ac_compile, and set linker
7345 # options accordingly.
7346 echo 'int i;' > conftest.$ac_ext
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 case `$FILECMD conftest.o` in
7353 *64-bit*)
7354 case $lt_cv_prog_gnu_ld in
7355 yes*)
7356 case $host in
7357 i?86-*-solaris*|x86_64-*-solaris*)
7358 LD="${LD-ld} -m elf_x86_64"
7359 ;;
7360 sparc*-*-solaris*)
7361 LD="${LD-ld} -m elf64_sparc"
7362 ;;
7363 esac
7364 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7365 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7366 LD=${LD-ld}_sol2
7367 fi
7368 ;;
7369 *)
7370 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7371 LD="${LD-ld} -64"
7372 fi
7373 ;;
7374 esac
7375 ;;
7376 esac
7377 fi
7378 rm -rf conftest*
7379 ;;
7380 esac
7381
7382 need_locks=$enable_libtool_lock
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}mt; ac_word=$2
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 printf %s "checking for $ac_word... " >&6; }
7389 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7390 then :
7391 printf %s "(cached) " >&6
7392 else $as_nop
7393 if test -n "$MANIFEST_TOOL"; then
7394 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 case $as_dir in #(((
7401 '') as_dir=./ ;;
7402 */) ;;
7403 *) as_dir=$as_dir/ ;;
7404 esac
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7418 if test -n "$MANIFEST_TOOL"; then
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7420 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7421 else
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 printf "%s\n" "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7429 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7430 # Extract the first word of "mt", so it can be a program name with args.
7431 set dummy mt; ac_word=$2
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 printf %s "checking for $ac_word... " >&6; }
7434 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7435 then :
7436 printf %s "(cached) " >&6
7437 else $as_nop
7438 if test -n "$ac_ct_MANIFEST_TOOL"; then
7439 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 case $as_dir in #(((
7446 '') as_dir=./ ;;
7447 */) ;;
7448 *) as_dir=$as_dir/ ;;
7449 esac
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7463 if test -n "$ac_ct_MANIFEST_TOOL"; then
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7465 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7466 else
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 printf "%s\n" "no" >&6; }
7469 fi
7470
7471 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7472 MANIFEST_TOOL=":"
7473 else
7474 case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7481 fi
7482 else
7483 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7484 fi
7485
7486 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7488 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7489 if test ${lt_cv_path_mainfest_tool+y}
7490 then :
7491 printf %s "(cached) " >&6
7492 else $as_nop
7493 lt_cv_path_mainfest_tool=no
7494 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7495 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7496 cat conftest.err >&5
7497 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7498 lt_cv_path_mainfest_tool=yes
7499 fi
7500 rm -f conftest*
7501 fi
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7503 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7504 if test yes != "$lt_cv_path_mainfest_tool"; then
7505 MANIFEST_TOOL=:
7506 fi
7507
7508
7509
7510
7511
7512
7513 case $host_os in
7514 rhapsody* | darwin*)
7515 if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7517 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 printf %s "checking for $ac_word... " >&6; }
7520 if test ${ac_cv_prog_DSYMUTIL+y}
7521 then :
7522 printf %s "(cached) " >&6
7523 else $as_nop
7524 if test -n "$DSYMUTIL"; then
7525 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530 IFS=$as_save_IFS
7531 case $as_dir in #(((
7532 '') as_dir=./ ;;
7533 */) ;;
7534 *) as_dir=$as_dir/ ;;
7535 esac
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7549 if test -n "$DSYMUTIL"; then
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7551 printf "%s\n" "$DSYMUTIL" >&6; }
7552 else
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 printf "%s\n" "no" >&6; }
7555 fi
7556
7557
7558 fi
7559 if test -z "$ac_cv_prog_DSYMUTIL"; then
7560 ac_ct_DSYMUTIL=$DSYMUTIL
7561 # Extract the first word of "dsymutil", so it can be a program name with args.
7562 set dummy dsymutil; ac_word=$2
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 printf %s "checking for $ac_word... " >&6; }
7565 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7566 then :
7567 printf %s "(cached) " >&6
7568 else $as_nop
7569 if test -n "$ac_ct_DSYMUTIL"; then
7570 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575 IFS=$as_save_IFS
7576 case $as_dir in #(((
7577 '') as_dir=./ ;;
7578 */) ;;
7579 *) as_dir=$as_dir/ ;;
7580 esac
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7594 if test -n "$ac_ct_DSYMUTIL"; then
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7596 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7597 else
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 printf "%s\n" "no" >&6; }
7600 fi
7601
7602 if test "x$ac_ct_DSYMUTIL" = x; then
7603 DSYMUTIL=":"
7604 else
7605 case $cross_compiling:$ac_tool_warned in
7606 yes:)
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7610 esac
7611 DSYMUTIL=$ac_ct_DSYMUTIL
7612 fi
7613 else
7614 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7615 fi
7616
7617 if test -n "$ac_tool_prefix"; then
7618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7619 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 printf %s "checking for $ac_word... " >&6; }
7622 if test ${ac_cv_prog_NMEDIT+y}
7623 then :
7624 printf %s "(cached) " >&6
7625 else $as_nop
7626 if test -n "$NMEDIT"; then
7627 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 case $as_dir in #(((
7634 '') as_dir=./ ;;
7635 */) ;;
7636 *) as_dir=$as_dir/ ;;
7637 esac
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 NMEDIT=$ac_cv_prog_NMEDIT
7651 if test -n "$NMEDIT"; then
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7653 printf "%s\n" "$NMEDIT" >&6; }
7654 else
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 printf "%s\n" "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if test -z "$ac_cv_prog_NMEDIT"; then
7662 ac_ct_NMEDIT=$NMEDIT
7663 # Extract the first word of "nmedit", so it can be a program name with args.
7664 set dummy nmedit; ac_word=$2
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 printf %s "checking for $ac_word... " >&6; }
7667 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7668 then :
7669 printf %s "(cached) " >&6
7670 else $as_nop
7671 if test -n "$ac_ct_NMEDIT"; then
7672 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677 IFS=$as_save_IFS
7678 case $as_dir in #(((
7679 '') as_dir=./ ;;
7680 */) ;;
7681 *) as_dir=$as_dir/ ;;
7682 esac
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7696 if test -n "$ac_ct_NMEDIT"; then
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7698 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7699 else
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 printf "%s\n" "no" >&6; }
7702 fi
7703
7704 if test "x$ac_ct_NMEDIT" = x; then
7705 NMEDIT=":"
7706 else
7707 case $cross_compiling:$ac_tool_warned in
7708 yes:)
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7712 esac
7713 NMEDIT=$ac_ct_NMEDIT
7714 fi
7715 else
7716 NMEDIT="$ac_cv_prog_NMEDIT"
7717 fi
7718
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 printf %s "checking for $ac_word... " >&6; }
7724 if test ${ac_cv_prog_LIPO+y}
7725 then :
7726 printf %s "(cached) " >&6
7727 else $as_nop
7728 if test -n "$LIPO"; then
7729 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734 IFS=$as_save_IFS
7735 case $as_dir in #(((
7736 '') as_dir=./ ;;
7737 */) ;;
7738 *) as_dir=$as_dir/ ;;
7739 esac
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 LIPO=$ac_cv_prog_LIPO
7753 if test -n "$LIPO"; then
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7755 printf "%s\n" "$LIPO" >&6; }
7756 else
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 printf "%s\n" "no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_LIPO"; then
7764 ac_ct_LIPO=$LIPO
7765 # Extract the first word of "lipo", so it can be a program name with args.
7766 set dummy lipo; ac_word=$2
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 printf %s "checking for $ac_word... " >&6; }
7769 if test ${ac_cv_prog_ac_ct_LIPO+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 if test -n "$ac_ct_LIPO"; then
7774 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 case $as_dir in #(((
7781 '') as_dir=./ ;;
7782 */) ;;
7783 *) as_dir=$as_dir/ ;;
7784 esac
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_ac_ct_LIPO="lipo"
7788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7798 if test -n "$ac_ct_LIPO"; then
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7800 printf "%s\n" "$ac_ct_LIPO" >&6; }
7801 else
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 printf "%s\n" "no" >&6; }
7804 fi
7805
7806 if test "x$ac_ct_LIPO" = x; then
7807 LIPO=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7814 esac
7815 LIPO=$ac_ct_LIPO
7816 fi
7817 else
7818 LIPO="$ac_cv_prog_LIPO"
7819 fi
7820
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7823 set dummy ${ac_tool_prefix}otool; ac_word=$2
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 printf %s "checking for $ac_word... " >&6; }
7826 if test ${ac_cv_prog_OTOOL+y}
7827 then :
7828 printf %s "(cached) " >&6
7829 else $as_nop
7830 if test -n "$OTOOL"; then
7831 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 case $as_dir in #(((
7838 '') as_dir=./ ;;
7839 */) ;;
7840 *) as_dir=$as_dir/ ;;
7841 esac
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848 done
7849 done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 OTOOL=$ac_cv_prog_OTOOL
7855 if test -n "$OTOOL"; then
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7857 printf "%s\n" "$OTOOL" >&6; }
7858 else
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 printf "%s\n" "no" >&6; }
7861 fi
7862
7863
7864 fi
7865 if test -z "$ac_cv_prog_OTOOL"; then
7866 ac_ct_OTOOL=$OTOOL
7867 # Extract the first word of "otool", so it can be a program name with args.
7868 set dummy otool; ac_word=$2
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 printf %s "checking for $ac_word... " >&6; }
7871 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7872 then :
7873 printf %s "(cached) " >&6
7874 else $as_nop
7875 if test -n "$ac_ct_OTOOL"; then
7876 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 case $as_dir in #(((
7883 '') as_dir=./ ;;
7884 */) ;;
7885 *) as_dir=$as_dir/ ;;
7886 esac
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_ac_ct_OTOOL="otool"
7890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7900 if test -n "$ac_ct_OTOOL"; then
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7902 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7903 else
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 printf "%s\n" "no" >&6; }
7906 fi
7907
7908 if test "x$ac_ct_OTOOL" = x; then
7909 OTOOL=":"
7910 else
7911 case $cross_compiling:$ac_tool_warned in
7912 yes:)
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915 ac_tool_warned=yes ;;
7916 esac
7917 OTOOL=$ac_ct_OTOOL
7918 fi
7919 else
7920 OTOOL="$ac_cv_prog_OTOOL"
7921 fi
7922
7923 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 printf %s "checking for $ac_word... " >&6; }
7928 if test ${ac_cv_prog_OTOOL64+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else $as_nop
7932 if test -n "$OTOOL64"; then
7933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 case $as_dir in #(((
7940 '') as_dir=./ ;;
7941 */) ;;
7942 *) as_dir=$as_dir/ ;;
7943 esac
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950 done
7951 done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 OTOOL64=$ac_cv_prog_OTOOL64
7957 if test -n "$OTOOL64"; then
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7959 printf "%s\n" "$OTOOL64" >&6; }
7960 else
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 printf "%s\n" "no" >&6; }
7963 fi
7964
7965
7966 fi
7967 if test -z "$ac_cv_prog_OTOOL64"; then
7968 ac_ct_OTOOL64=$OTOOL64
7969 # Extract the first word of "otool64", so it can be a program name with args.
7970 set dummy otool64; ac_word=$2
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 printf %s "checking for $ac_word... " >&6; }
7973 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7974 then :
7975 printf %s "(cached) " >&6
7976 else $as_nop
7977 if test -n "$ac_ct_OTOOL64"; then
7978 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 case $as_dir in #(((
7985 '') as_dir=./ ;;
7986 */) ;;
7987 *) as_dir=$as_dir/ ;;
7988 esac
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_ac_ct_OTOOL64="otool64"
7992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8002 if test -n "$ac_ct_OTOOL64"; then
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8004 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8005 else
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 printf "%s\n" "no" >&6; }
8008 fi
8009
8010 if test "x$ac_ct_OTOOL64" = x; then
8011 OTOOL64=":"
8012 else
8013 case $cross_compiling:$ac_tool_warned in
8014 yes:)
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8018 esac
8019 OTOOL64=$ac_ct_OTOOL64
8020 fi
8021 else
8022 OTOOL64="$ac_cv_prog_OTOOL64"
8023 fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8052 printf %s "checking for -single_module linker flag... " >&6; }
8053 if test ${lt_cv_apple_cc_single_mod+y}
8054 then :
8055 printf %s "(cached) " >&6
8056 else $as_nop
8057 lt_cv_apple_cc_single_mod=no
8058 if test -z "$LT_MULTI_MODULE"; then
8059 # By default we will add the -single_module flag. You can override
8060 # by either setting the environment variable LT_MULTI_MODULE
8061 # non-empty at configure time, or by adding -multi_module to the
8062 # link flags.
8063 rm -rf libconftest.dylib*
8064 echo "int foo(void){return 1;}" > conftest.c
8065 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066 -dynamiclib -Wl,-single_module conftest.c" >&5
8067 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8068 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8069 _lt_result=$?
8070 # If there is a non-empty error log, and "single_module"
8071 # appears in it, assume the flag caused a linker warning
8072 if test -s conftest.err && $GREP single_module conftest.err; then
8073 cat conftest.err >&5
8074 # Otherwise, if the output was created with a 0 exit code from
8075 # the compiler, it worked.
8076 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8077 lt_cv_apple_cc_single_mod=yes
8078 else
8079 cat conftest.err >&5
8080 fi
8081 rm -rf libconftest.dylib*
8082 rm -f conftest.*
8083 fi
8084 fi
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8086 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8087
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8089 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8090 if test ${lt_cv_ld_exported_symbols_list+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 lt_cv_ld_exported_symbols_list=no
8095 save_LDFLAGS=$LDFLAGS
8096 echo "_main" > conftest.sym
8097 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100
8101 int
8102 main (void)
8103 {
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"
8110 then :
8111 lt_cv_ld_exported_symbols_list=yes
8112 else $as_nop
8113 lt_cv_ld_exported_symbols_list=no
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8116 conftest$ac_exeext conftest.$ac_ext
8117 LDFLAGS=$save_LDFLAGS
8118
8119 fi
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8121 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8122
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8124 printf %s "checking for -force_load linker flag... " >&6; }
8125 if test ${lt_cv_ld_force_load+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else $as_nop
8129 lt_cv_ld_force_load=no
8130 cat > conftest.c << _LT_EOF
8131 int forced_loaded() { return 2;}
8132 _LT_EOF
8133 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8134 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8135 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8136 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8137 echo "$RANLIB libconftest.a" >&5
8138 $RANLIB libconftest.a 2>&5
8139 cat > conftest.c << _LT_EOF
8140 int main() { return 0;}
8141 _LT_EOF
8142 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8143 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8144 _lt_result=$?
8145 if test -s conftest.err && $GREP force_load conftest.err; then
8146 cat conftest.err >&5
8147 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8148 lt_cv_ld_force_load=yes
8149 else
8150 cat conftest.err >&5
8151 fi
8152 rm -f conftest.err libconftest.a conftest conftest.c
8153 rm -rf conftest.dSYM
8154
8155 fi
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8157 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8158 case $host_os in
8159 rhapsody* | darwin1.[012])
8160 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8161 darwin1.*)
8162 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8163 darwin*)
8164 case $MACOSX_DEPLOYMENT_TARGET,$host in
8165 10.[012],*|,*powerpc*-darwin[5-8]*)
8166 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8167 *)
8168 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8169 esac
8170 ;;
8171 esac
8172 if test yes = "$lt_cv_apple_cc_single_mod"; then
8173 _lt_dar_single_mod='$single_module'
8174 fi
8175 _lt_dar_needs_single_mod=no
8176 case $host_os in
8177 rhapsody* | darwin1.*)
8178 _lt_dar_needs_single_mod=yes ;;
8179 darwin*)
8180 # When targeting Mac OS X 10.4 (darwin 8) or later,
8181 # -single_module is the default and -multi_module is unsupported.
8182 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8183 # target any OS version that needs -single_module.
8184 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8185 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8186 _lt_dar_needs_single_mod=yes ;;
8187 esac
8188 ;;
8189 esac
8190 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8191 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8192 else
8193 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8194 fi
8195 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8196 _lt_dsymutil='~$DSYMUTIL $lib || :'
8197 else
8198 _lt_dsymutil=
8199 fi
8200 ;;
8201 esac
8202
8203 # func_munge_path_list VARIABLE PATH
8204 # -----------------------------------
8205 # VARIABLE is name of variable containing _space_ separated list of
8206 # directories to be munged by the contents of PATH, which is string
8207 # having a format:
8208 # "DIR[:DIR]:"
8209 # string "DIR[ DIR]" will be prepended to VARIABLE
8210 # ":DIR[:DIR]"
8211 # string "DIR[ DIR]" will be appended to VARIABLE
8212 # "DIRP[:DIRP]::[DIRA:]DIRA"
8213 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8214 # "DIRA[ DIRA]" will be appended to VARIABLE
8215 # "DIR[:DIR]"
8216 # VARIABLE will be replaced by "DIR[ DIR]"
8217 func_munge_path_list ()
8218 {
8219 case x$2 in
8220 x)
8221 ;;
8222 *:)
8223 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8224 ;;
8225 x:*)
8226 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8227 ;;
8228 *::*)
8229 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8230 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8231 ;;
8232 *)
8233 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8234 ;;
8235 esac
8236 }
8237
8238 ac_header= ac_cache=
8239 for ac_item in $ac_header_c_list
8240 do
8241 if test $ac_cache; then
8242 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8243 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8244 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8245 fi
8246 ac_header= ac_cache=
8247 elif test $ac_header; then
8248 ac_cache=$ac_item
8249 else
8250 ac_header=$ac_item
8251 fi
8252 done
8253
8254
8255
8256
8257
8258
8259
8260
8261 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8262 then :
8263
8264 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8265
8266 fi
8267 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8268 "
8269 if test "x$ac_cv_header_dlfcn_h" = xyes
8270 then :
8271 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8272
8273 fi
8274
8275
8276
8277
8278
8279 # Set options
8280 enable_dlopen=yes
8281
8282
8283
8284
8285 enable_win32_dll=no
8286
8287
8288 # Check whether --enable-shared was given.
8289 if test ${enable_shared+y}
8290 then :
8291 enableval=$enable_shared; p=${PACKAGE-default}
8292 case $enableval in
8293 yes) enable_shared=yes ;;
8294 no) enable_shared=no ;;
8295 *)
8296 enable_shared=no
8297 # Look at the argument we got. We use all the common list separators.
8298 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8299 for pkg in $enableval; do
8300 IFS=$lt_save_ifs
8301 if test "X$pkg" = "X$p"; then
8302 enable_shared=yes
8303 fi
8304 done
8305 IFS=$lt_save_ifs
8306 ;;
8307 esac
8308 else $as_nop
8309 enable_shared=yes
8310 fi
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 # Check whether --enable-static was given.
8321 if test ${enable_static+y}
8322 then :
8323 enableval=$enable_static; p=${PACKAGE-default}
8324 case $enableval in
8325 yes) enable_static=yes ;;
8326 no) enable_static=no ;;
8327 *)
8328 enable_static=no
8329 # Look at the argument we got. We use all the common list separators.
8330 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8331 for pkg in $enableval; do
8332 IFS=$lt_save_ifs
8333 if test "X$pkg" = "X$p"; then
8334 enable_static=yes
8335 fi
8336 done
8337 IFS=$lt_save_ifs
8338 ;;
8339 esac
8340 else $as_nop
8341 enable_static=yes
8342 fi
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 # Check whether --with-pic was given.
8354 if test ${with_pic+y}
8355 then :
8356 withval=$with_pic; lt_p=${PACKAGE-default}
8357 case $withval in
8358 yes|no) pic_mode=$withval ;;
8359 *)
8360 pic_mode=default
8361 # Look at the argument we got. We use all the common list separators.
8362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8363 for lt_pkg in $withval; do
8364 IFS=$lt_save_ifs
8365 if test "X$lt_pkg" = "X$lt_p"; then
8366 pic_mode=yes
8367 fi
8368 done
8369 IFS=$lt_save_ifs
8370 ;;
8371 esac
8372 else $as_nop
8373 pic_mode=default
8374 fi
8375
8376
8377
8378
8379
8380
8381
8382
8383 # Check whether --enable-fast-install was given.
8384 if test ${enable_fast_install+y}
8385 then :
8386 enableval=$enable_fast_install; p=${PACKAGE-default}
8387 case $enableval in
8388 yes) enable_fast_install=yes ;;
8389 no) enable_fast_install=no ;;
8390 *)
8391 enable_fast_install=no
8392 # Look at the argument we got. We use all the common list separators.
8393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8394 for pkg in $enableval; do
8395 IFS=$lt_save_ifs
8396 if test "X$pkg" = "X$p"; then
8397 enable_fast_install=yes
8398 fi
8399 done
8400 IFS=$lt_save_ifs
8401 ;;
8402 esac
8403 else $as_nop
8404 enable_fast_install=yes
8405 fi
8406
8407
8408
8409
8410
8411
8412
8413
8414 shared_archive_member_spec=
8415 case $host,$enable_shared in
8416 power*-*-aix[5-9]*,yes)
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8418 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8419
8420 # Check whether --with-aix-soname was given.
8421 if test ${with_aix_soname+y}
8422 then :
8423 withval=$with_aix_soname; case $withval in
8424 aix|svr4|both)
8425 ;;
8426 *)
8427 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8428 ;;
8429 esac
8430 lt_cv_with_aix_soname=$with_aix_soname
8431 else $as_nop
8432 if test ${lt_cv_with_aix_soname+y}
8433 then :
8434 printf %s "(cached) " >&6
8435 else $as_nop
8436 lt_cv_with_aix_soname=aix
8437 fi
8438
8439 with_aix_soname=$lt_cv_with_aix_soname
8440 fi
8441
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8443 printf "%s\n" "$with_aix_soname" >&6; }
8444 if test aix != "$with_aix_soname"; then
8445 # For the AIX way of multilib, we name the shared archive member
8446 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8447 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8448 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8449 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8450 if test 64 = "${OBJECT_MODE-32}"; then
8451 shared_archive_member_spec=shr_64
8452 else
8453 shared_archive_member_spec=shr
8454 fi
8455 fi
8456 ;;
8457 *)
8458 with_aix_soname=aix
8459 ;;
8460 esac
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 # This can be used to rebuild libtool when needed
8472 LIBTOOL_DEPS=$ltmain
8473
8474 # Always use our own libtool.
8475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506 test -z "$LN_S" && LN_S="ln -s"
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521 if test -n "${ZSH_VERSION+set}"; then
8522 setopt NO_GLOB_SUBST
8523 fi
8524
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8526 printf %s "checking for objdir... " >&6; }
8527 if test ${lt_cv_objdir+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531 rm -f .libs 2>/dev/null
8532 mkdir .libs 2>/dev/null
8533 if test -d .libs; then
8534 lt_cv_objdir=.libs
8535 else
8536 # MS-DOS does not allow filenames that begin with a dot.
8537 lt_cv_objdir=_libs
8538 fi
8539 rmdir .libs 2>/dev/null
8540 fi
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8542 printf "%s\n" "$lt_cv_objdir" >&6; }
8543 objdir=$lt_cv_objdir
8544
8545
8546
8547
8548
8549 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8550
8551
8552
8553
8554 case $host_os in
8555 aix3*)
8556 # AIX sometimes has problems with the GCC collect2 program. For some
8557 # reason, if we set the COLLECT_NAMES environment variable, the problems
8558 # vanish in a puff of smoke.
8559 if test set != "${COLLECT_NAMES+set}"; then
8560 COLLECT_NAMES=
8561 export COLLECT_NAMES
8562 fi
8563 ;;
8564 esac
8565
8566 # Global variables:
8567 ofile=libtool
8568 can_build_shared=yes
8569
8570 # All known linkers require a '.a' archive for static linking (except MSVC and
8571 # ICC, which need '.lib').
8572 libext=a
8573
8574 with_gnu_ld=$lt_cv_prog_gnu_ld
8575
8576 old_CC=$CC
8577 old_CFLAGS=$CFLAGS
8578
8579 # Set sane defaults for various variables
8580 test -z "$CC" && CC=cc
8581 test -z "$LTCC" && LTCC=$CC
8582 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8583 test -z "$LD" && LD=ld
8584 test -z "$ac_objext" && ac_objext=o
8585
8586 func_cc_basename $compiler
8587 cc_basename=$func_cc_basename_result
8588
8589
8590 # Only perform the check for file, if the check method requires it
8591 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8592 case $deplibs_check_method in
8593 file_magic*)
8594 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8596 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8597 if test ${lt_cv_path_MAGIC_CMD+y}
8598 then :
8599 printf %s "(cached) " >&6
8600 else $as_nop
8601 case $MAGIC_CMD in
8602 [\\/*] | ?:[\\/]*)
8603 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8604 ;;
8605 *)
8606 lt_save_MAGIC_CMD=$MAGIC_CMD
8607 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8609 for ac_dir in $ac_dummy; do
8610 IFS=$lt_save_ifs
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8613 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8614 if test -n "$file_magic_test_file"; then
8615 case $deplibs_check_method in
8616 "file_magic "*)
8617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8618 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8620 $EGREP "$file_magic_regex" > /dev/null; then
8621 :
8622 else
8623 cat <<_LT_EOF 1>&2
8624
8625 *** Warning: the command libtool uses to detect shared libraries,
8626 *** $file_magic_cmd, produces output that libtool cannot recognize.
8627 *** The result is that libtool may fail to recognize shared libraries
8628 *** as such. This will affect the creation of libtool libraries that
8629 *** depend on shared libraries, but programs linked with such libtool
8630 *** libraries will work regardless of this problem. Nevertheless, you
8631 *** may want to report the problem to your system manager and/or to
8632 *** [email protected]
8633
8634 _LT_EOF
8635 fi ;;
8636 esac
8637 fi
8638 break
8639 fi
8640 done
8641 IFS=$lt_save_ifs
8642 MAGIC_CMD=$lt_save_MAGIC_CMD
8643 ;;
8644 esac
8645 fi
8646
8647 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8648 if test -n "$MAGIC_CMD"; then
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8650 printf "%s\n" "$MAGIC_CMD" >&6; }
8651 else
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 printf "%s\n" "no" >&6; }
8654 fi
8655
8656
8657
8658
8659
8660 if test -z "$lt_cv_path_MAGIC_CMD"; then
8661 if test -n "$ac_tool_prefix"; then
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8663 printf %s "checking for file... " >&6; }
8664 if test ${lt_cv_path_MAGIC_CMD+y}
8665 then :
8666 printf %s "(cached) " >&6
8667 else $as_nop
8668 case $MAGIC_CMD in
8669 [\\/*] | ?:[\\/]*)
8670 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8671 ;;
8672 *)
8673 lt_save_MAGIC_CMD=$MAGIC_CMD
8674 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8676 for ac_dir in $ac_dummy; do
8677 IFS=$lt_save_ifs
8678 test -z "$ac_dir" && ac_dir=.
8679 if test -f "$ac_dir/file"; then
8680 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8681 if test -n "$file_magic_test_file"; then
8682 case $deplibs_check_method in
8683 "file_magic "*)
8684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8685 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8687 $EGREP "$file_magic_regex" > /dev/null; then
8688 :
8689 else
8690 cat <<_LT_EOF 1>&2
8691
8692 *** Warning: the command libtool uses to detect shared libraries,
8693 *** $file_magic_cmd, produces output that libtool cannot recognize.
8694 *** The result is that libtool may fail to recognize shared libraries
8695 *** as such. This will affect the creation of libtool libraries that
8696 *** depend on shared libraries, but programs linked with such libtool
8697 *** libraries will work regardless of this problem. Nevertheless, you
8698 *** may want to report the problem to your system manager and/or to
8699 *** [email protected]
8700
8701 _LT_EOF
8702 fi ;;
8703 esac
8704 fi
8705 break
8706 fi
8707 done
8708 IFS=$lt_save_ifs
8709 MAGIC_CMD=$lt_save_MAGIC_CMD
8710 ;;
8711 esac
8712 fi
8713
8714 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8715 if test -n "$MAGIC_CMD"; then
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8717 printf "%s\n" "$MAGIC_CMD" >&6; }
8718 else
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 printf "%s\n" "no" >&6; }
8721 fi
8722
8723
8724 else
8725 MAGIC_CMD=:
8726 fi
8727 fi
8728
8729 fi
8730 ;;
8731 esac
8732
8733 # Use C for the default configuration in the libtool script
8734
8735 lt_save_CC=$CC
8736 ac_ext=c
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742
8743 # Source file extension for C test sources.
8744 ac_ext=c
8745
8746 # Object file extension for compiled C test sources.
8747 objext=o
8748 objext=$objext
8749
8750 # Code to be used in simple compile tests
8751 lt_simple_compile_test_code="int some_variable = 0;"
8752
8753 # Code to be used in simple link tests
8754 lt_simple_link_test_code='int main(){return(0);}'
8755
8756
8757
8758
8759
8760
8761
8762 # If no C compiler was specified, use CC.
8763 LTCC=${LTCC-"$CC"}
8764
8765 # If no C compiler flags were specified, use CFLAGS.
8766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8767
8768 # Allow CC to be a program name with arguments.
8769 compiler=$CC
8770
8771 # Save the default compiler, since it gets overwritten when the other
8772 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8773 compiler_DEFAULT=$CC
8774
8775 # save warnings/boilerplate of simple test code
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8779 _lt_compiler_boilerplate=`cat conftest.err`
8780 $RM conftest*
8781
8782 ac_outfile=conftest.$ac_objext
8783 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8785 _lt_linker_boilerplate=`cat conftest.err`
8786 $RM -r conftest*
8787
8788
8789 ## CAVEAT EMPTOR:
8790 ## There is no encapsulation within the following macros, do not change
8791 ## the running order or otherwise move them around unless you know exactly
8792 ## what you are doing...
8793 if test -n "$compiler"; then
8794
8795 lt_prog_compiler_no_builtin_flag=
8796
8797 if test yes = "$GCC"; then
8798 case $cc_basename in
8799 nvcc*)
8800 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8801 *)
8802 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8803 esac
8804
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8806 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8807 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8808 then :
8809 printf %s "(cached) " >&6
8810 else $as_nop
8811 lt_cv_prog_compiler_rtti_exceptions=no
8812 ac_outfile=conftest.$ac_objext
8813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8815 # Insert the option either (1) after the last *FLAGS variable, or
8816 # (2) before a word containing "conftest.", or (3) at the end.
8817 # Note that $ac_compile itself does not contain backslashes and begins
8818 # with a dollar sign (not a hyphen), so the echo should work correctly.
8819 # The option is referenced via a variable to avoid confusing sed.
8820 lt_compile=`echo "$ac_compile" | $SED \
8821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823 -e 's:$: $lt_compiler_flag:'`
8824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8825 (eval "$lt_compile" 2>conftest.err)
8826 ac_status=$?
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 if (exit $ac_status) && test -s "$ac_outfile"; then
8830 # The compiler can only warn and ignore the option if not recognized
8831 # So say no if there are warnings other than the usual output.
8832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8835 lt_cv_prog_compiler_rtti_exceptions=yes
8836 fi
8837 fi
8838 $RM conftest*
8839
8840 fi
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8842 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8843
8844 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8846 else
8847 :
8848 fi
8849
8850 fi
8851
8852
8853
8854
8855
8856
8857 lt_prog_compiler_wl=
8858 lt_prog_compiler_pic=
8859 lt_prog_compiler_static=
8860
8861
8862 if test yes = "$GCC"; then
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_static='-static'
8865
8866 case $host_os in
8867 aix*)
8868 # All AIX code is PIC.
8869 if test ia64 = "$host_cpu"; then
8870 # AIX 5 now supports IA64 processor
8871 lt_prog_compiler_static='-Bstatic'
8872 fi
8873 lt_prog_compiler_pic='-fPIC'
8874 ;;
8875
8876 amigaos*)
8877 case $host_cpu in
8878 powerpc)
8879 # see comment about AmigaOS4 .so support
8880 lt_prog_compiler_pic='-fPIC'
8881 ;;
8882 m68k)
8883 # FIXME: we need at least 68020 code to build shared libraries, but
8884 # adding the '-m68020' flag to GCC prevents building anything better,
8885 # like '-m68040'.
8886 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8887 ;;
8888 esac
8889 ;;
8890
8891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8892 # PIC is the default for these OSes.
8893 ;;
8894
8895 mingw* | cygwin* | pw32* | os2* | cegcc*)
8896 # This hack is so that the source file can tell whether it is being
8897 # built for inclusion in a dll (and should export symbols for example).
8898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8899 # (--disable-auto-import) libraries
8900 lt_prog_compiler_pic='-DDLL_EXPORT'
8901 case $host_os in
8902 os2*)
8903 lt_prog_compiler_static='$wl-static'
8904 ;;
8905 esac
8906 ;;
8907
8908 darwin* | rhapsody*)
8909 # PIC is the default on this platform
8910 # Common symbols not allowed in MH_DYLIB files
8911 lt_prog_compiler_pic='-fno-common'
8912 ;;
8913
8914 haiku*)
8915 # PIC is the default for Haiku.
8916 # The "-static" flag exists, but is broken.
8917 lt_prog_compiler_static=
8918 ;;
8919
8920 hpux*)
8921 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8922 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8923 # sets the default TLS model and affects inlining.
8924 case $host_cpu in
8925 hppa*64*)
8926 # +Z the default
8927 ;;
8928 *)
8929 lt_prog_compiler_pic='-fPIC'
8930 ;;
8931 esac
8932 ;;
8933
8934 interix[3-9]*)
8935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8936 # Instead, we relocate shared libraries at runtime.
8937 ;;
8938
8939 msdosdjgpp*)
8940 # Just because we use GCC doesn't mean we suddenly get shared libraries
8941 # on systems that don't support them.
8942 lt_prog_compiler_can_build_shared=no
8943 enable_shared=no
8944 ;;
8945
8946 *nto* | *qnx*)
8947 # QNX uses GNU C++, but need to define -shared option too, otherwise
8948 # it will coredump.
8949 lt_prog_compiler_pic='-fPIC -shared'
8950 ;;
8951
8952 sysv4*MP*)
8953 if test -d /usr/nec; then
8954 lt_prog_compiler_pic=-Kconform_pic
8955 fi
8956 ;;
8957
8958 *)
8959 lt_prog_compiler_pic='-fPIC'
8960 ;;
8961 esac
8962
8963 case $cc_basename in
8964 nvcc*) # Cuda Compiler Driver 2.2
8965 lt_prog_compiler_wl='-Xlinker '
8966 if test -n "$lt_prog_compiler_pic"; then
8967 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8968 fi
8969 ;;
8970 esac
8971 else
8972 # PORTME Check for flag to pass linker flags through the system compiler.
8973 case $host_os in
8974 aix*)
8975 lt_prog_compiler_wl='-Wl,'
8976 if test ia64 = "$host_cpu"; then
8977 # AIX 5 now supports IA64 processor
8978 lt_prog_compiler_static='-Bstatic'
8979 else
8980 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8981 fi
8982 ;;
8983
8984 darwin* | rhapsody*)
8985 # PIC is the default on this platform
8986 # Common symbols not allowed in MH_DYLIB files
8987 lt_prog_compiler_pic='-fno-common'
8988 case $cc_basename in
8989 nagfor*)
8990 # NAG Fortran compiler
8991 lt_prog_compiler_wl='-Wl,-Wl,,'
8992 lt_prog_compiler_pic='-PIC'
8993 lt_prog_compiler_static='-Bstatic'
8994 ;;
8995 esac
8996 ;;
8997
8998 mingw* | cygwin* | pw32* | os2* | cegcc*)
8999 # This hack is so that the source file can tell whether it is being
9000 # built for inclusion in a dll (and should export symbols for example).
9001 lt_prog_compiler_pic='-DDLL_EXPORT'
9002 case $host_os in
9003 os2*)
9004 lt_prog_compiler_static='$wl-static'
9005 ;;
9006 esac
9007 ;;
9008
9009 hpux9* | hpux10* | hpux11*)
9010 lt_prog_compiler_wl='-Wl,'
9011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9012 # not for PA HP-UX.
9013 case $host_cpu in
9014 hppa*64*|ia64*)
9015 # +Z the default
9016 ;;
9017 *)
9018 lt_prog_compiler_pic='+Z'
9019 ;;
9020 esac
9021 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9022 lt_prog_compiler_static='$wl-a ${wl}archive'
9023 ;;
9024
9025 irix5* | irix6* | nonstopux*)
9026 lt_prog_compiler_wl='-Wl,'
9027 # PIC (with -KPIC) is the default.
9028 lt_prog_compiler_static='-non_shared'
9029 ;;
9030
9031 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9032 case $cc_basename in
9033 # old Intel for x86_64, which still supported -KPIC.
9034 ecc*)
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_pic='-KPIC'
9037 lt_prog_compiler_static='-static'
9038 ;;
9039 # icc used to be incompatible with GCC.
9040 # ICC 10 doesn't accept -KPIC any more.
9041 icc* | ifort*)
9042 lt_prog_compiler_wl='-Wl,'
9043 lt_prog_compiler_pic='-fPIC'
9044 lt_prog_compiler_static='-static'
9045 ;;
9046 # Lahey Fortran 8.1.
9047 lf95*)
9048 lt_prog_compiler_wl='-Wl,'
9049 lt_prog_compiler_pic='--shared'
9050 lt_prog_compiler_static='--static'
9051 ;;
9052 nagfor*)
9053 # NAG Fortran compiler
9054 lt_prog_compiler_wl='-Wl,-Wl,,'
9055 lt_prog_compiler_pic='-PIC'
9056 lt_prog_compiler_static='-Bstatic'
9057 ;;
9058 tcc*)
9059 # Fabrice Bellard et al's Tiny C Compiler
9060 lt_prog_compiler_wl='-Wl,'
9061 lt_prog_compiler_pic='-fPIC'
9062 lt_prog_compiler_static='-static'
9063 ;;
9064 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9065 # Portland Group compilers (*not* the Pentium gcc compiler,
9066 # which looks to be a dead project)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-fpic'
9069 lt_prog_compiler_static='-Bstatic'
9070 ;;
9071 ccc*)
9072 lt_prog_compiler_wl='-Wl,'
9073 # All Alpha code is PIC.
9074 lt_prog_compiler_static='-non_shared'
9075 ;;
9076 xl* | bgxl* | bgf* | mpixl*)
9077 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-qpic'
9080 lt_prog_compiler_static='-qstaticlink'
9081 ;;
9082 *)
9083 case `$CC -V 2>&1 | $SED 5q` in
9084 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9085 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-Bstatic'
9088 lt_prog_compiler_wl=''
9089 ;;
9090 *Sun\ F* | *Sun*Fortran*)
9091 lt_prog_compiler_pic='-KPIC'
9092 lt_prog_compiler_static='-Bstatic'
9093 lt_prog_compiler_wl='-Qoption ld '
9094 ;;
9095 *Sun\ C*)
9096 # Sun C 5.9
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-Bstatic'
9099 lt_prog_compiler_wl='-Wl,'
9100 ;;
9101 *Intel*\ [CF]*Compiler*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_pic='-fPIC'
9104 lt_prog_compiler_static='-static'
9105 ;;
9106 *Portland\ Group*)
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_pic='-fpic'
9109 lt_prog_compiler_static='-Bstatic'
9110 ;;
9111 esac
9112 ;;
9113 esac
9114 ;;
9115
9116 newsos6)
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9119 ;;
9120
9121 *nto* | *qnx*)
9122 # QNX uses GNU C++, but need to define -shared option too, otherwise
9123 # it will coredump.
9124 lt_prog_compiler_pic='-fPIC -shared'
9125 ;;
9126
9127 osf3* | osf4* | osf5*)
9128 lt_prog_compiler_wl='-Wl,'
9129 # All OSF/1 code is PIC.
9130 lt_prog_compiler_static='-non_shared'
9131 ;;
9132
9133 rdos*)
9134 lt_prog_compiler_static='-non_shared'
9135 ;;
9136
9137 solaris*)
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9140 case $cc_basename in
9141 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9142 lt_prog_compiler_wl='-Qoption ld ';;
9143 *)
9144 lt_prog_compiler_wl='-Wl,';;
9145 esac
9146 ;;
9147
9148 sunos4*)
9149 lt_prog_compiler_wl='-Qoption ld '
9150 lt_prog_compiler_pic='-PIC'
9151 lt_prog_compiler_static='-Bstatic'
9152 ;;
9153
9154 sysv4 | sysv4.2uw2* | sysv4.3*)
9155 lt_prog_compiler_wl='-Wl,'
9156 lt_prog_compiler_pic='-KPIC'
9157 lt_prog_compiler_static='-Bstatic'
9158 ;;
9159
9160 sysv4*MP*)
9161 if test -d /usr/nec; then
9162 lt_prog_compiler_pic='-Kconform_pic'
9163 lt_prog_compiler_static='-Bstatic'
9164 fi
9165 ;;
9166
9167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-KPIC'
9170 lt_prog_compiler_static='-Bstatic'
9171 ;;
9172
9173 unicos*)
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_can_build_shared=no
9176 ;;
9177
9178 uts4*)
9179 lt_prog_compiler_pic='-pic'
9180 lt_prog_compiler_static='-Bstatic'
9181 ;;
9182
9183 *)
9184 lt_prog_compiler_can_build_shared=no
9185 ;;
9186 esac
9187 fi
9188
9189 case $host_os in
9190 # For platforms that do not support PIC, -DPIC is meaningless:
9191 *djgpp*)
9192 lt_prog_compiler_pic=
9193 ;;
9194 *)
9195 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9196 ;;
9197 esac
9198
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9200 printf %s "checking for $compiler option to produce PIC... " >&6; }
9201 if test ${lt_cv_prog_compiler_pic+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else $as_nop
9205 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9206 fi
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9208 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9209 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9210
9211 #
9212 # Check to make sure the PIC flag actually works.
9213 #
9214 if test -n "$lt_prog_compiler_pic"; then
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9216 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9217 if test ${lt_cv_prog_compiler_pic_works+y}
9218 then :
9219 printf %s "(cached) " >&6
9220 else $as_nop
9221 lt_cv_prog_compiler_pic_works=no
9222 ac_outfile=conftest.$ac_objext
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9225 # Insert the option either (1) after the last *FLAGS variable, or
9226 # (2) before a word containing "conftest.", or (3) at the end.
9227 # Note that $ac_compile itself does not contain backslashes and begins
9228 # with a dollar sign (not a hyphen), so the echo should work correctly.
9229 # The option is referenced via a variable to avoid confusing sed.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235 (eval "$lt_compile" 2>conftest.err)
9236 ac_status=$?
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 if (exit $ac_status) && test -s "$ac_outfile"; then
9240 # The compiler can only warn and ignore the option if not recognized
9241 # So say no if there are warnings other than the usual output.
9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9245 lt_cv_prog_compiler_pic_works=yes
9246 fi
9247 fi
9248 $RM conftest*
9249
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9252 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9253
9254 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9255 case $lt_prog_compiler_pic in
9256 "" | " "*) ;;
9257 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9258 esac
9259 else
9260 lt_prog_compiler_pic=
9261 lt_prog_compiler_can_build_shared=no
9262 fi
9263
9264 fi
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276 #
9277 # Check to make sure the static flag actually works.
9278 #
9279 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9281 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9282 if test ${lt_cv_prog_compiler_static_works+y}
9283 then :
9284 printf %s "(cached) " >&6
9285 else $as_nop
9286 lt_cv_prog_compiler_static_works=no
9287 save_LDFLAGS=$LDFLAGS
9288 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9291 # The linker can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
9293 if test -s conftest.err; then
9294 # Append any errors to the config.log.
9295 cat conftest.err 1>&5
9296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9298 if diff conftest.exp conftest.er2 >/dev/null; then
9299 lt_cv_prog_compiler_static_works=yes
9300 fi
9301 else
9302 lt_cv_prog_compiler_static_works=yes
9303 fi
9304 fi
9305 $RM -r conftest*
9306 LDFLAGS=$save_LDFLAGS
9307
9308 fi
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9310 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9311
9312 if test yes = "$lt_cv_prog_compiler_static_works"; then
9313 :
9314 else
9315 lt_prog_compiler_static=
9316 fi
9317
9318
9319
9320
9321
9322
9323
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9325 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9326 if test ${lt_cv_prog_compiler_c_o+y}
9327 then :
9328 printf %s "(cached) " >&6
9329 else $as_nop
9330 lt_cv_prog_compiler_c_o=no
9331 $RM -r conftest 2>/dev/null
9332 mkdir conftest
9333 cd conftest
9334 mkdir out
9335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9336
9337 lt_compiler_flag="-o out/conftest2.$ac_objext"
9338 # Insert the option either (1) after the last *FLAGS variable, or
9339 # (2) before a word containing "conftest.", or (3) at the end.
9340 # Note that $ac_compile itself does not contain backslashes and begins
9341 # with a dollar sign (not a hyphen), so the echo should work correctly.
9342 lt_compile=`echo "$ac_compile" | $SED \
9343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9345 -e 's:$: $lt_compiler_flag:'`
9346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9347 (eval "$lt_compile" 2>out/conftest.err)
9348 ac_status=$?
9349 cat out/conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9352 then
9353 # The compiler can only warn and ignore the option if not recognized
9354 # So say no if there are warnings
9355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9358 lt_cv_prog_compiler_c_o=yes
9359 fi
9360 fi
9361 chmod u+w . 2>&5
9362 $RM conftest*
9363 # SGI C++ compiler will create directory out/ii_files/ for
9364 # template instantiation
9365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9366 $RM out/* && rmdir out
9367 cd ..
9368 $RM -r conftest
9369 $RM conftest*
9370
9371 fi
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9373 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9374
9375
9376
9377
9378
9379
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9381 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9382 if test ${lt_cv_prog_compiler_c_o+y}
9383 then :
9384 printf %s "(cached) " >&6
9385 else $as_nop
9386 lt_cv_prog_compiler_c_o=no
9387 $RM -r conftest 2>/dev/null
9388 mkdir conftest
9389 cd conftest
9390 mkdir out
9391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9392
9393 lt_compiler_flag="-o out/conftest2.$ac_objext"
9394 # Insert the option either (1) after the last *FLAGS variable, or
9395 # (2) before a word containing "conftest.", or (3) at the end.
9396 # Note that $ac_compile itself does not contain backslashes and begins
9397 # with a dollar sign (not a hyphen), so the echo should work correctly.
9398 lt_compile=`echo "$ac_compile" | $SED \
9399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9401 -e 's:$: $lt_compiler_flag:'`
9402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9403 (eval "$lt_compile" 2>out/conftest.err)
9404 ac_status=$?
9405 cat out/conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9408 then
9409 # The compiler can only warn and ignore the option if not recognized
9410 # So say no if there are warnings
9411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9414 lt_cv_prog_compiler_c_o=yes
9415 fi
9416 fi
9417 chmod u+w . 2>&5
9418 $RM conftest*
9419 # SGI C++ compiler will create directory out/ii_files/ for
9420 # template instantiation
9421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9422 $RM out/* && rmdir out
9423 cd ..
9424 $RM -r conftest
9425 $RM conftest*
9426
9427 fi
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9429 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9430
9431
9432
9433
9434 hard_links=nottested
9435 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9436 # do not overwrite the value of need_locks provided by the user
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9438 printf %s "checking if we can lock with hard links... " >&6; }
9439 hard_links=yes
9440 $RM conftest*
9441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9442 touch conftest.a
9443 ln conftest.a conftest.b 2>&5 || hard_links=no
9444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9446 printf "%s\n" "$hard_links" >&6; }
9447 if test no = "$hard_links"; then
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9449 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9450 need_locks=warn
9451 fi
9452 else
9453 need_locks=no
9454 fi
9455
9456
9457
9458
9459
9460
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9462 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9463
9464 runpath_var=
9465 allow_undefined_flag=
9466 always_export_symbols=no
9467 archive_cmds=
9468 archive_expsym_cmds=
9469 compiler_needs_object=no
9470 enable_shared_with_static_runtimes=no
9471 export_dynamic_flag_spec=
9472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9473 hardcode_automatic=no
9474 hardcode_direct=no
9475 hardcode_direct_absolute=no
9476 hardcode_libdir_flag_spec=
9477 hardcode_libdir_separator=
9478 hardcode_minus_L=no
9479 hardcode_shlibpath_var=unsupported
9480 inherit_rpath=no
9481 link_all_deplibs=unknown
9482 module_cmds=
9483 module_expsym_cmds=
9484 old_archive_from_new_cmds=
9485 old_archive_from_expsyms_cmds=
9486 thread_safe_flag_spec=
9487 whole_archive_flag_spec=
9488 # include_expsyms should be a list of space-separated symbols to be *always*
9489 # included in the symbol list
9490 include_expsyms=
9491 # exclude_expsyms can be an extended regexp of symbols to exclude
9492 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9493 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9494 # as well as any symbol that contains 'd'.
9495 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9497 # platforms (ab)use it in PIC code, but their linkers get confused if
9498 # the symbol is explicitly referenced. Since portable code cannot
9499 # rely on this symbol name, it's probably fine to never include it in
9500 # preloaded symbol tables.
9501 # Exclude shared library initialization/finalization symbols.
9502 extract_expsyms_cmds=
9503
9504 case $host_os in
9505 cygwin* | mingw* | pw32* | cegcc*)
9506 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9507 # When not using gcc, we currently assume that we are using
9508 # Microsoft Visual C++ or Intel C++ Compiler.
9509 if test yes != "$GCC"; then
9510 with_gnu_ld=no
9511 fi
9512 ;;
9513 interix*)
9514 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9515 with_gnu_ld=yes
9516 ;;
9517 openbsd* | bitrig*)
9518 with_gnu_ld=no
9519 ;;
9520 esac
9521
9522 ld_shlibs=yes
9523
9524 # On some targets, GNU ld is compatible enough with the native linker
9525 # that we're better off using the native interface for both.
9526 lt_use_gnu_ld_interface=no
9527 if test yes = "$with_gnu_ld"; then
9528 case $host_os in
9529 aix*)
9530 # The AIX port of GNU ld has always aspired to compatibility
9531 # with the native linker. However, as the warning in the GNU ld
9532 # block says, versions before 2.19.5* couldn't really create working
9533 # shared libraries, regardless of the interface used.
9534 case `$LD -v 2>&1` in
9535 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9536 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9537 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9538 *)
9539 lt_use_gnu_ld_interface=yes
9540 ;;
9541 esac
9542 ;;
9543 *)
9544 lt_use_gnu_ld_interface=yes
9545 ;;
9546 esac
9547 fi
9548
9549 if test yes = "$lt_use_gnu_ld_interface"; then
9550 # If archive_cmds runs LD, not CC, wlarc should be empty
9551 wlarc='$wl'
9552
9553 # Set some defaults for GNU ld with shared library support. These
9554 # are reset later if shared libraries are not supported. Putting them
9555 # here allows them to be overridden if necessary.
9556 runpath_var=LD_RUN_PATH
9557 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9558 export_dynamic_flag_spec='$wl--export-dynamic'
9559 # ancient GNU ld didn't support --whole-archive et. al.
9560 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9561 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9562 else
9563 whole_archive_flag_spec=
9564 fi
9565 supports_anon_versioning=no
9566 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9567 *GNU\ gold*) supports_anon_versioning=yes ;;
9568 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571 *\ 2.11.*) ;; # other 2.11 versions
9572 *) supports_anon_versioning=yes ;;
9573 esac
9574
9575 # See if GNU ld supports shared libraries.
9576 case $host_os in
9577 aix[3-9]*)
9578 # On AIX/PPC, the GNU linker is very broken
9579 if test ia64 != "$host_cpu"; then
9580 ld_shlibs=no
9581 cat <<_LT_EOF 1>&2
9582
9583 *** Warning: the GNU linker, at least up to release 2.19, is reported
9584 *** to be unable to reliably create shared libraries on AIX.
9585 *** Therefore, libtool is disabling shared libraries support. If you
9586 *** really care for shared libraries, you may want to install binutils
9587 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9588 *** You will then need to restart the configuration process.
9589
9590 _LT_EOF
9591 fi
9592 ;;
9593
9594 amigaos*)
9595 case $host_cpu in
9596 powerpc)
9597 # see comment about AmigaOS4 .so support
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9599 archive_expsym_cmds=''
9600 ;;
9601 m68k)
9602 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)'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_minus_L=yes
9605 ;;
9606 esac
9607 ;;
9608
9609 beos*)
9610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9611 allow_undefined_flag=unsupported
9612 # Joseph Beckenbach <[email protected]> says some releases of gcc
9613 # support --undefined. This deserves some investigation. FIXME
9614 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9615 else
9616 ld_shlibs=no
9617 fi
9618 ;;
9619
9620 cygwin* | mingw* | pw32* | cegcc*)
9621 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9622 # as there is no search path for DLLs.
9623 hardcode_libdir_flag_spec='-L$libdir'
9624 export_dynamic_flag_spec='$wl--export-all-symbols'
9625 allow_undefined_flag=unsupported
9626 always_export_symbols=no
9627 enable_shared_with_static_runtimes=yes
9628 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'
9629 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9630
9631 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9633 # If the export-symbols file already is a .def file, use it as
9634 # is; otherwise, prepend EXPORTS...
9635 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9636 cp $export_symbols $output_objdir/$soname.def;
9637 else
9638 echo EXPORTS > $output_objdir/$soname.def;
9639 cat $export_symbols >> $output_objdir/$soname.def;
9640 fi~
9641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9642 else
9643 ld_shlibs=no
9644 fi
9645 ;;
9646
9647 haiku*)
9648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9649 link_all_deplibs=yes
9650 ;;
9651
9652 os2*)
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_minus_L=yes
9655 allow_undefined_flag=unsupported
9656 shrext_cmds=.dll
9657 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9658 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9659 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9660 $ECHO EXPORTS >> $output_objdir/$libname.def~
9661 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9662 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9663 emximp -o $lib $output_objdir/$libname.def'
9664 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9667 $ECHO EXPORTS >> $output_objdir/$libname.def~
9668 prefix_cmds="$SED"~
9669 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9670 prefix_cmds="$prefix_cmds -e 1d";
9671 fi~
9672 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9673 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9674 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9675 emximp -o $lib $output_objdir/$libname.def'
9676 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9677 enable_shared_with_static_runtimes=yes
9678 file_list_spec='@'
9679 ;;
9680
9681 interix[3-9]*)
9682 hardcode_direct=no
9683 hardcode_shlibpath_var=no
9684 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9685 export_dynamic_flag_spec='$wl-E'
9686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9687 # Instead, shared libraries are loaded at an image base (0x10000000 by
9688 # default) and relocated if they conflict, which is a slow very memory
9689 # consuming and fragmenting process. To avoid this, we pick a random,
9690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9693 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'
9694 ;;
9695
9696 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9697 tmp_diet=no
9698 if test linux-dietlibc = "$host_os"; then
9699 case $cc_basename in
9700 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9701 esac
9702 fi
9703 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9704 && test no = "$tmp_diet"
9705 then
9706 tmp_addflag=' $pic_flag'
9707 tmp_sharedflag='-shared'
9708 case $cc_basename,$host_cpu in
9709 pgcc*) # Portland Group C compiler
9710 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'
9711 tmp_addflag=' $pic_flag'
9712 ;;
9713 pgf77* | pgf90* | pgf95* | pgfortran*)
9714 # Portland Group f77 and f90 compilers
9715 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'
9716 tmp_addflag=' $pic_flag -Mnomain' ;;
9717 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9718 tmp_addflag=' -i_dynamic' ;;
9719 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9720 tmp_addflag=' -i_dynamic -nofor_main' ;;
9721 ifc* | ifort*) # Intel Fortran compiler
9722 tmp_addflag=' -nofor_main' ;;
9723 lf95*) # Lahey Fortran 8.1
9724 whole_archive_flag_spec=
9725 tmp_sharedflag='--shared' ;;
9726 nagfor*) # NAGFOR 5.3
9727 tmp_sharedflag='-Wl,-shared' ;;
9728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9729 tmp_sharedflag='-qmkshrobj'
9730 tmp_addflag= ;;
9731 nvcc*) # Cuda Compiler Driver 2.2
9732 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'
9733 compiler_needs_object=yes
9734 ;;
9735 esac
9736 case `$CC -V 2>&1 | $SED 5q` in
9737 *Sun\ C*) # Sun C 5.9
9738 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'
9739 compiler_needs_object=yes
9740 tmp_sharedflag='-G' ;;
9741 *Sun\ F*) # Sun Fortran 8.3
9742 tmp_sharedflag='-G' ;;
9743 esac
9744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9745
9746 if test yes = "$supports_anon_versioning"; then
9747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9748 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9749 echo "local: *; };" >> $output_objdir/$libname.ver~
9750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9751 fi
9752
9753 case $cc_basename in
9754 tcc*)
9755 export_dynamic_flag_spec='-rdynamic'
9756 ;;
9757 xlf* | bgf* | bgxlf* | mpixlf*)
9758 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9759 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9761 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9762 if test yes = "$supports_anon_versioning"; then
9763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9764 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9765 echo "local: *; };" >> $output_objdir/$libname.ver~
9766 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9767 fi
9768 ;;
9769 esac
9770 else
9771 ld_shlibs=no
9772 fi
9773 ;;
9774
9775 netbsd*)
9776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9777 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9778 wlarc=
9779 else
9780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9781 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9782 fi
9783 ;;
9784
9785 solaris*)
9786 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9787 ld_shlibs=no
9788 cat <<_LT_EOF 1>&2
9789
9790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9791 *** create shared libraries on Solaris systems. Therefore, libtool
9792 *** is disabling shared libraries support. We urge you to upgrade GNU
9793 *** binutils to release 2.9.1 or newer. Another option is to modify
9794 *** your PATH or compiler configuration so that the native linker is
9795 *** used, and then restart.
9796
9797 _LT_EOF
9798 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9800 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9801 else
9802 ld_shlibs=no
9803 fi
9804 ;;
9805
9806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9807 case `$LD -v 2>&1` in
9808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9809 ld_shlibs=no
9810 cat <<_LT_EOF 1>&2
9811
9812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9813 *** reliably create shared libraries on SCO systems. Therefore, libtool
9814 *** is disabling shared libraries support. We urge you to upgrade GNU
9815 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9816 *** your PATH or compiler configuration so that the native linker is
9817 *** used, and then restart.
9818
9819 _LT_EOF
9820 ;;
9821 *)
9822 # For security reasons, it is highly recommended that you always
9823 # use absolute paths for naming shared libraries, and exclude the
9824 # DT_RUNPATH tag from executables and libraries. But doing so
9825 # requires that you compile everything twice, which is a pain.
9826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9830 else
9831 ld_shlibs=no
9832 fi
9833 ;;
9834 esac
9835 ;;
9836
9837 sunos4*)
9838 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 wlarc=
9840 hardcode_direct=yes
9841 hardcode_shlibpath_var=no
9842 ;;
9843
9844 *)
9845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9846 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9847 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9848 else
9849 ld_shlibs=no
9850 fi
9851 ;;
9852 esac
9853
9854 if test no = "$ld_shlibs"; then
9855 runpath_var=
9856 hardcode_libdir_flag_spec=
9857 export_dynamic_flag_spec=
9858 whole_archive_flag_spec=
9859 fi
9860 else
9861 # PORTME fill in a description of your system's linker (not GNU ld)
9862 case $host_os in
9863 aix3*)
9864 allow_undefined_flag=unsupported
9865 always_export_symbols=yes
9866 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'
9867 # Note: this linker hardcodes the directories in LIBPATH if there
9868 # are no directories specified by -L.
9869 hardcode_minus_L=yes
9870 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9871 # Neither direct hardcoding nor static linking is supported with a
9872 # broken collect2.
9873 hardcode_direct=unsupported
9874 fi
9875 ;;
9876
9877 aix[4-9]*)
9878 if test ia64 = "$host_cpu"; then
9879 # On IA64, the linker does run time linking by default, so we don't
9880 # have to do anything special.
9881 aix_use_runtimelinking=no
9882 exp_sym_flag='-Bexport'
9883 no_entry_flag=
9884 else
9885 # If we're using GNU nm, then we don't want the "-C" option.
9886 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9887 # Without the "-l" option, or with the "-B" option, AIX nm treats
9888 # weak defined symbols like other global defined symbols, whereas
9889 # GNU nm marks them as "W".
9890 # While the 'weak' keyword is ignored in the Export File, we need
9891 # it in the Import File for the 'aix-soname' feature, so we have
9892 # to replace the "-B" option with "-P" for AIX nm.
9893 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9894 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'
9895 else
9896 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'
9897 fi
9898 aix_use_runtimelinking=no
9899
9900 # Test if we are trying to use run time linking or normal
9901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9902 # have runtime linking enabled, and use it for executables.
9903 # For shared libraries, we enable/disable runtime linking
9904 # depending on the kind of the shared library created -
9905 # when "with_aix_soname,aix_use_runtimelinking" is:
9906 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9907 # "aix,yes" lib.so shared, rtl:yes, for executables
9908 # lib.a static archive
9909 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9910 # lib.a(lib.so.V) shared, rtl:no, for executables
9911 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9912 # lib.a(lib.so.V) shared, rtl:no
9913 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9914 # lib.a static archive
9915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9916 for ld_flag in $LDFLAGS; do
9917 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9918 aix_use_runtimelinking=yes
9919 break
9920 fi
9921 done
9922 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9923 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9924 # so we don't have lib.a shared libs to link our executables.
9925 # We have to force runtime linking in this case.
9926 aix_use_runtimelinking=yes
9927 LDFLAGS="$LDFLAGS -Wl,-brtl"
9928 fi
9929 ;;
9930 esac
9931
9932 exp_sym_flag='-bexport'
9933 no_entry_flag='-bnoentry'
9934 fi
9935
9936 # When large executables or shared objects are built, AIX ld can
9937 # have problems creating the table of contents. If linking a library
9938 # or program results in "error TOC overflow" add -mminimal-toc to
9939 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9940 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9941
9942 archive_cmds=''
9943 hardcode_direct=yes
9944 hardcode_direct_absolute=yes
9945 hardcode_libdir_separator=':'
9946 link_all_deplibs=yes
9947 file_list_spec='$wl-f,'
9948 case $with_aix_soname,$aix_use_runtimelinking in
9949 aix,*) ;; # traditional, no import file
9950 svr4,* | *,yes) # use import file
9951 # The Import File defines what to hardcode.
9952 hardcode_direct=no
9953 hardcode_direct_absolute=no
9954 ;;
9955 esac
9956
9957 if test yes = "$GCC"; then
9958 case $host_os in aix4.[012]|aix4.[012].*)
9959 # We only want to do this on AIX 4.2 and lower, the check
9960 # below for broken collect2 doesn't work under 4.3+
9961 collect2name=`$CC -print-prog-name=collect2`
9962 if test -f "$collect2name" &&
9963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9964 then
9965 # We have reworked collect2
9966 :
9967 else
9968 # We have old collect2
9969 hardcode_direct=unsupported
9970 # It fails to find uninstalled libraries when the uninstalled
9971 # path is not listed in the libpath. Setting hardcode_minus_L
9972 # to unsupported forces relinking
9973 hardcode_minus_L=yes
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_libdir_separator=
9976 fi
9977 ;;
9978 esac
9979 shared_flag='-shared'
9980 if test yes = "$aix_use_runtimelinking"; then
9981 shared_flag="$shared_flag "'$wl-G'
9982 fi
9983 # Need to ensure runtime linking is disabled for the traditional
9984 # shared library, or the linker may eventually find shared libraries
9985 # /with/ Import File - we do not want to mix them.
9986 shared_flag_aix='-shared'
9987 shared_flag_svr4='-shared $wl-G'
9988 else
9989 # not using gcc
9990 if test ia64 = "$host_cpu"; then
9991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9992 # chokes on -Wl,-G. The following line is correct:
9993 shared_flag='-G'
9994 else
9995 if test yes = "$aix_use_runtimelinking"; then
9996 shared_flag='$wl-G'
9997 else
9998 shared_flag='$wl-bM:SRE'
9999 fi
10000 shared_flag_aix='$wl-bM:SRE'
10001 shared_flag_svr4='$wl-G'
10002 fi
10003 fi
10004
10005 export_dynamic_flag_spec='$wl-bexpall'
10006 # It seems that -bexpall does not export symbols beginning with
10007 # underscore (_), so it is better to generate a list of symbols to export.
10008 always_export_symbols=yes
10009 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10010 # Warning - without using the other runtime loading flags (-brtl),
10011 # -berok will link without error, but may produce a broken library.
10012 allow_undefined_flag='-berok'
10013 # Determine the default libpath from the value encoded in an
10014 # empty executable.
10015 if test set = "${lt_cv_aix_libpath+set}"; then
10016 aix_libpath=$lt_cv_aix_libpath
10017 else
10018 if test ${lt_cv_aix_libpath_+y}
10019 then :
10020 printf %s "(cached) " >&6
10021 else $as_nop
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024
10025 int
10026 main (void)
10027 {
10028
10029 ;
10030 return 0;
10031 }
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"
10034 then :
10035
10036 lt_aix_libpath_sed='
10037 /Import File Strings/,/^$/ {
10038 /^0/ {
10039 s/^0 *\([^ ]*\) *$/\1/
10040 p
10041 }
10042 }'
10043 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044 # Check for a 64-bit object if we didn't find anything.
10045 if test -z "$lt_cv_aix_libpath_"; then
10046 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10047 fi
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10050 conftest$ac_exeext conftest.$ac_ext
10051 if test -z "$lt_cv_aix_libpath_"; then
10052 lt_cv_aix_libpath_=/usr/lib:/lib
10053 fi
10054
10055 fi
10056
10057 aix_libpath=$lt_cv_aix_libpath_
10058 fi
10059
10060 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10061 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
10062 else
10063 if test ia64 = "$host_cpu"; then
10064 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10065 allow_undefined_flag="-z nodefs"
10066 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"
10067 else
10068 # Determine the default libpath from the value encoded in an
10069 # empty executable.
10070 if test set = "${lt_cv_aix_libpath+set}"; then
10071 aix_libpath=$lt_cv_aix_libpath
10072 else
10073 if test ${lt_cv_aix_libpath_+y}
10074 then :
10075 printf %s "(cached) " >&6
10076 else $as_nop
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079
10080 int
10081 main (void)
10082 {
10083
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"
10089 then :
10090
10091 lt_aix_libpath_sed='
10092 /Import File Strings/,/^$/ {
10093 /^0/ {
10094 s/^0 *\([^ ]*\) *$/\1/
10095 p
10096 }
10097 }'
10098 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10099 # Check for a 64-bit object if we didn't find anything.
10100 if test -z "$lt_cv_aix_libpath_"; then
10101 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10102 fi
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10105 conftest$ac_exeext conftest.$ac_ext
10106 if test -z "$lt_cv_aix_libpath_"; then
10107 lt_cv_aix_libpath_=/usr/lib:/lib
10108 fi
10109
10110 fi
10111
10112 aix_libpath=$lt_cv_aix_libpath_
10113 fi
10114
10115 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10116 # Warning - without using the other run time loading flags,
10117 # -berok will link without error, but may produce a broken library.
10118 no_undefined_flag=' $wl-bernotok'
10119 allow_undefined_flag=' $wl-berok'
10120 if test yes = "$with_gnu_ld"; then
10121 # We only use this code for GNU lds that support --whole-archive.
10122 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10123 else
10124 # Exported symbols can be pulled into shared objects from archives
10125 whole_archive_flag_spec='$convenience'
10126 fi
10127 archive_cmds_need_lc=yes
10128 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10129 # -brtl affects multiple linker settings, -berok does not and is overridden later
10130 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10131 if test svr4 != "$with_aix_soname"; then
10132 # This is similar to how AIX traditionally builds its shared libraries.
10133 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'
10134 fi
10135 if test aix != "$with_aix_soname"; then
10136 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'
10137 else
10138 # used by -dlpreopen to get the symbols
10139 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10140 fi
10141 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10142 fi
10143 fi
10144 ;;
10145
10146 amigaos*)
10147 case $host_cpu in
10148 powerpc)
10149 # see comment about AmigaOS4 .so support
10150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10151 archive_expsym_cmds=''
10152 ;;
10153 m68k)
10154 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)'
10155 hardcode_libdir_flag_spec='-L$libdir'
10156 hardcode_minus_L=yes
10157 ;;
10158 esac
10159 ;;
10160
10161 bsdi[45]*)
10162 export_dynamic_flag_spec=-rdynamic
10163 ;;
10164
10165 cygwin* | mingw* | pw32* | cegcc*)
10166 # When not using gcc, we currently assume that we are using
10167 # Microsoft Visual C++ or Intel C++ Compiler.
10168 # hardcode_libdir_flag_spec is actually meaningless, as there is
10169 # no search path for DLLs.
10170 case $cc_basename in
10171 cl* | icl*)
10172 # Native MSVC or ICC
10173 hardcode_libdir_flag_spec=' '
10174 allow_undefined_flag=unsupported
10175 always_export_symbols=yes
10176 file_list_spec='@'
10177 # Tell ltmain to make .lib files, not .a files.
10178 libext=lib
10179 # Tell ltmain to make .dll files, not .so files.
10180 shrext_cmds=.dll
10181 # FIXME: Setting linknames here is a bad hack.
10182 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10183 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10184 cp "$export_symbols" "$output_objdir/$soname.def";
10185 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10186 else
10187 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10188 fi~
10189 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10190 linknames='
10191 # The linker will not automatically build a static lib if we build a DLL.
10192 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10193 enable_shared_with_static_runtimes=yes
10194 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10196 # Don't use ranlib
10197 old_postinstall_cmds='chmod 644 $oldlib'
10198 postlink_cmds='lt_outputfile="@OUTPUT@"~
10199 lt_tool_outputfile="@TOOL_OUTPUT@"~
10200 case $lt_outputfile in
10201 *.exe|*.EXE) ;;
10202 *)
10203 lt_outputfile=$lt_outputfile.exe
10204 lt_tool_outputfile=$lt_tool_outputfile.exe
10205 ;;
10206 esac~
10207 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10208 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10209 $RM "$lt_outputfile.manifest";
10210 fi'
10211 ;;
10212 *)
10213 # Assume MSVC and ICC wrapper
10214 hardcode_libdir_flag_spec=' '
10215 allow_undefined_flag=unsupported
10216 # Tell ltmain to make .lib files, not .a files.
10217 libext=lib
10218 # Tell ltmain to make .dll files, not .so files.
10219 shrext_cmds=.dll
10220 # FIXME: Setting linknames here is a bad hack.
10221 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10222 # The linker will automatically build a .lib file if we build a DLL.
10223 old_archive_from_new_cmds='true'
10224 # FIXME: Should let the user specify the lib program.
10225 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10226 enable_shared_with_static_runtimes=yes
10227 ;;
10228 esac
10229 ;;
10230
10231 darwin* | rhapsody*)
10232
10233
10234 archive_cmds_need_lc=no
10235 hardcode_direct=no
10236 hardcode_automatic=yes
10237 hardcode_shlibpath_var=unsupported
10238 if test yes = "$lt_cv_ld_force_load"; then
10239 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\"`'
10240
10241 else
10242 whole_archive_flag_spec=''
10243 fi
10244 link_all_deplibs=yes
10245 allow_undefined_flag=$_lt_dar_allow_undefined
10246 case $cc_basename in
10247 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10248 *) _lt_dar_can_shared=$GCC ;;
10249 esac
10250 if test yes = "$_lt_dar_can_shared"; then
10251 output_verbose_link_cmd=func_echo_all
10252 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10253 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10254 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"
10255 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"
10256
10257 else
10258 ld_shlibs=no
10259 fi
10260
10261 ;;
10262
10263 dgux*)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_libdir_flag_spec='-L$libdir'
10266 hardcode_shlibpath_var=no
10267 ;;
10268
10269 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10270 # support. Future versions do this automatically, but an explicit c++rt0.o
10271 # does not break anything, and helps significantly (at the cost of a little
10272 # extra space).
10273 freebsd2.2*)
10274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10275 hardcode_libdir_flag_spec='-R$libdir'
10276 hardcode_direct=yes
10277 hardcode_shlibpath_var=no
10278 ;;
10279
10280 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10281 freebsd2.*)
10282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_direct=yes
10284 hardcode_minus_L=yes
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10289 freebsd* | dragonfly* | midnightbsd*)
10290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10291 hardcode_libdir_flag_spec='-R$libdir'
10292 hardcode_direct=yes
10293 hardcode_shlibpath_var=no
10294 ;;
10295
10296 hpux9*)
10297 if test yes = "$GCC"; then
10298 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'
10299 else
10300 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'
10301 fi
10302 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10303 hardcode_libdir_separator=:
10304 hardcode_direct=yes
10305
10306 # hardcode_minus_L: Not really in the search PATH,
10307 # but as the default location of the library.
10308 hardcode_minus_L=yes
10309 export_dynamic_flag_spec='$wl-E'
10310 ;;
10311
10312 hpux10*)
10313 if test yes,no = "$GCC,$with_gnu_ld"; then
10314 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10315 else
10316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10317 fi
10318 if test no = "$with_gnu_ld"; then
10319 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10320 hardcode_libdir_separator=:
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 export_dynamic_flag_spec='$wl-E'
10324 # hardcode_minus_L: Not really in the search PATH,
10325 # but as the default location of the library.
10326 hardcode_minus_L=yes
10327 fi
10328 ;;
10329
10330 hpux11*)
10331 if test yes,no = "$GCC,$with_gnu_ld"; then
10332 case $host_cpu in
10333 hppa*64*)
10334 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 ;;
10336 ia64*)
10337 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10338 ;;
10339 *)
10340 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 ;;
10342 esac
10343 else
10344 case $host_cpu in
10345 hppa*64*)
10346 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 ia64*)
10349 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 *)
10352
10353 # Older versions of the 11.00 compiler do not understand -b yet
10354 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10356 printf %s "checking if $CC understands -b... " >&6; }
10357 if test ${lt_cv_prog_compiler__b+y}
10358 then :
10359 printf %s "(cached) " >&6
10360 else $as_nop
10361 lt_cv_prog_compiler__b=no
10362 save_LDFLAGS=$LDFLAGS
10363 LDFLAGS="$LDFLAGS -b"
10364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10366 # The linker can only warn and ignore the option if not recognized
10367 # So say no if there are warnings
10368 if test -s conftest.err; then
10369 # Append any errors to the config.log.
10370 cat conftest.err 1>&5
10371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10373 if diff conftest.exp conftest.er2 >/dev/null; then
10374 lt_cv_prog_compiler__b=yes
10375 fi
10376 else
10377 lt_cv_prog_compiler__b=yes
10378 fi
10379 fi
10380 $RM -r conftest*
10381 LDFLAGS=$save_LDFLAGS
10382
10383 fi
10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10385 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10386
10387 if test yes = "$lt_cv_prog_compiler__b"; then
10388 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10389 else
10390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10391 fi
10392
10393 ;;
10394 esac
10395 fi
10396 if test no = "$with_gnu_ld"; then
10397 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10398 hardcode_libdir_separator=:
10399
10400 case $host_cpu in
10401 hppa*64*|ia64*)
10402 hardcode_direct=no
10403 hardcode_shlibpath_var=no
10404 ;;
10405 *)
10406 hardcode_direct=yes
10407 hardcode_direct_absolute=yes
10408 export_dynamic_flag_spec='$wl-E'
10409
10410 # hardcode_minus_L: Not really in the search PATH,
10411 # but as the default location of the library.
10412 hardcode_minus_L=yes
10413 ;;
10414 esac
10415 fi
10416 ;;
10417
10418 irix5* | irix6* | nonstopux*)
10419 if test yes = "$GCC"; then
10420 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'
10421 # Try to use the -exported_symbol ld option, if it does not
10422 # work, assume that -exports_file does not work either and
10423 # implicitly export all symbols.
10424 # This should be the same for all languages, so no per-tag cache variable.
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10426 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10427 if test ${lt_cv_irix_exported_symbol+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 save_LDFLAGS=$LDFLAGS
10432 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 int foo (void) { return 0; }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"
10438 then :
10439 lt_cv_irix_exported_symbol=yes
10440 else $as_nop
10441 lt_cv_irix_exported_symbol=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LDFLAGS=$save_LDFLAGS
10446 fi
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10448 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10449 if test yes = "$lt_cv_irix_exported_symbol"; then
10450 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'
10451 fi
10452 else
10453 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'
10454 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'
10455 fi
10456 archive_cmds_need_lc='no'
10457 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10458 hardcode_libdir_separator=:
10459 inherit_rpath=yes
10460 link_all_deplibs=yes
10461 ;;
10462
10463 linux*)
10464 case $cc_basename in
10465 tcc*)
10466 # Fabrice Bellard et al's Tiny C Compiler
10467 ld_shlibs=yes
10468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 esac
10471 ;;
10472
10473 netbsd*)
10474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10476 else
10477 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10478 fi
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 newsos6)
10485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486 hardcode_direct=yes
10487 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10488 hardcode_libdir_separator=:
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 *nto* | *qnx*)
10493 ;;
10494
10495 openbsd* | bitrig*)
10496 if test -f /usr/libexec/ld.so; then
10497 hardcode_direct=yes
10498 hardcode_shlibpath_var=no
10499 hardcode_direct_absolute=yes
10500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10503 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10504 export_dynamic_flag_spec='$wl-E'
10505 else
10506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10507 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10508 fi
10509 else
10510 ld_shlibs=no
10511 fi
10512 ;;
10513
10514 os2*)
10515 hardcode_libdir_flag_spec='-L$libdir'
10516 hardcode_minus_L=yes
10517 allow_undefined_flag=unsupported
10518 shrext_cmds=.dll
10519 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10520 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10521 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10522 $ECHO EXPORTS >> $output_objdir/$libname.def~
10523 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10524 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10525 emximp -o $lib $output_objdir/$libname.def'
10526 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10527 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10528 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10529 $ECHO EXPORTS >> $output_objdir/$libname.def~
10530 prefix_cmds="$SED"~
10531 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10532 prefix_cmds="$prefix_cmds -e 1d";
10533 fi~
10534 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10535 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10537 emximp -o $lib $output_objdir/$libname.def'
10538 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10539 enable_shared_with_static_runtimes=yes
10540 file_list_spec='@'
10541 ;;
10542
10543 osf3*)
10544 if test yes = "$GCC"; then
10545 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10546 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'
10547 else
10548 allow_undefined_flag=' -expect_unresolved \*'
10549 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'
10550 fi
10551 archive_cmds_need_lc='no'
10552 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10553 hardcode_libdir_separator=:
10554 ;;
10555
10556 osf4* | osf5*) # as osf3* with the addition of -msym flag
10557 if test yes = "$GCC"; then
10558 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10559 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'
10560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561 else
10562 allow_undefined_flag=' -expect_unresolved \*'
10563 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'
10564 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~
10565 $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'
10566
10567 # Both c and cxx compiler support -rpath directly
10568 hardcode_libdir_flag_spec='-rpath $libdir'
10569 fi
10570 archive_cmds_need_lc='no'
10571 hardcode_libdir_separator=:
10572 ;;
10573
10574 solaris*)
10575 no_undefined_flag=' -z defs'
10576 if test yes = "$GCC"; then
10577 wlarc='$wl'
10578 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10580 $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'
10581 else
10582 case `$CC -V 2>&1` in
10583 *"Compilers 5.0"*)
10584 wlarc=''
10585 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10587 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10588 ;;
10589 *)
10590 wlarc='$wl'
10591 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10593 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10594 ;;
10595 esac
10596 fi
10597 hardcode_libdir_flag_spec='-R$libdir'
10598 hardcode_shlibpath_var=no
10599 case $host_os in
10600 solaris2.[0-5] | solaris2.[0-5].*) ;;
10601 *)
10602 # The compiler driver will combine and reorder linker options,
10603 # but understands '-z linker_flag'. GCC discards it without '$wl',
10604 # but is careful enough not to reorder.
10605 # Supported since Solaris 2.6 (maybe 2.5.1?)
10606 if test yes = "$GCC"; then
10607 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10608 else
10609 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10610 fi
10611 ;;
10612 esac
10613 link_all_deplibs=yes
10614 ;;
10615
10616 sunos4*)
10617 if test sequent = "$host_vendor"; then
10618 # Use $CC to link under sequent, because it throws in some extra .o
10619 # files that make .init and .fini sections work.
10620 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10621 else
10622 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10623 fi
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 hardcode_direct=yes
10626 hardcode_minus_L=yes
10627 hardcode_shlibpath_var=no
10628 ;;
10629
10630 sysv4)
10631 case $host_vendor in
10632 sni)
10633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_direct=yes # is this really true???
10635 ;;
10636 siemens)
10637 ## LD is ld it makes a PLAMLIB
10638 ## CC just makes a GrossModule.
10639 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10640 reload_cmds='$CC -r -o $output$reload_objs'
10641 hardcode_direct=no
10642 ;;
10643 motorola)
10644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10645 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10646 ;;
10647 esac
10648 runpath_var='LD_RUN_PATH'
10649 hardcode_shlibpath_var=no
10650 ;;
10651
10652 sysv4.3*)
10653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654 hardcode_shlibpath_var=no
10655 export_dynamic_flag_spec='-Bexport'
10656 ;;
10657
10658 sysv4*MP*)
10659 if test -d /usr/nec; then
10660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661 hardcode_shlibpath_var=no
10662 runpath_var=LD_RUN_PATH
10663 hardcode_runpath_var=yes
10664 ld_shlibs=yes
10665 fi
10666 ;;
10667
10668 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10669 no_undefined_flag='$wl-z,text'
10670 archive_cmds_need_lc=no
10671 hardcode_shlibpath_var=no
10672 runpath_var='LD_RUN_PATH'
10673
10674 if test yes = "$GCC"; then
10675 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677 else
10678 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 fi
10681 ;;
10682
10683 sysv5* | sco3.2v5* | sco5v6*)
10684 # Note: We CANNOT use -z defs as we might desire, because we do not
10685 # link with -lc, and that would cause any symbols used from libc to
10686 # always be unresolved, which means just about no library would
10687 # ever link correctly. If we're not using GNU ld we use -z text
10688 # though, which does catch some bad symbols but isn't as heavy-handed
10689 # as -z defs.
10690 no_undefined_flag='$wl-z,text'
10691 allow_undefined_flag='$wl-z,nodefs'
10692 archive_cmds_need_lc=no
10693 hardcode_shlibpath_var=no
10694 hardcode_libdir_flag_spec='$wl-R,$libdir'
10695 hardcode_libdir_separator=':'
10696 link_all_deplibs=yes
10697 export_dynamic_flag_spec='$wl-Bexport'
10698 runpath_var='LD_RUN_PATH'
10699
10700 if test yes = "$GCC"; then
10701 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703 else
10704 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706 fi
10707 ;;
10708
10709 uts4*)
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_libdir_flag_spec='-L$libdir'
10712 hardcode_shlibpath_var=no
10713 ;;
10714
10715 *)
10716 ld_shlibs=no
10717 ;;
10718 esac
10719
10720 if test sni = "$host_vendor"; then
10721 case $host in
10722 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10723 export_dynamic_flag_spec='$wl-Blargedynsym'
10724 ;;
10725 esac
10726 fi
10727 fi
10728
10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10730 printf "%s\n" "$ld_shlibs" >&6; }
10731 test no = "$ld_shlibs" && can_build_shared=no
10732
10733 with_gnu_ld=$with_gnu_ld
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 #
10750 # Do we need to explicitly link libc?
10751 #
10752 case "x$archive_cmds_need_lc" in
10753 x|xyes)
10754 # Assume -lc should be added
10755 archive_cmds_need_lc=yes
10756
10757 if test yes,yes = "$GCC,$enable_shared"; then
10758 case $archive_cmds in
10759 *'~'*)
10760 # FIXME: we may have to deal with multi-command sequences.
10761 ;;
10762 '$CC '*)
10763 # Test whether the compiler implicitly links with -lc since on some
10764 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10765 # to ld, don't add -lc before -lgcc.
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10767 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10768 if test ${lt_cv_archive_cmds_need_lc+y}
10769 then :
10770 printf %s "(cached) " >&6
10771 else $as_nop
10772 $RM conftest*
10773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10774
10775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10776 (eval $ac_compile) 2>&5
10777 ac_status=$?
10778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779 test $ac_status = 0; } 2>conftest.err; then
10780 soname=conftest
10781 lib=conftest
10782 libobjs=conftest.$ac_objext
10783 deplibs=
10784 wl=$lt_prog_compiler_wl
10785 pic_flag=$lt_prog_compiler_pic
10786 compiler_flags=-v
10787 linker_flags=-v
10788 verstring=
10789 output_objdir=.
10790 libname=conftest
10791 lt_save_allow_undefined_flag=$allow_undefined_flag
10792 allow_undefined_flag=
10793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10794 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10795 ac_status=$?
10796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10797 test $ac_status = 0; }
10798 then
10799 lt_cv_archive_cmds_need_lc=no
10800 else
10801 lt_cv_archive_cmds_need_lc=yes
10802 fi
10803 allow_undefined_flag=$lt_save_allow_undefined_flag
10804 else
10805 cat conftest.err 1>&5
10806 fi
10807 $RM conftest*
10808
10809 fi
10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10811 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10812 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10813 ;;
10814 esac
10815 fi
10816 ;;
10817 esac
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10971 printf %s "checking dynamic linker characteristics... " >&6; }
10972
10973 if test yes = "$GCC"; then
10974 case $host_os in
10975 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10976 *) lt_awk_arg='/^libraries:/' ;;
10977 esac
10978 case $host_os in
10979 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10980 *) lt_sed_strip_eq='s|=/|/|g' ;;
10981 esac
10982 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10983 case $lt_search_path_spec in
10984 *\;*)
10985 # if the path contains ";" then we assume it to be the separator
10986 # otherwise default to the standard path separator (i.e. ":") - it is
10987 # assumed that no part of a normal pathname contains ";" but that should
10988 # okay in the real world where ";" in dirpaths is itself problematic.
10989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10990 ;;
10991 *)
10992 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10993 ;;
10994 esac
10995 # Ok, now we have the path, separated by spaces, we can step through it
10996 # and add multilib dir if necessary...
10997 lt_tmp_lt_search_path_spec=
10998 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10999 # ...but if some path component already ends with the multilib dir we assume
11000 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11001 case "$lt_multi_os_dir; $lt_search_path_spec " in
11002 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11003 lt_multi_os_dir=
11004 ;;
11005 esac
11006 for lt_sys_path in $lt_search_path_spec; do
11007 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11008 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11009 elif test -n "$lt_multi_os_dir"; then
11010 test -d "$lt_sys_path" && \
11011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11012 fi
11013 done
11014 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11015 BEGIN {RS = " "; FS = "/|\n";} {
11016 lt_foo = "";
11017 lt_count = 0;
11018 for (lt_i = NF; lt_i > 0; lt_i--) {
11019 if ($lt_i != "" && $lt_i != ".") {
11020 if ($lt_i == "..") {
11021 lt_count++;
11022 } else {
11023 if (lt_count == 0) {
11024 lt_foo = "/" $lt_i lt_foo;
11025 } else {
11026 lt_count--;
11027 }
11028 }
11029 }
11030 }
11031 if (lt_foo != "") { lt_freq[lt_foo]++; }
11032 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11033 }'`
11034 # AWK program above erroneously prepends '/' to C:/dos/paths
11035 # for these hosts.
11036 case $host_os in
11037 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11038 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11039 esac
11040 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11041 else
11042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11043 fi
11044 library_names_spec=
11045 libname_spec='lib$name'
11046 soname_spec=
11047 shrext_cmds=.so
11048 postinstall_cmds=
11049 postuninstall_cmds=
11050 finish_cmds=
11051 finish_eval=
11052 shlibpath_var=
11053 shlibpath_overrides_runpath=unknown
11054 version_type=none
11055 dynamic_linker="$host_os ld.so"
11056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11057 need_lib_prefix=unknown
11058 hardcode_into_libs=no
11059
11060 # when you set need_version to no, make sure it does not cause -set_version
11061 # flags to be left without arguments
11062 need_version=unknown
11063
11064
11065
11066 case $host_os in
11067 aix3*)
11068 version_type=linux # correct to gnu/linux during the next big refactor
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11070 shlibpath_var=LIBPATH
11071
11072 # AIX 3 has no versioning support, so we append a major version to the name.
11073 soname_spec='$libname$release$shared_ext$major'
11074 ;;
11075
11076 aix[4-9]*)
11077 version_type=linux # correct to gnu/linux during the next big refactor
11078 need_lib_prefix=no
11079 need_version=no
11080 hardcode_into_libs=yes
11081 if test ia64 = "$host_cpu"; then
11082 # AIX 5 supports IA64
11083 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 else
11086 # With GCC up to 2.95.x, collect2 would create an import file
11087 # for dependence libraries. The import file would start with
11088 # the line '#! .'. This would cause the generated library to
11089 # depend on '.', always an invalid library. This was fixed in
11090 # development snapshots of GCC prior to 3.0.
11091 case $host_os in
11092 aix4 | aix4.[01] | aix4.[01].*)
11093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11094 echo ' yes '
11095 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11096 :
11097 else
11098 can_build_shared=no
11099 fi
11100 ;;
11101 esac
11102 # Using Import Files as archive members, it is possible to support
11103 # filename-based versioning of shared library archives on AIX. While
11104 # this would work for both with and without runtime linking, it will
11105 # prevent static linking of such archives. So we do filename-based
11106 # shared library versioning with .so extension only, which is used
11107 # when both runtime linking and shared linking is enabled.
11108 # Unfortunately, runtime linking may impact performance, so we do
11109 # not want this to be the default eventually. Also, we use the
11110 # versioned .so libs for executables only if there is the -brtl
11111 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11112 # To allow for filename-based versioning support, we need to create
11113 # libNAME.so.V as an archive file, containing:
11114 # *) an Import File, referring to the versioned filename of the
11115 # archive as well as the shared archive member, telling the
11116 # bitwidth (32 or 64) of that shared object, and providing the
11117 # list of exported symbols of that shared object, eventually
11118 # decorated with the 'weak' keyword
11119 # *) the shared object with the F_LOADONLY flag set, to really avoid
11120 # it being seen by the linker.
11121 # At run time we better use the real file rather than another symlink,
11122 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11123
11124 case $with_aix_soname,$aix_use_runtimelinking in
11125 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11126 # soname into executable. Probably we can add versioning support to
11127 # collect2, so additional links can be useful in future.
11128 aix,yes) # traditional libtool
11129 dynamic_linker='AIX unversionable lib.so'
11130 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11131 # instead of lib<name>.a to let people know that these are not
11132 # typical AIX shared libraries.
11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 ;;
11135 aix,no) # traditional AIX only
11136 dynamic_linker='AIX lib.a(lib.so.V)'
11137 # We preserve .a as extension for shared libraries through AIX4.2
11138 # and later when we are not doing run time linking.
11139 library_names_spec='$libname$release.a $libname.a'
11140 soname_spec='$libname$release$shared_ext$major'
11141 ;;
11142 svr4,*) # full svr4 only
11143 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11144 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11145 # We do not specify a path in Import Files, so LIBPATH fires.
11146 shlibpath_overrides_runpath=yes
11147 ;;
11148 *,yes) # both, prefer svr4
11149 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11150 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11151 # unpreferred sharedlib libNAME.a needs extra handling
11152 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"'
11153 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"'
11154 # We do not specify a path in Import Files, so LIBPATH fires.
11155 shlibpath_overrides_runpath=yes
11156 ;;
11157 *,no) # both, prefer aix
11158 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11159 library_names_spec='$libname$release.a $libname.a'
11160 soname_spec='$libname$release$shared_ext$major'
11161 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11162 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)'
11163 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"'
11164 ;;
11165 esac
11166 shlibpath_var=LIBPATH
11167 fi
11168 ;;
11169
11170 amigaos*)
11171 case $host_cpu in
11172 powerpc)
11173 # Since July 2007 AmigaOS4 officially supports .so libraries.
11174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176 ;;
11177 m68k)
11178 library_names_spec='$libname.ixlibrary $libname.a'
11179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11180 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'
11181 ;;
11182 esac
11183 ;;
11184
11185 beos*)
11186 library_names_spec='$libname$shared_ext'
11187 dynamic_linker="$host_os ld.so"
11188 shlibpath_var=LIBRARY_PATH
11189 ;;
11190
11191 bsdi[45]*)
11192 version_type=linux # correct to gnu/linux during the next big refactor
11193 need_version=no
11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195 soname_spec='$libname$release$shared_ext$major'
11196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11200 # the default ld.so.conf also contains /usr/contrib/lib and
11201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11202 # libtool to hard-code these into programs
11203 ;;
11204
11205 cygwin* | mingw* | pw32* | cegcc*)
11206 version_type=windows
11207 shrext_cmds=.dll
11208 need_version=no
11209 need_lib_prefix=no
11210
11211 case $GCC,$cc_basename in
11212 yes,*)
11213 # gcc
11214 library_names_spec='$libname.dll.a'
11215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11216 postinstall_cmds='base_file=`basename \$file`~
11217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11218 dldir=$destdir/`dirname \$dlpath`~
11219 test -d \$dldir || mkdir -p \$dldir~
11220 $install_prog $dir/$dlname \$dldir/$dlname~
11221 chmod a+x \$dldir/$dlname~
11222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11224 fi'
11225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226 dlpath=$dir/\$dldll~
11227 $RM \$dlpath'
11228 shlibpath_overrides_runpath=yes
11229
11230 case $host_os in
11231 cygwin*)
11232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11234
11235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11236 ;;
11237 mingw* | cegcc*)
11238 # MinGW DLLs use traditional 'lib' prefix
11239 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11240 ;;
11241 pw32*)
11242 # pw32 DLLs use 'pw' prefix rather than 'lib'
11243 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11244 ;;
11245 esac
11246 dynamic_linker='Win32 ld.exe'
11247 ;;
11248
11249 *,cl* | *,icl*)
11250 # Native MSVC or ICC
11251 libname_spec='$name'
11252 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11253 library_names_spec='$libname.dll.lib'
11254
11255 case $build_os in
11256 mingw*)
11257 sys_lib_search_path_spec=
11258 lt_save_ifs=$IFS
11259 IFS=';'
11260 for lt_path in $LIB
11261 do
11262 IFS=$lt_save_ifs
11263 # Let DOS variable expansion print the short 8.3 style file name.
11264 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11265 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11266 done
11267 IFS=$lt_save_ifs
11268 # Convert to MSYS style.
11269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11270 ;;
11271 cygwin*)
11272 # Convert to unix form, then to dos form, then back to unix form
11273 # but this time dos style (no spaces!) so that the unix form looks
11274 # like /cygdrive/c/PROGRA~1:/cygdr...
11275 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11276 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11277 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11278 ;;
11279 *)
11280 sys_lib_search_path_spec=$LIB
11281 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11282 # It is most probably a Windows format PATH.
11283 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11284 else
11285 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11286 fi
11287 # FIXME: find the short name or the path components, as spaces are
11288 # common. (e.g. "Program Files" -> "PROGRA~1")
11289 ;;
11290 esac
11291
11292 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11293 postinstall_cmds='base_file=`basename \$file`~
11294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11295 dldir=$destdir/`dirname \$dlpath`~
11296 test -d \$dldir || mkdir -p \$dldir~
11297 $install_prog $dir/$dlname \$dldir/$dlname'
11298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11299 dlpath=$dir/\$dldll~
11300 $RM \$dlpath'
11301 shlibpath_overrides_runpath=yes
11302 dynamic_linker='Win32 link.exe'
11303 ;;
11304
11305 *)
11306 # Assume MSVC and ICC wrapper
11307 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11308 dynamic_linker='Win32 ld.exe'
11309 ;;
11310 esac
11311 # FIXME: first we should search . and the directory the executable is in
11312 shlibpath_var=PATH
11313 ;;
11314
11315 darwin* | rhapsody*)
11316 dynamic_linker="$host_os dyld"
11317 version_type=darwin
11318 need_lib_prefix=no
11319 need_version=no
11320 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11321 soname_spec='$libname$release$major$shared_ext'
11322 shlibpath_overrides_runpath=yes
11323 shlibpath_var=DYLD_LIBRARY_PATH
11324 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11325
11326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11327 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11328 ;;
11329
11330 dgux*)
11331 version_type=linux # correct to gnu/linux during the next big refactor
11332 need_lib_prefix=no
11333 need_version=no
11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335 soname_spec='$libname$release$shared_ext$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 ;;
11338
11339 freebsd* | dragonfly* | midnightbsd*)
11340 # DragonFly does not have aout. When/if they implement a new
11341 # versioning mechanism, adjust this.
11342 if test -x /usr/bin/objformat; then
11343 objformat=`/usr/bin/objformat`
11344 else
11345 case $host_os in
11346 freebsd[23].*) objformat=aout ;;
11347 *) objformat=elf ;;
11348 esac
11349 fi
11350 version_type=freebsd-$objformat
11351 case $version_type in
11352 freebsd-elf*)
11353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354 soname_spec='$libname$release$shared_ext$major'
11355 need_version=no
11356 need_lib_prefix=no
11357 ;;
11358 freebsd-*)
11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11360 need_version=yes
11361 ;;
11362 esac
11363 shlibpath_var=LD_LIBRARY_PATH
11364 case $host_os in
11365 freebsd2.*)
11366 shlibpath_overrides_runpath=yes
11367 ;;
11368 freebsd3.[01]* | freebsdelf3.[01]*)
11369 shlibpath_overrides_runpath=yes
11370 hardcode_into_libs=yes
11371 ;;
11372 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11373 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11374 shlibpath_overrides_runpath=no
11375 hardcode_into_libs=yes
11376 ;;
11377 *) # from 4.6 on, and DragonFly
11378 shlibpath_overrides_runpath=yes
11379 hardcode_into_libs=yes
11380 ;;
11381 esac
11382 ;;
11383
11384 haiku*)
11385 version_type=linux # correct to gnu/linux during the next big refactor
11386 need_lib_prefix=no
11387 need_version=no
11388 dynamic_linker="$host_os runtime_loader"
11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11390 soname_spec='$libname$release$shared_ext$major'
11391 shlibpath_var=LIBRARY_PATH
11392 shlibpath_overrides_runpath=no
11393 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11394 hardcode_into_libs=yes
11395 ;;
11396
11397 hpux9* | hpux10* | hpux11*)
11398 # Give a soname corresponding to the major version so that dld.sl refuses to
11399 # link against other versions.
11400 version_type=sunos
11401 need_lib_prefix=no
11402 need_version=no
11403 case $host_cpu in
11404 ia64*)
11405 shrext_cmds='.so'
11406 hardcode_into_libs=yes
11407 dynamic_linker="$host_os dld.so"
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411 soname_spec='$libname$release$shared_ext$major'
11412 if test 32 = "$HPUX_IA64_MODE"; then
11413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11414 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11415 else
11416 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11417 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11418 fi
11419 ;;
11420 hppa*64*)
11421 shrext_cmds='.sl'
11422 hardcode_into_libs=yes
11423 dynamic_linker="$host_os dld.sl"
11424 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427 soname_spec='$libname$release$shared_ext$major'
11428 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11430 ;;
11431 *)
11432 shrext_cmds='.sl'
11433 dynamic_linker="$host_os dld.sl"
11434 shlibpath_var=SHLIB_PATH
11435 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 soname_spec='$libname$release$shared_ext$major'
11438 ;;
11439 esac
11440 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11441 postinstall_cmds='chmod 555 $lib'
11442 # or fails outright, so override atomically:
11443 install_override_mode=555
11444 ;;
11445
11446 interix[3-9]*)
11447 version_type=linux # correct to gnu/linux during the next big refactor
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451 soname_spec='$libname$release$shared_ext$major'
11452 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=no
11455 hardcode_into_libs=yes
11456 ;;
11457
11458 irix5* | irix6* | nonstopux*)
11459 case $host_os in
11460 nonstopux*) version_type=nonstopux ;;
11461 *)
11462 if test yes = "$lt_cv_prog_gnu_ld"; then
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 else
11465 version_type=irix
11466 fi ;;
11467 esac
11468 need_lib_prefix=no
11469 need_version=no
11470 soname_spec='$libname$release$shared_ext$major'
11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11472 case $host_os in
11473 irix5* | nonstopux*)
11474 libsuff= shlibsuff=
11475 ;;
11476 *)
11477 case $LD in # libtool.m4 will add one of these switches to LD
11478 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11479 libsuff= shlibsuff= libmagic=32-bit;;
11480 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11481 libsuff=32 shlibsuff=N32 libmagic=N32;;
11482 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11483 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11484 *) libsuff= shlibsuff= libmagic=never-match;;
11485 esac
11486 ;;
11487 esac
11488 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11489 shlibpath_overrides_runpath=no
11490 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11491 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11492 hardcode_into_libs=yes
11493 ;;
11494
11495 # No shared lib support for Linux oldld, aout, or coff.
11496 linux*oldld* | linux*aout* | linux*coff*)
11497 dynamic_linker=no
11498 ;;
11499
11500 linux*android*)
11501 version_type=none # Android doesn't support versioned libraries.
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='$libname$release$shared_ext'
11505 soname_spec='$libname$release$shared_ext'
11506 finish_cmds=
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509
11510 # This implies no fast_install, which is unacceptable.
11511 # Some rework will be needed to allow for fast_install
11512 # before this can be enabled.
11513 hardcode_into_libs=yes
11514
11515 dynamic_linker='Android linker'
11516 # Don't embed -rpath directories since the linker doesn't support them.
11517 hardcode_libdir_flag_spec='-L$libdir'
11518 ;;
11519
11520 # This must be glibc/ELF.
11521 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11522 version_type=linux # correct to gnu/linux during the next big refactor
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=no
11530
11531 # Some binutils ld are patched to set DT_RUNPATH
11532 if test ${lt_cv_shlibpath_overrides_runpath+y}
11533 then :
11534 printf %s "(cached) " >&6
11535 else $as_nop
11536 lt_cv_shlibpath_overrides_runpath=no
11537 save_LDFLAGS=$LDFLAGS
11538 save_libdir=$libdir
11539 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11540 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543
11544 int
11545 main (void)
11546 {
11547
11548 ;
11549 return 0;
11550 }
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"
11553 then :
11554 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11555 then :
11556 lt_cv_shlibpath_overrides_runpath=yes
11557 fi
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11560 conftest$ac_exeext conftest.$ac_ext
11561 LDFLAGS=$save_LDFLAGS
11562 libdir=$save_libdir
11563
11564 fi
11565
11566 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11567
11568 # This implies no fast_install, which is unacceptable.
11569 # Some rework will be needed to allow for fast_install
11570 # before this can be enabled.
11571 hardcode_into_libs=yes
11572
11573 # Ideally, we could use ldconfig to report *all* directores which are
11574 # searched for libraries, however this is still not possible. Aside from not
11575 # being certain /sbin/ldconfig is available, command
11576 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11577 # even though it is searched at run-time. Try to do the best guess by
11578 # appending ld.so.conf contents (and includes) to the search path.
11579 if test -f /etc/ld.so.conf; then
11580 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' ' '`
11581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11582 fi
11583
11584 # We used to test for /lib/ld.so.1 and disable shared libraries on
11585 # powerpc, because MkLinux only supported shared libraries with the
11586 # GNU dynamic linker. Since this was broken with cross compilers,
11587 # most powerpc-linux boxes support dynamic linking these days and
11588 # people can always --disable-shared, the test was removed, and we
11589 # assume the GNU/Linux dynamic linker is in use.
11590 dynamic_linker='GNU/Linux ld.so'
11591 ;;
11592
11593 netbsd*)
11594 version_type=sunos
11595 need_lib_prefix=no
11596 need_version=no
11597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11600 dynamic_linker='NetBSD (a.out) ld.so'
11601 else
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 soname_spec='$libname$release$shared_ext$major'
11604 dynamic_linker='NetBSD ld.elf_so'
11605 fi
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=yes
11608 hardcode_into_libs=yes
11609 ;;
11610
11611 newsos6)
11612 version_type=linux # correct to gnu/linux during the next big refactor
11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes
11616 ;;
11617
11618 *nto* | *qnx*)
11619 version_type=qnx
11620 need_lib_prefix=no
11621 need_version=no
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 soname_spec='$libname$release$shared_ext$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=no
11626 hardcode_into_libs=yes
11627 dynamic_linker='ldqnx.so'
11628 ;;
11629
11630 openbsd* | bitrig*)
11631 version_type=sunos
11632 sys_lib_dlsearch_path_spec=/usr/lib
11633 need_lib_prefix=no
11634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11635 need_version=no
11636 else
11637 need_version=yes
11638 fi
11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 ;;
11644
11645 os2*)
11646 libname_spec='$name'
11647 version_type=windows
11648 shrext_cmds=.dll
11649 need_version=no
11650 need_lib_prefix=no
11651 # OS/2 can only load a DLL with a base name of 8 characters or less.
11652 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11653 v=$($ECHO $release$versuffix | tr -d .-);
11654 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11655 $ECHO $n$v`$shared_ext'
11656 library_names_spec='${libname}_dll.$libext'
11657 dynamic_linker='OS/2 ld.exe'
11658 shlibpath_var=BEGINLIBPATH
11659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11661 postinstall_cmds='base_file=`basename \$file`~
11662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11663 dldir=$destdir/`dirname \$dlpath`~
11664 test -d \$dldir || mkdir -p \$dldir~
11665 $install_prog $dir/$dlname \$dldir/$dlname~
11666 chmod a+x \$dldir/$dlname~
11667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11669 fi'
11670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11671 dlpath=$dir/\$dldll~
11672 $RM \$dlpath'
11673 ;;
11674
11675 osf3* | osf4* | osf5*)
11676 version_type=osf
11677 need_lib_prefix=no
11678 need_version=no
11679 soname_spec='$libname$release$shared_ext$major'
11680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11684 ;;
11685
11686 rdos*)
11687 dynamic_linker=no
11688 ;;
11689
11690 solaris*)
11691 version_type=linux # correct to gnu/linux during the next big refactor
11692 need_lib_prefix=no
11693 need_version=no
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695 soname_spec='$libname$release$shared_ext$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11698 hardcode_into_libs=yes
11699 # ldd complains unless libraries are executable
11700 postinstall_cmds='chmod +x $lib'
11701 ;;
11702
11703 sunos4*)
11704 version_type=sunos
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=yes
11709 if test yes = "$with_gnu_ld"; then
11710 need_lib_prefix=no
11711 fi
11712 need_version=yes
11713 ;;
11714
11715 sysv4 | sysv4.3*)
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11718 soname_spec='$libname$release$shared_ext$major'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 case $host_vendor in
11721 sni)
11722 shlibpath_overrides_runpath=no
11723 need_lib_prefix=no
11724 runpath_var=LD_RUN_PATH
11725 ;;
11726 siemens)
11727 need_lib_prefix=no
11728 ;;
11729 motorola)
11730 need_lib_prefix=no
11731 need_version=no
11732 shlibpath_overrides_runpath=no
11733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11734 ;;
11735 esac
11736 ;;
11737
11738 sysv4*MP*)
11739 if test -d /usr/nec; then
11740 version_type=linux # correct to gnu/linux during the next big refactor
11741 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11742 soname_spec='$libname$shared_ext.$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 fi
11745 ;;
11746
11747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11748 version_type=sco
11749 need_lib_prefix=no
11750 need_version=no
11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11752 soname_spec='$libname$release$shared_ext$major'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11755 hardcode_into_libs=yes
11756 if test yes = "$with_gnu_ld"; then
11757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11758 else
11759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11760 case $host_os in
11761 sco3.2v5*)
11762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11763 ;;
11764 esac
11765 fi
11766 sys_lib_dlsearch_path_spec='/usr/lib'
11767 ;;
11768
11769 tpf*)
11770 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11771 version_type=linux # correct to gnu/linux during the next big refactor
11772 need_lib_prefix=no
11773 need_version=no
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 shlibpath_overrides_runpath=no
11777 hardcode_into_libs=yes
11778 ;;
11779
11780 uts4*)
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 soname_spec='$libname$release$shared_ext$major'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 ;;
11786
11787 *)
11788 dynamic_linker=no
11789 ;;
11790 esac
11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11792 printf "%s\n" "$dynamic_linker" >&6; }
11793 test no = "$dynamic_linker" && can_build_shared=no
11794
11795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11796 if test yes = "$GCC"; then
11797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11798 fi
11799
11800 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11801 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11802 fi
11803
11804 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11805 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11806 fi
11807
11808 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11809 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11810
11811 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11812 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11813
11814 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11815 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11914 printf %s "checking how to hardcode library paths into programs... " >&6; }
11915 hardcode_action=
11916 if test -n "$hardcode_libdir_flag_spec" ||
11917 test -n "$runpath_var" ||
11918 test yes = "$hardcode_automatic"; then
11919
11920 # We can hardcode non-existent directories.
11921 if test no != "$hardcode_direct" &&
11922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11923 # have to relink, otherwise we might link with an installed library
11924 # when we should be linking with a yet-to-be-installed one
11925 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11926 test no != "$hardcode_minus_L"; then
11927 # Linking always hardcodes the temporary library directory.
11928 hardcode_action=relink
11929 else
11930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11931 hardcode_action=immediate
11932 fi
11933 else
11934 # We cannot hardcode anything, or else we can only hardcode existing
11935 # directories.
11936 hardcode_action=unsupported
11937 fi
11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11939 printf "%s\n" "$hardcode_action" >&6; }
11940
11941 if test relink = "$hardcode_action" ||
11942 test yes = "$inherit_rpath"; then
11943 # Fast installation is not supported
11944 enable_fast_install=no
11945 elif test yes = "$shlibpath_overrides_runpath" ||
11946 test no = "$enable_shared"; then
11947 # Fast installation is not necessary
11948 enable_fast_install=needless
11949 fi
11950
11951
11952
11953
11954
11955
11956 if test yes != "$enable_dlopen"; then
11957 enable_dlopen=unknown
11958 enable_dlopen_self=unknown
11959 enable_dlopen_self_static=unknown
11960 else
11961 lt_cv_dlopen=no
11962 lt_cv_dlopen_libs=
11963
11964 case $host_os in
11965 beos*)
11966 lt_cv_dlopen=load_add_on
11967 lt_cv_dlopen_libs=
11968 lt_cv_dlopen_self=yes
11969 ;;
11970
11971 mingw* | pw32* | cegcc*)
11972 lt_cv_dlopen=LoadLibrary
11973 lt_cv_dlopen_libs=
11974 ;;
11975
11976 cygwin*)
11977 lt_cv_dlopen=dlopen
11978 lt_cv_dlopen_libs=
11979 ;;
11980
11981 darwin*)
11982 # if libdl is installed we need to link against it
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11984 printf %s "checking for dlopen in -ldl... " >&6; }
11985 if test ${ac_cv_lib_dl_dlopen+y}
11986 then :
11987 printf %s "(cached) " >&6
11988 else $as_nop
11989 ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-ldl $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
11997 char dlopen ();
11998 int
11999 main (void)
12000 {
12001 return dlopen ();
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 if ac_fn_c_try_link "$LINENO"
12007 then :
12008 ac_cv_lib_dl_dlopen=yes
12009 else $as_nop
12010 ac_cv_lib_dl_dlopen=no
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12015 fi
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12017 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12018 if test "x$ac_cv_lib_dl_dlopen" = xyes
12019 then :
12020 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12021 else $as_nop
12022
12023 lt_cv_dlopen=dyld
12024 lt_cv_dlopen_libs=
12025 lt_cv_dlopen_self=yes
12026
12027 fi
12028
12029 ;;
12030
12031 tpf*)
12032 # Don't try to run any link tests for TPF. We know it's impossible
12033 # because TPF is a cross-compiler, and we know how we open DSOs.
12034 lt_cv_dlopen=dlopen
12035 lt_cv_dlopen_libs=
12036 lt_cv_dlopen_self=no
12037 ;;
12038
12039 *)
12040 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12041 if test "x$ac_cv_func_shl_load" = xyes
12042 then :
12043 lt_cv_dlopen=shl_load
12044 else $as_nop
12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12046 printf %s "checking for shl_load in -ldld... " >&6; }
12047 if test ${ac_cv_lib_dld_shl_load+y}
12048 then :
12049 printf %s "(cached) " >&6
12050 else $as_nop
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-ldld $LIBS"
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12059 char shl_load ();
12060 int
12061 main (void)
12062 {
12063 return shl_load ();
12064 ;
12065 return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_link "$LINENO"
12069 then :
12070 ac_cv_lib_dld_shl_load=yes
12071 else $as_nop
12072 ac_cv_lib_dld_shl_load=no
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12079 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12080 if test "x$ac_cv_lib_dld_shl_load" = xyes
12081 then :
12082 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12083 else $as_nop
12084 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12085 if test "x$ac_cv_func_dlopen" = xyes
12086 then :
12087 lt_cv_dlopen=dlopen
12088 else $as_nop
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12090 printf %s "checking for dlopen in -ldl... " >&6; }
12091 if test ${ac_cv_lib_dl_dlopen+y}
12092 then :
12093 printf %s "(cached) " >&6
12094 else $as_nop
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-ldl $LIBS"
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12103 char dlopen ();
12104 int
12105 main (void)
12106 {
12107 return dlopen ();
12108 ;
12109 return 0;
12110 }
12111 _ACEOF
12112 if ac_fn_c_try_link "$LINENO"
12113 then :
12114 ac_cv_lib_dl_dlopen=yes
12115 else $as_nop
12116 ac_cv_lib_dl_dlopen=no
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12121 fi
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12123 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12124 if test "x$ac_cv_lib_dl_dlopen" = xyes
12125 then :
12126 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12127 else $as_nop
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12129 printf %s "checking for dlopen in -lsvld... " >&6; }
12130 if test ${ac_cv_lib_svld_dlopen+y}
12131 then :
12132 printf %s "(cached) " >&6
12133 else $as_nop
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-lsvld $LIBS"
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138
12139 /* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply. */
12142 char dlopen ();
12143 int
12144 main (void)
12145 {
12146 return dlopen ();
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"
12152 then :
12153 ac_cv_lib_svld_dlopen=yes
12154 else $as_nop
12155 ac_cv_lib_svld_dlopen=no
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12160 fi
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12162 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12163 if test "x$ac_cv_lib_svld_dlopen" = xyes
12164 then :
12165 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12166 else $as_nop
12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12168 printf %s "checking for dld_link in -ldld... " >&6; }
12169 if test ${ac_cv_lib_dld_dld_link+y}
12170 then :
12171 printf %s "(cached) " >&6
12172 else $as_nop
12173 ac_check_lib_save_LIBS=$LIBS
12174 LIBS="-ldld $LIBS"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181 char dld_link ();
12182 int
12183 main (void)
12184 {
12185 return dld_link ();
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"
12191 then :
12192 ac_cv_lib_dld_dld_link=yes
12193 else $as_nop
12194 ac_cv_lib_dld_dld_link=no
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12199 fi
12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12201 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12202 if test "x$ac_cv_lib_dld_dld_link" = xyes
12203 then :
12204 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12205 fi
12206
12207
12208 fi
12209
12210
12211 fi
12212
12213
12214 fi
12215
12216
12217 fi
12218
12219
12220 fi
12221
12222 ;;
12223 esac
12224
12225 if test no = "$lt_cv_dlopen"; then
12226 enable_dlopen=no
12227 else
12228 enable_dlopen=yes
12229 fi
12230
12231 case $lt_cv_dlopen in
12232 dlopen)
12233 save_CPPFLAGS=$CPPFLAGS
12234 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12235
12236 save_LDFLAGS=$LDFLAGS
12237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12238
12239 save_LIBS=$LIBS
12240 LIBS="$lt_cv_dlopen_libs $LIBS"
12241
12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12243 printf %s "checking whether a program can dlopen itself... " >&6; }
12244 if test ${lt_cv_dlopen_self+y}
12245 then :
12246 printf %s "(cached) " >&6
12247 else $as_nop
12248 if test yes = "$cross_compiling"; then :
12249 lt_cv_dlopen_self=cross
12250 else
12251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12252 lt_status=$lt_dlunknown
12253 cat > conftest.$ac_ext <<_LT_EOF
12254 #line $LINENO "configure"
12255 #include "confdefs.h"
12256
12257 #if HAVE_DLFCN_H
12258 #include <dlfcn.h>
12259 #endif
12260
12261 #include <stdio.h>
12262
12263 #ifdef RTLD_GLOBAL
12264 # define LT_DLGLOBAL RTLD_GLOBAL
12265 #else
12266 # ifdef DL_GLOBAL
12267 # define LT_DLGLOBAL DL_GLOBAL
12268 # else
12269 # define LT_DLGLOBAL 0
12270 # endif
12271 #endif
12272
12273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12274 find out it does not work in some platform. */
12275 #ifndef LT_DLLAZY_OR_NOW
12276 # ifdef RTLD_LAZY
12277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12278 # else
12279 # ifdef DL_LAZY
12280 # define LT_DLLAZY_OR_NOW DL_LAZY
12281 # else
12282 # ifdef RTLD_NOW
12283 # define LT_DLLAZY_OR_NOW RTLD_NOW
12284 # else
12285 # ifdef DL_NOW
12286 # define LT_DLLAZY_OR_NOW DL_NOW
12287 # else
12288 # define LT_DLLAZY_OR_NOW 0
12289 # endif
12290 # endif
12291 # endif
12292 # endif
12293 #endif
12294
12295 /* When -fvisibility=hidden is used, assume the code has been annotated
12296 correspondingly for the symbols needed. */
12297 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12298 int fnord () __attribute__((visibility("default")));
12299 #endif
12300
12301 int fnord () { return 42; }
12302 int main ()
12303 {
12304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12305 int status = $lt_dlunknown;
12306
12307 if (self)
12308 {
12309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12310 else
12311 {
12312 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12313 else puts (dlerror ());
12314 }
12315 /* dlclose (self); */
12316 }
12317 else
12318 puts (dlerror ());
12319
12320 return status;
12321 }
12322 _LT_EOF
12323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12324 (eval $ac_link) 2>&5
12325 ac_status=$?
12326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12328 (./conftest; exit; ) >&5 2>/dev/null
12329 lt_status=$?
12330 case x$lt_status in
12331 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12332 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12333 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12334 esac
12335 else :
12336 # compilation failed
12337 lt_cv_dlopen_self=no
12338 fi
12339 fi
12340 rm -fr conftest*
12341
12342
12343 fi
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12345 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12346
12347 if test yes = "$lt_cv_dlopen_self"; then
12348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12350 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12351 if test ${lt_cv_dlopen_self_static+y}
12352 then :
12353 printf %s "(cached) " >&6
12354 else $as_nop
12355 if test yes = "$cross_compiling"; then :
12356 lt_cv_dlopen_self_static=cross
12357 else
12358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12359 lt_status=$lt_dlunknown
12360 cat > conftest.$ac_ext <<_LT_EOF
12361 #line $LINENO "configure"
12362 #include "confdefs.h"
12363
12364 #if HAVE_DLFCN_H
12365 #include <dlfcn.h>
12366 #endif
12367
12368 #include <stdio.h>
12369
12370 #ifdef RTLD_GLOBAL
12371 # define LT_DLGLOBAL RTLD_GLOBAL
12372 #else
12373 # ifdef DL_GLOBAL
12374 # define LT_DLGLOBAL DL_GLOBAL
12375 # else
12376 # define LT_DLGLOBAL 0
12377 # endif
12378 #endif
12379
12380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12381 find out it does not work in some platform. */
12382 #ifndef LT_DLLAZY_OR_NOW
12383 # ifdef RTLD_LAZY
12384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12385 # else
12386 # ifdef DL_LAZY
12387 # define LT_DLLAZY_OR_NOW DL_LAZY
12388 # else
12389 # ifdef RTLD_NOW
12390 # define LT_DLLAZY_OR_NOW RTLD_NOW
12391 # else
12392 # ifdef DL_NOW
12393 # define LT_DLLAZY_OR_NOW DL_NOW
12394 # else
12395 # define LT_DLLAZY_OR_NOW 0
12396 # endif
12397 # endif
12398 # endif
12399 # endif
12400 #endif
12401
12402 /* When -fvisibility=hidden is used, assume the code has been annotated
12403 correspondingly for the symbols needed. */
12404 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12405 int fnord () __attribute__((visibility("default")));
12406 #endif
12407
12408 int fnord () { return 42; }
12409 int main ()
12410 {
12411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12412 int status = $lt_dlunknown;
12413
12414 if (self)
12415 {
12416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12417 else
12418 {
12419 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12420 else puts (dlerror ());
12421 }
12422 /* dlclose (self); */
12423 }
12424 else
12425 puts (dlerror ());
12426
12427 return status;
12428 }
12429 _LT_EOF
12430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12431 (eval $ac_link) 2>&5
12432 ac_status=$?
12433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12435 (./conftest; exit; ) >&5 2>/dev/null
12436 lt_status=$?
12437 case x$lt_status in
12438 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12439 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12440 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12441 esac
12442 else :
12443 # compilation failed
12444 lt_cv_dlopen_self_static=no
12445 fi
12446 fi
12447 rm -fr conftest*
12448
12449
12450 fi
12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12452 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12453 fi
12454
12455 CPPFLAGS=$save_CPPFLAGS
12456 LDFLAGS=$save_LDFLAGS
12457 LIBS=$save_LIBS
12458 ;;
12459 esac
12460
12461 case $lt_cv_dlopen_self in
12462 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12463 *) enable_dlopen_self=unknown ;;
12464 esac
12465
12466 case $lt_cv_dlopen_self_static in
12467 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12468 *) enable_dlopen_self_static=unknown ;;
12469 esac
12470 fi
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488 striplib=
12489 old_striplib=
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12491 printf %s "checking whether stripping libraries is possible... " >&6; }
12492 if test -z "$STRIP"; then
12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 printf "%s\n" "no" >&6; }
12495 else
12496 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12497 old_striplib="$STRIP --strip-debug"
12498 striplib="$STRIP --strip-unneeded"
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 printf "%s\n" "yes" >&6; }
12501 else
12502 case $host_os in
12503 darwin*)
12504 # FIXME - insert some real tests, host_os isn't really good enough
12505 striplib="$STRIP -x"
12506 old_striplib="$STRIP -S"
12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12508 printf "%s\n" "yes" >&6; }
12509 ;;
12510 freebsd*)
12511 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12512 old_striplib="$STRIP --strip-debug"
12513 striplib="$STRIP --strip-unneeded"
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12515 printf "%s\n" "yes" >&6; }
12516 else
12517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 printf "%s\n" "no" >&6; }
12519 fi
12520 ;;
12521 *)
12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 printf "%s\n" "no" >&6; }
12524 ;;
12525 esac
12526 fi
12527 fi
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540 # Report what library types will actually be built
12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12542 printf %s "checking if libtool supports shared libraries... " >&6; }
12543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12544 printf "%s\n" "$can_build_shared" >&6; }
12545
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12547 printf %s "checking whether to build shared libraries... " >&6; }
12548 test no = "$can_build_shared" && enable_shared=no
12549
12550 # On AIX, shared libraries and static libraries use the same namespace, and
12551 # are all built from PIC.
12552 case $host_os in
12553 aix3*)
12554 test yes = "$enable_shared" && enable_static=no
12555 if test -n "$RANLIB"; then
12556 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12557 postinstall_cmds='$RANLIB $lib'
12558 fi
12559 ;;
12560
12561 aix[4-9]*)
12562 if test ia64 != "$host_cpu"; then
12563 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12564 yes,aix,yes) ;; # shared object as lib.so file only
12565 yes,svr4,*) ;; # shared object as lib.so archive member only
12566 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12567 esac
12568 fi
12569 ;;
12570 esac
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12572 printf "%s\n" "$enable_shared" >&6; }
12573
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12575 printf %s "checking whether to build static libraries... " >&6; }
12576 # Make sure either enable_shared or enable_static is yes.
12577 test yes = "$enable_shared" || enable_static=yes
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12579 printf "%s\n" "$enable_static" >&6; }
12580
12581
12582
12583
12584 fi
12585 ac_ext=c
12586 ac_cpp='$CPP $CPPFLAGS'
12587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12590
12591 CC=$lt_save_CC
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607 ac_config_commands="$ac_config_commands libtool"
12608
12609
12610
12611
12612 # Only expand once:
12613
12614
12615 ac_ext=c
12616 ac_cpp='$CPP $CPPFLAGS'
12617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12620 if test -n "$ac_tool_prefix"; then
12621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624 printf %s "checking for $ac_word... " >&6; }
12625 if test ${ac_cv_prog_CC+y}
12626 then :
12627 printf %s "(cached) " >&6
12628 else $as_nop
12629 if test -n "$CC"; then
12630 ac_cv_prog_CC="$CC" # Let the user override the test.
12631 else
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12634 do
12635 IFS=$as_save_IFS
12636 case $as_dir in #(((
12637 '') as_dir=./ ;;
12638 */) ;;
12639 *) as_dir=$as_dir/ ;;
12640 esac
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12645 break 2
12646 fi
12647 done
12648 done
12649 IFS=$as_save_IFS
12650
12651 fi
12652 fi
12653 CC=$ac_cv_prog_CC
12654 if test -n "$CC"; then
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12656 printf "%s\n" "$CC" >&6; }
12657 else
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; }
12660 fi
12661
12662
12663 fi
12664 if test -z "$ac_cv_prog_CC"; then
12665 ac_ct_CC=$CC
12666 # Extract the first word of "gcc", so it can be a program name with args.
12667 set dummy gcc; ac_word=$2
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 printf %s "checking for $ac_word... " >&6; }
12670 if test ${ac_cv_prog_ac_ct_CC+y}
12671 then :
12672 printf %s "(cached) " >&6
12673 else $as_nop
12674 if test -n "$ac_ct_CC"; then
12675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12676 else
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12679 do
12680 IFS=$as_save_IFS
12681 case $as_dir in #(((
12682 '') as_dir=./ ;;
12683 */) ;;
12684 *) as_dir=$as_dir/ ;;
12685 esac
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12688 ac_cv_prog_ac_ct_CC="gcc"
12689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692 done
12693 done
12694 IFS=$as_save_IFS
12695
12696 fi
12697 fi
12698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12699 if test -n "$ac_ct_CC"; then
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12701 printf "%s\n" "$ac_ct_CC" >&6; }
12702 else
12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 printf "%s\n" "no" >&6; }
12705 fi
12706
12707 if test "x$ac_ct_CC" = x; then
12708 CC=""
12709 else
12710 case $cross_compiling:$ac_tool_warned in
12711 yes:)
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12714 ac_tool_warned=yes ;;
12715 esac
12716 CC=$ac_ct_CC
12717 fi
12718 else
12719 CC="$ac_cv_prog_CC"
12720 fi
12721
12722 if test -z "$CC"; then
12723 if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12725 set dummy ${ac_tool_prefix}cc; ac_word=$2
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 printf %s "checking for $ac_word... " >&6; }
12728 if test ${ac_cv_prog_CC+y}
12729 then :
12730 printf %s "(cached) " >&6
12731 else $as_nop
12732 if test -n "$CC"; then
12733 ac_cv_prog_CC="$CC" # Let the user override the test.
12734 else
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12737 do
12738 IFS=$as_save_IFS
12739 case $as_dir in #(((
12740 '') as_dir=./ ;;
12741 */) ;;
12742 *) as_dir=$as_dir/ ;;
12743 esac
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12746 ac_cv_prog_CC="${ac_tool_prefix}cc"
12747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12748 break 2
12749 fi
12750 done
12751 done
12752 IFS=$as_save_IFS
12753
12754 fi
12755 fi
12756 CC=$ac_cv_prog_CC
12757 if test -n "$CC"; then
12758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12759 printf "%s\n" "$CC" >&6; }
12760 else
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 printf "%s\n" "no" >&6; }
12763 fi
12764
12765
12766 fi
12767 fi
12768 if test -z "$CC"; then
12769 # Extract the first word of "cc", so it can be a program name with args.
12770 set dummy cc; ac_word=$2
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 printf %s "checking for $ac_word... " >&6; }
12773 if test ${ac_cv_prog_CC+y}
12774 then :
12775 printf %s "(cached) " >&6
12776 else $as_nop
12777 if test -n "$CC"; then
12778 ac_cv_prog_CC="$CC" # Let the user override the test.
12779 else
12780 ac_prog_rejected=no
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12783 do
12784 IFS=$as_save_IFS
12785 case $as_dir in #(((
12786 '') as_dir=./ ;;
12787 */) ;;
12788 *) as_dir=$as_dir/ ;;
12789 esac
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12792 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12793 ac_prog_rejected=yes
12794 continue
12795 fi
12796 ac_cv_prog_CC="cc"
12797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12798 break 2
12799 fi
12800 done
12801 done
12802 IFS=$as_save_IFS
12803
12804 if test $ac_prog_rejected = yes; then
12805 # We found a bogon in the path, so make sure we never use it.
12806 set dummy $ac_cv_prog_CC
12807 shift
12808 if test $# != 0; then
12809 # We chose a different compiler from the bogus one.
12810 # However, it has the same basename, so the bogon will be chosen
12811 # first if we set CC to just the basename; use the full file name.
12812 shift
12813 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12814 fi
12815 fi
12816 fi
12817 fi
12818 CC=$ac_cv_prog_CC
12819 if test -n "$CC"; then
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12821 printf "%s\n" "$CC" >&6; }
12822 else
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 printf "%s\n" "no" >&6; }
12825 fi
12826
12827
12828 fi
12829 if test -z "$CC"; then
12830 if test -n "$ac_tool_prefix"; then
12831 for ac_prog in cl.exe
12832 do
12833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 printf %s "checking for $ac_word... " >&6; }
12837 if test ${ac_cv_prog_CC+y}
12838 then :
12839 printf %s "(cached) " >&6
12840 else $as_nop
12841 if test -n "$CC"; then
12842 ac_cv_prog_CC="$CC" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12846 do
12847 IFS=$as_save_IFS
12848 case $as_dir in #(((
12849 '') as_dir=./ ;;
12850 */) ;;
12851 *) as_dir=$as_dir/ ;;
12852 esac
12853 for ac_exec_ext in '' $ac_executable_extensions; do
12854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12857 break 2
12858 fi
12859 done
12860 done
12861 IFS=$as_save_IFS
12862
12863 fi
12864 fi
12865 CC=$ac_cv_prog_CC
12866 if test -n "$CC"; then
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12868 printf "%s\n" "$CC" >&6; }
12869 else
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 printf "%s\n" "no" >&6; }
12872 fi
12873
12874
12875 test -n "$CC" && break
12876 done
12877 fi
12878 if test -z "$CC"; then
12879 ac_ct_CC=$CC
12880 for ac_prog in cl.exe
12881 do
12882 # Extract the first word of "$ac_prog", so it can be a program name with args.
12883 set dummy $ac_prog; ac_word=$2
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885 printf %s "checking for $ac_word... " >&6; }
12886 if test ${ac_cv_prog_ac_ct_CC+y}
12887 then :
12888 printf %s "(cached) " >&6
12889 else $as_nop
12890 if test -n "$ac_ct_CC"; then
12891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12892 else
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896 IFS=$as_save_IFS
12897 case $as_dir in #(((
12898 '') as_dir=./ ;;
12899 */) ;;
12900 *) as_dir=$as_dir/ ;;
12901 esac
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12904 ac_cv_prog_ac_ct_CC="$ac_prog"
12905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12906 break 2
12907 fi
12908 done
12909 done
12910 IFS=$as_save_IFS
12911
12912 fi
12913 fi
12914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12915 if test -n "$ac_ct_CC"; then
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12917 printf "%s\n" "$ac_ct_CC" >&6; }
12918 else
12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 printf "%s\n" "no" >&6; }
12921 fi
12922
12923
12924 test -n "$ac_ct_CC" && break
12925 done
12926
12927 if test "x$ac_ct_CC" = x; then
12928 CC=""
12929 else
12930 case $cross_compiling:$ac_tool_warned in
12931 yes:)
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12933 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12934 ac_tool_warned=yes ;;
12935 esac
12936 CC=$ac_ct_CC
12937 fi
12938 fi
12939
12940 fi
12941 if test -z "$CC"; then
12942 if test -n "$ac_tool_prefix"; then
12943 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12944 set dummy ${ac_tool_prefix}clang; ac_word=$2
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 printf %s "checking for $ac_word... " >&6; }
12947 if test ${ac_cv_prog_CC+y}
12948 then :
12949 printf %s "(cached) " >&6
12950 else $as_nop
12951 if test -n "$CC"; then
12952 ac_cv_prog_CC="$CC" # Let the user override the test.
12953 else
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12956 do
12957 IFS=$as_save_IFS
12958 case $as_dir in #(((
12959 '') as_dir=./ ;;
12960 */) ;;
12961 *) as_dir=$as_dir/ ;;
12962 esac
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12965 ac_cv_prog_CC="${ac_tool_prefix}clang"
12966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12967 break 2
12968 fi
12969 done
12970 done
12971 IFS=$as_save_IFS
12972
12973 fi
12974 fi
12975 CC=$ac_cv_prog_CC
12976 if test -n "$CC"; then
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12978 printf "%s\n" "$CC" >&6; }
12979 else
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 printf "%s\n" "no" >&6; }
12982 fi
12983
12984
12985 fi
12986 if test -z "$ac_cv_prog_CC"; then
12987 ac_ct_CC=$CC
12988 # Extract the first word of "clang", so it can be a program name with args.
12989 set dummy clang; ac_word=$2
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 printf %s "checking for $ac_word... " >&6; }
12992 if test ${ac_cv_prog_ac_ct_CC+y}
12993 then :
12994 printf %s "(cached) " >&6
12995 else $as_nop
12996 if test -n "$ac_ct_CC"; then
12997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12998 else
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13001 do
13002 IFS=$as_save_IFS
13003 case $as_dir in #(((
13004 '') as_dir=./ ;;
13005 */) ;;
13006 *) as_dir=$as_dir/ ;;
13007 esac
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13010 ac_cv_prog_ac_ct_CC="clang"
13011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014 done
13015 done
13016 IFS=$as_save_IFS
13017
13018 fi
13019 fi
13020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13021 if test -n "$ac_ct_CC"; then
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13023 printf "%s\n" "$ac_ct_CC" >&6; }
13024 else
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 printf "%s\n" "no" >&6; }
13027 fi
13028
13029 if test "x$ac_ct_CC" = x; then
13030 CC=""
13031 else
13032 case $cross_compiling:$ac_tool_warned in
13033 yes:)
13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13036 ac_tool_warned=yes ;;
13037 esac
13038 CC=$ac_ct_CC
13039 fi
13040 else
13041 CC="$ac_cv_prog_CC"
13042 fi
13043
13044 fi
13045
13046
13047 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13049 as_fn_error $? "no acceptable C compiler found in \$PATH
13050 See \`config.log' for more details" "$LINENO" 5; }
13051
13052 # Provide some information about the compiler.
13053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13054 set X $ac_compile
13055 ac_compiler=$2
13056 for ac_option in --version -v -V -qversion -version; do
13057 { { ac_try="$ac_compiler $ac_option >&5"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13063 printf "%s\n" "$ac_try_echo"; } >&5
13064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13065 ac_status=$?
13066 if test -s conftest.err; then
13067 sed '10a\
13068 ... rest of stderr output deleted ...
13069 10q' conftest.err >conftest.er1
13070 cat conftest.er1 >&5
13071 fi
13072 rm -f conftest.er1 conftest.err
13073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }
13075 done
13076
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13078 printf %s "checking whether the compiler supports GNU C... " >&6; }
13079 if test ${ac_cv_c_compiler_gnu+y}
13080 then :
13081 printf %s "(cached) " >&6
13082 else $as_nop
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085
13086 int
13087 main (void)
13088 {
13089 #ifndef __GNUC__
13090 choke me
13091 #endif
13092
13093 ;
13094 return 0;
13095 }
13096 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"
13098 then :
13099 ac_compiler_gnu=yes
13100 else $as_nop
13101 ac_compiler_gnu=no
13102 fi
13103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13105
13106 fi
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13108 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111 if test $ac_compiler_gnu = yes; then
13112 GCC=yes
13113 else
13114 GCC=
13115 fi
13116 ac_test_CFLAGS=${CFLAGS+y}
13117 ac_save_CFLAGS=$CFLAGS
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13119 printf %s "checking whether $CC accepts -g... " >&6; }
13120 if test ${ac_cv_prog_cc_g+y}
13121 then :
13122 printf %s "(cached) " >&6
13123 else $as_nop
13124 ac_save_c_werror_flag=$ac_c_werror_flag
13125 ac_c_werror_flag=yes
13126 ac_cv_prog_cc_g=no
13127 CFLAGS="-g"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130
13131 int
13132 main (void)
13133 {
13134
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_compile "$LINENO"
13140 then :
13141 ac_cv_prog_cc_g=yes
13142 else $as_nop
13143 CFLAGS=""
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146
13147 int
13148 main (void)
13149 {
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_compile "$LINENO"
13156 then :
13157
13158 else $as_nop
13159 ac_c_werror_flag=$ac_save_c_werror_flag
13160 CFLAGS="-g"
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163
13164 int
13165 main (void)
13166 {
13167
13168 ;
13169 return 0;
13170 }
13171 _ACEOF
13172 if ac_fn_c_try_compile "$LINENO"
13173 then :
13174 ac_cv_prog_cc_g=yes
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13181 ac_c_werror_flag=$ac_save_c_werror_flag
13182 fi
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13184 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13185 if test $ac_test_CFLAGS; then
13186 CFLAGS=$ac_save_CFLAGS
13187 elif test $ac_cv_prog_cc_g = yes; then
13188 if test "$GCC" = yes; then
13189 CFLAGS="-g -O2"
13190 else
13191 CFLAGS="-g"
13192 fi
13193 else
13194 if test "$GCC" = yes; then
13195 CFLAGS="-O2"
13196 else
13197 CFLAGS=
13198 fi
13199 fi
13200 ac_prog_cc_stdc=no
13201 if test x$ac_prog_cc_stdc = xno
13202 then :
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13204 printf %s "checking for $CC option to enable C11 features... " >&6; }
13205 if test ${ac_cv_prog_cc_c11+y}
13206 then :
13207 printf %s "(cached) " >&6
13208 else $as_nop
13209 ac_cv_prog_cc_c11=no
13210 ac_save_CC=$CC
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 $ac_c_conftest_c11_program
13214 _ACEOF
13215 for ac_arg in '' -std=gnu11
13216 do
13217 CC="$ac_save_CC $ac_arg"
13218 if ac_fn_c_try_compile "$LINENO"
13219 then :
13220 ac_cv_prog_cc_c11=$ac_arg
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext conftest.beam
13223 test "x$ac_cv_prog_cc_c11" != "xno" && break
13224 done
13225 rm -f conftest.$ac_ext
13226 CC=$ac_save_CC
13227 fi
13228
13229 if test "x$ac_cv_prog_cc_c11" = xno
13230 then :
13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13232 printf "%s\n" "unsupported" >&6; }
13233 else $as_nop
13234 if test "x$ac_cv_prog_cc_c11" = x
13235 then :
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13237 printf "%s\n" "none needed" >&6; }
13238 else $as_nop
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13240 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13241 CC="$CC $ac_cv_prog_cc_c11"
13242 fi
13243 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13244 ac_prog_cc_stdc=c11
13245 fi
13246 fi
13247 if test x$ac_prog_cc_stdc = xno
13248 then :
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13250 printf %s "checking for $CC option to enable C99 features... " >&6; }
13251 if test ${ac_cv_prog_cc_c99+y}
13252 then :
13253 printf %s "(cached) " >&6
13254 else $as_nop
13255 ac_cv_prog_cc_c99=no
13256 ac_save_CC=$CC
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 $ac_c_conftest_c99_program
13260 _ACEOF
13261 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13262 do
13263 CC="$ac_save_CC $ac_arg"
13264 if ac_fn_c_try_compile "$LINENO"
13265 then :
13266 ac_cv_prog_cc_c99=$ac_arg
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext conftest.beam
13269 test "x$ac_cv_prog_cc_c99" != "xno" && break
13270 done
13271 rm -f conftest.$ac_ext
13272 CC=$ac_save_CC
13273 fi
13274
13275 if test "x$ac_cv_prog_cc_c99" = xno
13276 then :
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13278 printf "%s\n" "unsupported" >&6; }
13279 else $as_nop
13280 if test "x$ac_cv_prog_cc_c99" = x
13281 then :
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13283 printf "%s\n" "none needed" >&6; }
13284 else $as_nop
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13286 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13287 CC="$CC $ac_cv_prog_cc_c99"
13288 fi
13289 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13290 ac_prog_cc_stdc=c99
13291 fi
13292 fi
13293 if test x$ac_prog_cc_stdc = xno
13294 then :
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13296 printf %s "checking for $CC option to enable C89 features... " >&6; }
13297 if test ${ac_cv_prog_cc_c89+y}
13298 then :
13299 printf %s "(cached) " >&6
13300 else $as_nop
13301 ac_cv_prog_cc_c89=no
13302 ac_save_CC=$CC
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 $ac_c_conftest_c89_program
13306 _ACEOF
13307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13308 do
13309 CC="$ac_save_CC $ac_arg"
13310 if ac_fn_c_try_compile "$LINENO"
13311 then :
13312 ac_cv_prog_cc_c89=$ac_arg
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext conftest.beam
13315 test "x$ac_cv_prog_cc_c89" != "xno" && break
13316 done
13317 rm -f conftest.$ac_ext
13318 CC=$ac_save_CC
13319 fi
13320
13321 if test "x$ac_cv_prog_cc_c89" = xno
13322 then :
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13324 printf "%s\n" "unsupported" >&6; }
13325 else $as_nop
13326 if test "x$ac_cv_prog_cc_c89" = x
13327 then :
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13329 printf "%s\n" "none needed" >&6; }
13330 else $as_nop
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13332 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13333 CC="$CC $ac_cv_prog_cc_c89"
13334 fi
13335 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13336 ac_prog_cc_stdc=c89
13337 fi
13338 fi
13339
13340 ac_ext=c
13341 ac_cpp='$CPP $CPPFLAGS'
13342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345
13346
13347 ac_ext=c
13348 ac_cpp='$CPP $CPPFLAGS'
13349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13353 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13354 if test ${am_cv_prog_cc_c_o+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else $as_nop
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360
13361 int
13362 main (void)
13363 {
13364
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 # Make sure it works both with $CC and with simple cc.
13370 # Following AC_PROG_CC_C_O, we do the test twice because some
13371 # compilers refuse to overwrite an existing .o file with -o,
13372 # though they will create one.
13373 am_cv_prog_cc_c_o=yes
13374 for am_i in 1 2; do
13375 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13376 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } \
13380 && test -f conftest2.$ac_objext; then
13381 : OK
13382 else
13383 am_cv_prog_cc_c_o=no
13384 break
13385 fi
13386 done
13387 rm -f core conftest*
13388 unset am_i
13389 fi
13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13391 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13392 if test "$am_cv_prog_cc_c_o" != yes; then
13393 # Losing compiler, so override with the script.
13394 # FIXME: It is wrong to rewrite CC.
13395 # But if we don't then we get into trouble of one sort or another.
13396 # A longer-term fix would be to have automake use am__CC in this case,
13397 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13398 CC="$am_aux_dir/compile $CC"
13399 fi
13400 ac_ext=c
13401 ac_cpp='$CPP $CPPFLAGS'
13402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13405
13406
13407 depcc="$CC" am_compiler_list=
13408
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13410 printf %s "checking dependency style of $depcc... " >&6; }
13411 if test ${am_cv_CC_dependencies_compiler_type+y}
13412 then :
13413 printf %s "(cached) " >&6
13414 else $as_nop
13415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13416 # We make a subdir and do the tests there. Otherwise we can end up
13417 # making bogus files that we don't know about and never remove. For
13418 # instance it was reported that on HP-UX the gcc test will end up
13419 # making a dummy file named 'D' -- because '-MD' means "put the output
13420 # in D".
13421 rm -rf conftest.dir
13422 mkdir conftest.dir
13423 # Copy depcomp to subdir because otherwise we won't find it if we're
13424 # using a relative directory.
13425 cp "$am_depcomp" conftest.dir
13426 cd conftest.dir
13427 # We will build objects and dependencies in a subdirectory because
13428 # it helps to detect inapplicable dependency modes. For instance
13429 # both Tru64's cc and ICC support -MD to output dependencies as a
13430 # side effect of compilation, but ICC will put the dependencies in
13431 # the current directory while Tru64 will put them in the object
13432 # directory.
13433 mkdir sub
13434
13435 am_cv_CC_dependencies_compiler_type=none
13436 if test "$am_compiler_list" = ""; then
13437 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13438 fi
13439 am__universal=false
13440 case " $depcc " in #(
13441 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13442 esac
13443
13444 for depmode in $am_compiler_list; do
13445 # Setup a source with many dependencies, because some compilers
13446 # like to wrap large dependency lists on column 80 (with \), and
13447 # we should not choose a depcomp mode which is confused by this.
13448 #
13449 # We need to recreate these files for each test, as the compiler may
13450 # overwrite some of them when testing with obscure command lines.
13451 # This happens at least with the AIX C compiler.
13452 : > sub/conftest.c
13453 for i in 1 2 3 4 5 6; do
13454 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13455 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13456 # Solaris 10 /bin/sh.
13457 echo '/* dummy */' > sub/conftst$i.h
13458 done
13459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13460
13461 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13462 # mode. It turns out that the SunPro C++ compiler does not properly
13463 # handle '-M -o', and we need to detect this. Also, some Intel
13464 # versions had trouble with output in subdirs.
13465 am__obj=sub/conftest.${OBJEXT-o}
13466 am__minus_obj="-o $am__obj"
13467 case $depmode in
13468 gcc)
13469 # This depmode causes a compiler race in universal mode.
13470 test "$am__universal" = false || continue
13471 ;;
13472 nosideeffect)
13473 # After this tag, mechanisms are not by side-effect, so they'll
13474 # only be used when explicitly requested.
13475 if test "x$enable_dependency_tracking" = xyes; then
13476 continue
13477 else
13478 break
13479 fi
13480 ;;
13481 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13482 # This compiler won't grok '-c -o', but also, the minuso test has
13483 # not run yet. These depmodes are late enough in the game, and
13484 # so weak that their functioning should not be impacted.
13485 am__obj=conftest.${OBJEXT-o}
13486 am__minus_obj=
13487 ;;
13488 none) break ;;
13489 esac
13490 if depmode=$depmode \
13491 source=sub/conftest.c object=$am__obj \
13492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13493 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13494 >/dev/null 2>conftest.err &&
13495 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13496 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13497 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13498 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13499 # icc doesn't choke on unknown options, it will just issue warnings
13500 # or remarks (even with -Werror). So we grep stderr for any message
13501 # that says an option was ignored or not supported.
13502 # When given -MP, icc 7.0 and 7.1 complain thusly:
13503 # icc: Command line warning: ignoring option '-M'; no argument required
13504 # The diagnosis changed in icc 8.0:
13505 # icc: Command line remark: option '-MP' not supported
13506 if (grep 'ignoring option' conftest.err ||
13507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13508 am_cv_CC_dependencies_compiler_type=$depmode
13509 break
13510 fi
13511 fi
13512 done
13513
13514 cd ..
13515 rm -rf conftest.dir
13516 else
13517 am_cv_CC_dependencies_compiler_type=none
13518 fi
13519
13520 fi
13521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13522 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13523 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13524
13525 if
13526 test "x$enable_dependency_tracking" != xno \
13527 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13528 am__fastdepCC_TRUE=
13529 am__fastdepCC_FALSE='#'
13530 else
13531 am__fastdepCC_TRUE='#'
13532 am__fastdepCC_FALSE=
13533 fi
13534
13535
13536
13537
13538
13539
13540 # allow to override gcov location
13541
13542 # Check whether --with-gcov was given.
13543 if test ${with_gcov+y}
13544 then :
13545 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
13546 else $as_nop
13547 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
13548 fi
13549
13550
13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
13552 printf %s "checking whether to build with code coverage support... " >&6; }
13553 # Check whether --enable-code-coverage was given.
13554 if test ${enable_code_coverage+y}
13555 then :
13556 enableval=$enable_code_coverage;
13557 else $as_nop
13558 enable_code_coverage=no
13559 fi
13560
13561
13562 if test x$enable_code_coverage = xyes; then
13563 CODE_COVERAGE_ENABLED_TRUE=
13564 CODE_COVERAGE_ENABLED_FALSE='#'
13565 else
13566 CODE_COVERAGE_ENABLED_TRUE='#'
13567 CODE_COVERAGE_ENABLED_FALSE=
13568 fi
13569
13570 CODE_COVERAGE_ENABLED=$enable_code_coverage
13571
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
13573 printf "%s\n" "$enable_code_coverage" >&6; }
13574
13575 if test "$enable_code_coverage" = "yes"
13576 then :
13577
13578 # check for gcov
13579 if test -n "$ac_tool_prefix"; then
13580 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
13581 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 printf %s "checking for $ac_word... " >&6; }
13584 if test ${ac_cv_prog_GCOV+y}
13585 then :
13586 printf %s "(cached) " >&6
13587 else $as_nop
13588 if test -n "$GCOV"; then
13589 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
13590 else
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13593 do
13594 IFS=$as_save_IFS
13595 case $as_dir in #(((
13596 '') as_dir=./ ;;
13597 */) ;;
13598 *) as_dir=$as_dir/ ;;
13599 esac
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
13603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13604 break 2
13605 fi
13606 done
13607 done
13608 IFS=$as_save_IFS
13609
13610 fi
13611 fi
13612 GCOV=$ac_cv_prog_GCOV
13613 if test -n "$GCOV"; then
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
13615 printf "%s\n" "$GCOV" >&6; }
13616 else
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 printf "%s\n" "no" >&6; }
13619 fi
13620
13621
13622 fi
13623 if test -z "$ac_cv_prog_GCOV"; then
13624 ac_ct_GCOV=$GCOV
13625 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
13626 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628 printf %s "checking for $ac_word... " >&6; }
13629 if test ${ac_cv_prog_ac_ct_GCOV+y}
13630 then :
13631 printf %s "(cached) " >&6
13632 else $as_nop
13633 if test -n "$ac_ct_GCOV"; then
13634 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13638 do
13639 IFS=$as_save_IFS
13640 case $as_dir in #(((
13641 '') as_dir=./ ;;
13642 */) ;;
13643 *) as_dir=$as_dir/ ;;
13644 esac
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13647 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
13648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651 done
13652 done
13653 IFS=$as_save_IFS
13654
13655 fi
13656 fi
13657 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
13658 if test -n "$ac_ct_GCOV"; then
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
13660 printf "%s\n" "$ac_ct_GCOV" >&6; }
13661 else
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 printf "%s\n" "no" >&6; }
13664 fi
13665
13666 if test "x$ac_ct_GCOV" = x; then
13667 GCOV=":"
13668 else
13669 case $cross_compiling:$ac_tool_warned in
13670 yes:)
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13673 ac_tool_warned=yes ;;
13674 esac
13675 GCOV=$ac_ct_GCOV
13676 fi
13677 else
13678 GCOV="$ac_cv_prog_GCOV"
13679 fi
13680
13681 if test "X$GCOV" = "X:"
13682 then :
13683 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
13684 fi
13685
13686
13687 if test "$GCC" = "no"
13688 then :
13689
13690 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
13691
13692 fi
13693
13694 # Extract the first word of "lcov", so it can be a program name with args.
13695 set dummy lcov; ac_word=$2
13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 printf %s "checking for $ac_word... " >&6; }
13698 if test ${ac_cv_prog_LCOV+y}
13699 then :
13700 printf %s "(cached) " >&6
13701 else $as_nop
13702 if test -n "$LCOV"; then
13703 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708 IFS=$as_save_IFS
13709 case $as_dir in #(((
13710 '') as_dir=./ ;;
13711 */) ;;
13712 *) as_dir=$as_dir/ ;;
13713 esac
13714 for ac_exec_ext in '' $ac_executable_extensions; do
13715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13716 ac_cv_prog_LCOV="lcov"
13717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13718 break 2
13719 fi
13720 done
13721 done
13722 IFS=$as_save_IFS
13723
13724 fi
13725 fi
13726 LCOV=$ac_cv_prog_LCOV
13727 if test -n "$LCOV"; then
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
13729 printf "%s\n" "$LCOV" >&6; }
13730 else
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 printf "%s\n" "no" >&6; }
13733 fi
13734
13735
13736 # Extract the first word of "genhtml", so it can be a program name with args.
13737 set dummy genhtml; ac_word=$2
13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 printf %s "checking for $ac_word... " >&6; }
13740 if test ${ac_cv_prog_GENHTML+y}
13741 then :
13742 printf %s "(cached) " >&6
13743 else $as_nop
13744 if test -n "$GENHTML"; then
13745 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13749 do
13750 IFS=$as_save_IFS
13751 case $as_dir in #(((
13752 '') as_dir=./ ;;
13753 */) ;;
13754 *) as_dir=$as_dir/ ;;
13755 esac
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_GENHTML="genhtml"
13759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762 done
13763 done
13764 IFS=$as_save_IFS
13765
13766 fi
13767 fi
13768 GENHTML=$ac_cv_prog_GENHTML
13769 if test -n "$GENHTML"; then
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
13771 printf "%s\n" "$GENHTML" >&6; }
13772 else
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 printf "%s\n" "no" >&6; }
13775 fi
13776
13777
13778
13779 if test -z "$LCOV"
13780 then :
13781
13782 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
13783
13784 fi
13785
13786 if test -z "$GENHTML"
13787 then :
13788
13789 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
13790
13791 fi
13792
13793 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
13794 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
13795 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
13796 #CODE_COVERAGE_LIBS="-lgcov"
13797 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
13798
13799
13800
13801
13802
13803
13804
13805 CODE_COVERAGE_RULES_CHECK='
13806 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
13807 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
13808 '
13809 CODE_COVERAGE_RULES_CAPTURE='
13810 $(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)
13811 $(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)
13812 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
13813 $(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)
13814 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
13815 '
13816 CODE_COVERAGE_RULES_CLEAN='
13817 clean: code-coverage-clean
13818 distclean: code-coverage-clean
13819 code-coverage-clean:
13820 -$(LCOV) --directory $(top_builddir) -z
13821 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
13822 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
13823 '
13824
13825 else $as_nop
13826
13827 CODE_COVERAGE_RULES_CHECK='
13828 @echo "Need to reconfigure with --enable-code-coverage"
13829 '
13830 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
13831 CODE_COVERAGE_RULES_CLEAN=''
13832
13833 fi
13834
13835 CODE_COVERAGE_RULES='
13836 # Code coverage
13837 #
13838 # Optional:
13839 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
13840 # Multiple directories may be specified, separated by whitespace.
13841 # (Default: $(top_builddir))
13842 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
13843 # by lcov for code coverage. (Default:
13844 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
13845 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
13846 # reports to be created. (Default:
13847 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
13848 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
13849 # set to 0 to disable it and leave empty to stay with the default.
13850 # (Default: empty)
13851 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
13852 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
13853 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
13854 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
13855 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
13856 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
13857 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
13858 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
13859 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
13860 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
13861 # lcov instance. (Default: empty)
13862 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
13863 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
13864 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
13865 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
13866 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
13867 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
13868 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
13869 #
13870 # The generated report will be titled using the $(PACKAGE_NAME) and
13871 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
13872 # use the git-version-gen script, available online.
13873
13874 # Optional variables
13875 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
13876 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
13877 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
13878 CODE_COVERAGE_BRANCH_COVERAGE ?=
13879 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
13880 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
13881 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
13882 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
13883 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
13884 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
13885 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
13886 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
13887 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
13888 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
13889 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
13890 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
13891 CODE_COVERAGE_IGNORE_PATTERN ?=
13892
13893 GITIGNOREFILES ?=
13894 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
13895
13896 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
13897 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
13898 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
13899 $(CODE_COVERAGE_OUTPUT_FILE);
13900 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
13901 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
13902 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
13903 $(CODE_COVERAGE_IGNORE_PATTERN);
13904 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
13905 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
13906 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
13907 code_coverage_quiet = $(code_coverage_quiet_$(V))
13908 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
13909 code_coverage_quiet_0 = --quiet
13910
13911 # sanitizes the test-name: replaces with underscores: dashes and dots
13912 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
13913
13914 # Use recursive makes in order to ignore errors during check
13915 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
13916
13917 # Capture code coverage data
13918 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
13919
13920 # Hook rule executed before code-coverage-capture, overridable by the user
13921 code-coverage-capture-hook:
13922
13923 '"$CODE_COVERAGE_RULES_CLEAN"'
13924
13925 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
13926 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
13927
13928 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
13929 '
13930
13931
13932
13933
13934
13935
13936 # Check whether --with-apache was given.
13937 if test ${with_apache+y}
13938 then :
13939 withval=$with_apache;
13940 fi
13941
13942
13943 # Check whether --with-apxs was given.
13944 if test ${with_apxs+y}
13945 then :
13946 withval=$with_apxs; APXS=$with_apxs
13947
13948 else $as_nop
13949 for ac_prog in apxs2 apxs
13950 do
13951 # Extract the first word of "$ac_prog", so it can be a program name with args.
13952 set dummy $ac_prog; ac_word=$2
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13954 printf %s "checking for $ac_word... " >&6; }
13955 if test ${ac_cv_path_APXS+y}
13956 then :
13957 printf %s "(cached) " >&6
13958 else $as_nop
13959 case $APXS in
13960 [\\/]* | ?:[\\/]*)
13961 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
13962 ;;
13963 *)
13964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13965 for as_dir in $PATH
13966 do
13967 IFS=$as_save_IFS
13968 case $as_dir in #(((
13969 '') as_dir=./ ;;
13970 */) ;;
13971 *) as_dir=$as_dir/ ;;
13972 esac
13973 for ac_exec_ext in '' $ac_executable_extensions; do
13974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13975 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
13976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13977 break 2
13978 fi
13979 done
13980 done
13981 IFS=$as_save_IFS
13982
13983 ;;
13984 esac
13985 fi
13986 APXS=$ac_cv_path_APXS
13987 if test -n "$APXS"; then
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
13989 printf "%s\n" "$APXS" >&6; }
13990 else
13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 printf "%s\n" "no" >&6; }
13993 fi
13994
13995
13996 test -n "$APXS" && break
13997 done
13998
13999 fi
14000
14001 if test "x$with_apache" != "xno"; then
14002
14003
14004
14005
14006
14007
14008
14009 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14010 if test -n "$ac_tool_prefix"; then
14011 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14014 printf %s "checking for $ac_word... " >&6; }
14015 if test ${ac_cv_path_PKG_CONFIG+y}
14016 then :
14017 printf %s "(cached) " >&6
14018 else $as_nop
14019 case $PKG_CONFIG in
14020 [\\/]* | ?:[\\/]*)
14021 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14022 ;;
14023 *)
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14026 do
14027 IFS=$as_save_IFS
14028 case $as_dir in #(((
14029 '') as_dir=./ ;;
14030 */) ;;
14031 *) as_dir=$as_dir/ ;;
14032 esac
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14035 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14037 break 2
14038 fi
14039 done
14040 done
14041 IFS=$as_save_IFS
14042
14043 ;;
14044 esac
14045 fi
14046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14047 if test -n "$PKG_CONFIG"; then
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14049 printf "%s\n" "$PKG_CONFIG" >&6; }
14050 else
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 printf "%s\n" "no" >&6; }
14053 fi
14054
14055
14056 fi
14057 if test -z "$ac_cv_path_PKG_CONFIG"; then
14058 ac_pt_PKG_CONFIG=$PKG_CONFIG
14059 # Extract the first word of "pkg-config", so it can be a program name with args.
14060 set dummy pkg-config; ac_word=$2
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062 printf %s "checking for $ac_word... " >&6; }
14063 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14064 then :
14065 printf %s "(cached) " >&6
14066 else $as_nop
14067 case $ac_pt_PKG_CONFIG in
14068 [\\/]* | ?:[\\/]*)
14069 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14070 ;;
14071 *)
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14074 do
14075 IFS=$as_save_IFS
14076 case $as_dir in #(((
14077 '') as_dir=./ ;;
14078 */) ;;
14079 *) as_dir=$as_dir/ ;;
14080 esac
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14083 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14085 break 2
14086 fi
14087 done
14088 done
14089 IFS=$as_save_IFS
14090
14091 ;;
14092 esac
14093 fi
14094 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14095 if test -n "$ac_pt_PKG_CONFIG"; then
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14097 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14098 else
14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100 printf "%s\n" "no" >&6; }
14101 fi
14102
14103 if test "x$ac_pt_PKG_CONFIG" = x; then
14104 PKG_CONFIG=""
14105 else
14106 case $cross_compiling:$ac_tool_warned in
14107 yes:)
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14110 ac_tool_warned=yes ;;
14111 esac
14112 PKG_CONFIG=$ac_pt_PKG_CONFIG
14113 fi
14114 else
14115 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14116 fi
14117
14118 fi
14119 if test -n "$PKG_CONFIG"; then
14120 _pkg_min_version=0.9.0
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14122 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14123 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14125 printf "%s\n" "yes" >&6; }
14126 else
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 printf "%s\n" "no" >&6; }
14129 PKG_CONFIG=""
14130 fi
14131 fi
14132
14133 pkg_failed=no
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for apr-1, apr-util-1" >&5
14135 printf %s "checking for apr-1, apr-util-1... " >&6; }
14136
14137 if test -n "$APR_CFLAGS"; then
14138 pkg_cv_APR_CFLAGS="$APR_CFLAGS"
14139 elif test -n "$PKG_CONFIG"; then
14140 if test -n "$PKG_CONFIG" && \
14141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-1, apr-util-1\""; } >&5
14142 ($PKG_CONFIG --exists --print-errors "apr-1, apr-util-1") 2>&5
14143 ac_status=$?
14144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; }; then
14146 pkg_cv_APR_CFLAGS=`$PKG_CONFIG --cflags "apr-1, apr-util-1" 2>/dev/null`
14147 test "x$?" != "x0" && pkg_failed=yes
14148 else
14149 pkg_failed=yes
14150 fi
14151 else
14152 pkg_failed=untried
14153 fi
14154 if test -n "$APR_LIBS"; then
14155 pkg_cv_APR_LIBS="$APR_LIBS"
14156 elif test -n "$PKG_CONFIG"; then
14157 if test -n "$PKG_CONFIG" && \
14158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-1, apr-util-1\""; } >&5
14159 ($PKG_CONFIG --exists --print-errors "apr-1, apr-util-1") 2>&5
14160 ac_status=$?
14161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; then
14163 pkg_cv_APR_LIBS=`$PKG_CONFIG --libs "apr-1, apr-util-1" 2>/dev/null`
14164 test "x$?" != "x0" && pkg_failed=yes
14165 else
14166 pkg_failed=yes
14167 fi
14168 else
14169 pkg_failed=untried
14170 fi
14171
14172
14173
14174 if test $pkg_failed = yes; then
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 printf "%s\n" "no" >&6; }
14177
14178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14179 _pkg_short_errors_supported=yes
14180 else
14181 _pkg_short_errors_supported=no
14182 fi
14183 if test $_pkg_short_errors_supported = yes; then
14184 APR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "apr-1, apr-util-1" 2>&1`
14185 else
14186 APR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "apr-1, apr-util-1" 2>&1`
14187 fi
14188 # Put the nasty error message in config.log where it belongs
14189 echo "$APR_PKG_ERRORS" >&5
14190
14191 have_apache="no"
14192 elif test $pkg_failed = untried; then
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 printf "%s\n" "no" >&6; }
14195 have_apache="no"
14196 else
14197 APR_CFLAGS=$pkg_cv_APR_CFLAGS
14198 APR_LIBS=$pkg_cv_APR_LIBS
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14200 printf "%s\n" "yes" >&6; }
14201 have_apache="yes"
14202 fi
14203
14204 if test "x${APXS}" != "x" -a -x "${APXS}"
14205 then :
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs found at $APXS" >&5
14207 printf "%s\n" "$as_me: apxs found at $APXS" >&6;}
14208 else $as_nop
14209 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14210 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14211 as_fn_error $? "\"apxs not found. Use --with-apxs\"
14212 See \`config.log' for more details" "$LINENO" 5; }
14213 fi
14214
14215 APACHE_CFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CPPFLAGS` -I`${APXS} -q INCLUDEDIR` ${APR_CFLAGS}"
14216 fi
14217 if test x"$have_apache" = "xyes"; then
14218 HAVE_APACHE_TRUE=
14219 HAVE_APACHE_FALSE='#'
14220 else
14221 HAVE_APACHE_TRUE='#'
14222 HAVE_APACHE_FALSE=
14223 fi
14224
14225
14226
14227
14228
14229
14230 pkg_failed=no
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liboauth2 >= 1.6.0" >&5
14232 printf %s "checking for liboauth2 >= 1.6.0... " >&6; }
14233
14234 if test -n "$OAUTH2_CFLAGS"; then
14235 pkg_cv_OAUTH2_CFLAGS="$OAUTH2_CFLAGS"
14236 elif test -n "$PKG_CONFIG"; then
14237 if test -n "$PKG_CONFIG" && \
14238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liboauth2 >= 1.6.0\""; } >&5
14239 ($PKG_CONFIG --exists --print-errors "liboauth2 >= 1.6.0") 2>&5
14240 ac_status=$?
14241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242 test $ac_status = 0; }; then
14243 pkg_cv_OAUTH2_CFLAGS=`$PKG_CONFIG --cflags "liboauth2 >= 1.6.0" 2>/dev/null`
14244 test "x$?" != "x0" && pkg_failed=yes
14245 else
14246 pkg_failed=yes
14247 fi
14248 else
14249 pkg_failed=untried
14250 fi
14251 if test -n "$OAUTH2_LIBS"; then
14252 pkg_cv_OAUTH2_LIBS="$OAUTH2_LIBS"
14253 elif test -n "$PKG_CONFIG"; then
14254 if test -n "$PKG_CONFIG" && \
14255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liboauth2 >= 1.6.0\""; } >&5
14256 ($PKG_CONFIG --exists --print-errors "liboauth2 >= 1.6.0") 2>&5
14257 ac_status=$?
14258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14259 test $ac_status = 0; }; then
14260 pkg_cv_OAUTH2_LIBS=`$PKG_CONFIG --libs "liboauth2 >= 1.6.0" 2>/dev/null`
14261 test "x$?" != "x0" && pkg_failed=yes
14262 else
14263 pkg_failed=yes
14264 fi
14265 else
14266 pkg_failed=untried
14267 fi
14268
14269
14270
14271 if test $pkg_failed = yes; then
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 printf "%s\n" "no" >&6; }
14274
14275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14276 _pkg_short_errors_supported=yes
14277 else
14278 _pkg_short_errors_supported=no
14279 fi
14280 if test $_pkg_short_errors_supported = yes; then
14281 OAUTH2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liboauth2 >= 1.6.0" 2>&1`
14282 else
14283 OAUTH2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liboauth2 >= 1.6.0" 2>&1`
14284 fi
14285 # Put the nasty error message in config.log where it belongs
14286 echo "$OAUTH2_PKG_ERRORS" >&5
14287
14288 as_fn_error $? "Package requirements (liboauth2 >= 1.6.0) were not met:
14289
14290 $OAUTH2_PKG_ERRORS
14291
14292 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14293 installed software in a non-standard prefix.
14294
14295 Alternatively, you may set the environment variables OAUTH2_CFLAGS
14296 and OAUTH2_LIBS to avoid the need to call pkg-config.
14297 See the pkg-config man page for more details." "$LINENO" 5
14298 elif test $pkg_failed = untried; then
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 printf "%s\n" "no" >&6; }
14301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14302 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14303 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14304 is in your PATH or set the PKG_CONFIG environment variable to the full
14305 path to pkg-config.
14306
14307 Alternatively, you may set the environment variables OAUTH2_CFLAGS
14308 and OAUTH2_LIBS to avoid the need to call pkg-config.
14309 See the pkg-config man page for more details.
14310
14311 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14312 See \`config.log' for more details" "$LINENO" 5; }
14313 else
14314 OAUTH2_CFLAGS=$pkg_cv_OAUTH2_CFLAGS
14315 OAUTH2_LIBS=$pkg_cv_OAUTH2_LIBS
14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14317 printf "%s\n" "yes" >&6; }
14318
14319 fi
14320
14321
14322
14323
14324 pkg_failed=no
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liboauth2_apache >= 1.6.0" >&5
14326 printf %s "checking for liboauth2_apache >= 1.6.0... " >&6; }
14327
14328 if test -n "$OAUTH2_APACHE_CFLAGS"; then
14329 pkg_cv_OAUTH2_APACHE_CFLAGS="$OAUTH2_APACHE_CFLAGS"
14330 elif test -n "$PKG_CONFIG"; then
14331 if test -n "$PKG_CONFIG" && \
14332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liboauth2_apache >= 1.6.0\""; } >&5
14333 ($PKG_CONFIG --exists --print-errors "liboauth2_apache >= 1.6.0") 2>&5
14334 ac_status=$?
14335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14336 test $ac_status = 0; }; then
14337 pkg_cv_OAUTH2_APACHE_CFLAGS=`$PKG_CONFIG --cflags "liboauth2_apache >= 1.6.0" 2>/dev/null`
14338 test "x$?" != "x0" && pkg_failed=yes
14339 else
14340 pkg_failed=yes
14341 fi
14342 else
14343 pkg_failed=untried
14344 fi
14345 if test -n "$OAUTH2_APACHE_LIBS"; then
14346 pkg_cv_OAUTH2_APACHE_LIBS="$OAUTH2_APACHE_LIBS"
14347 elif test -n "$PKG_CONFIG"; then
14348 if test -n "$PKG_CONFIG" && \
14349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liboauth2_apache >= 1.6.0\""; } >&5
14350 ($PKG_CONFIG --exists --print-errors "liboauth2_apache >= 1.6.0") 2>&5
14351 ac_status=$?
14352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353 test $ac_status = 0; }; then
14354 pkg_cv_OAUTH2_APACHE_LIBS=`$PKG_CONFIG --libs "liboauth2_apache >= 1.6.0" 2>/dev/null`
14355 test "x$?" != "x0" && pkg_failed=yes
14356 else
14357 pkg_failed=yes
14358 fi
14359 else
14360 pkg_failed=untried
14361 fi
14362
14363
14364
14365 if test $pkg_failed = yes; then
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 printf "%s\n" "no" >&6; }
14368
14369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14370 _pkg_short_errors_supported=yes
14371 else
14372 _pkg_short_errors_supported=no
14373 fi
14374 if test $_pkg_short_errors_supported = yes; then
14375 OAUTH2_APACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liboauth2_apache >= 1.6.0" 2>&1`
14376 else
14377 OAUTH2_APACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liboauth2_apache >= 1.6.0" 2>&1`
14378 fi
14379 # Put the nasty error message in config.log where it belongs
14380 echo "$OAUTH2_APACHE_PKG_ERRORS" >&5
14381
14382 as_fn_error $? "Package requirements (liboauth2_apache >= 1.6.0) were not met:
14383
14384 $OAUTH2_APACHE_PKG_ERRORS
14385
14386 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14387 installed software in a non-standard prefix.
14388
14389 Alternatively, you may set the environment variables OAUTH2_APACHE_CFLAGS
14390 and OAUTH2_APACHE_LIBS to avoid the need to call pkg-config.
14391 See the pkg-config man page for more details." "$LINENO" 5
14392 elif test $pkg_failed = untried; then
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 printf "%s\n" "no" >&6; }
14395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14397 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14398 is in your PATH or set the PKG_CONFIG environment variable to the full
14399 path to pkg-config.
14400
14401 Alternatively, you may set the environment variables OAUTH2_APACHE_CFLAGS
14402 and OAUTH2_APACHE_LIBS to avoid the need to call pkg-config.
14403 See the pkg-config man page for more details.
14404
14405 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14406 See \`config.log' for more details" "$LINENO" 5; }
14407 else
14408 OAUTH2_APACHE_CFLAGS=$pkg_cv_OAUTH2_APACHE_CFLAGS
14409 OAUTH2_APACHE_LIBS=$pkg_cv_OAUTH2_APACHE_LIBS
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14411 printf "%s\n" "yes" >&6; }
14412
14413 fi
14414
14415
14416
14417
14418 pkg_failed=no
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.4" >&5
14420 printf %s "checking for libxml-2.0 >= 2.4... " >&6; }
14421
14422 if test -n "$XML_CFLAGS"; then
14423 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
14424 elif test -n "$PKG_CONFIG"; then
14425 if test -n "$PKG_CONFIG" && \
14426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.4\""; } >&5
14427 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.4") 2>&5
14428 ac_status=$?
14429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; }; then
14431 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.4" 2>/dev/null`
14432 test "x$?" != "x0" && pkg_failed=yes
14433 else
14434 pkg_failed=yes
14435 fi
14436 else
14437 pkg_failed=untried
14438 fi
14439 if test -n "$XML_LIBS"; then
14440 pkg_cv_XML_LIBS="$XML_LIBS"
14441 elif test -n "$PKG_CONFIG"; then
14442 if test -n "$PKG_CONFIG" && \
14443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.4\""; } >&5
14444 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.4") 2>&5
14445 ac_status=$?
14446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14447 test $ac_status = 0; }; then
14448 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.4" 2>/dev/null`
14449 test "x$?" != "x0" && pkg_failed=yes
14450 else
14451 pkg_failed=yes
14452 fi
14453 else
14454 pkg_failed=untried
14455 fi
14456
14457
14458
14459 if test $pkg_failed = yes; then
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 printf "%s\n" "no" >&6; }
14462
14463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14464 _pkg_short_errors_supported=yes
14465 else
14466 _pkg_short_errors_supported=no
14467 fi
14468 if test $_pkg_short_errors_supported = yes; then
14469 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.4" 2>&1`
14470 else
14471 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.4" 2>&1`
14472 fi
14473 # Put the nasty error message in config.log where it belongs
14474 echo "$XML_PKG_ERRORS" >&5
14475
14476 as_fn_error $? "Package requirements (libxml-2.0 >= 2.4) were not met:
14477
14478 $XML_PKG_ERRORS
14479
14480 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14481 installed software in a non-standard prefix.
14482
14483 Alternatively, you may set the environment variables XML_CFLAGS
14484 and XML_LIBS to avoid the need to call pkg-config.
14485 See the pkg-config man page for more details." "$LINENO" 5
14486 elif test $pkg_failed = untried; then
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 printf "%s\n" "no" >&6; }
14489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14490 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14491 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14492 is in your PATH or set the PKG_CONFIG environment variable to the full
14493 path to pkg-config.
14494
14495 Alternatively, you may set the environment variables XML_CFLAGS
14496 and XML_LIBS to avoid the need to call pkg-config.
14497 See the pkg-config man page for more details.
14498
14499 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14500 See \`config.log' for more details" "$LINENO" 5; }
14501 else
14502 XML_CFLAGS=$pkg_cv_XML_CFLAGS
14503 XML_LIBS=$pkg_cv_XML_LIBS
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14505 printf "%s\n" "yes" >&6; }
14506
14507 fi
14508
14509
14510
14511 # Create Makefile from Makefile.in
14512 ac_config_files="$ac_config_files Makefile"
14513
14514 cat >confcache <<\_ACEOF
14515 # This file is a shell script that caches the results of configure
14516 # tests run on this system so they can be shared between configure
14517 # scripts and configure runs, see configure's option --config-cache.
14518 # It is not useful on other systems. If it contains results you don't
14519 # want to keep, you may remove or edit it.
14520 #
14521 # config.status only pays attention to the cache file if you give it
14522 # the --recheck option to rerun configure.
14523 #
14524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14526 # following values.
14527
14528 _ACEOF
14529
14530 # The following way of writing the cache mishandles newlines in values,
14531 # but we know of no workaround that is simple, portable, and efficient.
14532 # So, we kill variables containing newlines.
14533 # Ultrix sh set writes to stderr and can't be redirected directly,
14534 # and sets the high bit in the cache file unless we assign to the vars.
14535 (
14536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14537 eval ac_val=\$$ac_var
14538 case $ac_val in #(
14539 *${as_nl}*)
14540 case $ac_var in #(
14541 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14542 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14543 esac
14544 case $ac_var in #(
14545 _ | IFS | as_nl) ;; #(
14546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14547 *) { eval $ac_var=; unset $ac_var;} ;;
14548 esac ;;
14549 esac
14550 done
14551
14552 (set) 2>&1 |
14553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14554 *${as_nl}ac_space=\ *)
14555 # `set' does not quote correctly, so add quotes: double-quote
14556 # substitution turns \\\\ into \\, and sed turns \\ into \.
14557 sed -n \
14558 "s/'/'\\\\''/g;
14559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14560 ;; #(
14561 *)
14562 # `set' quotes correctly as required by POSIX, so do not add quotes.
14563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14564 ;;
14565 esac |
14566 sort
14567 ) |
14568 sed '
14569 /^ac_cv_env_/b end
14570 t clear
14571 :clear
14572 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14573 t end
14574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14575 :end' >>confcache
14576 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14577 if test -w "$cache_file"; then
14578 if test "x$cache_file" != "x/dev/null"; then
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14580 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14581 if test ! -f "$cache_file" || test -h "$cache_file"; then
14582 cat confcache >"$cache_file"
14583 else
14584 case $cache_file in #(
14585 */* | ?:*)
14586 mv -f confcache "$cache_file"$$ &&
14587 mv -f "$cache_file"$$ "$cache_file" ;; #(
14588 *)
14589 mv -f confcache "$cache_file" ;;
14590 esac
14591 fi
14592 fi
14593 else
14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14595 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14596 fi
14597 fi
14598 rm -f confcache
14599
14600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14601 # Let make expand exec_prefix.
14602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14603
14604 # Transform confdefs.h into DEFS.
14605 # Protect against shell expansion while executing Makefile rules.
14606 # Protect against Makefile macro expansion.
14607 #
14608 # If the first sed substitution is executed (which looks for macros that
14609 # take arguments), then branch to the quote section. Otherwise,
14610 # look for a macro that doesn't take arguments.
14611 ac_script='
14612 :mline
14613 /\\$/{
14614 N
14615 s,\\\n,,
14616 b mline
14617 }
14618 t clear
14619 :clear
14620 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14621 t quote
14622 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14623 t quote
14624 b any
14625 :quote
14626 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14627 s/\[/\\&/g
14628 s/\]/\\&/g
14629 s/\$/$$/g
14630 H
14631 :any
14632 ${
14633 g
14634 s/^\n//
14635 s/\n/ /g
14636 p
14637 }
14638 '
14639 DEFS=`sed -n "$ac_script" confdefs.h`
14640
14641
14642 ac_libobjs=
14643 ac_ltlibobjs=
14644 U=
14645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14646 # 1. Remove the extension, and $U if already installed.
14647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14648 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14650 # will be set to the directory where LIBOBJS objects are built.
14651 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14652 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14653 done
14654 LIBOBJS=$ac_libobjs
14655
14656 LTLIBOBJS=$ac_ltlibobjs
14657
14658
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14660 printf %s "checking that generated files are newer than configure... " >&6; }
14661 if test -n "$am_sleep_pid"; then
14662 # Hide warnings about reused PIDs.
14663 wait $am_sleep_pid 2>/dev/null
14664 fi
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14666 printf "%s\n" "done" >&6; }
14667 if test -n "$EXEEXT"; then
14668 am__EXEEXT_TRUE=
14669 am__EXEEXT_FALSE='#'
14670 else
14671 am__EXEEXT_TRUE='#'
14672 am__EXEEXT_FALSE=
14673 fi
14674
14675 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14676 as_fn_error $? "conditional \"AMDEP\" was never defined.
14677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14678 fi
14679 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14680 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682 fi
14683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14686 fi
14687 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14688 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690 fi
14691 if test -z "${HAVE_APACHE_TRUE}" && test -z "${HAVE_APACHE_FALSE}"; then
14692 as_fn_error $? "conditional \"HAVE_APACHE\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694 fi
14695
14696 : "${CONFIG_STATUS=./config.status}"
14697 ac_write_fail=0
14698 ac_clean_files_save=$ac_clean_files
14699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14701 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14702 as_write_fail=0
14703 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14704 #! $SHELL
14705 # Generated by $as_me.
14706 # Run this file to recreate the current configuration.
14707 # Compiler output produced by configure, useful for debugging
14708 # configure, is in config.log if it exists.
14709
14710 debug=false
14711 ac_cs_recheck=false
14712 ac_cs_silent=false
14713
14714 SHELL=\${CONFIG_SHELL-$SHELL}
14715 export SHELL
14716 _ASEOF
14717 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14718 ## -------------------- ##
14719 ## M4sh Initialization. ##
14720 ## -------------------- ##
14721
14722 # Be more Bourne compatible
14723 DUALCASE=1; export DUALCASE # for MKS sh
14724 as_nop=:
14725 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14726 then :
14727 emulate sh
14728 NULLCMD=:
14729 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14730 # is contrary to our usage. Disable this feature.
14731 alias -g '${1+"$@"}'='"$@"'
14732 setopt NO_GLOB_SUBST
14733 else $as_nop
14734 case `(set -o) 2>/dev/null` in #(
14735 *posix*) :
14736 set -o posix ;; #(
14737 *) :
14738 ;;
14739 esac
14740 fi
14741
14742
14743
14744 # Reset variables that may have inherited troublesome values from
14745 # the environment.
14746
14747 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14748 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14749 # side effect of setting IFS to empty, thus disabling word splitting.)
14750 # Quoting is to prevent editors from complaining about space-tab.
14751 as_nl='
14752 '
14753 export as_nl
14754 IFS=" "" $as_nl"
14755
14756 PS1='$ '
14757 PS2='> '
14758 PS4='+ '
14759
14760 # Ensure predictable behavior from utilities with locale-dependent output.
14761 LC_ALL=C
14762 export LC_ALL
14763 LANGUAGE=C
14764 export LANGUAGE
14765
14766 # We cannot yet rely on "unset" to work, but we need these variables
14767 # to be unset--not just set to an empty or harmless value--now, to
14768 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14769 # also avoids known problems related to "unset" and subshell syntax
14770 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14771 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14772 do eval test \${$as_var+y} \
14773 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14774 done
14775
14776 # Ensure that fds 0, 1, and 2 are open.
14777 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14778 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14779 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14780
14781 # The user is always right.
14782 if ${PATH_SEPARATOR+false} :; then
14783 PATH_SEPARATOR=:
14784 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14785 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14786 PATH_SEPARATOR=';'
14787 }
14788 fi
14789
14790
14791 # Find who we are. Look in the path if we contain no directory separator.
14792 as_myself=
14793 case $0 in #((
14794 *[\\/]* ) as_myself=$0 ;;
14795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14797 do
14798 IFS=$as_save_IFS
14799 case $as_dir in #(((
14800 '') as_dir=./ ;;
14801 */) ;;
14802 *) as_dir=$as_dir/ ;;
14803 esac
14804 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14805 done
14806 IFS=$as_save_IFS
14807
14808 ;;
14809 esac
14810 # We did not find ourselves, most probably we were run as `sh COMMAND'
14811 # in which case we are not to be found in the path.
14812 if test "x$as_myself" = x; then
14813 as_myself=$0
14814 fi
14815 if test ! -f "$as_myself"; then
14816 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14817 exit 1
14818 fi
14819
14820
14821
14822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14823 # ----------------------------------------
14824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14826 # script with STATUS, using 1 if that was 0.
14827 as_fn_error ()
14828 {
14829 as_status=$1; test $as_status -eq 0 && as_status=1
14830 if test "$4"; then
14831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14833 fi
14834 printf "%s\n" "$as_me: error: $2" >&2
14835 as_fn_exit $as_status
14836 } # as_fn_error
14837
14838
14839
14840 # as_fn_set_status STATUS
14841 # -----------------------
14842 # Set $? to STATUS, without forking.
14843 as_fn_set_status ()
14844 {
14845 return $1
14846 } # as_fn_set_status
14847
14848 # as_fn_exit STATUS
14849 # -----------------
14850 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14851 as_fn_exit ()
14852 {
14853 set +e
14854 as_fn_set_status $1
14855 exit $1
14856 } # as_fn_exit
14857
14858 # as_fn_unset VAR
14859 # ---------------
14860 # Portably unset VAR.
14861 as_fn_unset ()
14862 {
14863 { eval $1=; unset $1;}
14864 }
14865 as_unset=as_fn_unset
14866
14867 # as_fn_append VAR VALUE
14868 # ----------------------
14869 # Append the text in VALUE to the end of the definition contained in VAR. Take
14870 # advantage of any shell optimizations that allow amortized linear growth over
14871 # repeated appends, instead of the typical quadratic growth present in naive
14872 # implementations.
14873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14874 then :
14875 eval 'as_fn_append ()
14876 {
14877 eval $1+=\$2
14878 }'
14879 else $as_nop
14880 as_fn_append ()
14881 {
14882 eval $1=\$$1\$2
14883 }
14884 fi # as_fn_append
14885
14886 # as_fn_arith ARG...
14887 # ------------------
14888 # Perform arithmetic evaluation on the ARGs, and store the result in the
14889 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14890 # must be portable across $(()) and expr.
14891 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14892 then :
14893 eval 'as_fn_arith ()
14894 {
14895 as_val=$(( $* ))
14896 }'
14897 else $as_nop
14898 as_fn_arith ()
14899 {
14900 as_val=`expr "$@" || test $? -eq 1`
14901 }
14902 fi # as_fn_arith
14903
14904
14905 if expr a : '\(a\)' >/dev/null 2>&1 &&
14906 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14907 as_expr=expr
14908 else
14909 as_expr=false
14910 fi
14911
14912 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14913 as_basename=basename
14914 else
14915 as_basename=false
14916 fi
14917
14918 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14919 as_dirname=dirname
14920 else
14921 as_dirname=false
14922 fi
14923
14924 as_me=`$as_basename -- "$0" ||
14925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14926 X"$0" : 'X\(//\)$' \| \
14927 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14928 printf "%s\n" X/"$0" |
14929 sed '/^.*\/\([^/][^/]*\)\/*$/{
14930 s//\1/
14931 q
14932 }
14933 /^X\/\(\/\/\)$/{
14934 s//\1/
14935 q
14936 }
14937 /^X\/\(\/\).*/{
14938 s//\1/
14939 q
14940 }
14941 s/.*/./; q'`
14942
14943 # Avoid depending upon Character Ranges.
14944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14947 as_cr_digits='0123456789'
14948 as_cr_alnum=$as_cr_Letters$as_cr_digits
14949
14950
14951 # Determine whether it's possible to make 'echo' print without a newline.
14952 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14953 # for compatibility with existing Makefiles.
14954 ECHO_C= ECHO_N= ECHO_T=
14955 case `echo -n x` in #(((((
14956 -n*)
14957 case `echo 'xy\c'` in
14958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14959 xy) ECHO_C='\c';;
14960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14961 ECHO_T=' ';;
14962 esac;;
14963 *)
14964 ECHO_N='-n';;
14965 esac
14966
14967 # For backward compatibility with old third-party macros, we provide
14968 # the shell variables $as_echo and $as_echo_n. New code should use
14969 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14970 as_echo='printf %s\n'
14971 as_echo_n='printf %s'
14972
14973 rm -f conf$$ conf$$.exe conf$$.file
14974 if test -d conf$$.dir; then
14975 rm -f conf$$.dir/conf$$.file
14976 else
14977 rm -f conf$$.dir
14978 mkdir conf$$.dir 2>/dev/null
14979 fi
14980 if (echo >conf$$.file) 2>/dev/null; then
14981 if ln -s conf$$.file conf$$ 2>/dev/null; then
14982 as_ln_s='ln -s'
14983 # ... but there are two gotchas:
14984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14986 # In both cases, we have to default to `cp -pR'.
14987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14988 as_ln_s='cp -pR'
14989 elif ln conf$$.file conf$$ 2>/dev/null; then
14990 as_ln_s=ln
14991 else
14992 as_ln_s='cp -pR'
14993 fi
14994 else
14995 as_ln_s='cp -pR'
14996 fi
14997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14998 rmdir conf$$.dir 2>/dev/null
14999
15000
15001 # as_fn_mkdir_p
15002 # -------------
15003 # Create "$as_dir" as a directory, including parents if necessary.
15004 as_fn_mkdir_p ()
15005 {
15006
15007 case $as_dir in #(
15008 -*) as_dir=./$as_dir;;
15009 esac
15010 test -d "$as_dir" || eval $as_mkdir_p || {
15011 as_dirs=
15012 while :; do
15013 case $as_dir in #(
15014 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15015 *) as_qdir=$as_dir;;
15016 esac
15017 as_dirs="'$as_qdir' $as_dirs"
15018 as_dir=`$as_dirname -- "$as_dir" ||
15019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15020 X"$as_dir" : 'X\(//\)[^/]' \| \
15021 X"$as_dir" : 'X\(//\)$' \| \
15022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15023 printf "%s\n" X"$as_dir" |
15024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\(\/\/\)[^/].*/{
15029 s//\1/
15030 q
15031 }
15032 /^X\(\/\/\)$/{
15033 s//\1/
15034 q
15035 }
15036 /^X\(\/\).*/{
15037 s//\1/
15038 q
15039 }
15040 s/.*/./; q'`
15041 test -d "$as_dir" && break
15042 done
15043 test -z "$as_dirs" || eval "mkdir $as_dirs"
15044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15045
15046
15047 } # as_fn_mkdir_p
15048 if mkdir -p . 2>/dev/null; then
15049 as_mkdir_p='mkdir -p "$as_dir"'
15050 else
15051 test -d ./-p && rmdir ./-p
15052 as_mkdir_p=false
15053 fi
15054
15055
15056 # as_fn_executable_p FILE
15057 # -----------------------
15058 # Test if FILE is an executable regular file.
15059 as_fn_executable_p ()
15060 {
15061 test -f "$1" && test -x "$1"
15062 } # as_fn_executable_p
15063 as_test_x='test -x'
15064 as_executable_p=as_fn_executable_p
15065
15066 # Sed expression to map a string onto a valid CPP name.
15067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15068
15069 # Sed expression to map a string onto a valid variable name.
15070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15071
15072
15073 exec 6>&1
15074 ## ----------------------------------- ##
15075 ## Main body of $CONFIG_STATUS script. ##
15076 ## ----------------------------------- ##
15077 _ASEOF
15078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15079
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 # Save the log message, to keep $0 and so on meaningful, and to
15082 # report actual input values of CONFIG_FILES etc. instead of their
15083 # values after options handling.
15084 ac_log="
15085 This file was extended by mod_sts $as_me 3.4.0, which was
15086 generated by GNU Autoconf 2.71. Invocation command line was
15087
15088 CONFIG_FILES = $CONFIG_FILES
15089 CONFIG_HEADERS = $CONFIG_HEADERS
15090 CONFIG_LINKS = $CONFIG_LINKS
15091 CONFIG_COMMANDS = $CONFIG_COMMANDS
15092 $ $0 $@
15093
15094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15095 "
15096
15097 _ACEOF
15098
15099 case $ac_config_files in *"
15100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15101 esac
15102
15103
15104
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106 # Files that config.status was made for.
15107 config_files="$ac_config_files"
15108 config_commands="$ac_config_commands"
15109
15110 _ACEOF
15111
15112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15113 ac_cs_usage="\
15114 \`$as_me' instantiates files and other configuration actions
15115 from templates according to the current configuration. Unless the files
15116 and actions are specified as TAGs, all are instantiated by default.
15117
15118 Usage: $0 [OPTION]... [TAG]...
15119
15120 -h, --help print this help, then exit
15121 -V, --version print version number and configuration settings, then exit
15122 --config print configuration, then exit
15123 -q, --quiet, --silent
15124 do not print progress messages
15125 -d, --debug don't remove temporary files
15126 --recheck update $as_me by reconfiguring in the same conditions
15127 --file=FILE[:TEMPLATE]
15128 instantiate the configuration file FILE
15129
15130 Configuration files:
15131 $config_files
15132
15133 Configuration commands:
15134 $config_commands
15135
15136 Report bugs to <[email protected]>."
15137
15138 _ACEOF
15139 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15140 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15142 ac_cs_config='$ac_cs_config_escaped'
15143 ac_cs_version="\\
15144 mod_sts config.status 3.4.0
15145 configured by $0, generated by GNU Autoconf 2.71,
15146 with options \\"\$ac_cs_config\\"
15147
15148 Copyright (C) 2021 Free Software Foundation, Inc.
15149 This config.status script is free software; the Free Software Foundation
15150 gives unlimited permission to copy, distribute and modify it."
15151
15152 ac_pwd='$ac_pwd'
15153 srcdir='$srcdir'
15154 INSTALL='$INSTALL'
15155 MKDIR_P='$MKDIR_P'
15156 AWK='$AWK'
15157 test -n "\$AWK" || AWK=awk
15158 _ACEOF
15159
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 # The default lists apply if the user does not specify any file.
15162 ac_need_defaults=:
15163 while test $# != 0
15164 do
15165 case $1 in
15166 --*=?*)
15167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15169 ac_shift=:
15170 ;;
15171 --*=)
15172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15173 ac_optarg=
15174 ac_shift=:
15175 ;;
15176 *)
15177 ac_option=$1
15178 ac_optarg=$2
15179 ac_shift=shift
15180 ;;
15181 esac
15182
15183 case $ac_option in
15184 # Handling of the options.
15185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15186 ac_cs_recheck=: ;;
15187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15188 printf "%s\n" "$ac_cs_version"; exit ;;
15189 --config | --confi | --conf | --con | --co | --c )
15190 printf "%s\n" "$ac_cs_config"; exit ;;
15191 --debug | --debu | --deb | --de | --d | -d )
15192 debug=: ;;
15193 --file | --fil | --fi | --f )
15194 $ac_shift
15195 case $ac_optarg in
15196 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15197 '') as_fn_error $? "missing file argument" ;;
15198 esac
15199 as_fn_append CONFIG_FILES " '$ac_optarg'"
15200 ac_need_defaults=false;;
15201 --he | --h | --help | --hel | -h )
15202 printf "%s\n" "$ac_cs_usage"; exit ;;
15203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15205 ac_cs_silent=: ;;
15206
15207 # This is an error.
15208 -*) as_fn_error $? "unrecognized option: \`$1'
15209 Try \`$0 --help' for more information." ;;
15210
15211 *) as_fn_append ac_config_targets " $1"
15212 ac_need_defaults=false ;;
15213
15214 esac
15215 shift
15216 done
15217
15218 ac_configure_extra_args=
15219
15220 if $ac_cs_silent; then
15221 exec 6>/dev/null
15222 ac_configure_extra_args="$ac_configure_extra_args --silent"
15223 fi
15224
15225 _ACEOF
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 if \$ac_cs_recheck; then
15228 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15229 shift
15230 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15231 CONFIG_SHELL='$SHELL'
15232 export CONFIG_SHELL
15233 exec "\$@"
15234 fi
15235
15236 _ACEOF
15237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238 exec 5>>config.log
15239 {
15240 echo
15241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15242 ## Running $as_me. ##
15243 _ASBOX
15244 printf "%s\n" "$ac_log"
15245 } >&5
15246
15247 _ACEOF
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 #
15250 # INIT-COMMANDS
15251 #
15252 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15253
15254
15255 # The HP-UX ksh and POSIX shell print the target directory to stdout
15256 # if CDPATH is set.
15257 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15258
15259 sed_quote_subst='$sed_quote_subst'
15260 double_quote_subst='$double_quote_subst'
15261 delay_variable_subst='$delay_variable_subst'
15262 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15263 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15264 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15265 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15266 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15267 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15268 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15269 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15270 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15271 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15272 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15273 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15274 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15275 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15276 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15277 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15278 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15279 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15280 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15281 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15282 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15283 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15284 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15285 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15286 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15287 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15288 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15289 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15290 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15291 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15292 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15293 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15294 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15295 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15296 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15297 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15298 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15299 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15300 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15301 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15302 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15303 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15304 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15305 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15306 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15307 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15308 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15309 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15310 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15311 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15312 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15313 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15314 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15315 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15316 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15317 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15318 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15319 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15320 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15321 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15322 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"`'
15323 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15324 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15325 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15326 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15327 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15328 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15329 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15330 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15331 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15332 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15333 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15334 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15335 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15336 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15337 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15338 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15339 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15340 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15341 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15342 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15343 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15344 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15345 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15346 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15347 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15348 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15349 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15350 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15351 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15352 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15353 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15354 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15355 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15356 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15357 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15358 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15359 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15360 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15361 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15362 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15363 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15364 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15365 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15366 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15367 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15368 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15369 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15370 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15371 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15372 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15373 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15374 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15375 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15376 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15377 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15378 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15379 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15380 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15381 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15382 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15383 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15384 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15385 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15386 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15387 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15388 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15389 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15390 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15391 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15392 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15393 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15394 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15395 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15396 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15397 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15398 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15399
15400 LTCC='$LTCC'
15401 LTCFLAGS='$LTCFLAGS'
15402 compiler='$compiler_DEFAULT'
15403
15404 # A function that is used when there is no print builtin or printf.
15405 func_fallback_echo ()
15406 {
15407 eval 'cat <<_LTECHO_EOF
15408 \$1
15409 _LTECHO_EOF'
15410 }
15411
15412 # Quote evaled strings.
15413 for var in SHELL \
15414 ECHO \
15415 PATH_SEPARATOR \
15416 SED \
15417 GREP \
15418 EGREP \
15419 FGREP \
15420 LD \
15421 NM \
15422 LN_S \
15423 lt_SP2NL \
15424 lt_NL2SP \
15425 reload_flag \
15426 FILECMD \
15427 OBJDUMP \
15428 deplibs_check_method \
15429 file_magic_cmd \
15430 file_magic_glob \
15431 want_nocaseglob \
15432 DLLTOOL \
15433 sharedlib_from_linklib_cmd \
15434 AR \
15435 archiver_list_spec \
15436 STRIP \
15437 RANLIB \
15438 CC \
15439 CFLAGS \
15440 compiler \
15441 lt_cv_sys_global_symbol_pipe \
15442 lt_cv_sys_global_symbol_to_cdecl \
15443 lt_cv_sys_global_symbol_to_import \
15444 lt_cv_sys_global_symbol_to_c_name_address \
15445 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15446 lt_cv_nm_interface \
15447 nm_file_list_spec \
15448 lt_cv_truncate_bin \
15449 lt_prog_compiler_no_builtin_flag \
15450 lt_prog_compiler_pic \
15451 lt_prog_compiler_wl \
15452 lt_prog_compiler_static \
15453 lt_cv_prog_compiler_c_o \
15454 need_locks \
15455 MANIFEST_TOOL \
15456 DSYMUTIL \
15457 NMEDIT \
15458 LIPO \
15459 OTOOL \
15460 OTOOL64 \
15461 shrext_cmds \
15462 export_dynamic_flag_spec \
15463 whole_archive_flag_spec \
15464 compiler_needs_object \
15465 with_gnu_ld \
15466 allow_undefined_flag \
15467 no_undefined_flag \
15468 hardcode_libdir_flag_spec \
15469 hardcode_libdir_separator \
15470 exclude_expsyms \
15471 include_expsyms \
15472 file_list_spec \
15473 variables_saved_for_relink \
15474 libname_spec \
15475 library_names_spec \
15476 soname_spec \
15477 install_override_mode \
15478 finish_eval \
15479 old_striplib \
15480 striplib; do
15481 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15482 *[\\\\\\\`\\"\\\$]*)
15483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15484 ;;
15485 *)
15486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15487 ;;
15488 esac
15489 done
15490
15491 # Double-quote double-evaled strings.
15492 for var in reload_cmds \
15493 old_postinstall_cmds \
15494 old_postuninstall_cmds \
15495 old_archive_cmds \
15496 extract_expsyms_cmds \
15497 old_archive_from_new_cmds \
15498 old_archive_from_expsyms_cmds \
15499 archive_cmds \
15500 archive_expsym_cmds \
15501 module_cmds \
15502 module_expsym_cmds \
15503 export_symbols_cmds \
15504 prelink_cmds \
15505 postlink_cmds \
15506 postinstall_cmds \
15507 postuninstall_cmds \
15508 finish_cmds \
15509 sys_lib_search_path_spec \
15510 configure_time_dlsearch_path \
15511 configure_time_lt_sys_library_path; do
15512 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15513 *[\\\\\\\`\\"\\\$]*)
15514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15515 ;;
15516 *)
15517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15518 ;;
15519 esac
15520 done
15521
15522 ac_aux_dir='$ac_aux_dir'
15523
15524 # See if we are running on zsh, and set the options that allow our
15525 # commands through without removal of \ escapes INIT.
15526 if test -n "\${ZSH_VERSION+set}"; then
15527 setopt NO_GLOB_SUBST
15528 fi
15529
15530
15531 PACKAGE='$PACKAGE'
15532 VERSION='$VERSION'
15533 RM='$RM'
15534 ofile='$ofile'
15535
15536
15537
15538
15539 _ACEOF
15540
15541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542
15543 # Handling of arguments.
15544 for ac_config_target in $ac_config_targets
15545 do
15546 case $ac_config_target in
15547 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15548 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15549 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15550
15551 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15552 esac
15553 done
15554
15555
15556 # If the user did not use the arguments to specify the items to instantiate,
15557 # then the envvar interface is used. Set only those that are not.
15558 # We use the long form for the default assignment because of an extremely
15559 # bizarre bug on SunOS 4.1.3.
15560 if $ac_need_defaults; then
15561 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15562 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15563 fi
15564
15565 # Have a temporary directory for convenience. Make it in the build tree
15566 # simply because there is no reason against having it here, and in addition,
15567 # creating and moving files from /tmp can sometimes cause problems.
15568 # Hook for its removal unless debugging.
15569 # Note that there is a small window in which the directory will not be cleaned:
15570 # after its creation but before its name has been assigned to `$tmp'.
15571 $debug ||
15572 {
15573 tmp= ac_tmp=
15574 trap 'exit_status=$?
15575 : "${ac_tmp:=$tmp}"
15576 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15577 ' 0
15578 trap 'as_fn_exit 1' 1 2 13 15
15579 }
15580 # Create a (secure) tmp directory for tmp files.
15581
15582 {
15583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15584 test -d "$tmp"
15585 } ||
15586 {
15587 tmp=./conf$$-$RANDOM
15588 (umask 077 && mkdir "$tmp")
15589 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15590 ac_tmp=$tmp
15591
15592 # Set up the scripts for CONFIG_FILES section.
15593 # No need to generate them if there are no CONFIG_FILES.
15594 # This happens for instance with `./config.status config.h'.
15595 if test -n "$CONFIG_FILES"; then
15596
15597
15598 ac_cr=`echo X | tr X '\015'`
15599 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15600 # But we know of no other shell where ac_cr would be empty at this
15601 # point, so we can use a bashism as a fallback.
15602 if test "x$ac_cr" = x; then
15603 eval ac_cr=\$\'\\r\'
15604 fi
15605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15607 ac_cs_awk_cr='\\r'
15608 else
15609 ac_cs_awk_cr=$ac_cr
15610 fi
15611
15612 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15613 _ACEOF
15614
15615
15616 {
15617 echo "cat >conf$$subs.awk <<_ACEOF" &&
15618 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15619 echo "_ACEOF"
15620 } >conf$$subs.sh ||
15621 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15622 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15623 ac_delim='%!_!# '
15624 for ac_last_try in false false false false false :; do
15625 . ./conf$$subs.sh ||
15626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15627
15628 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15629 if test $ac_delim_n = $ac_delim_num; then
15630 break
15631 elif $ac_last_try; then
15632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15633 else
15634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15635 fi
15636 done
15637 rm -f conf$$subs.sh
15638
15639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15640 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15641 _ACEOF
15642 sed -n '
15643 h
15644 s/^/S["/; s/!.*/"]=/
15645 p
15646 g
15647 s/^[^!]*!//
15648 :repl
15649 t repl
15650 s/'"$ac_delim"'$//
15651 t delim
15652 :nl
15653 h
15654 s/\(.\{148\}\)..*/\1/
15655 t more1
15656 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15657 p
15658 n
15659 b repl
15660 :more1
15661 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15662 p
15663 g
15664 s/.\{148\}//
15665 t nl
15666 :delim
15667 h
15668 s/\(.\{148\}\)..*/\1/
15669 t more2
15670 s/["\\]/\\&/g; s/^/"/; s/$/"/
15671 p
15672 b
15673 :more2
15674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15675 p
15676 g
15677 s/.\{148\}//
15678 t delim
15679 ' <conf$$subs.awk | sed '
15680 /^[^""]/{
15681 N
15682 s/\n//
15683 }
15684 ' >>$CONFIG_STATUS || ac_write_fail=1
15685 rm -f conf$$subs.awk
15686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687 _ACAWK
15688 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15689 for (key in S) S_is_set[key] = 1
15690 FS = ""
15691
15692 }
15693 {
15694 line = $ 0
15695 nfields = split(line, field, "@")
15696 substed = 0
15697 len = length(field[1])
15698 for (i = 2; i < nfields; i++) {
15699 key = field[i]
15700 keylen = length(key)
15701 if (S_is_set[key]) {
15702 value = S[key]
15703 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15704 len += length(value) + length(field[++i])
15705 substed = 1
15706 } else
15707 len += 1 + keylen
15708 }
15709
15710 print line
15711 }
15712
15713 _ACAWK
15714 _ACEOF
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15717 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15718 else
15719 cat
15720 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15721 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15722 _ACEOF
15723
15724 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15725 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15726 # trailing colons and then remove the whole line if VPATH becomes empty
15727 # (actually we leave an empty line to preserve line numbers).
15728 if test "x$srcdir" = x.; then
15729 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15730 h
15731 s///
15732 s/^/:/
15733 s/[ ]*$/:/
15734 s/:\$(srcdir):/:/g
15735 s/:\${srcdir}:/:/g
15736 s/:@srcdir@:/:/g
15737 s/^:*//
15738 s/:*$//
15739 x
15740 s/\(=[ ]*\).*/\1/
15741 G
15742 s/\n//
15743 s/^[^=]*=[ ]*$//
15744 }'
15745 fi
15746
15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 fi # test -n "$CONFIG_FILES"
15749
15750
15751 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15752 shift
15753 for ac_tag
15754 do
15755 case $ac_tag in
15756 :[FHLC]) ac_mode=$ac_tag; continue;;
15757 esac
15758 case $ac_mode$ac_tag in
15759 :[FHL]*:*);;
15760 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15761 :[FH]-) ac_tag=-:-;;
15762 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15763 esac
15764 ac_save_IFS=$IFS
15765 IFS=:
15766 set x $ac_tag
15767 IFS=$ac_save_IFS
15768 shift
15769 ac_file=$1
15770 shift
15771
15772 case $ac_mode in
15773 :L) ac_source=$1;;
15774 :[FH])
15775 ac_file_inputs=
15776 for ac_f
15777 do
15778 case $ac_f in
15779 -) ac_f="$ac_tmp/stdin";;
15780 *) # Look for the file first in the build tree, then in the source tree
15781 # (if the path is not absolute). The absolute path cannot be DOS-style,
15782 # because $ac_f cannot contain `:'.
15783 test -f "$ac_f" ||
15784 case $ac_f in
15785 [\\/$]*) false;;
15786 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15787 esac ||
15788 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15789 esac
15790 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15791 as_fn_append ac_file_inputs " '$ac_f'"
15792 done
15793
15794 # Let's still pretend it is `configure' which instantiates (i.e., don't
15795 # use $as_me), people would be surprised to read:
15796 # /* config.h. Generated by config.status. */
15797 configure_input='Generated from '`
15798 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15799 `' by configure.'
15800 if test x"$ac_file" != x-; then
15801 configure_input="$ac_file. $configure_input"
15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15803 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15804 fi
15805 # Neutralize special characters interpreted by sed in replacement strings.
15806 case $configure_input in #(
15807 *\&* | *\|* | *\\* )
15808 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15810 *) ac_sed_conf_input=$configure_input;;
15811 esac
15812
15813 case $ac_tag in
15814 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15816 esac
15817 ;;
15818 esac
15819
15820 ac_dir=`$as_dirname -- "$ac_file" ||
15821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15822 X"$ac_file" : 'X\(//\)[^/]' \| \
15823 X"$ac_file" : 'X\(//\)$' \| \
15824 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15825 printf "%s\n" X"$ac_file" |
15826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15827 s//\1/
15828 q
15829 }
15830 /^X\(\/\/\)[^/].*/{
15831 s//\1/
15832 q
15833 }
15834 /^X\(\/\/\)$/{
15835 s//\1/
15836 q
15837 }
15838 /^X\(\/\).*/{
15839 s//\1/
15840 q
15841 }
15842 s/.*/./; q'`
15843 as_dir="$ac_dir"; as_fn_mkdir_p
15844 ac_builddir=.
15845
15846 case "$ac_dir" in
15847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15848 *)
15849 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15850 # A ".." for each directory in $ac_dir_suffix.
15851 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15852 case $ac_top_builddir_sub in
15853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15855 esac ;;
15856 esac
15857 ac_abs_top_builddir=$ac_pwd
15858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15859 # for backward compatibility:
15860 ac_top_builddir=$ac_top_build_prefix
15861
15862 case $srcdir in
15863 .) # We are building in place.
15864 ac_srcdir=.
15865 ac_top_srcdir=$ac_top_builddir_sub
15866 ac_abs_top_srcdir=$ac_pwd ;;
15867 [\\/]* | ?:[\\/]* ) # Absolute name.
15868 ac_srcdir=$srcdir$ac_dir_suffix;
15869 ac_top_srcdir=$srcdir
15870 ac_abs_top_srcdir=$srcdir ;;
15871 *) # Relative name.
15872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15873 ac_top_srcdir=$ac_top_build_prefix$srcdir
15874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15875 esac
15876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15877
15878
15879 case $ac_mode in
15880 :F)
15881 #
15882 # CONFIG_FILE
15883 #
15884
15885 case $INSTALL in
15886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15888 esac
15889 ac_MKDIR_P=$MKDIR_P
15890 case $MKDIR_P in
15891 [\\/$]* | ?:[\\/]* ) ;;
15892 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15893 esac
15894 _ACEOF
15895
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 # If the template does not know about datarootdir, expand it.
15898 # FIXME: This hack should be removed a few years after 2.60.
15899 ac_datarootdir_hack=; ac_datarootdir_seen=
15900 ac_sed_dataroot='
15901 /datarootdir/ {
15902 p
15903 q
15904 }
15905 /@datadir@/p
15906 /@docdir@/p
15907 /@infodir@/p
15908 /@localedir@/p
15909 /@mandir@/p'
15910 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15911 *datarootdir*) ac_datarootdir_seen=yes;;
15912 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15914 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15915 _ACEOF
15916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15917 ac_datarootdir_hack='
15918 s&@datadir@&$datadir&g
15919 s&@docdir@&$docdir&g
15920 s&@infodir@&$infodir&g
15921 s&@localedir@&$localedir&g
15922 s&@mandir@&$mandir&g
15923 s&\\\${datarootdir}&$datarootdir&g' ;;
15924 esac
15925 _ACEOF
15926
15927 # Neutralize VPATH when `$srcdir' = `.'.
15928 # Shell code in configure.ac might set extrasub.
15929 # FIXME: do we really want to maintain this feature?
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 ac_sed_extra="$ac_vpsub
15932 $extrasub
15933 _ACEOF
15934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935 :t
15936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15937 s|@configure_input@|$ac_sed_conf_input|;t t
15938 s&@top_builddir@&$ac_top_builddir_sub&;t t
15939 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15940 s&@srcdir@&$ac_srcdir&;t t
15941 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15942 s&@top_srcdir@&$ac_top_srcdir&;t t
15943 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15944 s&@builddir@&$ac_builddir&;t t
15945 s&@abs_builddir@&$ac_abs_builddir&;t t
15946 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15947 s&@INSTALL@&$ac_INSTALL&;t t
15948 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15949 $ac_datarootdir_hack
15950 "
15951 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15952 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15953
15954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15955 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15957 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15959 which seems to be undefined. Please make sure it is defined" >&5
15960 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15961 which seems to be undefined. Please make sure it is defined" >&2;}
15962
15963 rm -f "$ac_tmp/stdin"
15964 case $ac_file in
15965 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15966 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15967 esac \
15968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15969 ;;
15970
15971
15972 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15973 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15974 ;;
15975 esac
15976
15977
15978 case $ac_file$ac_mode in
15979 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15980 # Older Autoconf quotes --file arguments for eval, but not when files
15981 # are listed without --file. Let's play safe and only enable the eval
15982 # if we detect the quoting.
15983 # TODO: see whether this extra hack can be removed once we start
15984 # requiring Autoconf 2.70 or later.
15985 case $CONFIG_FILES in #(
15986 *\'*) :
15987 eval set x "$CONFIG_FILES" ;; #(
15988 *) :
15989 set x $CONFIG_FILES ;; #(
15990 *) :
15991 ;;
15992 esac
15993 shift
15994 # Used to flag and report bootstrapping failures.
15995 am_rc=0
15996 for am_mf
15997 do
15998 # Strip MF so we end up with the name of the file.
15999 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16000 # Check whether this is an Automake generated Makefile which includes
16001 # dependency-tracking related rules and includes.
16002 # Grep'ing the whole file directly is not great: AIX grep has a line
16003 # limit of 2048, but all sed's we know have understand at least 4000.
16004 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16005 || continue
16006 am_dirpart=`$as_dirname -- "$am_mf" ||
16007 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16008 X"$am_mf" : 'X\(//\)[^/]' \| \
16009 X"$am_mf" : 'X\(//\)$' \| \
16010 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16011 printf "%s\n" X"$am_mf" |
16012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16013 s//\1/
16014 q
16015 }
16016 /^X\(\/\/\)[^/].*/{
16017 s//\1/
16018 q
16019 }
16020 /^X\(\/\/\)$/{
16021 s//\1/
16022 q
16023 }
16024 /^X\(\/\).*/{
16025 s//\1/
16026 q
16027 }
16028 s/.*/./; q'`
16029 am_filepart=`$as_basename -- "$am_mf" ||
16030 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16031 X"$am_mf" : 'X\(//\)$' \| \
16032 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16033 printf "%s\n" X/"$am_mf" |
16034 sed '/^.*\/\([^/][^/]*\)\/*$/{
16035 s//\1/
16036 q
16037 }
16038 /^X\/\(\/\/\)$/{
16039 s//\1/
16040 q
16041 }
16042 /^X\/\(\/\).*/{
16043 s//\1/
16044 q
16045 }
16046 s/.*/./; q'`
16047 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16048 && sed -e '/# am--include-marker/d' "$am_filepart" \
16049 | $MAKE -f - am--depfiles" >&5
16050 (cd "$am_dirpart" \
16051 && sed -e '/# am--include-marker/d' "$am_filepart" \
16052 | $MAKE -f - am--depfiles) >&5 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } || am_rc=$?
16056 done
16057 if test $am_rc -ne 0; then
16058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16060 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16061 for automatic dependency tracking. If GNU make was not used, consider
16062 re-running the configure script with MAKE=\"gmake\" (or whatever is
16063 necessary). You can also try re-running configure with the
16064 '--disable-dependency-tracking' option to at least be able to build
16065 the package (albeit without support for automatic dependency tracking).
16066 See \`config.log' for more details" "$LINENO" 5; }
16067 fi
16068 { am_dirpart=; unset am_dirpart;}
16069 { am_filepart=; unset am_filepart;}
16070 { am_mf=; unset am_mf;}
16071 { am_rc=; unset am_rc;}
16072 rm -f conftest-deps.mk
16073 }
16074 ;;
16075 "libtool":C)
16076
16077 # See if we are running on zsh, and set the options that allow our
16078 # commands through without removal of \ escapes.
16079 if test -n "${ZSH_VERSION+set}"; then
16080 setopt NO_GLOB_SUBST
16081 fi
16082
16083 cfgfile=${ofile}T
16084 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16085 $RM "$cfgfile"
16086
16087 cat <<_LT_EOF >> "$cfgfile"
16088 #! $SHELL
16089 # Generated automatically by $as_me ($PACKAGE) $VERSION
16090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16092
16093 # Provide generalized library-building support services.
16094 # Written by Gordon Matzigkeit, 1996
16095
16096 # Copyright (C) 2014 Free Software Foundation, Inc.
16097 # This is free software; see the source for copying conditions. There is NO
16098 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16099
16100 # GNU Libtool is free software; you can redistribute it and/or modify
16101 # it under the terms of the GNU General Public License as published by
16102 # the Free Software Foundation; either version 2 of of the License, or
16103 # (at your option) any later version.
16104 #
16105 # As a special exception to the GNU General Public License, if you
16106 # distribute this file as part of a program or library that is built
16107 # using GNU Libtool, you may include this file under the same
16108 # distribution terms that you use for the rest of that program.
16109 #
16110 # GNU Libtool is distributed in the hope that it will be useful, but
16111 # WITHOUT ANY WARRANTY; without even the implied warranty of
16112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16113 # GNU General Public License for more details.
16114 #
16115 # You should have received a copy of the GNU General Public License
16116 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16117
16118
16119 # The names of the tagged configurations supported by this script.
16120 available_tags=''
16121
16122 # Configured defaults for sys_lib_dlsearch_path munging.
16123 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16124
16125 # ### BEGIN LIBTOOL CONFIG
16126
16127 # Which release of libtool.m4 was used?
16128 macro_version=$macro_version
16129 macro_revision=$macro_revision
16130
16131 # Whether or not to build shared libraries.
16132 build_libtool_libs=$enable_shared
16133
16134 # Whether or not to build static libraries.
16135 build_old_libs=$enable_static
16136
16137 # What type of objects to build.
16138 pic_mode=$pic_mode
16139
16140 # Whether or not to optimize for fast installation.
16141 fast_install=$enable_fast_install
16142
16143 # Shared archive member basename,for filename based shared library versioning on AIX.
16144 shared_archive_member_spec=$shared_archive_member_spec
16145
16146 # Shell to use when invoking shell scripts.
16147 SHELL=$lt_SHELL
16148
16149 # An echo program that protects backslashes.
16150 ECHO=$lt_ECHO
16151
16152 # The PATH separator for the build system.
16153 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16154
16155 # The host system.
16156 host_alias=$host_alias
16157 host=$host
16158 host_os=$host_os
16159
16160 # The build system.
16161 build_alias=$build_alias
16162 build=$build
16163 build_os=$build_os
16164
16165 # A sed program that does not truncate output.
16166 SED=$lt_SED
16167
16168 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16169 Xsed="\$SED -e 1s/^X//"
16170
16171 # A grep program that handles long lines.
16172 GREP=$lt_GREP
16173
16174 # An ERE matcher.
16175 EGREP=$lt_EGREP
16176
16177 # A literal string matcher.
16178 FGREP=$lt_FGREP
16179
16180 # A BSD- or MS-compatible name lister.
16181 NM=$lt_NM
16182
16183 # Whether we need soft or hard links.
16184 LN_S=$lt_LN_S
16185
16186 # What is the maximum length of a command?
16187 max_cmd_len=$max_cmd_len
16188
16189 # Object file suffix (normally "o").
16190 objext=$ac_objext
16191
16192 # Executable file suffix (normally "").
16193 exeext=$exeext
16194
16195 # whether the shell understands "unset".
16196 lt_unset=$lt_unset
16197
16198 # turn spaces into newlines.
16199 SP2NL=$lt_lt_SP2NL
16200
16201 # turn newlines into spaces.
16202 NL2SP=$lt_lt_NL2SP
16203
16204 # convert \$build file names to \$host format.
16205 to_host_file_cmd=$lt_cv_to_host_file_cmd
16206
16207 # convert \$build files to toolchain format.
16208 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16209
16210 # A file(cmd) program that detects file types.
16211 FILECMD=$lt_FILECMD
16212
16213 # An object symbol dumper.
16214 OBJDUMP=$lt_OBJDUMP
16215
16216 # Method to check whether dependent libraries are shared objects.
16217 deplibs_check_method=$lt_deplibs_check_method
16218
16219 # Command to use when deplibs_check_method = "file_magic".
16220 file_magic_cmd=$lt_file_magic_cmd
16221
16222 # How to find potential files when deplibs_check_method = "file_magic".
16223 file_magic_glob=$lt_file_magic_glob
16224
16225 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16226 want_nocaseglob=$lt_want_nocaseglob
16227
16228 # DLL creation program.
16229 DLLTOOL=$lt_DLLTOOL
16230
16231 # Command to associate shared and link libraries.
16232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16233
16234 # The archiver.
16235 AR=$lt_AR
16236
16237 # Flags to create an archive (by configure).
16238 lt_ar_flags=$lt_ar_flags
16239
16240 # Flags to create an archive.
16241 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16242
16243 # How to feed a file listing to the archiver.
16244 archiver_list_spec=$lt_archiver_list_spec
16245
16246 # A symbol stripping program.
16247 STRIP=$lt_STRIP
16248
16249 # Commands used to install an old-style archive.
16250 RANLIB=$lt_RANLIB
16251 old_postinstall_cmds=$lt_old_postinstall_cmds
16252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16253
16254 # Whether to use a lock for old archive extraction.
16255 lock_old_archive_extraction=$lock_old_archive_extraction
16256
16257 # A C compiler.
16258 LTCC=$lt_CC
16259
16260 # LTCC compiler flags.
16261 LTCFLAGS=$lt_CFLAGS
16262
16263 # Take the output of nm and produce a listing of raw symbols and C names.
16264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16265
16266 # Transform the output of nm in a proper C declaration.
16267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16268
16269 # Transform the output of nm into a list of symbols to manually relocate.
16270 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16271
16272 # Transform the output of nm in a C name address pair.
16273 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16274
16275 # Transform the output of nm in a C name address pair when lib prefix is needed.
16276 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16277
16278 # The name lister interface.
16279 nm_interface=$lt_lt_cv_nm_interface
16280
16281 # Specify filename containing input files for \$NM.
16282 nm_file_list_spec=$lt_nm_file_list_spec
16283
16284 # The root where to search for dependent libraries,and where our libraries should be installed.
16285 lt_sysroot=$lt_sysroot
16286
16287 # Command to truncate a binary pipe.
16288 lt_truncate_bin=$lt_lt_cv_truncate_bin
16289
16290 # The name of the directory that contains temporary libtool files.
16291 objdir=$objdir
16292
16293 # Used to examine libraries when file_magic_cmd begins with "file".
16294 MAGIC_CMD=$MAGIC_CMD
16295
16296 # Must we lock files when doing compilation?
16297 need_locks=$lt_need_locks
16298
16299 # Manifest tool.
16300 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16301
16302 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16303 DSYMUTIL=$lt_DSYMUTIL
16304
16305 # Tool to change global to local symbols on Mac OS X.
16306 NMEDIT=$lt_NMEDIT
16307
16308 # Tool to manipulate fat objects and archives on Mac OS X.
16309 LIPO=$lt_LIPO
16310
16311 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16312 OTOOL=$lt_OTOOL
16313
16314 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16315 OTOOL64=$lt_OTOOL64
16316
16317 # Old archive suffix (normally "a").
16318 libext=$libext
16319
16320 # Shared library suffix (normally ".so").
16321 shrext_cmds=$lt_shrext_cmds
16322
16323 # The commands to extract the exported symbol list from a shared archive.
16324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16325
16326 # Variables whose values should be saved in libtool wrapper scripts and
16327 # restored at link time.
16328 variables_saved_for_relink=$lt_variables_saved_for_relink
16329
16330 # Do we need the "lib" prefix for modules?
16331 need_lib_prefix=$need_lib_prefix
16332
16333 # Do we need a version for libraries?
16334 need_version=$need_version
16335
16336 # Library versioning type.
16337 version_type=$version_type
16338
16339 # Shared library runtime path variable.
16340 runpath_var=$runpath_var
16341
16342 # Shared library path variable.
16343 shlibpath_var=$shlibpath_var
16344
16345 # Is shlibpath searched before the hard-coded library search path?
16346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16347
16348 # Format of library name prefix.
16349 libname_spec=$lt_libname_spec
16350
16351 # List of archive names. First name is the real one, the rest are links.
16352 # The last name is the one that the linker finds with -lNAME
16353 library_names_spec=$lt_library_names_spec
16354
16355 # The coded name of the library, if different from the real name.
16356 soname_spec=$lt_soname_spec
16357
16358 # Permission mode override for installation of shared libraries.
16359 install_override_mode=$lt_install_override_mode
16360
16361 # Command to use after installation of a shared archive.
16362 postinstall_cmds=$lt_postinstall_cmds
16363
16364 # Command to use after uninstallation of a shared archive.
16365 postuninstall_cmds=$lt_postuninstall_cmds
16366
16367 # Commands used to finish a libtool library installation in a directory.
16368 finish_cmds=$lt_finish_cmds
16369
16370 # As "finish_cmds", except a single script fragment to be evaled but
16371 # not shown.
16372 finish_eval=$lt_finish_eval
16373
16374 # Whether we should hardcode library paths into libraries.
16375 hardcode_into_libs=$hardcode_into_libs
16376
16377 # Compile-time system search path for libraries.
16378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16379
16380 # Detected run-time system search path for libraries.
16381 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16382
16383 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16384 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16385
16386 # Whether dlopen is supported.
16387 dlopen_support=$enable_dlopen
16388
16389 # Whether dlopen of programs is supported.
16390 dlopen_self=$enable_dlopen_self
16391
16392 # Whether dlopen of statically linked programs is supported.
16393 dlopen_self_static=$enable_dlopen_self_static
16394
16395 # Commands to strip libraries.
16396 old_striplib=$lt_old_striplib
16397 striplib=$lt_striplib
16398
16399
16400 # The linker used to build libraries.
16401 LD=$lt_LD
16402
16403 # How to create reloadable object files.
16404 reload_flag=$lt_reload_flag
16405 reload_cmds=$lt_reload_cmds
16406
16407 # Commands used to build an old-style archive.
16408 old_archive_cmds=$lt_old_archive_cmds
16409
16410 # A language specific compiler.
16411 CC=$lt_compiler
16412
16413 # Is the compiler the GNU compiler?
16414 with_gcc=$GCC
16415
16416 # Compiler flag to turn off builtin functions.
16417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16418
16419 # Additional compiler flags for building library objects.
16420 pic_flag=$lt_lt_prog_compiler_pic
16421
16422 # How to pass a linker flag through the compiler.
16423 wl=$lt_lt_prog_compiler_wl
16424
16425 # Compiler flag to prevent dynamic linking.
16426 link_static_flag=$lt_lt_prog_compiler_static
16427
16428 # Does compiler simultaneously support -c and -o options?
16429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16430
16431 # Whether or not to add -lc for building shared libraries.
16432 build_libtool_need_lc=$archive_cmds_need_lc
16433
16434 # Whether or not to disallow shared libs when runtime libs are static.
16435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16436
16437 # Compiler flag to allow reflexive dlopens.
16438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16439
16440 # Compiler flag to generate shared objects directly from archives.
16441 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16442
16443 # Whether the compiler copes with passing no objects directly.
16444 compiler_needs_object=$lt_compiler_needs_object
16445
16446 # Create an old-style archive from a shared archive.
16447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16448
16449 # Create a temporary old-style archive to link instead of a shared archive.
16450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16451
16452 # Commands used to build a shared archive.
16453 archive_cmds=$lt_archive_cmds
16454 archive_expsym_cmds=$lt_archive_expsym_cmds
16455
16456 # Commands used to build a loadable module if different from building
16457 # a shared archive.
16458 module_cmds=$lt_module_cmds
16459 module_expsym_cmds=$lt_module_expsym_cmds
16460
16461 # Whether we are building with GNU ld or not.
16462 with_gnu_ld=$lt_with_gnu_ld
16463
16464 # Flag that allows shared libraries with undefined symbols to be built.
16465 allow_undefined_flag=$lt_allow_undefined_flag
16466
16467 # Flag that enforces no undefined symbols.
16468 no_undefined_flag=$lt_no_undefined_flag
16469
16470 # Flag to hardcode \$libdir into a binary during linking.
16471 # This must work even if \$libdir does not exist
16472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16473
16474 # Whether we need a single "-rpath" flag with a separated argument.
16475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16476
16477 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16478 # DIR into the resulting binary.
16479 hardcode_direct=$hardcode_direct
16480
16481 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16482 # DIR into the resulting binary and the resulting library dependency is
16483 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16484 # library is relocated.
16485 hardcode_direct_absolute=$hardcode_direct_absolute
16486
16487 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16488 # into the resulting binary.
16489 hardcode_minus_L=$hardcode_minus_L
16490
16491 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16492 # into the resulting binary.
16493 hardcode_shlibpath_var=$hardcode_shlibpath_var
16494
16495 # Set to "yes" if building a shared library automatically hardcodes DIR
16496 # into the library and all subsequent libraries and executables linked
16497 # against it.
16498 hardcode_automatic=$hardcode_automatic
16499
16500 # Set to yes if linker adds runtime paths of dependent libraries
16501 # to runtime path list.
16502 inherit_rpath=$inherit_rpath
16503
16504 # Whether libtool must link a program against all its dependency libraries.
16505 link_all_deplibs=$link_all_deplibs
16506
16507 # Set to "yes" if exported symbols are required.
16508 always_export_symbols=$always_export_symbols
16509
16510 # The commands to list exported symbols.
16511 export_symbols_cmds=$lt_export_symbols_cmds
16512
16513 # Symbols that should not be listed in the preloaded symbols.
16514 exclude_expsyms=$lt_exclude_expsyms
16515
16516 # Symbols that must always be exported.
16517 include_expsyms=$lt_include_expsyms
16518
16519 # Commands necessary for linking programs (against libraries) with templates.
16520 prelink_cmds=$lt_prelink_cmds
16521
16522 # Commands necessary for finishing linking programs.
16523 postlink_cmds=$lt_postlink_cmds
16524
16525 # Specify filename containing input files.
16526 file_list_spec=$lt_file_list_spec
16527
16528 # How to hardcode a shared library path into an executable.
16529 hardcode_action=$hardcode_action
16530
16531 # ### END LIBTOOL CONFIG
16532
16533 _LT_EOF
16534
16535 cat <<'_LT_EOF' >> "$cfgfile"
16536
16537 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16538
16539 # func_munge_path_list VARIABLE PATH
16540 # -----------------------------------
16541 # VARIABLE is name of variable containing _space_ separated list of
16542 # directories to be munged by the contents of PATH, which is string
16543 # having a format:
16544 # "DIR[:DIR]:"
16545 # string "DIR[ DIR]" will be prepended to VARIABLE
16546 # ":DIR[:DIR]"
16547 # string "DIR[ DIR]" will be appended to VARIABLE
16548 # "DIRP[:DIRP]::[DIRA:]DIRA"
16549 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16550 # "DIRA[ DIRA]" will be appended to VARIABLE
16551 # "DIR[:DIR]"
16552 # VARIABLE will be replaced by "DIR[ DIR]"
16553 func_munge_path_list ()
16554 {
16555 case x$2 in
16556 x)
16557 ;;
16558 *:)
16559 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16560 ;;
16561 x:*)
16562 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16563 ;;
16564 *::*)
16565 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16566 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16567 ;;
16568 *)
16569 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16570 ;;
16571 esac
16572 }
16573
16574
16575 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16576 func_cc_basename ()
16577 {
16578 for cc_temp in $*""; do
16579 case $cc_temp in
16580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16582 \-*) ;;
16583 *) break;;
16584 esac
16585 done
16586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16587 }
16588
16589
16590 # ### END FUNCTIONS SHARED WITH CONFIGURE
16591
16592 _LT_EOF
16593
16594 case $host_os in
16595 aix3*)
16596 cat <<\_LT_EOF >> "$cfgfile"
16597 # AIX sometimes has problems with the GCC collect2 program. For some
16598 # reason, if we set the COLLECT_NAMES environment variable, the problems
16599 # vanish in a puff of smoke.
16600 if test set != "${COLLECT_NAMES+set}"; then
16601 COLLECT_NAMES=
16602 export COLLECT_NAMES
16603 fi
16604 _LT_EOF
16605 ;;
16606 esac
16607
16608
16609
16610 ltmain=$ac_aux_dir/ltmain.sh
16611
16612
16613 # We use sed instead of cat because bash on DJGPP gets confused if
16614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16615 # text mode, it properly converts lines to CR/LF. This bash problem
16616 # is reportedly fixed, but why not run on old versions too?
16617 $SED '$q' "$ltmain" >> "$cfgfile" \
16618 || (rm -f "$cfgfile"; exit 1)
16619
16620 mv -f "$cfgfile" "$ofile" ||
16621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16622 chmod +x "$ofile"
16623
16624 ;;
16625
16626 esac
16627 done # for ac_tag
16628
16629
16630 as_fn_exit 0
16631 _ACEOF
16632 ac_clean_files=$ac_clean_files_save
16633
16634 test $ac_write_fail = 0 ||
16635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16636
16637
16638 # configure is writing to config.log, and then calls config.status.
16639 # config.status does its own redirection, appending to config.log.
16640 # Unfortunately, on DOS this fails, as config.log is still kept open
16641 # by configure, so config.status won't be able to write to it; its
16642 # output is simply discarded. So we exec the FD to /dev/null,
16643 # effectively closing config.log, so it can be properly (re)opened and
16644 # appended to by config.status. When coming back to configure, we
16645 # need to make the FD available again.
16646 if test "$no_create" != yes; then
16647 ac_cs_success=:
16648 ac_config_status_args=
16649 test "$silent" = yes &&
16650 ac_config_status_args="$ac_config_status_args --quiet"
16651 exec 5>/dev/null
16652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16653 exec 5>>config.log
16654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16655 # would make configure fail if this is the last instruction.
16656 $ac_cs_success || as_fn_exit 1
16657 fi
16658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16660 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16661 fi
16662
16663