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 c_icap_modules 0.5.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='c_icap_modules'
620 PACKAGE_TARNAME='c_icap_modules'
621 PACKAGE_VERSION='0.5.7'
622 PACKAGE_STRING='c_icap_modules 0.5.7'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 USE_VSCAN_PROFILES_FALSE
663 USE_VSCAN_PROFILES_TRUE
664 USEBDB_FALSE
665 USEBDB_TRUE
666 USECLAMAV_FALSE
667 USECLAMAV_TRUE
668 BDB_ADD_FLAG
669 BDB_ADD_LDADD
670 clamavlib
671 clamavinc
672 DATADIR
673 MODSDIR
674 CONFDIR
675 UTILITIES_CFLAGS
676 UTILITIES_LIBADD
677 MODULES_LIBADD
678 CICAPMODULESDIR_FALSE
679 CICAPMODULESDIR_TRUE
680 LIBTOOL_DEPS
681 LT_SYS_LIBRARY_PATH
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 MANIFEST_TOOL
688 RANLIB
689 DLLTOOL
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 LIBTOOL
701 ac_ct_AR
702 AR
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 CSCOPE
732 ETAGS
733 CTAGS
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 MAINT
758 MAINTAINER_MODE_FALSE
759 MAINTAINER_MODE_TRUE
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 runstatedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL
799 am__quote'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_maintainer_mode
804 enable_silent_rules
805 enable_dependency_tracking
806 enable_static
807 enable_shared
808 with_pic
809 enable_fast_install
810 with_aix_soname
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 enable_virus_scan_profiles
815 with_c_icap
816 with_clamav
817 with_bdb
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 LT_SYS_LIBRARY_PATH'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
924
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: \`$ac_useropt'"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
957
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: \`$ac_useropt'"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
993
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
998
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1028
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1102
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -runstatedir | --runstatedir | --runstatedi | --runstated \
1118 | --runstate | --runstat | --runsta | --runst | --runs \
1119 | --run | --ru | --r)
1120 ac_prev=runstatedir ;;
1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1123 | --run=* | --ru=* | --r=*)
1124 runstatedir=$ac_optarg ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: \`$ac_useropt'"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 ;;
1242
1243 esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir runstatedir
1264 do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 printf "%s\n" X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341 else
1342 ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures c_icap_modules 0.5.7 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/c_icap_modules]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1431
1432 cat <<\_ACEOF
1433
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of c_icap_modules 0.5.7:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-static[=PKGS] build static libraries [default=no]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --enable-virus_scan-profiles Enable support for configuration profiles in virus_scan service (experimental)
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482 --with-c-icap Where to find c-icap
1483 --with-clamav Where to find ClamAv
1484 --with-bdb Where to find Berkeley DB library
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 LT_SYS_LIBRARY_PATH
1495 User-defined run-time library search path.
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to the package provider.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for configure.gnu first; this name is used for a wrapper for
1547 # Metaconfig's "Configure" on case-insensitive file systems.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 c_icap_modules configure 0.5.7
1565 generated by GNU Autoconf 2.71
1566
1567 Copyright (C) 2021 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest.beam
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 printf "%s\n" "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext
1604 then :
1605 ac_retval=0
1606 else $as_nop
1607 printf "%s\n" "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 printf %s "checking for $2... " >&6; }
1626 if eval test \${$3+y}
1627 then :
1628 printf %s "(cached) " >&6
1629 else $as_nop
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"
1636 then :
1637 eval "$3=yes"
1638 else $as_nop
1639 eval "$3=no"
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1642 fi
1643 eval ac_res=\$$3
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 printf "%s\n" "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648 } # ac_fn_c_check_header_compile
1649
1650 # ac_fn_c_try_run LINENO
1651 # ----------------------
1652 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1653 # executables *can* be run.
1654 ac_fn_c_try_run ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1665 ac_status=$?
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1675 ac_status=$?
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }
1678 then :
1679 ac_retval=0
1680 else $as_nop
1681 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1682 printf "%s\n" "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 printf "%s\n" "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 test -x conftest$ac_exeext
1721 }
1722 then :
1723 ac_retval=0
1724 else $as_nop
1725 printf "%s\n" "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_link
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 printf %s "checking for $2... " >&6; }
1748 if eval test \${$3+y}
1749 then :
1750 printf %s "(cached) " >&6
1751 else $as_nop
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1756 #define $2 innocuous_$2
1757
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $2 (); below. */
1760
1761 #include <limits.h>
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 ();
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main (void)
1780 {
1781 return $2 ();
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"
1787 then :
1788 eval "$3=yes"
1789 else $as_nop
1790 eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1793 conftest$ac_exeext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 printf "%s\n" "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801 ac_configure_args_raw=
1802 for ac_arg
1803 do
1804 case $ac_arg in
1805 *\'*)
1806 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 esac
1808 as_fn_append ac_configure_args_raw " '$ac_arg'"
1809 done
1810
1811 case $ac_configure_args_raw in
1812 *$as_nl*)
1813 ac_safe_unquote= ;;
1814 *)
1815 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1816 ac_unsafe_a="$ac_unsafe_z#~"
1817 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1818 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1819 esac
1820
1821 cat >config.log <<_ACEOF
1822 This file contains any messages produced by compilers while
1823 running configure, to aid debugging if configure makes a mistake.
1824
1825 It was created by c_icap_modules $as_me 0.5.7, which was
1826 generated by GNU Autoconf 2.71. Invocation command line was
1827
1828 $ $0$ac_configure_args_raw
1829
1830 _ACEOF
1831 exec 5>>config.log
1832 {
1833 cat <<_ASUNAME
1834 ## --------- ##
1835 ## Platform. ##
1836 ## --------- ##
1837
1838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1846
1847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854
1855 _ASUNAME
1856
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 case $as_dir in #(((
1862 '') as_dir=./ ;;
1863 */) ;;
1864 *) as_dir=$as_dir/ ;;
1865 esac
1866 printf "%s\n" "PATH: $as_dir"
1867 done
1868 IFS=$as_save_IFS
1869
1870 } >&5
1871
1872 cat >&5 <<_ACEOF
1873
1874
1875 ## ----------- ##
1876 ## Core tests. ##
1877 ## ----------- ##
1878
1879 _ACEOF
1880
1881
1882 # Keep a trace of the command line.
1883 # Strip out --no-create and --no-recursion so they do not pile up.
1884 # Strip out --silent because we don't want to record it for future runs.
1885 # Also quote any args containing shell meta-characters.
1886 # Make two passes to allow for proper duplicate-argument suppression.
1887 ac_configure_args=
1888 ac_configure_args0=
1889 ac_configure_args1=
1890 ac_must_keep_next=false
1891 for ac_pass in 1 2
1892 do
1893 for ac_arg
1894 do
1895 case $ac_arg in
1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898 | -silent | --silent | --silen | --sile | --sil)
1899 continue ;;
1900 *\'*)
1901 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 esac
1903 case $ac_pass in
1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905 2)
1906 as_fn_append ac_configure_args1 " '$ac_arg'"
1907 if test $ac_must_keep_next = true; then
1908 ac_must_keep_next=false # Got value, back to normal.
1909 else
1910 case $ac_arg in
1911 *=* | --config-cache | -C | -disable-* | --disable-* \
1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1914 | -with-* | --with-* | -without-* | --without-* | --x)
1915 case "$ac_configure_args0 " in
1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 esac
1918 ;;
1919 -* ) ac_must_keep_next=true ;;
1920 esac
1921 fi
1922 as_fn_append ac_configure_args " '$ac_arg'"
1923 ;;
1924 esac
1925 done
1926 done
1927 { ac_configure_args0=; unset ac_configure_args0;}
1928 { ac_configure_args1=; unset ac_configure_args1;}
1929
1930 # When interrupted or exit'd, cleanup temporary files, and complete
1931 # config.log. We remove comments because anyway the quotes in there
1932 # would cause problems or look ugly.
1933 # WARNING: Use '\'' to represent an apostrophe within the trap.
1934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1935 trap 'exit_status=$?
1936 # Sanitize IFS.
1937 IFS=" "" $as_nl"
1938 # Save into config.log some information that might help in debugging.
1939 {
1940 echo
1941
1942 printf "%s\n" "## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##"
1945 echo
1946 # The following way of writing the cache mishandles newlines in values,
1947 (
1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in #(
1951 *${as_nl}*)
1952 case $ac_var in #(
1953 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1954 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955 esac
1956 case $ac_var in #(
1957 _ | IFS | as_nl) ;; #(
1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1959 *) { eval $ac_var=; unset $ac_var;} ;;
1960 esac ;;
1961 esac
1962 done
1963 (set) 2>&1 |
1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1965 *${as_nl}ac_space=\ *)
1966 sed -n \
1967 "s/'\''/'\''\\\\'\'''\''/g;
1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969 ;; #(
1970 *)
1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1972 ;;
1973 esac |
1974 sort
1975 )
1976 echo
1977
1978 printf "%s\n" "## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##"
1981 echo
1982 for ac_var in $ac_subst_vars
1983 do
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 printf "%s\n" "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1991
1992 if test -n "$ac_subst_files"; then
1993 printf "%s\n" "## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##"
1996 echo
1997 for ac_var in $ac_subst_files
1998 do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in
2001 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 esac
2003 printf "%s\n" "$ac_var='\''$ac_val'\''"
2004 done | sort
2005 echo
2006 fi
2007
2008 if test -s confdefs.h; then
2009 printf "%s\n" "## ----------- ##
2010 ## confdefs.h. ##
2011 ## ----------- ##"
2012 echo
2013 cat confdefs.h
2014 echo
2015 fi
2016 test "$ac_signal" != 0 &&
2017 printf "%s\n" "$as_me: caught signal $ac_signal"
2018 printf "%s\n" "$as_me: exit $exit_status"
2019 } >&5
2020 rm -f core *.core core.conftest.* &&
2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022 exit $exit_status
2023 ' 0
2024 for ac_signal in 1 2 13 15; do
2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 done
2027 ac_signal=0
2028
2029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2030 rm -f -r conftest* confdefs.h
2031
2032 printf "%s\n" "/* confdefs.h */" > confdefs.h
2033
2034 # Predefined preprocessor variables.
2035
2036 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2045
2046 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2047
2048
2049 # Let the site file select an alternate cache file if it wants to.
2050 # Prefer an explicitly selected file to automatically selected ones.
2051 if test -n "$CONFIG_SITE"; then
2052 ac_site_files="$CONFIG_SITE"
2053 elif test "x$prefix" != xNONE; then
2054 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2055 else
2056 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2057 fi
2058
2059 for ac_site_file in $ac_site_files
2060 do
2061 case $ac_site_file in #(
2062 */*) :
2063 ;; #(
2064 *) :
2065 ac_site_file=./$ac_site_file ;;
2066 esac
2067 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2069 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2070 sed 's/^/| /' "$ac_site_file" >&5
2071 . "$ac_site_file" \
2072 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2074 as_fn_error $? "failed to load site script $ac_site_file
2075 See \`config.log' for more details" "$LINENO" 5; }
2076 fi
2077 done
2078
2079 if test -r "$cache_file"; then
2080 # Some versions of bash will fail to source /dev/null (special files
2081 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2082 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2084 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2085 case $cache_file in
2086 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2087 *) . "./$cache_file";;
2088 esac
2089 fi
2090 else
2091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2092 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2093 >$cache_file
2094 fi
2095
2096 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2097 # Test code for whether the C compiler supports C89 (global declarations)
2098 ac_c_conftest_c89_globals='
2099 /* Does the compiler advertise C89 conformance?
2100 Do not test the value of __STDC__, because some compilers set it to 0
2101 while being otherwise adequately conformant. */
2102 #if !defined __STDC__
2103 # error "Compiler does not advertise C89 conformance"
2104 #endif
2105
2106 #include <stddef.h>
2107 #include <stdarg.h>
2108 struct stat;
2109 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2110 struct buf { int x; };
2111 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2113 char **p;
2114 int i;
2115 {
2116 return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126 }
2127
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not \xHH hex character constants.
2130 These do not provoke an error unfortunately, instead are silently treated
2131 as an "x". The following induces an error, until -std is added to get
2132 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2133 array size at least. It is necessary to write \x00 == 0 to get something
2134 that is true only with -std. */
2135 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2136
2137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2138 inside strings and character constants. */
2139 #define FOO(x) '\''x'\''
2140 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2141
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2146 int, int);'
2147
2148 # Test code for whether the C compiler supports C89 (body of main).
2149 ac_c_conftest_c89_main='
2150 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2151 '
2152
2153 # Test code for whether the C compiler supports C99 (global declarations)
2154 ac_c_conftest_c99_globals='
2155 // Does the compiler advertise C99 conformance?
2156 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2157 # error "Compiler does not advertise C99 conformance"
2158 #endif
2159
2160 #include <stdbool.h>
2161 extern int puts (const char *);
2162 extern int printf (const char *, ...);
2163 extern int dprintf (int, const char *, ...);
2164 extern void *malloc (size_t);
2165
2166 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2167 // dprintf is used instead of fprintf to avoid needing to declare
2168 // FILE and stderr.
2169 #define debug(...) dprintf (2, __VA_ARGS__)
2170 #define showlist(...) puts (#__VA_ARGS__)
2171 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2172 static void
2173 test_varargs_macros (void)
2174 {
2175 int x = 1234;
2176 int y = 5678;
2177 debug ("Flag");
2178 debug ("X = %d\n", x);
2179 showlist (The first, second, and third items.);
2180 report (x>y, "x is %d but y is %d", x, y);
2181 }
2182
2183 // Check long long types.
2184 #define BIG64 18446744073709551615ull
2185 #define BIG32 4294967295ul
2186 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2187 #if !BIG_OK
2188 #error "your preprocessor is broken"
2189 #endif
2190 #if BIG_OK
2191 #else
2192 #error "your preprocessor is broken"
2193 #endif
2194 static long long int bignum = -9223372036854775807LL;
2195 static unsigned long long int ubignum = BIG64;
2196
2197 struct incomplete_array
2198 {
2199 int datasize;
2200 double data[];
2201 };
2202
2203 struct named_init {
2204 int number;
2205 const wchar_t *name;
2206 double average;
2207 };
2208
2209 typedef const char *ccp;
2210
2211 static inline int
2212 test_restrict (ccp restrict text)
2213 {
2214 // See if C++-style comments work.
2215 // Iterate through items via the restricted pointer.
2216 // Also check for declarations in for loops.
2217 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2218 continue;
2219 return 0;
2220 }
2221
2222 // Check varargs and va_copy.
2223 static bool
2224 test_varargs (const char *format, ...)
2225 {
2226 va_list args;
2227 va_start (args, format);
2228 va_list args_copy;
2229 va_copy (args_copy, args);
2230
2231 const char *str = "";
2232 int number = 0;
2233 float fnumber = 0;
2234
2235 while (*format)
2236 {
2237 switch (*format++)
2238 {
2239 case '\''s'\'': // string
2240 str = va_arg (args_copy, const char *);
2241 break;
2242 case '\''d'\'': // int
2243 number = va_arg (args_copy, int);
2244 break;
2245 case '\''f'\'': // float
2246 fnumber = va_arg (args_copy, double);
2247 break;
2248 default:
2249 break;
2250 }
2251 }
2252 va_end (args_copy);
2253 va_end (args);
2254
2255 return *str && number && fnumber;
2256 }
2257 '
2258
2259 # Test code for whether the C compiler supports C99 (body of main).
2260 ac_c_conftest_c99_main='
2261 // Check bool.
2262 _Bool success = false;
2263 success |= (argc != 0);
2264
2265 // Check restrict.
2266 if (test_restrict ("String literal") == 0)
2267 success = true;
2268 char *restrict newvar = "Another string";
2269
2270 // Check varargs.
2271 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2272 test_varargs_macros ();
2273
2274 // Check flexible array members.
2275 struct incomplete_array *ia =
2276 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2277 ia->datasize = 10;
2278 for (int i = 0; i < ia->datasize; ++i)
2279 ia->data[i] = i * 1.234;
2280
2281 // Check named initializers.
2282 struct named_init ni = {
2283 .number = 34,
2284 .name = L"Test wide string",
2285 .average = 543.34343,
2286 };
2287
2288 ni.number = 58;
2289
2290 int dynamic_array[ni.number];
2291 dynamic_array[0] = argv[0][0];
2292 dynamic_array[ni.number - 1] = 543;
2293
2294 // work around unused variable warnings
2295 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2296 || dynamic_array[ni.number - 1] != 543);
2297 '
2298
2299 # Test code for whether the C compiler supports C11 (global declarations)
2300 ac_c_conftest_c11_globals='
2301 // Does the compiler advertise C11 conformance?
2302 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2303 # error "Compiler does not advertise C11 conformance"
2304 #endif
2305
2306 // Check _Alignas.
2307 char _Alignas (double) aligned_as_double;
2308 char _Alignas (0) no_special_alignment;
2309 extern char aligned_as_int;
2310 char _Alignas (0) _Alignas (int) aligned_as_int;
2311
2312 // Check _Alignof.
2313 enum
2314 {
2315 int_alignment = _Alignof (int),
2316 int_array_alignment = _Alignof (int[100]),
2317 char_alignment = _Alignof (char)
2318 };
2319 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2320
2321 // Check _Noreturn.
2322 int _Noreturn does_not_return (void) { for (;;) continue; }
2323
2324 // Check _Static_assert.
2325 struct test_static_assert
2326 {
2327 int x;
2328 _Static_assert (sizeof (int) <= sizeof (long int),
2329 "_Static_assert does not work in struct");
2330 long int y;
2331 };
2332
2333 // Check UTF-8 literals.
2334 #define u8 syntax error!
2335 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2336
2337 // Check duplicate typedefs.
2338 typedef long *long_ptr;
2339 typedef long int *long_ptr;
2340 typedef long_ptr long_ptr;
2341
2342 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2343 struct anonymous
2344 {
2345 union {
2346 struct { int i; int j; };
2347 struct { int k; long int l; } w;
2348 };
2349 int m;
2350 } v1;
2351 '
2352
2353 # Test code for whether the C compiler supports C11 (body of main).
2354 ac_c_conftest_c11_main='
2355 _Static_assert ((offsetof (struct anonymous, i)
2356 == offsetof (struct anonymous, w.k)),
2357 "Anonymous union alignment botch");
2358 v1.i = 2;
2359 v1.w.k = 5;
2360 ok |= v1.i != 5;
2361 '
2362
2363 # Test code for whether the C compiler supports C11 (complete).
2364 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2365 ${ac_c_conftest_c99_globals}
2366 ${ac_c_conftest_c11_globals}
2367
2368 int
2369 main (int argc, char **argv)
2370 {
2371 int ok = 0;
2372 ${ac_c_conftest_c89_main}
2373 ${ac_c_conftest_c99_main}
2374 ${ac_c_conftest_c11_main}
2375 return ok;
2376 }
2377 "
2378
2379 # Test code for whether the C compiler supports C99 (complete).
2380 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2381 ${ac_c_conftest_c99_globals}
2382
2383 int
2384 main (int argc, char **argv)
2385 {
2386 int ok = 0;
2387 ${ac_c_conftest_c89_main}
2388 ${ac_c_conftest_c99_main}
2389 return ok;
2390 }
2391 "
2392
2393 # Test code for whether the C compiler supports C89 (complete).
2394 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2395
2396 int
2397 main (int argc, char **argv)
2398 {
2399 int ok = 0;
2400 ${ac_c_conftest_c89_main}
2401 return ok;
2402 }
2403 "
2404
2405 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2406 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2407 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2408 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2409 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2410 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2411 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2412 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2413 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2414 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2415
2416 # Auxiliary files required by this configure script.
2417 ac_aux_files="ltmain.sh ar-lib compile config.guess config.sub missing install-sh"
2418
2419 # Locations in which to look for auxiliary files.
2420 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2421
2422 # Search for a directory containing all of the required auxiliary files,
2423 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2424 # If we don't find one directory that contains all the files we need,
2425 # we report the set of missing files from the *first* directory in
2426 # $ac_aux_dir_candidates and give up.
2427 ac_missing_aux_files=""
2428 ac_first_candidate=:
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 as_found=false
2432 for as_dir in $ac_aux_dir_candidates
2433 do
2434 IFS=$as_save_IFS
2435 case $as_dir in #(((
2436 '') as_dir=./ ;;
2437 */) ;;
2438 *) as_dir=$as_dir/ ;;
2439 esac
2440 as_found=:
2441
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2443 ac_aux_dir_found=yes
2444 ac_install_sh=
2445 for ac_aux in $ac_aux_files
2446 do
2447 # As a special case, if "install-sh" is required, that requirement
2448 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2449 # and $ac_install_sh is set appropriately for whichever one is found.
2450 if test x"$ac_aux" = x"install-sh"
2451 then
2452 if test -f "${as_dir}install-sh"; then
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2454 ac_install_sh="${as_dir}install-sh -c"
2455 elif test -f "${as_dir}install.sh"; then
2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2457 ac_install_sh="${as_dir}install.sh -c"
2458 elif test -f "${as_dir}shtool"; then
2459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2460 ac_install_sh="${as_dir}shtool install -c"
2461 else
2462 ac_aux_dir_found=no
2463 if $ac_first_candidate; then
2464 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2465 else
2466 break
2467 fi
2468 fi
2469 else
2470 if test -f "${as_dir}${ac_aux}"; then
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2472 else
2473 ac_aux_dir_found=no
2474 if $ac_first_candidate; then
2475 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2476 else
2477 break
2478 fi
2479 fi
2480 fi
2481 done
2482 if test "$ac_aux_dir_found" = yes; then
2483 ac_aux_dir="$as_dir"
2484 break
2485 fi
2486 ac_first_candidate=false
2487
2488 as_found=false
2489 done
2490 IFS=$as_save_IFS
2491 if $as_found
2492 then :
2493
2494 else $as_nop
2495 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2496 fi
2497
2498
2499 # These three variables are undocumented and unsupported,
2500 # and are intended to be withdrawn in a future Autoconf release.
2501 # They can cause serious problems if a builder's source tree is in a directory
2502 # whose full name contains unusual characters.
2503 if test -f "${ac_aux_dir}config.guess"; then
2504 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2505 fi
2506 if test -f "${ac_aux_dir}config.sub"; then
2507 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2508 fi
2509 if test -f "$ac_aux_dir/configure"; then
2510 ac_configure="$SHELL ${ac_aux_dir}configure"
2511 fi
2512
2513 # Check that the precious variables saved in the cache have kept the same
2514 # value.
2515 ac_cache_corrupted=false
2516 for ac_var in $ac_precious_vars; do
2517 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2518 eval ac_new_set=\$ac_env_${ac_var}_set
2519 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2520 eval ac_new_val=\$ac_env_${ac_var}_value
2521 case $ac_old_set,$ac_new_set in
2522 set,)
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2524 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2526 ,set)
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2528 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2529 ac_cache_corrupted=: ;;
2530 ,);;
2531 *)
2532 if test "x$ac_old_val" != "x$ac_new_val"; then
2533 # differences in whitespace do not lead to failure.
2534 ac_old_val_w=`echo x $ac_old_val`
2535 ac_new_val_w=`echo x $ac_new_val`
2536 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2538 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2539 ac_cache_corrupted=:
2540 else
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2542 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2543 eval $ac_var=\$ac_old_val
2544 fi
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2546 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2548 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2549 fi;;
2550 esac
2551 # Pass precious variables to config.status.
2552 if test "$ac_new_set" = set; then
2553 case $ac_new_val in
2554 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2555 *) ac_arg=$ac_var=$ac_new_val ;;
2556 esac
2557 case " $ac_configure_args " in
2558 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2559 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2560 esac
2561 fi
2562 done
2563 if $ac_cache_corrupted; then
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2567 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2568 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2569 and start over" "$LINENO" 5
2570 fi
2571 ## -------------------- ##
2572 ## Main body of script. ##
2573 ## -------------------- ##
2574
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
2581
2582
2583
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2585 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2586 # Check whether --enable-maintainer-mode was given.
2587 if test ${enable_maintainer_mode+y}
2588 then :
2589 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2590 else $as_nop
2591 USE_MAINTAINER_MODE=no
2592 fi
2593
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2595 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
2596 if test $USE_MAINTAINER_MODE = yes; then
2597 MAINTAINER_MODE_TRUE=
2598 MAINTAINER_MODE_FALSE='#'
2599 else
2600 MAINTAINER_MODE_TRUE='#'
2601 MAINTAINER_MODE_FALSE=
2602 fi
2603
2604 MAINT=$MAINTAINER_MODE_TRUE
2605
2606
2607 ac_config_headers="$ac_config_headers autoconf.h"
2608
2609
2610 am__api_version='1.16'
2611
2612
2613
2614 # Find a good install program. We prefer a C program (faster),
2615 # so one script is as good as another. But avoid the broken or
2616 # incompatible versions:
2617 # SysV /etc/install, /usr/sbin/install
2618 # SunOS /usr/etc/install
2619 # IRIX /sbin/install
2620 # AIX /bin/install
2621 # AmigaOS /C/install, which installs bootblocks on floppy discs
2622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2625 # OS/2's system install, which has a completely different semantic
2626 # ./install, which can be erroneously created by make from ./install.sh.
2627 # Reject install programs that cannot install multiple files.
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2629 printf %s "checking for a BSD-compatible install... " >&6; }
2630 if test -z "$INSTALL"; then
2631 if test ${ac_cv_path_install+y}
2632 then :
2633 printf %s "(cached) " >&6
2634 else $as_nop
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638 IFS=$as_save_IFS
2639 case $as_dir in #(((
2640 '') as_dir=./ ;;
2641 */) ;;
2642 *) as_dir=$as_dir/ ;;
2643 esac
2644 # Account for fact that we put trailing slashes in our PATH walk.
2645 case $as_dir in #((
2646 ./ | /[cC]/* | \
2647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2648 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2649 /usr/ucb/* ) ;;
2650 *)
2651 # OSF1 and SCO ODT 3.0 have their own names for install.
2652 # Don't use installbsd from OSF since it installs stuff as root
2653 # by default.
2654 for ac_prog in ginstall scoinst install; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2657 if test $ac_prog = install &&
2658 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659 # AIX install. It has an incompatible calling convention.
2660 :
2661 elif test $ac_prog = install &&
2662 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # program-specific install script used by HP pwplus--don't use.
2664 :
2665 else
2666 rm -rf conftest.one conftest.two conftest.dir
2667 echo one > conftest.one
2668 echo two > conftest.two
2669 mkdir conftest.dir
2670 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2671 test -s conftest.one && test -s conftest.two &&
2672 test -s conftest.dir/conftest.one &&
2673 test -s conftest.dir/conftest.two
2674 then
2675 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2676 break 3
2677 fi
2678 fi
2679 fi
2680 done
2681 done
2682 ;;
2683 esac
2684
2685 done
2686 IFS=$as_save_IFS
2687
2688 rm -rf conftest.one conftest.two conftest.dir
2689
2690 fi
2691 if test ${ac_cv_path_install+y}; then
2692 INSTALL=$ac_cv_path_install
2693 else
2694 # As a last resort, use the slow shell script. Don't cache a
2695 # value for INSTALL within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the value is a relative name.
2698 INSTALL=$ac_install_sh
2699 fi
2700 fi
2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2702 printf "%s\n" "$INSTALL" >&6; }
2703
2704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2705 # It thinks the first close brace ends the variable substitution.
2706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2707
2708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2709
2710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2711
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2713 printf %s "checking whether build environment is sane... " >&6; }
2714 # Reject unsafe characters in $srcdir or the absolute working directory
2715 # name. Accept space and tab only in the latter.
2716 am_lf='
2717 '
2718 case `pwd` in
2719 *[\\\"\#\$\&\'\`$am_lf]*)
2720 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2721 esac
2722 case $srcdir in
2723 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2724 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2725 esac
2726
2727 # Do 'set' in a subshell so we don't clobber the current shell's
2728 # arguments. Must try -L first in case configure is actually a
2729 # symlink; some systems play weird games with the mod time of symlinks
2730 # (eg FreeBSD returns the mod time of the symlink's containing
2731 # directory).
2732 if (
2733 am_has_slept=no
2734 for am_try in 1 2; do
2735 echo "timestamp, slept: $am_has_slept" > conftest.file
2736 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2737 if test "$*" = "X"; then
2738 # -L didn't work.
2739 set X `ls -t "$srcdir/configure" conftest.file`
2740 fi
2741 if test "$*" != "X $srcdir/configure conftest.file" \
2742 && test "$*" != "X conftest.file $srcdir/configure"; then
2743
2744 # If neither matched, then we have a broken ls. This can happen
2745 # if, for instance, CONFIG_SHELL is bash and it inherits a
2746 # broken ls alias from the environment. This has actually
2747 # happened. Such a system could not be considered "sane".
2748 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2749 alias in your environment" "$LINENO" 5
2750 fi
2751 if test "$2" = conftest.file || test $am_try -eq 2; then
2752 break
2753 fi
2754 # Just in case.
2755 sleep 1
2756 am_has_slept=yes
2757 done
2758 test "$2" = conftest.file
2759 )
2760 then
2761 # Ok.
2762 :
2763 else
2764 as_fn_error $? "newly created file is older than distributed files!
2765 Check your system clock" "$LINENO" 5
2766 fi
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 printf "%s\n" "yes" >&6; }
2769 # If we didn't sleep, we still need to ensure time stamps of config.status and
2770 # generated files are strictly newer.
2771 am_sleep_pid=
2772 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2773 ( sleep 1 ) &
2774 am_sleep_pid=$!
2775 fi
2776
2777 rm -f conftest.file
2778
2779 test "$program_prefix" != NONE &&
2780 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2781 # Use a double $ so make ignores it.
2782 test "$program_suffix" != NONE &&
2783 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2784 # Double any \ or $.
2785 # By default was `s,x,x', remove it if useless.
2786 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2787 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2788
2789
2790 # Expand $ac_aux_dir to an absolute path.
2791 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2792
2793
2794 if test x"${MISSING+set}" != xset; then
2795 MISSING="\${SHELL} '$am_aux_dir/missing'"
2796 fi
2797 # Use eval to expand $SHELL
2798 if eval "$MISSING --is-lightweight"; then
2799 am_missing_run="$MISSING "
2800 else
2801 am_missing_run=
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2803 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2804 fi
2805
2806 if test x"${install_sh+set}" != xset; then
2807 case $am_aux_dir in
2808 *\ * | *\ *)
2809 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2810 *)
2811 install_sh="\${SHELL} $am_aux_dir/install-sh"
2812 esac
2813 fi
2814
2815 # Installed binaries are usually stripped using 'strip' when the user
2816 # run "make install-strip". However 'strip' might not be the right
2817 # tool to use in cross-compilation environments, therefore Automake
2818 # will honor the 'STRIP' environment variable to overrule this program.
2819 if test "$cross_compiling" != no; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}strip; ac_word=$2
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 printf %s "checking for $ac_word... " >&6; }
2825 if test ${ac_cv_prog_STRIP+y}
2826 then :
2827 printf %s "(cached) " >&6
2828 else $as_nop
2829 if test -n "$STRIP"; then
2830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 case $as_dir in #(((
2837 '') as_dir=./ ;;
2838 */) ;;
2839 *) as_dir=$as_dir/ ;;
2840 esac
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 STRIP=$ac_cv_prog_STRIP
2854 if test -n "$STRIP"; then
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2856 printf "%s\n" "$STRIP" >&6; }
2857 else
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 printf "%s\n" "no" >&6; }
2860 fi
2861
2862
2863 fi
2864 if test -z "$ac_cv_prog_STRIP"; then
2865 ac_ct_STRIP=$STRIP
2866 # Extract the first word of "strip", so it can be a program name with args.
2867 set dummy strip; ac_word=$2
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 printf %s "checking for $ac_word... " >&6; }
2870 if test ${ac_cv_prog_ac_ct_STRIP+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else $as_nop
2874 if test -n "$ac_ct_STRIP"; then
2875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_STRIP="strip"
2889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2899 if test -n "$ac_ct_STRIP"; then
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2901 printf "%s\n" "$ac_ct_STRIP" >&6; }
2902 else
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 printf "%s\n" "no" >&6; }
2905 fi
2906
2907 if test "x$ac_ct_STRIP" = x; then
2908 STRIP=":"
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916 STRIP=$ac_ct_STRIP
2917 fi
2918 else
2919 STRIP="$ac_cv_prog_STRIP"
2920 fi
2921
2922 fi
2923 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2924
2925
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2927 printf %s "checking for a race-free mkdir -p... " >&6; }
2928 if test -z "$MKDIR_P"; then
2929 if test ${ac_cv_path_mkdir+y}
2930 then :
2931 printf %s "(cached) " >&6
2932 else $as_nop
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2935 do
2936 IFS=$as_save_IFS
2937 case $as_dir in #(((
2938 '') as_dir=./ ;;
2939 */) ;;
2940 *) as_dir=$as_dir/ ;;
2941 esac
2942 for ac_prog in mkdir gmkdir; do
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2945 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2946 'mkdir ('*'coreutils) '* | \
2947 'BusyBox '* | \
2948 'mkdir (fileutils) '4.1*)
2949 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2950 break 3;;
2951 esac
2952 done
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958
2959 test -d ./--version && rmdir ./--version
2960 if test ${ac_cv_path_mkdir+y}; then
2961 MKDIR_P="$ac_cv_path_mkdir -p"
2962 else
2963 # As a last resort, use the slow shell script. Don't cache a
2964 # value for MKDIR_P within a source directory, because that will
2965 # break other packages using the cache if that directory is
2966 # removed, or if the value is a relative name.
2967 MKDIR_P="$ac_install_sh -d"
2968 fi
2969 fi
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2971 printf "%s\n" "$MKDIR_P" >&6; }
2972
2973 for ac_prog in gawk mawk nawk awk
2974 do
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 printf %s "checking for $ac_word... " >&6; }
2979 if test ${ac_cv_prog_AWK+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else $as_nop
2983 if test -n "$AWK"; then
2984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 case $as_dir in #(((
2991 '') as_dir=./ ;;
2992 */) ;;
2993 *) as_dir=$as_dir/ ;;
2994 esac
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_AWK="$ac_prog"
2998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 AWK=$ac_cv_prog_AWK
3008 if test -n "$AWK"; then
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3010 printf "%s\n" "$AWK" >&6; }
3011 else
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 printf "%s\n" "no" >&6; }
3014 fi
3015
3016
3017 test -n "$AWK" && break
3018 done
3019
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3021 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3022 set x ${MAKE-make}
3023 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3024 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3025 then :
3026 printf %s "(cached) " >&6
3027 else $as_nop
3028 cat >conftest.make <<\_ACEOF
3029 SHELL = /bin/sh
3030 all:
3031 @echo '@@@%%%=$(MAKE)=@@@%%%'
3032 _ACEOF
3033 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3035 *@@@%%%=?*=@@@%%%*)
3036 eval ac_cv_prog_make_${ac_make}_set=yes;;
3037 *)
3038 eval ac_cv_prog_make_${ac_make}_set=no;;
3039 esac
3040 rm -f conftest.make
3041 fi
3042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044 printf "%s\n" "yes" >&6; }
3045 SET_MAKE=
3046 else
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 printf "%s\n" "no" >&6; }
3049 SET_MAKE="MAKE=${MAKE-make}"
3050 fi
3051
3052 rm -rf .tst 2>/dev/null
3053 mkdir .tst 2>/dev/null
3054 if test -d .tst; then
3055 am__leading_dot=.
3056 else
3057 am__leading_dot=_
3058 fi
3059 rmdir .tst 2>/dev/null
3060
3061 # Check whether --enable-silent-rules was given.
3062 if test ${enable_silent_rules+y}
3063 then :
3064 enableval=$enable_silent_rules;
3065 fi
3066
3067 case $enable_silent_rules in # (((
3068 yes) AM_DEFAULT_VERBOSITY=0;;
3069 no) AM_DEFAULT_VERBOSITY=1;;
3070 *) AM_DEFAULT_VERBOSITY=1;;
3071 esac
3072 am_make=${MAKE-make}
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3074 printf %s "checking whether $am_make supports nested variables... " >&6; }
3075 if test ${am_cv_make_support_nested_variables+y}
3076 then :
3077 printf %s "(cached) " >&6
3078 else $as_nop
3079 if printf "%s\n" 'TRUE=$(BAR$(V))
3080 BAR0=false
3081 BAR1=true
3082 V=1
3083 am__doit:
3084 @$(TRUE)
3085 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3086 am_cv_make_support_nested_variables=yes
3087 else
3088 am_cv_make_support_nested_variables=no
3089 fi
3090 fi
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3092 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3093 if test $am_cv_make_support_nested_variables = yes; then
3094 AM_V='$(V)'
3095 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3096 else
3097 AM_V=$AM_DEFAULT_VERBOSITY
3098 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3099 fi
3100 AM_BACKSLASH='\'
3101
3102 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3103 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3104 # is not polluted with repeated "-I."
3105 am__isrc=' -I$(srcdir)'
3106 # test to see if srcdir already configured
3107 if test -f $srcdir/config.status; then
3108 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3109 fi
3110 fi
3111
3112 # test whether we have cygpath
3113 if test -z "$CYGPATH_W"; then
3114 if (cygpath --version) >/dev/null 2>/dev/null; then
3115 CYGPATH_W='cygpath -w'
3116 else
3117 CYGPATH_W=echo
3118 fi
3119 fi
3120
3121
3122 # Define the identity of the package.
3123 PACKAGE='c_icap_modules'
3124 VERSION='0.5.7'
3125
3126
3127 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3128
3129
3130 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3131
3132 # Some tools Automake needs.
3133
3134 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3135
3136
3137 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3138
3139
3140 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3141
3142
3143 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3144
3145
3146 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3147
3148 # For better backward compatibility. To be removed once Automake 1.9.x
3149 # dies out for good. For more background, see:
3150 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3151 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3152 mkdir_p='$(MKDIR_P)'
3153
3154 # We need awk for the "check" target (and possibly the TAP driver). The
3155 # system "awk" is bad on some platforms.
3156 # Always define AMTAR for backward compatibility. Yes, it's still used
3157 # in the wild :-( We should find a proper way to deprecate it ...
3158 AMTAR='$${TAR-tar}'
3159
3160
3161 # We'll loop over all known methods to create a tar archive until one works.
3162 _am_tools='gnutar pax cpio none'
3163
3164 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3165
3166
3167
3168
3169
3170 # Variables for tags utilities; see am/tags.am
3171 if test -z "$CTAGS"; then
3172 CTAGS=ctags
3173 fi
3174
3175 if test -z "$ETAGS"; then
3176 ETAGS=etags
3177 fi
3178
3179 if test -z "$CSCOPE"; then
3180 CSCOPE=cscope
3181 fi
3182
3183
3184
3185 # POSIX will say in a future version that running "rm -f" with no argument
3186 # is OK; and we want to be able to make that assumption in our Makefile
3187 # recipes. So use an aggressive probe to check that the usage we want is
3188 # actually supported "in the wild" to an acceptable degree.
3189 # See automake bug#10828.
3190 # To make any issue more visible, cause the running configure to be aborted
3191 # by default if the 'rm' program in use doesn't match our expectations; the
3192 # user can still override this though.
3193 if rm -f && rm -fr && rm -rf; then : OK; else
3194 cat >&2 <<'END'
3195 Oops!
3196
3197 Your 'rm' program seems unable to run without file operands specified
3198 on the command line, even when the '-f' option is present. This is contrary
3199 to the behaviour of most rm programs out there, and not conforming with
3200 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3201
3202 Please tell [email protected] about your system, including the value
3203 of your $PATH and any error possibly output before this message. This
3204 can help us improve future automake versions.
3205
3206 END
3207 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3208 echo 'Configuration will proceed anyway, since you have set the' >&2
3209 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3210 echo >&2
3211 else
3212 cat >&2 <<'END'
3213 Aborting the configuration process, to ensure you take notice of the issue.
3214
3215 You can download and install GNU coreutils to get an 'rm' implementation
3216 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3217
3218 If you want to complete the configuration process using your problematic
3219 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3220 to "yes", and re-run configure.
3221
3222 END
3223 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3224 fi
3225 fi
3226
3227
3228
3229
3230
3231 # Make sure we can run config.sub.
3232 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3233 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3234
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3236 printf %s "checking build system type... " >&6; }
3237 if test ${ac_cv_build+y}
3238 then :
3239 printf %s "(cached) " >&6
3240 else $as_nop
3241 ac_build_alias=$build_alias
3242 test "x$ac_build_alias" = x &&
3243 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3244 test "x$ac_build_alias" = x &&
3245 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3246 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3247 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3248
3249 fi
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3251 printf "%s\n" "$ac_cv_build" >&6; }
3252 case $ac_cv_build in
3253 *-*-*) ;;
3254 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3255 esac
3256 build=$ac_cv_build
3257 ac_save_IFS=$IFS; IFS='-'
3258 set x $ac_cv_build
3259 shift
3260 build_cpu=$1
3261 build_vendor=$2
3262 shift; shift
3263 # Remember, the first character of IFS is used to create $*,
3264 # except with old shells:
3265 build_os=$*
3266 IFS=$ac_save_IFS
3267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3268
3269
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3271 printf %s "checking host system type... " >&6; }
3272 if test ${ac_cv_host+y}
3273 then :
3274 printf %s "(cached) " >&6
3275 else $as_nop
3276 if test "x$host_alias" = x; then
3277 ac_cv_host=$ac_cv_build
3278 else
3279 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3280 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3281 fi
3282
3283 fi
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3285 printf "%s\n" "$ac_cv_host" >&6; }
3286 case $ac_cv_host in
3287 *-*-*) ;;
3288 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3289 esac
3290 host=$ac_cv_host
3291 ac_save_IFS=$IFS; IFS='-'
3292 set x $ac_cv_host
3293 shift
3294 host_cpu=$1
3295 host_vendor=$2
3296 shift; shift
3297 # Remember, the first character of IFS is used to create $*,
3298 # except with old shells:
3299 host_os=$*
3300 IFS=$ac_save_IFS
3301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313 DEPDIR="${am__leading_dot}deps"
3314
3315 ac_config_commands="$ac_config_commands depfiles"
3316
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3318 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3319 cat > confinc.mk << 'END'
3320 am__doit:
3321 @echo this is the am__doit target >confinc.out
3322 .PHONY: am__doit
3323 END
3324 am__include="#"
3325 am__quote=
3326 # BSD make does it like this.
3327 echo '.include "confinc.mk" # ignored' > confmf.BSD
3328 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3329 echo 'include confinc.mk # ignored' > confmf.GNU
3330 _am_result=no
3331 for s in GNU BSD; do
3332 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3333 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3337 case $?:`cat confinc.out 2>/dev/null` in #(
3338 '0:this is the am__doit target') :
3339 case $s in #(
3340 BSD) :
3341 am__include='.include' am__quote='"' ;; #(
3342 *) :
3343 am__include='include' am__quote='' ;;
3344 esac ;; #(
3345 *) :
3346 ;;
3347 esac
3348 if test "$am__include" != "#"; then
3349 _am_result="yes ($s style)"
3350 break
3351 fi
3352 done
3353 rm -f confinc.* confmf.*
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3355 printf "%s\n" "${_am_result}" >&6; }
3356
3357 # Check whether --enable-dependency-tracking was given.
3358 if test ${enable_dependency_tracking+y}
3359 then :
3360 enableval=$enable_dependency_tracking;
3361 fi
3362
3363 if test "x$enable_dependency_tracking" != xno; then
3364 am_depcomp="$ac_aux_dir/depcomp"
3365 AMDEPBACKSLASH='\'
3366 am__nodep='_no'
3367 fi
3368 if test "x$enable_dependency_tracking" != xno; then
3369 AMDEP_TRUE=
3370 AMDEP_FALSE='#'
3371 else
3372 AMDEP_TRUE='#'
3373 AMDEP_FALSE=
3374 fi
3375
3376
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 printf %s "checking for $ac_word... " >&6; }
3387 if test ${ac_cv_prog_CC+y}
3388 then :
3389 printf %s "(cached) " >&6
3390 else $as_nop
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 case $as_dir in #(((
3399 '') as_dir=./ ;;
3400 */) ;;
3401 *) as_dir=$as_dir/ ;;
3402 esac
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 printf "%s\n" "$CC" >&6; }
3419 else
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 fi
3423
3424
3425 fi
3426 if test -z "$ac_cv_prog_CC"; then
3427 ac_ct_CC=$CC
3428 # Extract the first word of "gcc", so it can be a program name with args.
3429 set dummy gcc; ac_word=$2
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 printf %s "checking for $ac_word... " >&6; }
3432 if test ${ac_cv_prog_ac_ct_CC+y}
3433 then :
3434 printf %s "(cached) " >&6
3435 else $as_nop
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 case $as_dir in #(((
3444 '') as_dir=./ ;;
3445 */) ;;
3446 *) as_dir=$as_dir/ ;;
3447 esac
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_ac_ct_CC="gcc"
3451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454 done
3455 done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463 printf "%s\n" "$ac_ct_CC" >&6; }
3464 else
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 printf "%s\n" "no" >&6; }
3467 fi
3468
3469 if test "x$ac_ct_CC" = x; then
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3475 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned=yes ;;
3477 esac
3478 CC=$ac_ct_CC
3479 fi
3480 else
3481 CC="$ac_cv_prog_CC"
3482 fi
3483
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}cc; ac_word=$2
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 printf %s "checking for $ac_word... " >&6; }
3490 if test ${ac_cv_prog_CC+y}
3491 then :
3492 printf %s "(cached) " >&6
3493 else $as_nop
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 case $as_dir in #(((
3502 '') as_dir=./ ;;
3503 */) ;;
3504 *) as_dir=$as_dir/ ;;
3505 esac
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="${ac_tool_prefix}cc"
3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 printf "%s\n" "$CC" >&6; }
3522 else
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 printf "%s\n" "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 fi
3530 if test -z "$CC"; then
3531 # Extract the first word of "cc", so it can be a program name with args.
3532 set dummy cc; ac_word=$2
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 printf %s "checking for $ac_word... " >&6; }
3535 if test ${ac_cv_prog_CC+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else $as_nop
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 ac_prog_rejected=no
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 case $as_dir in #(((
3548 '') as_dir=./ ;;
3549 */) ;;
3550 *) as_dir=$as_dir/ ;;
3551 esac
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3554 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3555 ac_prog_rejected=yes
3556 continue
3557 fi
3558 ac_cv_prog_CC="cc"
3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 if test $ac_prog_rejected = yes; then
3567 # We found a bogon in the path, so make sure we never use it.
3568 set dummy $ac_cv_prog_CC
3569 shift
3570 if test $# != 0; then
3571 # We chose a different compiler from the bogus one.
3572 # However, it has the same basename, so the bogon will be chosen
3573 # first if we set CC to just the basename; use the full file name.
3574 shift
3575 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3576 fi
3577 fi
3578 fi
3579 fi
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583 printf "%s\n" "$CC" >&6; }
3584 else
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 printf "%s\n" "no" >&6; }
3587 fi
3588
3589
3590 fi
3591 if test -z "$CC"; then
3592 if test -n "$ac_tool_prefix"; then
3593 for ac_prog in cl.exe
3594 do
3595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 printf %s "checking for $ac_word... " >&6; }
3599 if test ${ac_cv_prog_CC+y}
3600 then :
3601 printf %s "(cached) " >&6
3602 else $as_nop
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609 IFS=$as_save_IFS
3610 case $as_dir in #(((
3611 '') as_dir=./ ;;
3612 */) ;;
3613 *) as_dir=$as_dir/ ;;
3614 esac
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619 break 2
3620 fi
3621 done
3622 done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 printf "%s\n" "$CC" >&6; }
3631 else
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3634 fi
3635
3636
3637 test -n "$CC" && break
3638 done
3639 fi
3640 if test -z "$CC"; then
3641 ac_ct_CC=$CC
3642 for ac_prog in cl.exe
3643 do
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 printf %s "checking for $ac_word... " >&6; }
3648 if test ${ac_cv_prog_ac_ct_CC+y}
3649 then :
3650 printf %s "(cached) " >&6
3651 else $as_nop
3652 if test -n "$ac_ct_CC"; then
3653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 case $as_dir in #(((
3660 '') as_dir=./ ;;
3661 */) ;;
3662 *) as_dir=$as_dir/ ;;
3663 esac
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_ac_ct_CC="$ac_prog"
3667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679 printf "%s\n" "$ac_ct_CC" >&6; }
3680 else
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3683 fi
3684
3685
3686 test -n "$ac_ct_CC" && break
3687 done
3688
3689 if test "x$ac_ct_CC" = x; then
3690 CC=""
3691 else
3692 case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698 CC=$ac_ct_CC
3699 fi
3700 fi
3701
3702 fi
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3706 set dummy ${ac_tool_prefix}clang; ac_word=$2
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 printf %s "checking for $ac_word... " >&6; }
3709 if test ${ac_cv_prog_CC+y}
3710 then :
3711 printf %s "(cached) " >&6
3712 else $as_nop
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 case $as_dir in #(((
3721 '') as_dir=./ ;;
3722 */) ;;
3723 *) as_dir=$as_dir/ ;;
3724 esac
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_CC="${ac_tool_prefix}clang"
3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731 done
3732 done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 printf "%s\n" "$CC" >&6; }
3741 else
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 printf "%s\n" "no" >&6; }
3744 fi
3745
3746
3747 fi
3748 if test -z "$ac_cv_prog_CC"; then
3749 ac_ct_CC=$CC
3750 # Extract the first word of "clang", so it can be a program name with args.
3751 set dummy clang; ac_word=$2
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 printf %s "checking for $ac_word... " >&6; }
3754 if test ${ac_cv_prog_ac_ct_CC+y}
3755 then :
3756 printf %s "(cached) " >&6
3757 else $as_nop
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 case $as_dir in #(((
3766 '') as_dir=./ ;;
3767 */) ;;
3768 *) as_dir=$as_dir/ ;;
3769 esac
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_ac_ct_CC="clang"
3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783 if test -n "$ac_ct_CC"; then
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3785 printf "%s\n" "$ac_ct_CC" >&6; }
3786 else
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 fi
3790
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3801 fi
3802 else
3803 CC="$ac_cv_prog_CC"
3804 fi
3805
3806 fi
3807
3808
3809 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "no acceptable C compiler found in \$PATH
3812 See \`config.log' for more details" "$LINENO" 5; }
3813
3814 # Provide some information about the compiler.
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3816 set X $ac_compile
3817 ac_compiler=$2
3818 for ac_option in --version -v -V -qversion -version; do
3819 { { ac_try="$ac_compiler $ac_option >&5"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 printf "%s\n" "$ac_try_echo"; } >&5
3826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3827 ac_status=$?
3828 if test -s conftest.err; then
3829 sed '10a\
3830 ... rest of stderr output deleted ...
3831 10q' conftest.err >conftest.er1
3832 cat conftest.er1 >&5
3833 fi
3834 rm -f conftest.er1 conftest.err
3835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }
3837 done
3838
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841
3842 int
3843 main (void)
3844 {
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 ac_clean_files_save=$ac_clean_files
3851 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3852 # Try to create an executable without -o first, disregard a.out.
3853 # It will help us diagnose broken compilers, and finding out an intuition
3854 # of exeext.
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3856 printf %s "checking whether the C compiler works... " >&6; }
3857 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3858
3859 # The possible output files:
3860 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3861
3862 ac_rmfiles=
3863 for ac_file in $ac_files
3864 do
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3867 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3868 esac
3869 done
3870 rm -f $ac_rmfiles
3871
3872 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3880 ac_status=$?
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }
3883 then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3890 do
3891 test -f "$ac_file" || continue
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3894 ;;
3895 [ab].out )
3896 # We found the default executable, but exeext='' is most
3897 # certainly right.
3898 break;;
3899 *.* )
3900 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3901 then :; else
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3903 fi
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3908 # actually working.
3909 break;;
3910 * )
3911 break;;
3912 esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3915
3916 else $as_nop
3917 ac_file=''
3918 fi
3919 if test -z "$ac_file"
3920 then :
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 printf "%s\n" "no" >&6; }
3923 printf "%s\n" "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error 77 "C compiler cannot create executables
3929 See \`config.log' for more details" "$LINENO" 5; }
3930 else $as_nop
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932 printf "%s\n" "yes" >&6; }
3933 fi
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3935 printf %s "checking for C compiler default output file name... " >&6; }
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 printf "%s\n" "$ac_file" >&6; }
3938 ac_exeext=$ac_cv_exeext
3939
3940 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3941 ac_clean_files=$ac_clean_files_save
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3943 printf %s "checking for suffix of executables... " >&6; }
3944 if { { ac_try="$ac_link"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 printf "%s\n" "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3952 ac_status=$?
3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }
3955 then :
3956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3958 # work properly (i.e., refer to `conftest.exe'), while it won't with
3959 # `rm'.
3960 for ac_file in conftest.exe conftest conftest.*; do
3961 test -f "$ac_file" || continue
3962 case $ac_file in
3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965 break;;
3966 * ) break;;
3967 esac
3968 done
3969 else $as_nop
3970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3973 See \`config.log' for more details" "$LINENO" 5; }
3974 fi
3975 rm -f conftest conftest$ac_cv_exeext
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3977 printf "%s\n" "$ac_cv_exeext" >&6; }
3978
3979 rm -f conftest.$ac_ext
3980 EXEEXT=$ac_cv_exeext
3981 ac_exeext=$EXEEXT
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 #include <stdio.h>
3985 int
3986 main (void)
3987 {
3988 FILE *f = fopen ("conftest.out", "w");
3989 return ferror (f) || fclose (f) != 0;
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 ac_clean_files="$ac_clean_files conftest.out"
3996 # Check that the compiler produces executables we can run. If not, either
3997 # the compiler is broken, or we cross compile.
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3999 printf %s "checking whether we are cross compiling... " >&6; }
4000 if test "$cross_compiling" != yes; then
4001 { { ac_try="$ac_link"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 printf "%s\n" "$ac_try_echo"; } >&5
4008 (eval "$ac_link") 2>&5
4009 ac_status=$?
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4012 if { ac_try='./conftest$ac_cv_exeext'
4013 { { case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 printf "%s\n" "$ac_try_echo"; } >&5
4019 (eval "$ac_try") 2>&5
4020 ac_status=$?
4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; }; then
4023 cross_compiling=no
4024 else
4025 if test "$cross_compiling" = maybe; then
4026 cross_compiling=yes
4027 else
4028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error 77 "cannot run C compiled programs.
4031 If you meant to cross compile, use \`--host'.
4032 See \`config.log' for more details" "$LINENO" 5; }
4033 fi
4034 fi
4035 fi
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4037 printf "%s\n" "$cross_compiling" >&6; }
4038
4039 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4040 ac_clean_files=$ac_clean_files_save
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4042 printf %s "checking for suffix of object files... " >&6; }
4043 if test ${ac_cv_objext+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else $as_nop
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main (void)
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.o conftest.obj
4059 if { { ac_try="$ac_compile"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 printf "%s\n" "$ac_try_echo"; } >&5
4066 (eval "$ac_compile") 2>&5
4067 ac_status=$?
4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }
4070 then :
4071 for ac_file in conftest.o conftest.obj conftest.*; do
4072 test -f "$ac_file" || continue;
4073 case $ac_file in
4074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4075 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4076 break;;
4077 esac
4078 done
4079 else $as_nop
4080 printf "%s\n" "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "cannot compute suffix of object files: cannot compile
4086 See \`config.log' for more details" "$LINENO" 5; }
4087 fi
4088 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4089 fi
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4091 printf "%s\n" "$ac_cv_objext" >&6; }
4092 OBJEXT=$ac_cv_objext
4093 ac_objext=$OBJEXT
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4095 printf %s "checking whether the compiler supports GNU C... " >&6; }
4096 if test ${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
4107 choke me
4108 #endif
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"
4115 then :
4116 ac_compiler_gnu=yes
4117 else $as_nop
4118 ac_compiler_gnu=no
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4122
4123 fi
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4125 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
4128 if test $ac_compiler_gnu = yes; then
4129 GCC=yes
4130 else
4131 GCC=
4132 fi
4133 ac_test_CFLAGS=${CFLAGS+y}
4134 ac_save_CFLAGS=$CFLAGS
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4136 printf %s "checking whether $CC accepts -g... " >&6; }
4137 if test ${ac_cv_prog_cc_g+y}
4138 then :
4139 printf %s "(cached) " >&6
4140 else $as_nop
4141 ac_save_c_werror_flag=$ac_c_werror_flag
4142 ac_c_werror_flag=yes
4143 ac_cv_prog_cc_g=no
4144 CFLAGS="-g"
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main (void)
4150 {
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"
4157 then :
4158 ac_cv_prog_cc_g=yes
4159 else $as_nop
4160 CFLAGS=""
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main (void)
4166 {
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"
4173 then :
4174
4175 else $as_nop
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4177 CFLAGS="-g"
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main (void)
4183 {
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"
4190 then :
4191 ac_cv_prog_cc_g=yes
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4199 fi
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4201 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4202 if test $ac_test_CFLAGS; then
4203 CFLAGS=$ac_save_CFLAGS
4204 elif test $ac_cv_prog_cc_g = yes; then
4205 if test "$GCC" = yes; then
4206 CFLAGS="-g -O2"
4207 else
4208 CFLAGS="-g"
4209 fi
4210 else
4211 if test "$GCC" = yes; then
4212 CFLAGS="-O2"
4213 else
4214 CFLAGS=
4215 fi
4216 fi
4217 ac_prog_cc_stdc=no
4218 if test x$ac_prog_cc_stdc = xno
4219 then :
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4221 printf %s "checking for $CC option to enable C11 features... " >&6; }
4222 if test ${ac_cv_prog_cc_c11+y}
4223 then :
4224 printf %s "(cached) " >&6
4225 else $as_nop
4226 ac_cv_prog_cc_c11=no
4227 ac_save_CC=$CC
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 $ac_c_conftest_c11_program
4231 _ACEOF
4232 for ac_arg in '' -std=gnu11
4233 do
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"
4236 then :
4237 ac_cv_prog_cc_c11=$ac_arg
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.beam
4240 test "x$ac_cv_prog_cc_c11" != "xno" && break
4241 done
4242 rm -f conftest.$ac_ext
4243 CC=$ac_save_CC
4244 fi
4245
4246 if test "x$ac_cv_prog_cc_c11" = xno
4247 then :
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 printf "%s\n" "unsupported" >&6; }
4250 else $as_nop
4251 if test "x$ac_cv_prog_cc_c11" = x
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4254 printf "%s\n" "none needed" >&6; }
4255 else $as_nop
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4257 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4258 CC="$CC $ac_cv_prog_cc_c11"
4259 fi
4260 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4261 ac_prog_cc_stdc=c11
4262 fi
4263 fi
4264 if test x$ac_prog_cc_stdc = xno
4265 then :
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4267 printf %s "checking for $CC option to enable C99 features... " >&6; }
4268 if test ${ac_cv_prog_cc_c99+y}
4269 then :
4270 printf %s "(cached) " >&6
4271 else $as_nop
4272 ac_cv_prog_cc_c99=no
4273 ac_save_CC=$CC
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 $ac_c_conftest_c99_program
4277 _ACEOF
4278 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4279 do
4280 CC="$ac_save_CC $ac_arg"
4281 if ac_fn_c_try_compile "$LINENO"
4282 then :
4283 ac_cv_prog_cc_c99=$ac_arg
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.beam
4286 test "x$ac_cv_prog_cc_c99" != "xno" && break
4287 done
4288 rm -f conftest.$ac_ext
4289 CC=$ac_save_CC
4290 fi
4291
4292 if test "x$ac_cv_prog_cc_c99" = xno
4293 then :
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 printf "%s\n" "unsupported" >&6; }
4296 else $as_nop
4297 if test "x$ac_cv_prog_cc_c99" = x
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 printf "%s\n" "none needed" >&6; }
4301 else $as_nop
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4303 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4304 CC="$CC $ac_cv_prog_cc_c99"
4305 fi
4306 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4307 ac_prog_cc_stdc=c99
4308 fi
4309 fi
4310 if test x$ac_prog_cc_stdc = xno
4311 then :
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4313 printf %s "checking for $CC option to enable C89 features... " >&6; }
4314 if test ${ac_cv_prog_cc_c89+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else $as_nop
4318 ac_cv_prog_cc_c89=no
4319 ac_save_CC=$CC
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 $ac_c_conftest_c89_program
4323 _ACEOF
4324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4325 do
4326 CC="$ac_save_CC $ac_arg"
4327 if ac_fn_c_try_compile "$LINENO"
4328 then :
4329 ac_cv_prog_cc_c89=$ac_arg
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.beam
4332 test "x$ac_cv_prog_cc_c89" != "xno" && break
4333 done
4334 rm -f conftest.$ac_ext
4335 CC=$ac_save_CC
4336 fi
4337
4338 if test "x$ac_cv_prog_cc_c89" = xno
4339 then :
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 printf "%s\n" "unsupported" >&6; }
4342 else $as_nop
4343 if test "x$ac_cv_prog_cc_c89" = x
4344 then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346 printf "%s\n" "none needed" >&6; }
4347 else $as_nop
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4349 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4350 CC="$CC $ac_cv_prog_cc_c89"
4351 fi
4352 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4353 ac_prog_cc_stdc=c89
4354 fi
4355 fi
4356
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362
4363
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4370 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4371 if test ${am_cv_prog_cc_c_o+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else $as_nop
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main (void)
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 # Make sure it works both with $CC and with simple cc.
4387 # Following AC_PROG_CC_C_O, we do the test twice because some
4388 # compilers refuse to overwrite an existing .o file with -o,
4389 # though they will create one.
4390 am_cv_prog_cc_c_o=yes
4391 for am_i in 1 2; do
4392 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4393 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } \
4397 && test -f conftest2.$ac_objext; then
4398 : OK
4399 else
4400 am_cv_prog_cc_c_o=no
4401 break
4402 fi
4403 done
4404 rm -f core conftest*
4405 unset am_i
4406 fi
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4408 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4409 if test "$am_cv_prog_cc_c_o" != yes; then
4410 # Losing compiler, so override with the script.
4411 # FIXME: It is wrong to rewrite CC.
4412 # But if we don't then we get into trouble of one sort or another.
4413 # A longer-term fix would be to have automake use am__CC in this case,
4414 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4415 CC="$am_aux_dir/compile $CC"
4416 fi
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
4423
4424 depcc="$CC" am_compiler_list=
4425
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4427 printf %s "checking dependency style of $depcc... " >&6; }
4428 if test ${am_cv_CC_dependencies_compiler_type+y}
4429 then :
4430 printf %s "(cached) " >&6
4431 else $as_nop
4432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433 # We make a subdir and do the tests there. Otherwise we can end up
4434 # making bogus files that we don't know about and never remove. For
4435 # instance it was reported that on HP-UX the gcc test will end up
4436 # making a dummy file named 'D' -- because '-MD' means "put the output
4437 # in D".
4438 rm -rf conftest.dir
4439 mkdir conftest.dir
4440 # Copy depcomp to subdir because otherwise we won't find it if we're
4441 # using a relative directory.
4442 cp "$am_depcomp" conftest.dir
4443 cd conftest.dir
4444 # We will build objects and dependencies in a subdirectory because
4445 # it helps to detect inapplicable dependency modes. For instance
4446 # both Tru64's cc and ICC support -MD to output dependencies as a
4447 # side effect of compilation, but ICC will put the dependencies in
4448 # the current directory while Tru64 will put them in the object
4449 # directory.
4450 mkdir sub
4451
4452 am_cv_CC_dependencies_compiler_type=none
4453 if test "$am_compiler_list" = ""; then
4454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455 fi
4456 am__universal=false
4457 case " $depcc " in #(
4458 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459 esac
4460
4461 for depmode in $am_compiler_list; do
4462 # Setup a source with many dependencies, because some compilers
4463 # like to wrap large dependency lists on column 80 (with \), and
4464 # we should not choose a depcomp mode which is confused by this.
4465 #
4466 # We need to recreate these files for each test, as the compiler may
4467 # overwrite some of them when testing with obscure command lines.
4468 # This happens at least with the AIX C compiler.
4469 : > sub/conftest.c
4470 for i in 1 2 3 4 5 6; do
4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473 # Solaris 10 /bin/sh.
4474 echo '/* dummy */' > sub/conftst$i.h
4475 done
4476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479 # mode. It turns out that the SunPro C++ compiler does not properly
4480 # handle '-M -o', and we need to detect this. Also, some Intel
4481 # versions had trouble with output in subdirs.
4482 am__obj=sub/conftest.${OBJEXT-o}
4483 am__minus_obj="-o $am__obj"
4484 case $depmode in
4485 gcc)
4486 # This depmode causes a compiler race in universal mode.
4487 test "$am__universal" = false || continue
4488 ;;
4489 nosideeffect)
4490 # After this tag, mechanisms are not by side-effect, so they'll
4491 # only be used when explicitly requested.
4492 if test "x$enable_dependency_tracking" = xyes; then
4493 continue
4494 else
4495 break
4496 fi
4497 ;;
4498 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499 # This compiler won't grok '-c -o', but also, the minuso test has
4500 # not run yet. These depmodes are late enough in the game, and
4501 # so weak that their functioning should not be impacted.
4502 am__obj=conftest.${OBJEXT-o}
4503 am__minus_obj=
4504 ;;
4505 none) break ;;
4506 esac
4507 if depmode=$depmode \
4508 source=sub/conftest.c object=$am__obj \
4509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511 >/dev/null 2>conftest.err &&
4512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516 # icc doesn't choke on unknown options, it will just issue warnings
4517 # or remarks (even with -Werror). So we grep stderr for any message
4518 # that says an option was ignored or not supported.
4519 # When given -MP, icc 7.0 and 7.1 complain thusly:
4520 # icc: Command line warning: ignoring option '-M'; no argument required
4521 # The diagnosis changed in icc 8.0:
4522 # icc: Command line remark: option '-MP' not supported
4523 if (grep 'ignoring option' conftest.err ||
4524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525 am_cv_CC_dependencies_compiler_type=$depmode
4526 break
4527 fi
4528 fi
4529 done
4530
4531 cd ..
4532 rm -rf conftest.dir
4533 else
4534 am_cv_CC_dependencies_compiler_type=none
4535 fi
4536
4537 fi
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4540 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543 test "x$enable_dependency_tracking" != xno \
4544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545 am__fastdepCC_TRUE=
4546 am__fastdepCC_FALSE='#'
4547 else
4548 am__fastdepCC_TRUE='#'
4549 am__fastdepCC_FALSE=
4550 fi
4551
4552
4553
4554 ac_header= ac_cache=
4555 for ac_item in $ac_header_c_list
4556 do
4557 if test $ac_cache; then
4558 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4559 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4560 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4561 fi
4562 ac_header= ac_cache=
4563 elif test $ac_header; then
4564 ac_cache=$ac_item
4565 else
4566 ac_header=$ac_item
4567 fi
4568 done
4569
4570
4571
4572
4573
4574
4575
4576
4577 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4578 then :
4579
4580 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4581
4582 fi
4583
4584
4585
4586
4587
4588
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4590 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4591 if test ${ac_cv_safe_to_define___extensions__+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else $as_nop
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 # define __EXTENSIONS__ 1
4599 $ac_includes_default
4600 int
4601 main (void)
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"
4609 then :
4610 ac_cv_safe_to_define___extensions__=yes
4611 else $as_nop
4612 ac_cv_safe_to_define___extensions__=no
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4615 fi
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4617 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4618
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4620 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4621 if test ${ac_cv_should_define__xopen_source+y}
4622 then :
4623 printf %s "(cached) " >&6
4624 else $as_nop
4625 ac_cv_should_define__xopen_source=no
4626 if test $ac_cv_header_wchar_h = yes
4627 then :
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630
4631 #include <wchar.h>
4632 mbstate_t x;
4633 int
4634 main (void)
4635 {
4636
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"
4642 then :
4643
4644 else $as_nop
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647
4648 #define _XOPEN_SOURCE 500
4649 #include <wchar.h>
4650 mbstate_t x;
4651 int
4652 main (void)
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 if ac_fn_c_try_compile "$LINENO"
4660 then :
4661 ac_cv_should_define__xopen_source=yes
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 fi
4667 fi
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4669 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4670
4671 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4672
4673 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4674
4675 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4676
4677 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4678
4679 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4680
4681 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4682
4683 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4684
4685 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4686
4687 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4688
4689 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4690
4691 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4692
4693 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4694
4695 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4696
4697 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4698
4699 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4700
4701 if test $ac_cv_header_minix_config_h = yes
4702 then :
4703 MINIX=yes
4704 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4705
4706 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4707
4708 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4709
4710 else $as_nop
4711 MINIX=
4712 fi
4713 if test $ac_cv_safe_to_define___extensions__ = yes
4714 then :
4715 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4716
4717 fi
4718 if test $ac_cv_should_define__xopen_source = yes
4719 then :
4720 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4721
4722 fi
4723
4724
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 printf %s "checking for $ac_word... " >&6; }
4735 if test ${ac_cv_prog_CC+y}
4736 then :
4737 printf %s "(cached) " >&6
4738 else $as_nop
4739 if test -n "$CC"; then
4740 ac_cv_prog_CC="$CC" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745 IFS=$as_save_IFS
4746 case $as_dir in #(((
4747 '') as_dir=./ ;;
4748 */) ;;
4749 *) as_dir=$as_dir/ ;;
4750 esac
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 CC=$ac_cv_prog_CC
4764 if test -n "$CC"; then
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766 printf "%s\n" "$CC" >&6; }
4767 else
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 printf "%s\n" "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_CC"; then
4775 ac_ct_CC=$CC
4776 # Extract the first word of "gcc", so it can be a program name with args.
4777 set dummy gcc; ac_word=$2
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 printf %s "checking for $ac_word... " >&6; }
4780 if test ${ac_cv_prog_ac_ct_CC+y}
4781 then :
4782 printf %s "(cached) " >&6
4783 else $as_nop
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790 IFS=$as_save_IFS
4791 case $as_dir in #(((
4792 '') as_dir=./ ;;
4793 */) ;;
4794 *) as_dir=$as_dir/ ;;
4795 esac
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_ac_ct_CC="gcc"
4799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806 fi
4807 fi
4808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4809 if test -n "$ac_ct_CC"; then
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4811 printf "%s\n" "$ac_ct_CC" >&6; }
4812 else
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 printf "%s\n" "no" >&6; }
4815 fi
4816
4817 if test "x$ac_ct_CC" = x; then
4818 CC=""
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821 yes:)
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824 ac_tool_warned=yes ;;
4825 esac
4826 CC=$ac_ct_CC
4827 fi
4828 else
4829 CC="$ac_cv_prog_CC"
4830 fi
4831
4832 if test -z "$CC"; then
4833 if test -n "$ac_tool_prefix"; then
4834 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4835 set dummy ${ac_tool_prefix}cc; ac_word=$2
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 printf %s "checking for $ac_word... " >&6; }
4838 if test ${ac_cv_prog_CC+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else $as_nop
4842 if test -n "$CC"; then
4843 ac_cv_prog_CC="$CC" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848 IFS=$as_save_IFS
4849 case $as_dir in #(((
4850 '') as_dir=./ ;;
4851 */) ;;
4852 *) as_dir=$as_dir/ ;;
4853 esac
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_CC="${ac_tool_prefix}cc"
4857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4858 break 2
4859 fi
4860 done
4861 done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 CC=$ac_cv_prog_CC
4867 if test -n "$CC"; then
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869 printf "%s\n" "$CC" >&6; }
4870 else
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 printf "%s\n" "no" >&6; }
4873 fi
4874
4875
4876 fi
4877 fi
4878 if test -z "$CC"; then
4879 # Extract the first word of "cc", so it can be a program name with args.
4880 set dummy cc; ac_word=$2
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 printf %s "checking for $ac_word... " >&6; }
4883 if test ${ac_cv_prog_CC+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4887 if test -n "$CC"; then
4888 ac_cv_prog_CC="$CC" # Let the user override the test.
4889 else
4890 ac_prog_rejected=no
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894 IFS=$as_save_IFS
4895 case $as_dir in #(((
4896 '') as_dir=./ ;;
4897 */) ;;
4898 *) as_dir=$as_dir/ ;;
4899 esac
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4902 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4903 ac_prog_rejected=yes
4904 continue
4905 fi
4906 ac_cv_prog_CC="cc"
4907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912 IFS=$as_save_IFS
4913
4914 if test $ac_prog_rejected = yes; then
4915 # We found a bogon in the path, so make sure we never use it.
4916 set dummy $ac_cv_prog_CC
4917 shift
4918 if test $# != 0; then
4919 # We chose a different compiler from the bogus one.
4920 # However, it has the same basename, so the bogon will be chosen
4921 # first if we set CC to just the basename; use the full file name.
4922 shift
4923 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4924 fi
4925 fi
4926 fi
4927 fi
4928 CC=$ac_cv_prog_CC
4929 if test -n "$CC"; then
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 printf "%s\n" "$CC" >&6; }
4932 else
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 printf "%s\n" "no" >&6; }
4935 fi
4936
4937
4938 fi
4939 if test -z "$CC"; then
4940 if test -n "$ac_tool_prefix"; then
4941 for ac_prog in cl.exe
4942 do
4943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 printf %s "checking for $ac_word... " >&6; }
4947 if test ${ac_cv_prog_CC+y}
4948 then :
4949 printf %s "(cached) " >&6
4950 else $as_nop
4951 if test -n "$CC"; then
4952 ac_cv_prog_CC="$CC" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957 IFS=$as_save_IFS
4958 case $as_dir in #(((
4959 '') as_dir=./ ;;
4960 */) ;;
4961 *) as_dir=$as_dir/ ;;
4962 esac
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 fi
4974 fi
4975 CC=$ac_cv_prog_CC
4976 if test -n "$CC"; then
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4978 printf "%s\n" "$CC" >&6; }
4979 else
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 printf "%s\n" "no" >&6; }
4982 fi
4983
4984
4985 test -n "$CC" && break
4986 done
4987 fi
4988 if test -z "$CC"; then
4989 ac_ct_CC=$CC
4990 for ac_prog in cl.exe
4991 do
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 printf %s "checking for $ac_word... " >&6; }
4996 if test ${ac_cv_prog_ac_ct_CC+y}
4997 then :
4998 printf %s "(cached) " >&6
4999 else $as_nop
5000 if test -n "$ac_ct_CC"; then
5001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006 IFS=$as_save_IFS
5007 case $as_dir in #(((
5008 '') as_dir=./ ;;
5009 */) ;;
5010 *) as_dir=$as_dir/ ;;
5011 esac
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_CC="$ac_prog"
5015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5025 if test -n "$ac_ct_CC"; then
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5027 printf "%s\n" "$ac_ct_CC" >&6; }
5028 else
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 printf "%s\n" "no" >&6; }
5031 fi
5032
5033
5034 test -n "$ac_ct_CC" && break
5035 done
5036
5037 if test "x$ac_ct_CC" = x; then
5038 CC=""
5039 else
5040 case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046 CC=$ac_ct_CC
5047 fi
5048 fi
5049
5050 fi
5051 if test -z "$CC"; then
5052 if test -n "$ac_tool_prefix"; then
5053 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}clang; ac_word=$2
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 printf %s "checking for $ac_word... " >&6; }
5057 if test ${ac_cv_prog_CC+y}
5058 then :
5059 printf %s "(cached) " >&6
5060 else $as_nop
5061 if test -n "$CC"; then
5062 ac_cv_prog_CC="$CC" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 case $as_dir in #(((
5069 '') as_dir=./ ;;
5070 */) ;;
5071 *) as_dir=$as_dir/ ;;
5072 esac
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_CC="${ac_tool_prefix}clang"
5076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 CC=$ac_cv_prog_CC
5086 if test -n "$CC"; then
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5088 printf "%s\n" "$CC" >&6; }
5089 else
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 printf "%s\n" "no" >&6; }
5092 fi
5093
5094
5095 fi
5096 if test -z "$ac_cv_prog_CC"; then
5097 ac_ct_CC=$CC
5098 # Extract the first word of "clang", so it can be a program name with args.
5099 set dummy clang; ac_word=$2
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 printf %s "checking for $ac_word... " >&6; }
5102 if test ${ac_cv_prog_ac_ct_CC+y}
5103 then :
5104 printf %s "(cached) " >&6
5105 else $as_nop
5106 if test -n "$ac_ct_CC"; then
5107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112 IFS=$as_save_IFS
5113 case $as_dir in #(((
5114 '') as_dir=./ ;;
5115 */) ;;
5116 *) as_dir=$as_dir/ ;;
5117 esac
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_CC="clang"
5121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5131 if test -n "$ac_ct_CC"; then
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5133 printf "%s\n" "$ac_ct_CC" >&6; }
5134 else
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 printf "%s\n" "no" >&6; }
5137 fi
5138
5139 if test "x$ac_ct_CC" = x; then
5140 CC=""
5141 else
5142 case $cross_compiling:$ac_tool_warned in
5143 yes:)
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146 ac_tool_warned=yes ;;
5147 esac
5148 CC=$ac_ct_CC
5149 fi
5150 else
5151 CC="$ac_cv_prog_CC"
5152 fi
5153
5154 fi
5155
5156
5157 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5159 as_fn_error $? "no acceptable C compiler found in \$PATH
5160 See \`config.log' for more details" "$LINENO" 5; }
5161
5162 # Provide some information about the compiler.
5163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5164 set X $ac_compile
5165 ac_compiler=$2
5166 for ac_option in --version -v -V -qversion -version; do
5167 { { ac_try="$ac_compiler $ac_option >&5"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173 printf "%s\n" "$ac_try_echo"; } >&5
5174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5175 ac_status=$?
5176 if test -s conftest.err; then
5177 sed '10a\
5178 ... rest of stderr output deleted ...
5179 10q' conftest.err >conftest.er1
5180 cat conftest.er1 >&5
5181 fi
5182 rm -f conftest.er1 conftest.err
5183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }
5185 done
5186
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5188 printf %s "checking whether the compiler supports GNU C... " >&6; }
5189 if test ${ac_cv_c_compiler_gnu+y}
5190 then :
5191 printf %s "(cached) " >&6
5192 else $as_nop
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195
5196 int
5197 main (void)
5198 {
5199 #ifndef __GNUC__
5200 choke me
5201 #endif
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"
5208 then :
5209 ac_compiler_gnu=yes
5210 else $as_nop
5211 ac_compiler_gnu=no
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5215
5216 fi
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5218 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221 if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223 else
5224 GCC=
5225 fi
5226 ac_test_CFLAGS=${CFLAGS+y}
5227 ac_save_CFLAGS=$CFLAGS
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 printf %s "checking whether $CC accepts -g... " >&6; }
5230 if test ${ac_cv_prog_cc_g+y}
5231 then :
5232 printf %s "(cached) " >&6
5233 else $as_nop
5234 ac_save_c_werror_flag=$ac_c_werror_flag
5235 ac_c_werror_flag=yes
5236 ac_cv_prog_cc_g=no
5237 CFLAGS="-g"
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240
5241 int
5242 main (void)
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"
5250 then :
5251 ac_cv_prog_cc_g=yes
5252 else $as_nop
5253 CFLAGS=""
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256
5257 int
5258 main (void)
5259 {
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"
5266 then :
5267
5268 else $as_nop
5269 ac_c_werror_flag=$ac_save_c_werror_flag
5270 CFLAGS="-g"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273
5274 int
5275 main (void)
5276 {
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"
5283 then :
5284 ac_cv_prog_cc_g=yes
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5291 ac_c_werror_flag=$ac_save_c_werror_flag
5292 fi
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5294 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5295 if test $ac_test_CFLAGS; then
5296 CFLAGS=$ac_save_CFLAGS
5297 elif test $ac_cv_prog_cc_g = yes; then
5298 if test "$GCC" = yes; then
5299 CFLAGS="-g -O2"
5300 else
5301 CFLAGS="-g"
5302 fi
5303 else
5304 if test "$GCC" = yes; then
5305 CFLAGS="-O2"
5306 else
5307 CFLAGS=
5308 fi
5309 fi
5310 ac_prog_cc_stdc=no
5311 if test x$ac_prog_cc_stdc = xno
5312 then :
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5314 printf %s "checking for $CC option to enable C11 features... " >&6; }
5315 if test ${ac_cv_prog_cc_c11+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 ac_cv_prog_cc_c11=no
5320 ac_save_CC=$CC
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 $ac_c_conftest_c11_program
5324 _ACEOF
5325 for ac_arg in '' -std=gnu11
5326 do
5327 CC="$ac_save_CC $ac_arg"
5328 if ac_fn_c_try_compile "$LINENO"
5329 then :
5330 ac_cv_prog_cc_c11=$ac_arg
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.beam
5333 test "x$ac_cv_prog_cc_c11" != "xno" && break
5334 done
5335 rm -f conftest.$ac_ext
5336 CC=$ac_save_CC
5337 fi
5338
5339 if test "x$ac_cv_prog_cc_c11" = xno
5340 then :
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5342 printf "%s\n" "unsupported" >&6; }
5343 else $as_nop
5344 if test "x$ac_cv_prog_cc_c11" = x
5345 then :
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5347 printf "%s\n" "none needed" >&6; }
5348 else $as_nop
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5350 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5351 CC="$CC $ac_cv_prog_cc_c11"
5352 fi
5353 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5354 ac_prog_cc_stdc=c11
5355 fi
5356 fi
5357 if test x$ac_prog_cc_stdc = xno
5358 then :
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5360 printf %s "checking for $CC option to enable C99 features... " >&6; }
5361 if test ${ac_cv_prog_cc_c99+y}
5362 then :
5363 printf %s "(cached) " >&6
5364 else $as_nop
5365 ac_cv_prog_cc_c99=no
5366 ac_save_CC=$CC
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 $ac_c_conftest_c99_program
5370 _ACEOF
5371 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5372 do
5373 CC="$ac_save_CC $ac_arg"
5374 if ac_fn_c_try_compile "$LINENO"
5375 then :
5376 ac_cv_prog_cc_c99=$ac_arg
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.beam
5379 test "x$ac_cv_prog_cc_c99" != "xno" && break
5380 done
5381 rm -f conftest.$ac_ext
5382 CC=$ac_save_CC
5383 fi
5384
5385 if test "x$ac_cv_prog_cc_c99" = xno
5386 then :
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5388 printf "%s\n" "unsupported" >&6; }
5389 else $as_nop
5390 if test "x$ac_cv_prog_cc_c99" = x
5391 then :
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 printf "%s\n" "none needed" >&6; }
5394 else $as_nop
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5396 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5397 CC="$CC $ac_cv_prog_cc_c99"
5398 fi
5399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5400 ac_prog_cc_stdc=c99
5401 fi
5402 fi
5403 if test x$ac_prog_cc_stdc = xno
5404 then :
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5406 printf %s "checking for $CC option to enable C89 features... " >&6; }
5407 if test ${ac_cv_prog_cc_c89+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else $as_nop
5411 ac_cv_prog_cc_c89=no
5412 ac_save_CC=$CC
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 $ac_c_conftest_c89_program
5416 _ACEOF
5417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5418 do
5419 CC="$ac_save_CC $ac_arg"
5420 if ac_fn_c_try_compile "$LINENO"
5421 then :
5422 ac_cv_prog_cc_c89=$ac_arg
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.beam
5425 test "x$ac_cv_prog_cc_c89" != "xno" && break
5426 done
5427 rm -f conftest.$ac_ext
5428 CC=$ac_save_CC
5429 fi
5430
5431 if test "x$ac_cv_prog_cc_c89" = xno
5432 then :
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5434 printf "%s\n" "unsupported" >&6; }
5435 else $as_nop
5436 if test "x$ac_cv_prog_cc_c89" = x
5437 then :
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5439 printf "%s\n" "none needed" >&6; }
5440 else $as_nop
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5442 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5443 CC="$CC $ac_cv_prog_cc_c89"
5444 fi
5445 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5446 ac_prog_cc_stdc=c89
5447 fi
5448 fi
5449
5450 ac_ext=c
5451 ac_cpp='$CPP $CPPFLAGS'
5452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455
5456
5457 ac_ext=c
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5463 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5464 if test ${am_cv_prog_cc_c_o+y}
5465 then :
5466 printf %s "(cached) " >&6
5467 else $as_nop
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470
5471 int
5472 main (void)
5473 {
5474
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 # Make sure it works both with $CC and with simple cc.
5480 # Following AC_PROG_CC_C_O, we do the test twice because some
5481 # compilers refuse to overwrite an existing .o file with -o,
5482 # though they will create one.
5483 am_cv_prog_cc_c_o=yes
5484 for am_i in 1 2; do
5485 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5486 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } \
5490 && test -f conftest2.$ac_objext; then
5491 : OK
5492 else
5493 am_cv_prog_cc_c_o=no
5494 break
5495 fi
5496 done
5497 rm -f core conftest*
5498 unset am_i
5499 fi
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5501 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5502 if test "$am_cv_prog_cc_c_o" != yes; then
5503 # Losing compiler, so override with the script.
5504 # FIXME: It is wrong to rewrite CC.
5505 # But if we don't then we get into trouble of one sort or another.
5506 # A longer-term fix would be to have automake use am__CC in this case,
5507 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5508 CC="$am_aux_dir/compile $CC"
5509 fi
5510 ac_ext=c
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515
5516
5517 depcc="$CC" am_compiler_list=
5518
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5520 printf %s "checking dependency style of $depcc... " >&6; }
5521 if test ${am_cv_CC_dependencies_compiler_type+y}
5522 then :
5523 printf %s "(cached) " >&6
5524 else $as_nop
5525 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5526 # We make a subdir and do the tests there. Otherwise we can end up
5527 # making bogus files that we don't know about and never remove. For
5528 # instance it was reported that on HP-UX the gcc test will end up
5529 # making a dummy file named 'D' -- because '-MD' means "put the output
5530 # in D".
5531 rm -rf conftest.dir
5532 mkdir conftest.dir
5533 # Copy depcomp to subdir because otherwise we won't find it if we're
5534 # using a relative directory.
5535 cp "$am_depcomp" conftest.dir
5536 cd conftest.dir
5537 # We will build objects and dependencies in a subdirectory because
5538 # it helps to detect inapplicable dependency modes. For instance
5539 # both Tru64's cc and ICC support -MD to output dependencies as a
5540 # side effect of compilation, but ICC will put the dependencies in
5541 # the current directory while Tru64 will put them in the object
5542 # directory.
5543 mkdir sub
5544
5545 am_cv_CC_dependencies_compiler_type=none
5546 if test "$am_compiler_list" = ""; then
5547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5548 fi
5549 am__universal=false
5550 case " $depcc " in #(
5551 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5552 esac
5553
5554 for depmode in $am_compiler_list; do
5555 # Setup a source with many dependencies, because some compilers
5556 # like to wrap large dependency lists on column 80 (with \), and
5557 # we should not choose a depcomp mode which is confused by this.
5558 #
5559 # We need to recreate these files for each test, as the compiler may
5560 # overwrite some of them when testing with obscure command lines.
5561 # This happens at least with the AIX C compiler.
5562 : > sub/conftest.c
5563 for i in 1 2 3 4 5 6; do
5564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5565 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5566 # Solaris 10 /bin/sh.
5567 echo '/* dummy */' > sub/conftst$i.h
5568 done
5569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5570
5571 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5572 # mode. It turns out that the SunPro C++ compiler does not properly
5573 # handle '-M -o', and we need to detect this. Also, some Intel
5574 # versions had trouble with output in subdirs.
5575 am__obj=sub/conftest.${OBJEXT-o}
5576 am__minus_obj="-o $am__obj"
5577 case $depmode in
5578 gcc)
5579 # This depmode causes a compiler race in universal mode.
5580 test "$am__universal" = false || continue
5581 ;;
5582 nosideeffect)
5583 # After this tag, mechanisms are not by side-effect, so they'll
5584 # only be used when explicitly requested.
5585 if test "x$enable_dependency_tracking" = xyes; then
5586 continue
5587 else
5588 break
5589 fi
5590 ;;
5591 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5592 # This compiler won't grok '-c -o', but also, the minuso test has
5593 # not run yet. These depmodes are late enough in the game, and
5594 # so weak that their functioning should not be impacted.
5595 am__obj=conftest.${OBJEXT-o}
5596 am__minus_obj=
5597 ;;
5598 none) break ;;
5599 esac
5600 if depmode=$depmode \
5601 source=sub/conftest.c object=$am__obj \
5602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5603 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5604 >/dev/null 2>conftest.err &&
5605 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5607 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5609 # icc doesn't choke on unknown options, it will just issue warnings
5610 # or remarks (even with -Werror). So we grep stderr for any message
5611 # that says an option was ignored or not supported.
5612 # When given -MP, icc 7.0 and 7.1 complain thusly:
5613 # icc: Command line warning: ignoring option '-M'; no argument required
5614 # The diagnosis changed in icc 8.0:
5615 # icc: Command line remark: option '-MP' not supported
5616 if (grep 'ignoring option' conftest.err ||
5617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5618 am_cv_CC_dependencies_compiler_type=$depmode
5619 break
5620 fi
5621 fi
5622 done
5623
5624 cd ..
5625 rm -rf conftest.dir
5626 else
5627 am_cv_CC_dependencies_compiler_type=none
5628 fi
5629
5630 fi
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5632 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5633 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5634
5635 if
5636 test "x$enable_dependency_tracking" != xno \
5637 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5638 am__fastdepCC_TRUE=
5639 am__fastdepCC_FALSE='#'
5640 else
5641 am__fastdepCC_TRUE='#'
5642 am__fastdepCC_FALSE=
5643 fi
5644
5645
5646
5647
5648 if test -n "$ac_tool_prefix"; then
5649 for ac_prog in ar lib "link -lib"
5650 do
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 printf %s "checking for $ac_word... " >&6; }
5655 if test ${ac_cv_prog_AR+y}
5656 then :
5657 printf %s "(cached) " >&6
5658 else $as_nop
5659 if test -n "$AR"; then
5660 ac_cv_prog_AR="$AR" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 case $as_dir in #(((
5667 '') as_dir=./ ;;
5668 */) ;;
5669 *) as_dir=$as_dir/ ;;
5670 esac
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 AR=$ac_cv_prog_AR
5684 if test -n "$AR"; then
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5686 printf "%s\n" "$AR" >&6; }
5687 else
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 printf "%s\n" "no" >&6; }
5690 fi
5691
5692
5693 test -n "$AR" && break
5694 done
5695 fi
5696 if test -z "$AR"; then
5697 ac_ct_AR=$AR
5698 for ac_prog in ar lib "link -lib"
5699 do
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701 set dummy $ac_prog; ac_word=$2
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 printf %s "checking for $ac_word... " >&6; }
5704 if test ${ac_cv_prog_ac_ct_AR+y}
5705 then :
5706 printf %s "(cached) " >&6
5707 else $as_nop
5708 if test -n "$ac_ct_AR"; then
5709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 case $as_dir in #(((
5716 '') as_dir=./ ;;
5717 */) ;;
5718 *) as_dir=$as_dir/ ;;
5719 esac
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_ac_ct_AR="$ac_prog"
5723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5733 if test -n "$ac_ct_AR"; then
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5735 printf "%s\n" "$ac_ct_AR" >&6; }
5736 else
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 printf "%s\n" "no" >&6; }
5739 fi
5740
5741
5742 test -n "$ac_ct_AR" && break
5743 done
5744
5745 if test "x$ac_ct_AR" = x; then
5746 AR="false"
5747 else
5748 case $cross_compiling:$ac_tool_warned in
5749 yes:)
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752 ac_tool_warned=yes ;;
5753 esac
5754 AR=$ac_ct_AR
5755 fi
5756 fi
5757
5758 : ${AR=ar}
5759
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5761 printf %s "checking the archiver ($AR) interface... " >&6; }
5762 if test ${am_cv_ar_interface+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else $as_nop
5766 ac_ext=c
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
5772 am_cv_ar_interface=ar
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 int some_variable = 0;
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"
5778 then :
5779 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5781 (eval $am_ar_try) 2>&5
5782 ac_status=$?
5783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test "$ac_status" -eq 0; then
5786 am_cv_ar_interface=ar
5787 else
5788 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5790 (eval $am_ar_try) 2>&5
5791 ac_status=$?
5792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793 test $ac_status = 0; }
5794 if test "$ac_status" -eq 0; then
5795 am_cv_ar_interface=lib
5796 else
5797 am_cv_ar_interface=unknown
5798 fi
5799 fi
5800 rm -f conftest.lib libconftest.a
5801
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804 ac_ext=c
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809
5810 fi
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5812 printf "%s\n" "$am_cv_ar_interface" >&6; }
5813
5814 case $am_cv_ar_interface in
5815 ar)
5816 ;;
5817 lib)
5818 # Microsoft lib, so override with the ar-lib wrapper script.
5819 # FIXME: It is wrong to rewrite AR.
5820 # But if we don't then we get into trouble of one sort or another.
5821 # A longer-term fix would be to have automake use am__AR in this case,
5822 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5823 # similar.
5824 AR="$am_aux_dir/ar-lib $AR"
5825 ;;
5826 unknown)
5827 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5828 ;;
5829 esac
5830
5831
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5833 printf %s "checking whether byte ordering is bigendian... " >&6; }
5834 if test ${ac_cv_c_bigendian+y}
5835 then :
5836 printf %s "(cached) " >&6
5837 else $as_nop
5838 ac_cv_c_bigendian=unknown
5839 # See if we're dealing with a universal compiler.
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #ifndef __APPLE_CC__
5843 not a universal capable compiler
5844 #endif
5845 typedef int dummy;
5846
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"
5849 then :
5850
5851 # Check for potential -arch flags. It is not universal unless
5852 # there are at least two -arch flags with different values.
5853 ac_arch=
5854 ac_prev=
5855 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5856 if test -n "$ac_prev"; then
5857 case $ac_word in
5858 i?86 | x86_64 | ppc | ppc64)
5859 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5860 ac_arch=$ac_word
5861 else
5862 ac_cv_c_bigendian=universal
5863 break
5864 fi
5865 ;;
5866 esac
5867 ac_prev=
5868 elif test "x$ac_word" = "x-arch"; then
5869 ac_prev=arch
5870 fi
5871 done
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5874 if test $ac_cv_c_bigendian = unknown; then
5875 # See if sys/param.h defines the BYTE_ORDER macro.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <sys/types.h>
5879 #include <sys/param.h>
5880
5881 int
5882 main (void)
5883 {
5884 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5885 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5886 && LITTLE_ENDIAN)
5887 bogus endian macros
5888 #endif
5889
5890 ;
5891 return 0;
5892 }
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"
5895 then :
5896 # It does; now see whether it defined to BIG_ENDIAN or not.
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include <sys/types.h>
5900 #include <sys/param.h>
5901
5902 int
5903 main (void)
5904 {
5905 #if BYTE_ORDER != BIG_ENDIAN
5906 not big endian
5907 #endif
5908
5909 ;
5910 return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"
5914 then :
5915 ac_cv_c_bigendian=yes
5916 else $as_nop
5917 ac_cv_c_bigendian=no
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5922 fi
5923 if test $ac_cv_c_bigendian = unknown; then
5924 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include <limits.h>
5928
5929 int
5930 main (void)
5931 {
5932 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5933 bogus endian macros
5934 #endif
5935
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_compile "$LINENO"
5941 then :
5942 # It does; now see whether it defined to _BIG_ENDIAN or not.
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <limits.h>
5946
5947 int
5948 main (void)
5949 {
5950 #ifndef _BIG_ENDIAN
5951 not big endian
5952 #endif
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"
5959 then :
5960 ac_cv_c_bigendian=yes
5961 else $as_nop
5962 ac_cv_c_bigendian=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5967 fi
5968 if test $ac_cv_c_bigendian = unknown; then
5969 # Compile a test program.
5970 if test "$cross_compiling" = yes
5971 then :
5972 # Try to guess by grepping values from an object file.
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 unsigned short int ascii_mm[] =
5976 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5977 unsigned short int ascii_ii[] =
5978 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5979 int use_ascii (int i) {
5980 return ascii_mm[i] + ascii_ii[i];
5981 }
5982 unsigned short int ebcdic_ii[] =
5983 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5984 unsigned short int ebcdic_mm[] =
5985 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5986 int use_ebcdic (int i) {
5987 return ebcdic_mm[i] + ebcdic_ii[i];
5988 }
5989 extern int foo;
5990
5991 int
5992 main (void)
5993 {
5994 return use_ascii (foo) == use_ebcdic (foo);
5995 ;
5996 return 0;
5997 }
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"
6000 then :
6001 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6002 ac_cv_c_bigendian=yes
6003 fi
6004 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6005 if test "$ac_cv_c_bigendian" = unknown; then
6006 ac_cv_c_bigendian=no
6007 else
6008 # finding both strings is unlikely to happen, but who knows?
6009 ac_cv_c_bigendian=unknown
6010 fi
6011 fi
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6014 else $as_nop
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 $ac_includes_default
6018 int
6019 main (void)
6020 {
6021
6022 /* Are we little or big endian? From Harbison&Steele. */
6023 union
6024 {
6025 long int l;
6026 char c[sizeof (long int)];
6027 } u;
6028 u.l = 1;
6029 return u.c[sizeof (long int) - 1] == 1;
6030
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_c_try_run "$LINENO"
6036 then :
6037 ac_cv_c_bigendian=no
6038 else $as_nop
6039 ac_cv_c_bigendian=yes
6040 fi
6041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6042 conftest.$ac_objext conftest.beam conftest.$ac_ext
6043 fi
6044
6045 fi
6046 fi
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6048 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6049 case $ac_cv_c_bigendian in #(
6050 yes)
6051 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6052 ;; #(
6053 no)
6054 ;; #(
6055 universal)
6056
6057 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6058
6059 ;; #(
6060 *)
6061 as_fn_error $? "unknown endianness
6062 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6063 esac
6064
6065
6066 # Check whether --enable-static was given.
6067 if test ${enable_static+y}
6068 then :
6069 enableval=$enable_static; p=${PACKAGE-default}
6070 case $enableval in
6071 yes) enable_static=yes ;;
6072 no) enable_static=no ;;
6073 *)
6074 enable_static=no
6075 # Look at the argument we got. We use all the common list separators.
6076 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6077 for pkg in $enableval; do
6078 IFS=$lt_save_ifs
6079 if test "X$pkg" = "X$p"; then
6080 enable_static=yes
6081 fi
6082 done
6083 IFS=$lt_save_ifs
6084 ;;
6085 esac
6086 else $as_nop
6087 enable_static=no
6088 fi
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 case `pwd` in
6099 *\ * | *\ *)
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6101 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6102 esac
6103
6104
6105
6106 macro_version='2.4.6'
6107 macro_revision='2.4.6'
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 ltmain=$ac_aux_dir/ltmain.sh
6123
6124 # Backslashify metacharacters that are still active within
6125 # double-quoted strings.
6126 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6127
6128 # Same as above, but do not quote variable references.
6129 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6130
6131 # Sed substitution to delay expansion of an escaped shell variable in a
6132 # double_quote_subst'ed string.
6133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6134
6135 # Sed substitution to delay expansion of an escaped single quote.
6136 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6137
6138 # Sed substitution to avoid accidental globbing in evaled expressions
6139 no_glob_subst='s/\*/\\\*/g'
6140
6141 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6142 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6143 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6146 printf %s "checking how to print strings... " >&6; }
6147 # Test print first, because it will be a builtin if present.
6148 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6149 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6150 ECHO='print -r --'
6151 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6152 ECHO='printf %s\n'
6153 else
6154 # Use this function as a fallback that always works.
6155 func_fallback_echo ()
6156 {
6157 eval 'cat <<_LTECHO_EOF
6158 $1
6159 _LTECHO_EOF'
6160 }
6161 ECHO='func_fallback_echo'
6162 fi
6163
6164 # func_echo_all arg...
6165 # Invoke $ECHO with all args, space-separated.
6166 func_echo_all ()
6167 {
6168 $ECHO ""
6169 }
6170
6171 case $ECHO in
6172 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6173 printf "%s\n" "printf" >&6; } ;;
6174 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6175 printf "%s\n" "print -r" >&6; } ;;
6176 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6177 printf "%s\n" "cat" >&6; } ;;
6178 esac
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6194 printf %s "checking for a sed that does not truncate output... " >&6; }
6195 if test ${ac_cv_path_SED+y}
6196 then :
6197 printf %s "(cached) " >&6
6198 else $as_nop
6199 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6200 for ac_i in 1 2 3 4 5 6 7; do
6201 ac_script="$ac_script$as_nl$ac_script"
6202 done
6203 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6204 { ac_script=; unset ac_script;}
6205 if test -z "$SED"; then
6206 ac_path_SED_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211 IFS=$as_save_IFS
6212 case $as_dir in #(((
6213 '') as_dir=./ ;;
6214 */) ;;
6215 *) as_dir=$as_dir/ ;;
6216 esac
6217 for ac_prog in sed gsed
6218 do
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6221 as_fn_executable_p "$ac_path_SED" || continue
6222 # Check for GNU ac_path_SED and select it if it is found.
6223 # Check for GNU $ac_path_SED
6224 case `"$ac_path_SED" --version 2>&1` in
6225 *GNU*)
6226 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6227 *)
6228 ac_count=0
6229 printf %s 0123456789 >"conftest.in"
6230 while :
6231 do
6232 cat "conftest.in" "conftest.in" >"conftest.tmp"
6233 mv "conftest.tmp" "conftest.in"
6234 cp "conftest.in" "conftest.nl"
6235 printf "%s\n" '' >> "conftest.nl"
6236 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6238 as_fn_arith $ac_count + 1 && ac_count=$as_val
6239 if test $ac_count -gt ${ac_path_SED_max-0}; then
6240 # Best one so far, save it but keep looking for a better one
6241 ac_cv_path_SED="$ac_path_SED"
6242 ac_path_SED_max=$ac_count
6243 fi
6244 # 10*(2^10) chars as input seems more than enough
6245 test $ac_count -gt 10 && break
6246 done
6247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6248 esac
6249
6250 $ac_path_SED_found && break 3
6251 done
6252 done
6253 done
6254 IFS=$as_save_IFS
6255 if test -z "$ac_cv_path_SED"; then
6256 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6257 fi
6258 else
6259 ac_cv_path_SED=$SED
6260 fi
6261
6262 fi
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6264 printf "%s\n" "$ac_cv_path_SED" >&6; }
6265 SED="$ac_cv_path_SED"
6266 rm -f conftest.sed
6267
6268 test -z "$SED" && SED=sed
6269 Xsed="$SED -e 1s/^X//"
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6282 printf %s "checking for grep that handles long lines and -e... " >&6; }
6283 if test ${ac_cv_path_GREP+y}
6284 then :
6285 printf %s "(cached) " >&6
6286 else $as_nop
6287 if test -z "$GREP"; then
6288 ac_path_GREP_found=false
6289 # Loop through the user's path and test for each of PROGNAME-LIST
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6292 do
6293 IFS=$as_save_IFS
6294 case $as_dir in #(((
6295 '') as_dir=./ ;;
6296 */) ;;
6297 *) as_dir=$as_dir/ ;;
6298 esac
6299 for ac_prog in grep ggrep
6300 do
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6303 as_fn_executable_p "$ac_path_GREP" || continue
6304 # Check for GNU ac_path_GREP and select it if it is found.
6305 # Check for GNU $ac_path_GREP
6306 case `"$ac_path_GREP" --version 2>&1` in
6307 *GNU*)
6308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6309 *)
6310 ac_count=0
6311 printf %s 0123456789 >"conftest.in"
6312 while :
6313 do
6314 cat "conftest.in" "conftest.in" >"conftest.tmp"
6315 mv "conftest.tmp" "conftest.in"
6316 cp "conftest.in" "conftest.nl"
6317 printf "%s\n" 'GREP' >> "conftest.nl"
6318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320 as_fn_arith $ac_count + 1 && ac_count=$as_val
6321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6322 # Best one so far, save it but keep looking for a better one
6323 ac_cv_path_GREP="$ac_path_GREP"
6324 ac_path_GREP_max=$ac_count
6325 fi
6326 # 10*(2^10) chars as input seems more than enough
6327 test $ac_count -gt 10 && break
6328 done
6329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6330 esac
6331
6332 $ac_path_GREP_found && break 3
6333 done
6334 done
6335 done
6336 IFS=$as_save_IFS
6337 if test -z "$ac_cv_path_GREP"; then
6338 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6339 fi
6340 else
6341 ac_cv_path_GREP=$GREP
6342 fi
6343
6344 fi
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6346 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6347 GREP="$ac_cv_path_GREP"
6348
6349
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6351 printf %s "checking for egrep... " >&6; }
6352 if test ${ac_cv_path_EGREP+y}
6353 then :
6354 printf %s "(cached) " >&6
6355 else $as_nop
6356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6357 then ac_cv_path_EGREP="$GREP -E"
6358 else
6359 if test -z "$EGREP"; then
6360 ac_path_EGREP_found=false
6361 # Loop through the user's path and test for each of PROGNAME-LIST
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6364 do
6365 IFS=$as_save_IFS
6366 case $as_dir in #(((
6367 '') as_dir=./ ;;
6368 */) ;;
6369 *) as_dir=$as_dir/ ;;
6370 esac
6371 for ac_prog in egrep
6372 do
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6375 as_fn_executable_p "$ac_path_EGREP" || continue
6376 # Check for GNU ac_path_EGREP and select it if it is found.
6377 # Check for GNU $ac_path_EGREP
6378 case `"$ac_path_EGREP" --version 2>&1` in
6379 *GNU*)
6380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6381 *)
6382 ac_count=0
6383 printf %s 0123456789 >"conftest.in"
6384 while :
6385 do
6386 cat "conftest.in" "conftest.in" >"conftest.tmp"
6387 mv "conftest.tmp" "conftest.in"
6388 cp "conftest.in" "conftest.nl"
6389 printf "%s\n" 'EGREP' >> "conftest.nl"
6390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6392 as_fn_arith $ac_count + 1 && ac_count=$as_val
6393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6394 # Best one so far, save it but keep looking for a better one
6395 ac_cv_path_EGREP="$ac_path_EGREP"
6396 ac_path_EGREP_max=$ac_count
6397 fi
6398 # 10*(2^10) chars as input seems more than enough
6399 test $ac_count -gt 10 && break
6400 done
6401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6402 esac
6403
6404 $ac_path_EGREP_found && break 3
6405 done
6406 done
6407 done
6408 IFS=$as_save_IFS
6409 if test -z "$ac_cv_path_EGREP"; then
6410 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6411 fi
6412 else
6413 ac_cv_path_EGREP=$EGREP
6414 fi
6415
6416 fi
6417 fi
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6419 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6420 EGREP="$ac_cv_path_EGREP"
6421
6422
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6424 printf %s "checking for fgrep... " >&6; }
6425 if test ${ac_cv_path_FGREP+y}
6426 then :
6427 printf %s "(cached) " >&6
6428 else $as_nop
6429 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6430 then ac_cv_path_FGREP="$GREP -F"
6431 else
6432 if test -z "$FGREP"; then
6433 ac_path_FGREP_found=false
6434 # Loop through the user's path and test for each of PROGNAME-LIST
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6437 do
6438 IFS=$as_save_IFS
6439 case $as_dir in #(((
6440 '') as_dir=./ ;;
6441 */) ;;
6442 *) as_dir=$as_dir/ ;;
6443 esac
6444 for ac_prog in fgrep
6445 do
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6448 as_fn_executable_p "$ac_path_FGREP" || continue
6449 # Check for GNU ac_path_FGREP and select it if it is found.
6450 # Check for GNU $ac_path_FGREP
6451 case `"$ac_path_FGREP" --version 2>&1` in
6452 *GNU*)
6453 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6454 *)
6455 ac_count=0
6456 printf %s 0123456789 >"conftest.in"
6457 while :
6458 do
6459 cat "conftest.in" "conftest.in" >"conftest.tmp"
6460 mv "conftest.tmp" "conftest.in"
6461 cp "conftest.in" "conftest.nl"
6462 printf "%s\n" 'FGREP' >> "conftest.nl"
6463 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6465 as_fn_arith $ac_count + 1 && ac_count=$as_val
6466 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6467 # Best one so far, save it but keep looking for a better one
6468 ac_cv_path_FGREP="$ac_path_FGREP"
6469 ac_path_FGREP_max=$ac_count
6470 fi
6471 # 10*(2^10) chars as input seems more than enough
6472 test $ac_count -gt 10 && break
6473 done
6474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6475 esac
6476
6477 $ac_path_FGREP_found && break 3
6478 done
6479 done
6480 done
6481 IFS=$as_save_IFS
6482 if test -z "$ac_cv_path_FGREP"; then
6483 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6484 fi
6485 else
6486 ac_cv_path_FGREP=$FGREP
6487 fi
6488
6489 fi
6490 fi
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6492 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6493 FGREP="$ac_cv_path_FGREP"
6494
6495
6496 test -z "$GREP" && GREP=grep
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516 # Check whether --with-gnu-ld was given.
6517 if test ${with_gnu_ld+y}
6518 then :
6519 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6520 else $as_nop
6521 with_gnu_ld=no
6522 fi
6523
6524 ac_prog=ld
6525 if test yes = "$GCC"; then
6526 # Check if gcc -print-prog-name=ld gives a path.
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6528 printf %s "checking for ld used by $CC... " >&6; }
6529 case $host in
6530 *-*-mingw*)
6531 # gcc leaves a trailing carriage return, which upsets mingw
6532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6533 *)
6534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6535 esac
6536 case $ac_prog in
6537 # Accept absolute paths.
6538 [\\/]* | ?:[\\/]*)
6539 re_direlt='/[^/][^/]*/\.\./'
6540 # Canonicalize the pathname of ld
6541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6544 done
6545 test -z "$LD" && LD=$ac_prog
6546 ;;
6547 "")
6548 # If it fails, then pretend we aren't using GCC.
6549 ac_prog=ld
6550 ;;
6551 *)
6552 # If it is relative, then search for the first ld in PATH.
6553 with_gnu_ld=unknown
6554 ;;
6555 esac
6556 elif test yes = "$with_gnu_ld"; then
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6558 printf %s "checking for GNU ld... " >&6; }
6559 else
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6561 printf %s "checking for non-GNU ld... " >&6; }
6562 fi
6563 if test ${lt_cv_path_LD+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else $as_nop
6567 if test -z "$LD"; then
6568 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6569 for ac_dir in $PATH; do
6570 IFS=$lt_save_ifs
6571 test -z "$ac_dir" && ac_dir=.
6572 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6573 lt_cv_path_LD=$ac_dir/$ac_prog
6574 # Check to see if the program is GNU ld. I'd rather use --version,
6575 # but apparently some variants of GNU ld only accept -v.
6576 # Break only if it was the GNU/non-GNU ld that we prefer.
6577 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6578 *GNU* | *'with BFD'*)
6579 test no != "$with_gnu_ld" && break
6580 ;;
6581 *)
6582 test yes != "$with_gnu_ld" && break
6583 ;;
6584 esac
6585 fi
6586 done
6587 IFS=$lt_save_ifs
6588 else
6589 lt_cv_path_LD=$LD # Let the user override the test with a path.
6590 fi
6591 fi
6592
6593 LD=$lt_cv_path_LD
6594 if test -n "$LD"; then
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6596 printf "%s\n" "$LD" >&6; }
6597 else
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 printf "%s\n" "no" >&6; }
6600 fi
6601 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6603 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6604 if test ${lt_cv_prog_gnu_ld+y}
6605 then :
6606 printf %s "(cached) " >&6
6607 else $as_nop
6608 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6609 case `$LD -v 2>&1 </dev/null` in
6610 *GNU* | *'with BFD'*)
6611 lt_cv_prog_gnu_ld=yes
6612 ;;
6613 *)
6614 lt_cv_prog_gnu_ld=no
6615 ;;
6616 esac
6617 fi
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6619 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6620 with_gnu_ld=$lt_cv_prog_gnu_ld
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6631 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6632 if test ${lt_cv_path_NM+y}
6633 then :
6634 printf %s "(cached) " >&6
6635 else $as_nop
6636 if test -n "$NM"; then
6637 # Let the user override the test.
6638 lt_cv_path_NM=$NM
6639 else
6640 lt_nm_to_check=${ac_tool_prefix}nm
6641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6642 lt_nm_to_check="$lt_nm_to_check nm"
6643 fi
6644 for lt_tmp_nm in $lt_nm_to_check; do
6645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6647 IFS=$lt_save_ifs
6648 test -z "$ac_dir" && ac_dir=.
6649 tmp_nm=$ac_dir/$lt_tmp_nm
6650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6651 # Check to see if the nm accepts a BSD-compat flag.
6652 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6653 # nm: unknown option "B" ignored
6654 # Tru64's nm complains that /dev/null is an invalid object file
6655 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6656 case $build_os in
6657 mingw*) lt_bad_file=conftest.nm/nofile ;;
6658 *) lt_bad_file=/dev/null ;;
6659 esac
6660 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6661 *$lt_bad_file* | *'Invalid file or object type'*)
6662 lt_cv_path_NM="$tmp_nm -B"
6663 break 2
6664 ;;
6665 *)
6666 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6667 */dev/null*)
6668 lt_cv_path_NM="$tmp_nm -p"
6669 break 2
6670 ;;
6671 *)
6672 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6673 continue # so that we can try to find one that supports BSD flags
6674 ;;
6675 esac
6676 ;;
6677 esac
6678 fi
6679 done
6680 IFS=$lt_save_ifs
6681 done
6682 : ${lt_cv_path_NM=no}
6683 fi
6684 fi
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6686 printf "%s\n" "$lt_cv_path_NM" >&6; }
6687 if test no != "$lt_cv_path_NM"; then
6688 NM=$lt_cv_path_NM
6689 else
6690 # Didn't find any BSD compatible name lister, look for dumpbin.
6691 if test -n "$DUMPBIN"; then :
6692 # Let the user override the test.
6693 else
6694 if test -n "$ac_tool_prefix"; then
6695 for ac_prog in dumpbin "link -dump"
6696 do
6697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 printf %s "checking for $ac_word... " >&6; }
6701 if test ${ac_cv_prog_DUMPBIN+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else $as_nop
6705 if test -n "$DUMPBIN"; then
6706 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 case $as_dir in #(((
6713 '') as_dir=./ ;;
6714 */) ;;
6715 *) as_dir=$as_dir/ ;;
6716 esac
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 DUMPBIN=$ac_cv_prog_DUMPBIN
6730 if test -n "$DUMPBIN"; then
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6732 printf "%s\n" "$DUMPBIN" >&6; }
6733 else
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 printf "%s\n" "no" >&6; }
6736 fi
6737
6738
6739 test -n "$DUMPBIN" && break
6740 done
6741 fi
6742 if test -z "$DUMPBIN"; then
6743 ac_ct_DUMPBIN=$DUMPBIN
6744 for ac_prog in dumpbin "link -dump"
6745 do
6746 # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 printf %s "checking for $ac_word... " >&6; }
6750 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6751 then :
6752 printf %s "(cached) " >&6
6753 else $as_nop
6754 if test -n "$ac_ct_DUMPBIN"; then
6755 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 case $as_dir in #(((
6762 '') as_dir=./ ;;
6763 */) ;;
6764 *) as_dir=$as_dir/ ;;
6765 esac
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6779 if test -n "$ac_ct_DUMPBIN"; then
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6781 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6782 else
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 printf "%s\n" "no" >&6; }
6785 fi
6786
6787
6788 test -n "$ac_ct_DUMPBIN" && break
6789 done
6790
6791 if test "x$ac_ct_DUMPBIN" = x; then
6792 DUMPBIN=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 DUMPBIN=$ac_ct_DUMPBIN
6801 fi
6802 fi
6803
6804 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6805 *COFF*)
6806 DUMPBIN="$DUMPBIN -symbols -headers"
6807 ;;
6808 *)
6809 DUMPBIN=:
6810 ;;
6811 esac
6812 fi
6813
6814 if test : != "$DUMPBIN"; then
6815 NM=$DUMPBIN
6816 fi
6817 fi
6818 test -z "$NM" && NM=nm
6819
6820
6821
6822
6823
6824
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6826 printf %s "checking the name lister ($NM) interface... " >&6; }
6827 if test ${lt_cv_nm_interface+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else $as_nop
6831 lt_cv_nm_interface="BSD nm"
6832 echo "int some_variable = 0;" > conftest.$ac_ext
6833 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6834 (eval "$ac_compile" 2>conftest.err)
6835 cat conftest.err >&5
6836 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6837 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6838 cat conftest.err >&5
6839 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6840 cat conftest.out >&5
6841 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6842 lt_cv_nm_interface="MS dumpbin"
6843 fi
6844 rm -f conftest*
6845 fi
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6847 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6848
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6850 printf %s "checking whether ln -s works... " >&6; }
6851 LN_S=$as_ln_s
6852 if test "$LN_S" = "ln -s"; then
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6854 printf "%s\n" "yes" >&6; }
6855 else
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6857 printf "%s\n" "no, using $LN_S" >&6; }
6858 fi
6859
6860 # find the maximum length of command line arguments
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6862 printf %s "checking the maximum length of command line arguments... " >&6; }
6863 if test ${lt_cv_sys_max_cmd_len+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else $as_nop
6867 i=0
6868 teststring=ABCD
6869
6870 case $build_os in
6871 msdosdjgpp*)
6872 # On DJGPP, this test can blow up pretty badly due to problems in libc
6873 # (any single argument exceeding 2000 bytes causes a buffer overrun
6874 # during glob expansion). Even if it were fixed, the result of this
6875 # check would be larger than it should be.
6876 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6877 ;;
6878
6879 gnu*)
6880 # Under GNU Hurd, this test is not required because there is
6881 # no limit to the length of command line arguments.
6882 # Libtool will interpret -1 as no limit whatsoever
6883 lt_cv_sys_max_cmd_len=-1;
6884 ;;
6885
6886 cygwin* | mingw* | cegcc*)
6887 # On Win9x/ME, this test blows up -- it succeeds, but takes
6888 # about 5 minutes as the teststring grows exponentially.
6889 # Worse, since 9x/ME are not pre-emptively multitasking,
6890 # you end up with a "frozen" computer, even though with patience
6891 # the test eventually succeeds (with a max line length of 256k).
6892 # Instead, let's just punt: use the minimum linelength reported by
6893 # all of the supported platforms: 8192 (on NT/2K/XP).
6894 lt_cv_sys_max_cmd_len=8192;
6895 ;;
6896
6897 mint*)
6898 # On MiNT this can take a long time and run out of memory.
6899 lt_cv_sys_max_cmd_len=8192;
6900 ;;
6901
6902 amigaos*)
6903 # On AmigaOS with pdksh, this test takes hours, literally.
6904 # So we just punt and use a minimum line length of 8192.
6905 lt_cv_sys_max_cmd_len=8192;
6906 ;;
6907
6908 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6909 # This has been around since 386BSD, at least. Likely further.
6910 if test -x /sbin/sysctl; then
6911 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6912 elif test -x /usr/sbin/sysctl; then
6913 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6914 else
6915 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6916 fi
6917 # And add a safety zone
6918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6920 ;;
6921
6922 interix*)
6923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6924 lt_cv_sys_max_cmd_len=196608
6925 ;;
6926
6927 os2*)
6928 # The test takes a long time on OS/2.
6929 lt_cv_sys_max_cmd_len=8192
6930 ;;
6931
6932 osf*)
6933 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6934 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6935 # nice to cause kernel panics so lets avoid the loop below.
6936 # First set a reasonable default.
6937 lt_cv_sys_max_cmd_len=16384
6938 #
6939 if test -x /sbin/sysconfig; then
6940 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6941 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6942 esac
6943 fi
6944 ;;
6945 sco3.2v5*)
6946 lt_cv_sys_max_cmd_len=102400
6947 ;;
6948 sysv5* | sco5v6* | sysv4.2uw2*)
6949 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6950 if test -n "$kargmax"; then
6951 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6952 else
6953 lt_cv_sys_max_cmd_len=32768
6954 fi
6955 ;;
6956 *)
6957 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6958 if test -n "$lt_cv_sys_max_cmd_len" && \
6959 test undefined != "$lt_cv_sys_max_cmd_len"; then
6960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6962 else
6963 # Make teststring a little bigger before we do anything with it.
6964 # a 1K string should be a reasonable start.
6965 for i in 1 2 3 4 5 6 7 8; do
6966 teststring=$teststring$teststring
6967 done
6968 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6969 # If test is not a shell built-in, we'll probably end up computing a
6970 # maximum length that is only half of the actual maximum length, but
6971 # we can't tell.
6972 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6973 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6974 test 17 != "$i" # 1/2 MB should be enough
6975 do
6976 i=`expr $i + 1`
6977 teststring=$teststring$teststring
6978 done
6979 # Only check the string length outside the loop.
6980 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6981 teststring=
6982 # Add a significant safety factor because C++ compilers can tack on
6983 # massive amounts of additional arguments before passing them to the
6984 # linker. It appears as though 1/2 is a usable value.
6985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6986 fi
6987 ;;
6988 esac
6989
6990 fi
6991
6992 if test -n "$lt_cv_sys_max_cmd_len"; then
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6994 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6995 else
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6997 printf "%s\n" "none" >&6; }
6998 fi
6999 max_cmd_len=$lt_cv_sys_max_cmd_len
7000
7001
7002
7003
7004
7005
7006 : ${CP="cp -f"}
7007 : ${MV="mv -f"}
7008 : ${RM="rm -f"}
7009
7010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7011 lt_unset=unset
7012 else
7013 lt_unset=false
7014 fi
7015
7016
7017
7018
7019
7020 # test EBCDIC or ASCII
7021 case `echo X|tr X '\101'` in
7022 A) # ASCII based system
7023 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7024 lt_SP2NL='tr \040 \012'
7025 lt_NL2SP='tr \015\012 \040\040'
7026 ;;
7027 *) # EBCDIC based system
7028 lt_SP2NL='tr \100 \n'
7029 lt_NL2SP='tr \r\n \100\100'
7030 ;;
7031 esac
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7042 printf %s "checking how to convert $build file names to $host format... " >&6; }
7043 if test ${lt_cv_to_host_file_cmd+y}
7044 then :
7045 printf %s "(cached) " >&6
7046 else $as_nop
7047 case $host in
7048 *-*-mingw* )
7049 case $build in
7050 *-*-mingw* ) # actually msys
7051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7052 ;;
7053 *-*-cygwin* )
7054 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7055 ;;
7056 * ) # otherwise, assume *nix
7057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7058 ;;
7059 esac
7060 ;;
7061 *-*-cygwin* )
7062 case $build in
7063 *-*-mingw* ) # actually msys
7064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7065 ;;
7066 *-*-cygwin* )
7067 lt_cv_to_host_file_cmd=func_convert_file_noop
7068 ;;
7069 * ) # otherwise, assume *nix
7070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7071 ;;
7072 esac
7073 ;;
7074 * ) # unhandled hosts (and "normal" native builds)
7075 lt_cv_to_host_file_cmd=func_convert_file_noop
7076 ;;
7077 esac
7078
7079 fi
7080
7081 to_host_file_cmd=$lt_cv_to_host_file_cmd
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7083 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7084
7085
7086
7087
7088
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7090 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7091 if test ${lt_cv_to_tool_file_cmd+y}
7092 then :
7093 printf %s "(cached) " >&6
7094 else $as_nop
7095 #assume ordinary cross tools, or native build.
7096 lt_cv_to_tool_file_cmd=func_convert_file_noop
7097 case $host in
7098 *-*-mingw* )
7099 case $build in
7100 *-*-mingw* ) # actually msys
7101 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7102 ;;
7103 esac
7104 ;;
7105 esac
7106
7107 fi
7108
7109 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7111 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7112
7113
7114
7115
7116
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7118 printf %s "checking for $LD option to reload object files... " >&6; }
7119 if test ${lt_cv_ld_reload_flag+y}
7120 then :
7121 printf %s "(cached) " >&6
7122 else $as_nop
7123 lt_cv_ld_reload_flag='-r'
7124 fi
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7126 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7127 reload_flag=$lt_cv_ld_reload_flag
7128 case $reload_flag in
7129 "" | " "*) ;;
7130 *) reload_flag=" $reload_flag" ;;
7131 esac
7132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7133 case $host_os in
7134 cygwin* | mingw* | pw32* | cegcc*)
7135 if test yes != "$GCC"; then
7136 reload_cmds=false
7137 fi
7138 ;;
7139 darwin*)
7140 if test yes = "$GCC"; then
7141 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7142 else
7143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7144 fi
7145 ;;
7146 esac
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 printf %s "checking for $ac_word... " >&6; }
7161 if test ${ac_cv_prog_OBJDUMP+y}
7162 then :
7163 printf %s "(cached) " >&6
7164 else $as_nop
7165 if test -n "$OBJDUMP"; then
7166 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 case $as_dir in #(((
7173 '') as_dir=./ ;;
7174 */) ;;
7175 *) as_dir=$as_dir/ ;;
7176 esac
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 OBJDUMP=$ac_cv_prog_OBJDUMP
7190 if test -n "$OBJDUMP"; then
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7192 printf "%s\n" "$OBJDUMP" >&6; }
7193 else
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 printf "%s\n" "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_OBJDUMP"; then
7201 ac_ct_OBJDUMP=$OBJDUMP
7202 # Extract the first word of "objdump", so it can be a program name with args.
7203 set dummy objdump; ac_word=$2
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 printf %s "checking for $ac_word... " >&6; }
7206 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7207 then :
7208 printf %s "(cached) " >&6
7209 else $as_nop
7210 if test -n "$ac_ct_OBJDUMP"; then
7211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 case $as_dir in #(((
7218 '') as_dir=./ ;;
7219 */) ;;
7220 *) as_dir=$as_dir/ ;;
7221 esac
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7235 if test -n "$ac_ct_OBJDUMP"; then
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7237 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7238 else
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 printf "%s\n" "no" >&6; }
7241 fi
7242
7243 if test "x$ac_ct_OBJDUMP" = x; then
7244 OBJDUMP="false"
7245 else
7246 case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252 OBJDUMP=$ac_ct_OBJDUMP
7253 fi
7254 else
7255 OBJDUMP="$ac_cv_prog_OBJDUMP"
7256 fi
7257
7258 test -z "$OBJDUMP" && OBJDUMP=objdump
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7269 printf %s "checking how to recognize dependent libraries... " >&6; }
7270 if test ${lt_cv_deplibs_check_method+y}
7271 then :
7272 printf %s "(cached) " >&6
7273 else $as_nop
7274 lt_cv_file_magic_cmd='$MAGIC_CMD'
7275 lt_cv_file_magic_test_file=
7276 lt_cv_deplibs_check_method='unknown'
7277 # Need to set the preceding variable on all platforms that support
7278 # interlibrary dependencies.
7279 # 'none' -- dependencies not supported.
7280 # 'unknown' -- same as none, but documents that we really don't know.
7281 # 'pass_all' -- all dependencies passed with no checks.
7282 # 'test_compile' -- check by making test program.
7283 # 'file_magic [[regex]]' -- check by looking for files in library path
7284 # that responds to the $file_magic_cmd with a given extended regex.
7285 # If you have 'file' or equivalent on your system and you're not sure
7286 # whether 'pass_all' will *always* work, you probably want this one.
7287
7288 case $host_os in
7289 aix[4-9]*)
7290 lt_cv_deplibs_check_method=pass_all
7291 ;;
7292
7293 beos*)
7294 lt_cv_deplibs_check_method=pass_all
7295 ;;
7296
7297 bsdi[45]*)
7298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7299 lt_cv_file_magic_cmd='/usr/bin/file -L'
7300 lt_cv_file_magic_test_file=/shlib/libc.so
7301 ;;
7302
7303 cygwin*)
7304 # func_win32_libid is a shell function defined in ltmain.sh
7305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7306 lt_cv_file_magic_cmd='func_win32_libid'
7307 ;;
7308
7309 mingw* | pw32*)
7310 # Base MSYS/MinGW do not provide the 'file' command needed by
7311 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7312 # unless we find 'file', for example because we are cross-compiling.
7313 if ( file / ) >/dev/null 2>&1; then
7314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7315 lt_cv_file_magic_cmd='func_win32_libid'
7316 else
7317 # Keep this pattern in sync with the one in func_win32_libid.
7318 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7319 lt_cv_file_magic_cmd='$OBJDUMP -f'
7320 fi
7321 ;;
7322
7323 cegcc*)
7324 # use the weaker test based on 'objdump'. See mingw*.
7325 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7326 lt_cv_file_magic_cmd='$OBJDUMP -f'
7327 ;;
7328
7329 darwin* | rhapsody*)
7330 lt_cv_deplibs_check_method=pass_all
7331 ;;
7332
7333 freebsd* | dragonfly*)
7334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7335 case $host_cpu in
7336 i*86 )
7337 # Not sure whether the presence of OpenBSD here was a mistake.
7338 # Let's accept both of them until this is cleared up.
7339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7340 lt_cv_file_magic_cmd=/usr/bin/file
7341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7342 ;;
7343 esac
7344 else
7345 lt_cv_deplibs_check_method=pass_all
7346 fi
7347 ;;
7348
7349 haiku*)
7350 lt_cv_deplibs_check_method=pass_all
7351 ;;
7352
7353 hpux10.20* | hpux11*)
7354 lt_cv_file_magic_cmd=/usr/bin/file
7355 case $host_cpu in
7356 ia64*)
7357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7358 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7359 ;;
7360 hppa*64*)
7361 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]'
7362 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7363 ;;
7364 *)
7365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7366 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7367 ;;
7368 esac
7369 ;;
7370
7371 interix[3-9]*)
7372 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7374 ;;
7375
7376 irix5* | irix6* | nonstopux*)
7377 case $LD in
7378 *-32|*"-32 ") libmagic=32-bit;;
7379 *-n32|*"-n32 ") libmagic=N32;;
7380 *-64|*"-64 ") libmagic=64-bit;;
7381 *) libmagic=never-match;;
7382 esac
7383 lt_cv_deplibs_check_method=pass_all
7384 ;;
7385
7386 # This must be glibc/ELF.
7387 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7388 lt_cv_deplibs_check_method=pass_all
7389 ;;
7390
7391 netbsd* | netbsdelf*-gnu)
7392 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7394 else
7395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7396 fi
7397 ;;
7398
7399 newos6*)
7400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7401 lt_cv_file_magic_cmd=/usr/bin/file
7402 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7403 ;;
7404
7405 *nto* | *qnx*)
7406 lt_cv_deplibs_check_method=pass_all
7407 ;;
7408
7409 openbsd* | bitrig*)
7410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7412 else
7413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7414 fi
7415 ;;
7416
7417 osf3* | osf4* | osf5*)
7418 lt_cv_deplibs_check_method=pass_all
7419 ;;
7420
7421 rdos*)
7422 lt_cv_deplibs_check_method=pass_all
7423 ;;
7424
7425 solaris*)
7426 lt_cv_deplibs_check_method=pass_all
7427 ;;
7428
7429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7430 lt_cv_deplibs_check_method=pass_all
7431 ;;
7432
7433 sysv4 | sysv4.3*)
7434 case $host_vendor in
7435 motorola)
7436 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]'
7437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7438 ;;
7439 ncr)
7440 lt_cv_deplibs_check_method=pass_all
7441 ;;
7442 sequent)
7443 lt_cv_file_magic_cmd='/bin/file'
7444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7445 ;;
7446 sni)
7447 lt_cv_file_magic_cmd='/bin/file'
7448 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7449 lt_cv_file_magic_test_file=/lib/libc.so
7450 ;;
7451 siemens)
7452 lt_cv_deplibs_check_method=pass_all
7453 ;;
7454 pc)
7455 lt_cv_deplibs_check_method=pass_all
7456 ;;
7457 esac
7458 ;;
7459
7460 tpf*)
7461 lt_cv_deplibs_check_method=pass_all
7462 ;;
7463 os2*)
7464 lt_cv_deplibs_check_method=pass_all
7465 ;;
7466 esac
7467
7468 fi
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7470 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7471
7472 file_magic_glob=
7473 want_nocaseglob=no
7474 if test "$build" = "$host"; then
7475 case $host_os in
7476 mingw* | pw32*)
7477 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7478 want_nocaseglob=yes
7479 else
7480 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7481 fi
7482 ;;
7483 esac
7484 fi
7485
7486 file_magic_cmd=$lt_cv_file_magic_cmd
7487 deplibs_check_method=$lt_cv_deplibs_check_method
7488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 printf %s "checking for $ac_word... " >&6; }
7516 if test ${ac_cv_prog_DLLTOOL+y}
7517 then :
7518 printf %s "(cached) " >&6
7519 else $as_nop
7520 if test -n "$DLLTOOL"; then
7521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 case $as_dir in #(((
7528 '') as_dir=./ ;;
7529 */) ;;
7530 *) as_dir=$as_dir/ ;;
7531 esac
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538 done
7539 done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 DLLTOOL=$ac_cv_prog_DLLTOOL
7545 if test -n "$DLLTOOL"; then
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7547 printf "%s\n" "$DLLTOOL" >&6; }
7548 else
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 printf "%s\n" "no" >&6; }
7551 fi
7552
7553
7554 fi
7555 if test -z "$ac_cv_prog_DLLTOOL"; then
7556 ac_ct_DLLTOOL=$DLLTOOL
7557 # Extract the first word of "dlltool", so it can be a program name with args.
7558 set dummy dlltool; ac_word=$2
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 printf %s "checking for $ac_word... " >&6; }
7561 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7562 then :
7563 printf %s "(cached) " >&6
7564 else $as_nop
7565 if test -n "$ac_ct_DLLTOOL"; then
7566 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571 IFS=$as_save_IFS
7572 case $as_dir in #(((
7573 '') as_dir=./ ;;
7574 */) ;;
7575 *) as_dir=$as_dir/ ;;
7576 esac
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583 done
7584 done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7590 if test -n "$ac_ct_DLLTOOL"; then
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7592 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7593 else
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 printf "%s\n" "no" >&6; }
7596 fi
7597
7598 if test "x$ac_ct_DLLTOOL" = x; then
7599 DLLTOOL="false"
7600 else
7601 case $cross_compiling:$ac_tool_warned in
7602 yes:)
7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7604 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605 ac_tool_warned=yes ;;
7606 esac
7607 DLLTOOL=$ac_ct_DLLTOOL
7608 fi
7609 else
7610 DLLTOOL="$ac_cv_prog_DLLTOOL"
7611 fi
7612
7613 test -z "$DLLTOOL" && DLLTOOL=dlltool
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7625 printf %s "checking how to associate runtime and link libraries... " >&6; }
7626 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7627 then :
7628 printf %s "(cached) " >&6
7629 else $as_nop
7630 lt_cv_sharedlib_from_linklib_cmd='unknown'
7631
7632 case $host_os in
7633 cygwin* | mingw* | pw32* | cegcc*)
7634 # two different shell functions defined in ltmain.sh;
7635 # decide which one to use based on capabilities of $DLLTOOL
7636 case `$DLLTOOL --help 2>&1` in
7637 *--identify-strict*)
7638 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7639 ;;
7640 *)
7641 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7642 ;;
7643 esac
7644 ;;
7645 *)
7646 # fallback: assume linklib IS sharedlib
7647 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7648 ;;
7649 esac
7650
7651 fi
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7653 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7654 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7655 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7656
7657
7658
7659
7660
7661
7662
7663 if test -n "$ac_tool_prefix"; then
7664 for ac_prog in ar
7665 do
7666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 printf %s "checking for $ac_word... " >&6; }
7670 if test ${ac_cv_prog_AR+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else $as_nop
7674 if test -n "$AR"; then
7675 ac_cv_prog_AR="$AR" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 case $as_dir in #(((
7682 '') as_dir=./ ;;
7683 */) ;;
7684 *) as_dir=$as_dir/ ;;
7685 esac
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7688 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 AR=$ac_cv_prog_AR
7699 if test -n "$AR"; then
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7701 printf "%s\n" "$AR" >&6; }
7702 else
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 printf "%s\n" "no" >&6; }
7705 fi
7706
7707
7708 test -n "$AR" && break
7709 done
7710 fi
7711 if test -z "$AR"; then
7712 ac_ct_AR=$AR
7713 for ac_prog in ar
7714 do
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 printf %s "checking for $ac_word... " >&6; }
7719 if test ${ac_cv_prog_ac_ct_AR+y}
7720 then :
7721 printf %s "(cached) " >&6
7722 else $as_nop
7723 if test -n "$ac_ct_AR"; then
7724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729 IFS=$as_save_IFS
7730 case $as_dir in #(((
7731 '') as_dir=./ ;;
7732 */) ;;
7733 *) as_dir=$as_dir/ ;;
7734 esac
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_ac_ct_AR="$ac_prog"
7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7748 if test -n "$ac_ct_AR"; then
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7750 printf "%s\n" "$ac_ct_AR" >&6; }
7751 else
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 printf "%s\n" "no" >&6; }
7754 fi
7755
7756
7757 test -n "$ac_ct_AR" && break
7758 done
7759
7760 if test "x$ac_ct_AR" = x; then
7761 AR="false"
7762 else
7763 case $cross_compiling:$ac_tool_warned in
7764 yes:)
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7768 esac
7769 AR=$ac_ct_AR
7770 fi
7771 fi
7772
7773 : ${AR=ar}
7774 : ${AR_FLAGS=cr}
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7787 printf %s "checking for archiver @FILE support... " >&6; }
7788 if test ${lt_cv_ar_at_file+y}
7789 then :
7790 printf %s "(cached) " >&6
7791 else $as_nop
7792 lt_cv_ar_at_file=no
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795
7796 int
7797 main (void)
7798 {
7799
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"
7805 then :
7806 echo conftest.$ac_objext > conftest.lst
7807 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7809 (eval $lt_ar_try) 2>&5
7810 ac_status=$?
7811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812 test $ac_status = 0; }
7813 if test 0 -eq "$ac_status"; then
7814 # Ensure the archiver fails upon bogus file names.
7815 rm -f conftest.$ac_objext libconftest.a
7816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7817 (eval $lt_ar_try) 2>&5
7818 ac_status=$?
7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; }
7821 if test 0 -ne "$ac_status"; then
7822 lt_cv_ar_at_file=@
7823 fi
7824 fi
7825 rm -f conftest.* libconftest.a
7826
7827 fi
7828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7829
7830 fi
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7832 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7833
7834 if test no = "$lt_cv_ar_at_file"; then
7835 archiver_list_spec=
7836 else
7837 archiver_list_spec=$lt_cv_ar_at_file
7838 fi
7839
7840
7841
7842
7843
7844
7845
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7848 set dummy ${ac_tool_prefix}strip; ac_word=$2
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 printf %s "checking for $ac_word... " >&6; }
7851 if test ${ac_cv_prog_STRIP+y}
7852 then :
7853 printf %s "(cached) " >&6
7854 else $as_nop
7855 if test -n "$STRIP"; then
7856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 case $as_dir in #(((
7863 '') as_dir=./ ;;
7864 */) ;;
7865 *) as_dir=$as_dir/ ;;
7866 esac
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 STRIP=$ac_cv_prog_STRIP
7880 if test -n "$STRIP"; then
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7882 printf "%s\n" "$STRIP" >&6; }
7883 else
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 printf "%s\n" "no" >&6; }
7886 fi
7887
7888
7889 fi
7890 if test -z "$ac_cv_prog_STRIP"; then
7891 ac_ct_STRIP=$STRIP
7892 # Extract the first word of "strip", so it can be a program name with args.
7893 set dummy strip; ac_word=$2
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 printf %s "checking for $ac_word... " >&6; }
7896 if test ${ac_cv_prog_ac_ct_STRIP+y}
7897 then :
7898 printf %s "(cached) " >&6
7899 else $as_nop
7900 if test -n "$ac_ct_STRIP"; then
7901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 case $as_dir in #(((
7908 '') as_dir=./ ;;
7909 */) ;;
7910 *) as_dir=$as_dir/ ;;
7911 esac
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_ac_ct_STRIP="strip"
7915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7925 if test -n "$ac_ct_STRIP"; then
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7927 printf "%s\n" "$ac_ct_STRIP" >&6; }
7928 else
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 printf "%s\n" "no" >&6; }
7931 fi
7932
7933 if test "x$ac_ct_STRIP" = x; then
7934 STRIP=":"
7935 else
7936 case $cross_compiling:$ac_tool_warned in
7937 yes:)
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7940 ac_tool_warned=yes ;;
7941 esac
7942 STRIP=$ac_ct_STRIP
7943 fi
7944 else
7945 STRIP="$ac_cv_prog_STRIP"
7946 fi
7947
7948 test -z "$STRIP" && STRIP=:
7949
7950
7951
7952
7953
7954
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 printf %s "checking for $ac_word... " >&6; }
7960 if test ${ac_cv_prog_RANLIB+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 if test -n "$RANLIB"; then
7965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 case $as_dir in #(((
7972 '') as_dir=./ ;;
7973 */) ;;
7974 *) as_dir=$as_dir/ ;;
7975 esac
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 RANLIB=$ac_cv_prog_RANLIB
7989 if test -n "$RANLIB"; then
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7991 printf "%s\n" "$RANLIB" >&6; }
7992 else
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 printf "%s\n" "no" >&6; }
7995 fi
7996
7997
7998 fi
7999 if test -z "$ac_cv_prog_RANLIB"; then
8000 ac_ct_RANLIB=$RANLIB
8001 # Extract the first word of "ranlib", so it can be a program name with args.
8002 set dummy ranlib; ac_word=$2
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 printf %s "checking for $ac_word... " >&6; }
8005 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else $as_nop
8009 if test -n "$ac_ct_RANLIB"; then
8010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 case $as_dir in #(((
8017 '') as_dir=./ ;;
8018 */) ;;
8019 *) as_dir=$as_dir/ ;;
8020 esac
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_ac_ct_RANLIB="ranlib"
8024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8034 if test -n "$ac_ct_RANLIB"; then
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8036 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8037 else
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 printf "%s\n" "no" >&6; }
8040 fi
8041
8042 if test "x$ac_ct_RANLIB" = x; then
8043 RANLIB=":"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 RANLIB=$ac_ct_RANLIB
8052 fi
8053 else
8054 RANLIB="$ac_cv_prog_RANLIB"
8055 fi
8056
8057 test -z "$RANLIB" && RANLIB=:
8058
8059
8060
8061
8062
8063
8064 # Determine commands to create old-style static archives.
8065 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8066 old_postinstall_cmds='chmod 644 $oldlib'
8067 old_postuninstall_cmds=
8068
8069 if test -n "$RANLIB"; then
8070 case $host_os in
8071 bitrig* | openbsd*)
8072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8073 ;;
8074 *)
8075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8076 ;;
8077 esac
8078 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8079 fi
8080
8081 case $host_os in
8082 darwin*)
8083 lock_old_archive_extraction=yes ;;
8084 *)
8085 lock_old_archive_extraction=no ;;
8086 esac
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 # If no C compiler was specified, use CC.
8127 LTCC=${LTCC-"$CC"}
8128
8129 # If no C compiler flags were specified, use CFLAGS.
8130 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8131
8132 # Allow CC to be a program name with arguments.
8133 compiler=$CC
8134
8135
8136 # Check for command to grab the raw symbol name followed by C symbol from nm.
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8138 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8139 if test ${lt_cv_sys_global_symbol_pipe+y}
8140 then :
8141 printf %s "(cached) " >&6
8142 else $as_nop
8143
8144 # These are sane defaults that work on at least a few old systems.
8145 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8146
8147 # Character class describing NM global symbol codes.
8148 symcode='[BCDEGRST]'
8149
8150 # Regexp to match symbols that can be accessed directly from C.
8151 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8152
8153 # Define system-specific variables.
8154 case $host_os in
8155 aix*)
8156 symcode='[BCDT]'
8157 ;;
8158 cygwin* | mingw* | pw32* | cegcc*)
8159 symcode='[ABCDGISTW]'
8160 ;;
8161 hpux*)
8162 if test ia64 = "$host_cpu"; then
8163 symcode='[ABCDEGRST]'
8164 fi
8165 ;;
8166 irix* | nonstopux*)
8167 symcode='[BCDEGRST]'
8168 ;;
8169 osf*)
8170 symcode='[BCDEGQRST]'
8171 ;;
8172 solaris*)
8173 symcode='[BDRT]'
8174 ;;
8175 sco3.2v5*)
8176 symcode='[DT]'
8177 ;;
8178 sysv4.2uw2*)
8179 symcode='[DT]'
8180 ;;
8181 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8182 symcode='[ABDT]'
8183 ;;
8184 sysv4)
8185 symcode='[DFNSTU]'
8186 ;;
8187 esac
8188
8189 # If we're using GNU nm, then use its standard symbol codes.
8190 case `$NM -V 2>&1` in
8191 *GNU* | *'with BFD'*)
8192 symcode='[ABCDGIRSTW]' ;;
8193 esac
8194
8195 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8196 # Gets list of data symbols to import.
8197 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8198 # Adjust the below global symbol transforms to fixup imported variables.
8199 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8200 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8201 lt_c_name_lib_hook="\
8202 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8203 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8204 else
8205 # Disable hooks by default.
8206 lt_cv_sys_global_symbol_to_import=
8207 lt_cdecl_hook=
8208 lt_c_name_hook=
8209 lt_c_name_lib_hook=
8210 fi
8211
8212 # Transform an extracted symbol line into a proper C declaration.
8213 # Some systems (esp. on ia64) link data and code symbols differently,
8214 # so use this general approach.
8215 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8216 $lt_cdecl_hook\
8217 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8218 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8219
8220 # Transform an extracted symbol line into symbol name and symbol address
8221 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8222 $lt_c_name_hook\
8223 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8224 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8225
8226 # Transform an extracted symbol line into symbol name with lib prefix and
8227 # symbol address.
8228 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8229 $lt_c_name_lib_hook\
8230 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8231 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8232 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8233
8234 # Handle CRLF in mingw tool chain
8235 opt_cr=
8236 case $build_os in
8237 mingw*)
8238 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8239 ;;
8240 esac
8241
8242 # Try without a prefix underscore, then with it.
8243 for ac_symprfx in "" "_"; do
8244
8245 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8246 symxfrm="\\1 $ac_symprfx\\2 \\2"
8247
8248 # Write the raw and C identifiers.
8249 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8250 # Fake it for dumpbin and say T for any non-static function,
8251 # D for any global variable and I for any imported variable.
8252 # Also find C++ and __fastcall symbols from MSVC++,
8253 # which start with @ or ?.
8254 lt_cv_sys_global_symbol_pipe="$AWK '"\
8255 " {last_section=section; section=\$ 3};"\
8256 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8257 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8258 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8259 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8260 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8261 " \$ 0!~/External *\|/{next};"\
8262 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8263 " {if(hide[section]) next};"\
8264 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8265 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8266 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8267 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8268 " ' prfx=^$ac_symprfx"
8269 else
8270 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8271 fi
8272 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8273
8274 # Check to see that the pipe works correctly.
8275 pipe_works=no
8276
8277 rm -f conftest*
8278 cat > conftest.$ac_ext <<_LT_EOF
8279 #ifdef __cplusplus
8280 extern "C" {
8281 #endif
8282 char nm_test_var;
8283 void nm_test_func(void);
8284 void nm_test_func(void){}
8285 #ifdef __cplusplus
8286 }
8287 #endif
8288 int main(){nm_test_var='a';nm_test_func();return(0);}
8289 _LT_EOF
8290
8291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8292 (eval $ac_compile) 2>&5
8293 ac_status=$?
8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295 test $ac_status = 0; }; then
8296 # Now try to grab the symbols.
8297 nlist=conftest.nm
8298 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8299 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8300 # Try sorting and uniquifying the output.
8301 if sort "$nlist" | uniq > "$nlist"T; then
8302 mv -f "$nlist"T "$nlist"
8303 else
8304 rm -f "$nlist"T
8305 fi
8306
8307 # Make sure that we snagged all the symbols we need.
8308 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8309 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8310 cat <<_LT_EOF > conftest.$ac_ext
8311 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8312 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8313 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8314 relocations are performed -- see ld's documentation on pseudo-relocs. */
8315 # define LT_DLSYM_CONST
8316 #elif defined __osf__
8317 /* This system does not cope well with relocations in const data. */
8318 # define LT_DLSYM_CONST
8319 #else
8320 # define LT_DLSYM_CONST const
8321 #endif
8322
8323 #ifdef __cplusplus
8324 extern "C" {
8325 #endif
8326
8327 _LT_EOF
8328 # Now generate the symbol file.
8329 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8330
8331 cat <<_LT_EOF >> conftest.$ac_ext
8332
8333 /* The mapping between symbol names and symbols. */
8334 LT_DLSYM_CONST struct {
8335 const char *name;
8336 void *address;
8337 }
8338 lt__PROGRAM__LTX_preloaded_symbols[] =
8339 {
8340 { "@PROGRAM@", (void *) 0 },
8341 _LT_EOF
8342 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8343 cat <<\_LT_EOF >> conftest.$ac_ext
8344 {0, (void *) 0}
8345 };
8346
8347 /* This works around a problem in FreeBSD linker */
8348 #ifdef FREEBSD_WORKAROUND
8349 static const void *lt_preloaded_setup() {
8350 return lt__PROGRAM__LTX_preloaded_symbols;
8351 }
8352 #endif
8353
8354 #ifdef __cplusplus
8355 }
8356 #endif
8357 _LT_EOF
8358 # Now try linking the two files.
8359 mv conftest.$ac_objext conftstm.$ac_objext
8360 lt_globsym_save_LIBS=$LIBS
8361 lt_globsym_save_CFLAGS=$CFLAGS
8362 LIBS=conftstm.$ac_objext
8363 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8365 (eval $ac_link) 2>&5
8366 ac_status=$?
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8368 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8369 pipe_works=yes
8370 fi
8371 LIBS=$lt_globsym_save_LIBS
8372 CFLAGS=$lt_globsym_save_CFLAGS
8373 else
8374 echo "cannot find nm_test_func in $nlist" >&5
8375 fi
8376 else
8377 echo "cannot find nm_test_var in $nlist" >&5
8378 fi
8379 else
8380 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8381 fi
8382 else
8383 echo "$progname: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8385 fi
8386 rm -rf conftest* conftst*
8387
8388 # Do not use the global_symbol_pipe unless it works.
8389 if test yes = "$pipe_works"; then
8390 break
8391 else
8392 lt_cv_sys_global_symbol_pipe=
8393 fi
8394 done
8395
8396 fi
8397
8398 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8399 lt_cv_sys_global_symbol_to_cdecl=
8400 fi
8401 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8403 printf "%s\n" "failed" >&6; }
8404 else
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8406 printf "%s\n" "ok" >&6; }
8407 fi
8408
8409 # Response file support.
8410 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8411 nm_file_list_spec='@'
8412 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8413 nm_file_list_spec='@'
8414 fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8453 printf %s "checking for sysroot... " >&6; }
8454
8455 # Check whether --with-sysroot was given.
8456 if test ${with_sysroot+y}
8457 then :
8458 withval=$with_sysroot;
8459 else $as_nop
8460 with_sysroot=no
8461 fi
8462
8463
8464 lt_sysroot=
8465 case $with_sysroot in #(
8466 yes)
8467 if test yes = "$GCC"; then
8468 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8469 fi
8470 ;; #(
8471 /*)
8472 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8473 ;; #(
8474 no|'')
8475 ;; #(
8476 *)
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8478 printf "%s\n" "$with_sysroot" >&6; }
8479 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8480 ;;
8481 esac
8482
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8484 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8485
8486
8487
8488
8489
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8491 printf %s "checking for a working dd... " >&6; }
8492 if test ${ac_cv_path_lt_DD+y}
8493 then :
8494 printf %s "(cached) " >&6
8495 else $as_nop
8496 printf 0123456789abcdef0123456789abcdef >conftest.i
8497 cat conftest.i conftest.i >conftest2.i
8498 : ${lt_DD:=$DD}
8499 if test -z "$lt_DD"; then
8500 ac_path_lt_DD_found=false
8501 # Loop through the user's path and test for each of PROGNAME-LIST
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505 IFS=$as_save_IFS
8506 case $as_dir in #(((
8507 '') as_dir=./ ;;
8508 */) ;;
8509 *) as_dir=$as_dir/ ;;
8510 esac
8511 for ac_prog in dd
8512 do
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8515 as_fn_executable_p "$ac_path_lt_DD" || continue
8516 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8517 cmp -s conftest.i conftest.out \
8518 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8519 fi
8520 $ac_path_lt_DD_found && break 3
8521 done
8522 done
8523 done
8524 IFS=$as_save_IFS
8525 if test -z "$ac_cv_path_lt_DD"; then
8526 :
8527 fi
8528 else
8529 ac_cv_path_lt_DD=$lt_DD
8530 fi
8531
8532 rm -f conftest.i conftest2.i conftest.out
8533 fi
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8535 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8536
8537
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8539 printf %s "checking how to truncate binary pipes... " >&6; }
8540 if test ${lt_cv_truncate_bin+y}
8541 then :
8542 printf %s "(cached) " >&6
8543 else $as_nop
8544 printf 0123456789abcdef0123456789abcdef >conftest.i
8545 cat conftest.i conftest.i >conftest2.i
8546 lt_cv_truncate_bin=
8547 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8548 cmp -s conftest.i conftest.out \
8549 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8550 fi
8551 rm -f conftest.i conftest2.i conftest.out
8552 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8553 fi
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8555 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8556
8557
8558
8559
8560
8561
8562
8563 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8564 func_cc_basename ()
8565 {
8566 for cc_temp in $*""; do
8567 case $cc_temp in
8568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8570 \-*) ;;
8571 *) break;;
8572 esac
8573 done
8574 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8575 }
8576
8577 # Check whether --enable-libtool-lock was given.
8578 if test ${enable_libtool_lock+y}
8579 then :
8580 enableval=$enable_libtool_lock;
8581 fi
8582
8583 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8584
8585 # Some flags need to be propagated to the compiler or linker for good
8586 # libtool support.
8587 case $host in
8588 ia64-*-hpux*)
8589 # Find out what ABI is being produced by ac_compile, and set mode
8590 # options accordingly.
8591 echo 'int i;' > conftest.$ac_ext
8592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8593 (eval $ac_compile) 2>&5
8594 ac_status=$?
8595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8596 test $ac_status = 0; }; then
8597 case `/usr/bin/file conftest.$ac_objext` in
8598 *ELF-32*)
8599 HPUX_IA64_MODE=32
8600 ;;
8601 *ELF-64*)
8602 HPUX_IA64_MODE=64
8603 ;;
8604 esac
8605 fi
8606 rm -rf conftest*
8607 ;;
8608 *-*-irix6*)
8609 # Find out what ABI is being produced by ac_compile, and set linker
8610 # options accordingly.
8611 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8613 (eval $ac_compile) 2>&5
8614 ac_status=$?
8615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8616 test $ac_status = 0; }; then
8617 if test yes = "$lt_cv_prog_gnu_ld"; then
8618 case `/usr/bin/file conftest.$ac_objext` in
8619 *32-bit*)
8620 LD="${LD-ld} -melf32bsmip"
8621 ;;
8622 *N32*)
8623 LD="${LD-ld} -melf32bmipn32"
8624 ;;
8625 *64-bit*)
8626 LD="${LD-ld} -melf64bmip"
8627 ;;
8628 esac
8629 else
8630 case `/usr/bin/file conftest.$ac_objext` in
8631 *32-bit*)
8632 LD="${LD-ld} -32"
8633 ;;
8634 *N32*)
8635 LD="${LD-ld} -n32"
8636 ;;
8637 *64-bit*)
8638 LD="${LD-ld} -64"
8639 ;;
8640 esac
8641 fi
8642 fi
8643 rm -rf conftest*
8644 ;;
8645
8646 mips64*-*linux*)
8647 # Find out what ABI is being produced by ac_compile, and set linker
8648 # options accordingly.
8649 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8651 (eval $ac_compile) 2>&5
8652 ac_status=$?
8653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654 test $ac_status = 0; }; then
8655 emul=elf
8656 case `/usr/bin/file conftest.$ac_objext` in
8657 *32-bit*)
8658 emul="${emul}32"
8659 ;;
8660 *64-bit*)
8661 emul="${emul}64"
8662 ;;
8663 esac
8664 case `/usr/bin/file conftest.$ac_objext` in
8665 *MSB*)
8666 emul="${emul}btsmip"
8667 ;;
8668 *LSB*)
8669 emul="${emul}ltsmip"
8670 ;;
8671 esac
8672 case `/usr/bin/file conftest.$ac_objext` in
8673 *N32*)
8674 emul="${emul}n32"
8675 ;;
8676 esac
8677 LD="${LD-ld} -m $emul"
8678 fi
8679 rm -rf conftest*
8680 ;;
8681
8682 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8683 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8684 # Find out what ABI is being produced by ac_compile, and set linker
8685 # options accordingly. Note that the listed cases only cover the
8686 # situations where additional linker options are needed (such as when
8687 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8688 # vice versa); the common cases where no linker options are needed do
8689 # not appear in the list.
8690 echo 'int i;' > conftest.$ac_ext
8691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8692 (eval $ac_compile) 2>&5
8693 ac_status=$?
8694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8695 test $ac_status = 0; }; then
8696 case `/usr/bin/file conftest.o` in
8697 *32-bit*)
8698 case $host in
8699 x86_64-*kfreebsd*-gnu)
8700 LD="${LD-ld} -m elf_i386_fbsd"
8701 ;;
8702 x86_64-*linux*)
8703 case `/usr/bin/file conftest.o` in
8704 *x86-64*)
8705 LD="${LD-ld} -m elf32_x86_64"
8706 ;;
8707 *)
8708 LD="${LD-ld} -m elf_i386"
8709 ;;
8710 esac
8711 ;;
8712 powerpc64le-*linux*)
8713 LD="${LD-ld} -m elf32lppclinux"
8714 ;;
8715 powerpc64-*linux*)
8716 LD="${LD-ld} -m elf32ppclinux"
8717 ;;
8718 s390x-*linux*)
8719 LD="${LD-ld} -m elf_s390"
8720 ;;
8721 sparc64-*linux*)
8722 LD="${LD-ld} -m elf32_sparc"
8723 ;;
8724 esac
8725 ;;
8726 *64-bit*)
8727 case $host in
8728 x86_64-*kfreebsd*-gnu)
8729 LD="${LD-ld} -m elf_x86_64_fbsd"
8730 ;;
8731 x86_64-*linux*)
8732 LD="${LD-ld} -m elf_x86_64"
8733 ;;
8734 powerpcle-*linux*)
8735 LD="${LD-ld} -m elf64lppc"
8736 ;;
8737 powerpc-*linux*)
8738 LD="${LD-ld} -m elf64ppc"
8739 ;;
8740 s390*-*linux*|s390*-*tpf*)
8741 LD="${LD-ld} -m elf64_s390"
8742 ;;
8743 sparc*-*linux*)
8744 LD="${LD-ld} -m elf64_sparc"
8745 ;;
8746 esac
8747 ;;
8748 esac
8749 fi
8750 rm -rf conftest*
8751 ;;
8752
8753 *-*-sco3.2v5*)
8754 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8755 SAVE_CFLAGS=$CFLAGS
8756 CFLAGS="$CFLAGS -belf"
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8758 printf %s "checking whether the C compiler needs -belf... " >&6; }
8759 if test ${lt_cv_cc_needs_belf+y}
8760 then :
8761 printf %s "(cached) " >&6
8762 else $as_nop
8763 ac_ext=c
8764 ac_cpp='$CPP $CPPFLAGS'
8765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8768
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771
8772 int
8773 main (void)
8774 {
8775
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"
8781 then :
8782 lt_cv_cc_needs_belf=yes
8783 else $as_nop
8784 lt_cv_cc_needs_belf=no
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8787 conftest$ac_exeext conftest.$ac_ext
8788 ac_ext=c
8789 ac_cpp='$CPP $CPPFLAGS'
8790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794 fi
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8796 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8797 if test yes != "$lt_cv_cc_needs_belf"; then
8798 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8799 CFLAGS=$SAVE_CFLAGS
8800 fi
8801 ;;
8802 *-*solaris*)
8803 # Find out what ABI is being produced by ac_compile, and set linker
8804 # options accordingly.
8805 echo 'int i;' > conftest.$ac_ext
8806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8807 (eval $ac_compile) 2>&5
8808 ac_status=$?
8809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8810 test $ac_status = 0; }; then
8811 case `/usr/bin/file conftest.o` in
8812 *64-bit*)
8813 case $lt_cv_prog_gnu_ld in
8814 yes*)
8815 case $host in
8816 i?86-*-solaris*|x86_64-*-solaris*)
8817 LD="${LD-ld} -m elf_x86_64"
8818 ;;
8819 sparc*-*-solaris*)
8820 LD="${LD-ld} -m elf64_sparc"
8821 ;;
8822 esac
8823 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8824 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8825 LD=${LD-ld}_sol2
8826 fi
8827 ;;
8828 *)
8829 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8830 LD="${LD-ld} -64"
8831 fi
8832 ;;
8833 esac
8834 ;;
8835 esac
8836 fi
8837 rm -rf conftest*
8838 ;;
8839 esac
8840
8841 need_locks=$enable_libtool_lock
8842
8843 if test -n "$ac_tool_prefix"; then
8844 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8845 set dummy ${ac_tool_prefix}mt; ac_word=$2
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 printf %s "checking for $ac_word... " >&6; }
8848 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8849 then :
8850 printf %s "(cached) " >&6
8851 else $as_nop
8852 if test -n "$MANIFEST_TOOL"; then
8853 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8857 do
8858 IFS=$as_save_IFS
8859 case $as_dir in #(((
8860 '') as_dir=./ ;;
8861 */) ;;
8862 *) as_dir=$as_dir/ ;;
8863 esac
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8866 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870 done
8871 done
8872 IFS=$as_save_IFS
8873
8874 fi
8875 fi
8876 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8877 if test -n "$MANIFEST_TOOL"; then
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8879 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8880 else
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 printf "%s\n" "no" >&6; }
8883 fi
8884
8885
8886 fi
8887 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8888 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8889 # Extract the first word of "mt", so it can be a program name with args.
8890 set dummy mt; ac_word=$2
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 printf %s "checking for $ac_word... " >&6; }
8893 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else $as_nop
8897 if test -n "$ac_ct_MANIFEST_TOOL"; then
8898 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8899 else
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8902 do
8903 IFS=$as_save_IFS
8904 case $as_dir in #(((
8905 '') as_dir=./ ;;
8906 */) ;;
8907 *) as_dir=$as_dir/ ;;
8908 esac
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915 done
8916 done
8917 IFS=$as_save_IFS
8918
8919 fi
8920 fi
8921 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8922 if test -n "$ac_ct_MANIFEST_TOOL"; then
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8924 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8925 else
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 printf "%s\n" "no" >&6; }
8928 fi
8929
8930 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8931 MANIFEST_TOOL=":"
8932 else
8933 case $cross_compiling:$ac_tool_warned in
8934 yes:)
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8936 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8937 ac_tool_warned=yes ;;
8938 esac
8939 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8940 fi
8941 else
8942 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8943 fi
8944
8945 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8947 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8948 if test ${lt_cv_path_mainfest_tool+y}
8949 then :
8950 printf %s "(cached) " >&6
8951 else $as_nop
8952 lt_cv_path_mainfest_tool=no
8953 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8954 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8955 cat conftest.err >&5
8956 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8957 lt_cv_path_mainfest_tool=yes
8958 fi
8959 rm -f conftest*
8960 fi
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8962 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8963 if test yes != "$lt_cv_path_mainfest_tool"; then
8964 MANIFEST_TOOL=:
8965 fi
8966
8967
8968
8969
8970
8971
8972 case $host_os in
8973 rhapsody* | darwin*)
8974 if test -n "$ac_tool_prefix"; then
8975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 printf %s "checking for $ac_word... " >&6; }
8979 if test ${ac_cv_prog_DSYMUTIL+y}
8980 then :
8981 printf %s "(cached) " >&6
8982 else $as_nop
8983 if test -n "$DSYMUTIL"; then
8984 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989 IFS=$as_save_IFS
8990 case $as_dir in #(((
8991 '') as_dir=./ ;;
8992 */) ;;
8993 *) as_dir=$as_dir/ ;;
8994 esac
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8997 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001 done
9002 done
9003 IFS=$as_save_IFS
9004
9005 fi
9006 fi
9007 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9008 if test -n "$DSYMUTIL"; then
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9010 printf "%s\n" "$DSYMUTIL" >&6; }
9011 else
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 printf "%s\n" "no" >&6; }
9014 fi
9015
9016
9017 fi
9018 if test -z "$ac_cv_prog_DSYMUTIL"; then
9019 ac_ct_DSYMUTIL=$DSYMUTIL
9020 # Extract the first word of "dsymutil", so it can be a program name with args.
9021 set dummy dsymutil; ac_word=$2
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023 printf %s "checking for $ac_word... " >&6; }
9024 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9025 then :
9026 printf %s "(cached) " >&6
9027 else $as_nop
9028 if test -n "$ac_ct_DSYMUTIL"; then
9029 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9030 else
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9033 do
9034 IFS=$as_save_IFS
9035 case $as_dir in #(((
9036 '') as_dir=./ ;;
9037 */) ;;
9038 *) as_dir=$as_dir/ ;;
9039 esac
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9042 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9044 break 2
9045 fi
9046 done
9047 done
9048 IFS=$as_save_IFS
9049
9050 fi
9051 fi
9052 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9053 if test -n "$ac_ct_DSYMUTIL"; then
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9055 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9056 else
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 printf "%s\n" "no" >&6; }
9059 fi
9060
9061 if test "x$ac_ct_DSYMUTIL" = x; then
9062 DSYMUTIL=":"
9063 else
9064 case $cross_compiling:$ac_tool_warned in
9065 yes:)
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9068 ac_tool_warned=yes ;;
9069 esac
9070 DSYMUTIL=$ac_ct_DSYMUTIL
9071 fi
9072 else
9073 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9074 fi
9075
9076 if test -n "$ac_tool_prefix"; then
9077 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9078 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 printf %s "checking for $ac_word... " >&6; }
9081 if test ${ac_cv_prog_NMEDIT+y}
9082 then :
9083 printf %s "(cached) " >&6
9084 else $as_nop
9085 if test -n "$NMEDIT"; then
9086 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9090 do
9091 IFS=$as_save_IFS
9092 case $as_dir in #(((
9093 '') as_dir=./ ;;
9094 */) ;;
9095 *) as_dir=$as_dir/ ;;
9096 esac
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103 done
9104 done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 NMEDIT=$ac_cv_prog_NMEDIT
9110 if test -n "$NMEDIT"; then
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9112 printf "%s\n" "$NMEDIT" >&6; }
9113 else
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 printf "%s\n" "no" >&6; }
9116 fi
9117
9118
9119 fi
9120 if test -z "$ac_cv_prog_NMEDIT"; then
9121 ac_ct_NMEDIT=$NMEDIT
9122 # Extract the first word of "nmedit", so it can be a program name with args.
9123 set dummy nmedit; ac_word=$2
9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 printf %s "checking for $ac_word... " >&6; }
9126 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9127 then :
9128 printf %s "(cached) " >&6
9129 else $as_nop
9130 if test -n "$ac_ct_NMEDIT"; then
9131 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9132 else
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136 IFS=$as_save_IFS
9137 case $as_dir in #(((
9138 '') as_dir=./ ;;
9139 */) ;;
9140 *) as_dir=$as_dir/ ;;
9141 esac
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9144 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9146 break 2
9147 fi
9148 done
9149 done
9150 IFS=$as_save_IFS
9151
9152 fi
9153 fi
9154 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9155 if test -n "$ac_ct_NMEDIT"; then
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9157 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9158 else
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 printf "%s\n" "no" >&6; }
9161 fi
9162
9163 if test "x$ac_ct_NMEDIT" = x; then
9164 NMEDIT=":"
9165 else
9166 case $cross_compiling:$ac_tool_warned in
9167 yes:)
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170 ac_tool_warned=yes ;;
9171 esac
9172 NMEDIT=$ac_ct_NMEDIT
9173 fi
9174 else
9175 NMEDIT="$ac_cv_prog_NMEDIT"
9176 fi
9177
9178 if test -n "$ac_tool_prefix"; then
9179 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9180 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 printf %s "checking for $ac_word... " >&6; }
9183 if test ${ac_cv_prog_LIPO+y}
9184 then :
9185 printf %s "(cached) " >&6
9186 else $as_nop
9187 if test -n "$LIPO"; then
9188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193 IFS=$as_save_IFS
9194 case $as_dir in #(((
9195 '') as_dir=./ ;;
9196 */) ;;
9197 *) as_dir=$as_dir/ ;;
9198 esac
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9201 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205 done
9206 done
9207 IFS=$as_save_IFS
9208
9209 fi
9210 fi
9211 LIPO=$ac_cv_prog_LIPO
9212 if test -n "$LIPO"; then
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9214 printf "%s\n" "$LIPO" >&6; }
9215 else
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 printf "%s\n" "no" >&6; }
9218 fi
9219
9220
9221 fi
9222 if test -z "$ac_cv_prog_LIPO"; then
9223 ac_ct_LIPO=$LIPO
9224 # Extract the first word of "lipo", so it can be a program name with args.
9225 set dummy lipo; ac_word=$2
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 printf %s "checking for $ac_word... " >&6; }
9228 if test ${ac_cv_prog_ac_ct_LIPO+y}
9229 then :
9230 printf %s "(cached) " >&6
9231 else $as_nop
9232 if test -n "$ac_ct_LIPO"; then
9233 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9234 else
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9237 do
9238 IFS=$as_save_IFS
9239 case $as_dir in #(((
9240 '') as_dir=./ ;;
9241 */) ;;
9242 *) as_dir=$as_dir/ ;;
9243 esac
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9246 ac_cv_prog_ac_ct_LIPO="lipo"
9247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9248 break 2
9249 fi
9250 done
9251 done
9252 IFS=$as_save_IFS
9253
9254 fi
9255 fi
9256 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9257 if test -n "$ac_ct_LIPO"; then
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9259 printf "%s\n" "$ac_ct_LIPO" >&6; }
9260 else
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 printf "%s\n" "no" >&6; }
9263 fi
9264
9265 if test "x$ac_ct_LIPO" = x; then
9266 LIPO=":"
9267 else
9268 case $cross_compiling:$ac_tool_warned in
9269 yes:)
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9272 ac_tool_warned=yes ;;
9273 esac
9274 LIPO=$ac_ct_LIPO
9275 fi
9276 else
9277 LIPO="$ac_cv_prog_LIPO"
9278 fi
9279
9280 if test -n "$ac_tool_prefix"; then
9281 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9282 set dummy ${ac_tool_prefix}otool; ac_word=$2
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 printf %s "checking for $ac_word... " >&6; }
9285 if test ${ac_cv_prog_OTOOL+y}
9286 then :
9287 printf %s "(cached) " >&6
9288 else $as_nop
9289 if test -n "$OTOOL"; then
9290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295 IFS=$as_save_IFS
9296 case $as_dir in #(((
9297 '') as_dir=./ ;;
9298 */) ;;
9299 *) as_dir=$as_dir/ ;;
9300 esac
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9303 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9305 break 2
9306 fi
9307 done
9308 done
9309 IFS=$as_save_IFS
9310
9311 fi
9312 fi
9313 OTOOL=$ac_cv_prog_OTOOL
9314 if test -n "$OTOOL"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9316 printf "%s\n" "$OTOOL" >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9320 fi
9321
9322
9323 fi
9324 if test -z "$ac_cv_prog_OTOOL"; then
9325 ac_ct_OTOOL=$OTOOL
9326 # Extract the first word of "otool", so it can be a program name with args.
9327 set dummy otool; ac_word=$2
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 printf %s "checking for $ac_word... " >&6; }
9330 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else $as_nop
9334 if test -n "$ac_ct_OTOOL"; then
9335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9336 else
9337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 for as_dir in $PATH
9339 do
9340 IFS=$as_save_IFS
9341 case $as_dir in #(((
9342 '') as_dir=./ ;;
9343 */) ;;
9344 *) as_dir=$as_dir/ ;;
9345 esac
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_ac_ct_OTOOL="otool"
9349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352 done
9353 done
9354 IFS=$as_save_IFS
9355
9356 fi
9357 fi
9358 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9359 if test -n "$ac_ct_OTOOL"; then
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9361 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9362 else
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 printf "%s\n" "no" >&6; }
9365 fi
9366
9367 if test "x$ac_ct_OTOOL" = x; then
9368 OTOOL=":"
9369 else
9370 case $cross_compiling:$ac_tool_warned in
9371 yes:)
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9373 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9374 ac_tool_warned=yes ;;
9375 esac
9376 OTOOL=$ac_ct_OTOOL
9377 fi
9378 else
9379 OTOOL="$ac_cv_prog_OTOOL"
9380 fi
9381
9382 if test -n "$ac_tool_prefix"; then
9383 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9384 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 printf %s "checking for $ac_word... " >&6; }
9387 if test ${ac_cv_prog_OTOOL64+y}
9388 then :
9389 printf %s "(cached) " >&6
9390 else $as_nop
9391 if test -n "$OTOOL64"; then
9392 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9393 else
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9396 do
9397 IFS=$as_save_IFS
9398 case $as_dir in #(((
9399 '') as_dir=./ ;;
9400 */) ;;
9401 *) as_dir=$as_dir/ ;;
9402 esac
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9405 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9407 break 2
9408 fi
9409 done
9410 done
9411 IFS=$as_save_IFS
9412
9413 fi
9414 fi
9415 OTOOL64=$ac_cv_prog_OTOOL64
9416 if test -n "$OTOOL64"; then
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9418 printf "%s\n" "$OTOOL64" >&6; }
9419 else
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 printf "%s\n" "no" >&6; }
9422 fi
9423
9424
9425 fi
9426 if test -z "$ac_cv_prog_OTOOL64"; then
9427 ac_ct_OTOOL64=$OTOOL64
9428 # Extract the first word of "otool64", so it can be a program name with args.
9429 set dummy otool64; ac_word=$2
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 printf %s "checking for $ac_word... " >&6; }
9432 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9433 then :
9434 printf %s "(cached) " >&6
9435 else $as_nop
9436 if test -n "$ac_ct_OTOOL64"; then
9437 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9438 else
9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9441 do
9442 IFS=$as_save_IFS
9443 case $as_dir in #(((
9444 '') as_dir=./ ;;
9445 */) ;;
9446 *) as_dir=$as_dir/ ;;
9447 esac
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9450 ac_cv_prog_ac_ct_OTOOL64="otool64"
9451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9452 break 2
9453 fi
9454 done
9455 done
9456 IFS=$as_save_IFS
9457
9458 fi
9459 fi
9460 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9461 if test -n "$ac_ct_OTOOL64"; then
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9463 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9464 else
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 printf "%s\n" "no" >&6; }
9467 fi
9468
9469 if test "x$ac_ct_OTOOL64" = x; then
9470 OTOOL64=":"
9471 else
9472 case $cross_compiling:$ac_tool_warned in
9473 yes:)
9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9475 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9476 ac_tool_warned=yes ;;
9477 esac
9478 OTOOL64=$ac_ct_OTOOL64
9479 fi
9480 else
9481 OTOOL64="$ac_cv_prog_OTOOL64"
9482 fi
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9511 printf %s "checking for -single_module linker flag... " >&6; }
9512 if test ${lt_cv_apple_cc_single_mod+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else $as_nop
9516 lt_cv_apple_cc_single_mod=no
9517 if test -z "$LT_MULTI_MODULE"; then
9518 # By default we will add the -single_module flag. You can override
9519 # by either setting the environment variable LT_MULTI_MODULE
9520 # non-empty at configure time, or by adding -multi_module to the
9521 # link flags.
9522 rm -rf libconftest.dylib*
9523 echo "int foo(void){return 1;}" > conftest.c
9524 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9525 -dynamiclib -Wl,-single_module conftest.c" >&5
9526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9528 _lt_result=$?
9529 # If there is a non-empty error log, and "single_module"
9530 # appears in it, assume the flag caused a linker warning
9531 if test -s conftest.err && $GREP single_module conftest.err; then
9532 cat conftest.err >&5
9533 # Otherwise, if the output was created with a 0 exit code from
9534 # the compiler, it worked.
9535 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9536 lt_cv_apple_cc_single_mod=yes
9537 else
9538 cat conftest.err >&5
9539 fi
9540 rm -rf libconftest.dylib*
9541 rm -f conftest.*
9542 fi
9543 fi
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9545 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9546
9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9548 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9549 if test ${lt_cv_ld_exported_symbols_list+y}
9550 then :
9551 printf %s "(cached) " >&6
9552 else $as_nop
9553 lt_cv_ld_exported_symbols_list=no
9554 save_LDFLAGS=$LDFLAGS
9555 echo "_main" > conftest.sym
9556 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559
9560 int
9561 main (void)
9562 {
9563
9564 ;
9565 return 0;
9566 }
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"
9569 then :
9570 lt_cv_ld_exported_symbols_list=yes
9571 else $as_nop
9572 lt_cv_ld_exported_symbols_list=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9575 conftest$ac_exeext conftest.$ac_ext
9576 LDFLAGS=$save_LDFLAGS
9577
9578 fi
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9580 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9581
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9583 printf %s "checking for -force_load linker flag... " >&6; }
9584 if test ${lt_cv_ld_force_load+y}
9585 then :
9586 printf %s "(cached) " >&6
9587 else $as_nop
9588 lt_cv_ld_force_load=no
9589 cat > conftest.c << _LT_EOF
9590 int forced_loaded() { return 2;}
9591 _LT_EOF
9592 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9593 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9594 echo "$AR cr libconftest.a conftest.o" >&5
9595 $AR cr libconftest.a conftest.o 2>&5
9596 echo "$RANLIB libconftest.a" >&5
9597 $RANLIB libconftest.a 2>&5
9598 cat > conftest.c << _LT_EOF
9599 int main() { return 0;}
9600 _LT_EOF
9601 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9602 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9603 _lt_result=$?
9604 if test -s conftest.err && $GREP force_load conftest.err; then
9605 cat conftest.err >&5
9606 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9607 lt_cv_ld_force_load=yes
9608 else
9609 cat conftest.err >&5
9610 fi
9611 rm -f conftest.err libconftest.a conftest conftest.c
9612 rm -rf conftest.dSYM
9613
9614 fi
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9616 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9617 case $host_os in
9618 rhapsody* | darwin1.[012])
9619 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9620 darwin1.*)
9621 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9622 darwin*) # darwin 5.x on
9623 # if running on 10.5 or later, the deployment target defaults
9624 # to the OS version, if on x86, and 10.4, the deployment
9625 # target defaults to 10.4. Don't you love it?
9626 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9627 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9628 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9629 10.[012][,.]*)
9630 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9631 10.*|11.*)
9632 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9633 esac
9634 ;;
9635 esac
9636 if test yes = "$lt_cv_apple_cc_single_mod"; then
9637 _lt_dar_single_mod='$single_module'
9638 fi
9639 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9640 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9641 else
9642 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9643 fi
9644 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9645 _lt_dsymutil='~$DSYMUTIL $lib || :'
9646 else
9647 _lt_dsymutil=
9648 fi
9649 ;;
9650 esac
9651
9652 # func_munge_path_list VARIABLE PATH
9653 # -----------------------------------
9654 # VARIABLE is name of variable containing _space_ separated list of
9655 # directories to be munged by the contents of PATH, which is string
9656 # having a format:
9657 # "DIR[:DIR]:"
9658 # string "DIR[ DIR]" will be prepended to VARIABLE
9659 # ":DIR[:DIR]"
9660 # string "DIR[ DIR]" will be appended to VARIABLE
9661 # "DIRP[:DIRP]::[DIRA:]DIRA"
9662 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9663 # "DIRA[ DIRA]" will be appended to VARIABLE
9664 # "DIR[:DIR]"
9665 # VARIABLE will be replaced by "DIR[ DIR]"
9666 func_munge_path_list ()
9667 {
9668 case x$2 in
9669 x)
9670 ;;
9671 *:)
9672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9673 ;;
9674 x:*)
9675 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9676 ;;
9677 *::*)
9678 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9679 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9680 ;;
9681 *)
9682 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9683 ;;
9684 esac
9685 }
9686
9687 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9688 "
9689 if test "x$ac_cv_header_dlfcn_h" = xyes
9690 then :
9691 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9692
9693 fi
9694
9695
9696
9697
9698
9699 # Set options
9700 enable_dlopen=yes
9701
9702
9703
9704
9705 enable_win32_dll=no
9706
9707
9708 # Check whether --enable-shared was given.
9709 if test ${enable_shared+y}
9710 then :
9711 enableval=$enable_shared; p=${PACKAGE-default}
9712 case $enableval in
9713 yes) enable_shared=yes ;;
9714 no) enable_shared=no ;;
9715 *)
9716 enable_shared=no
9717 # Look at the argument we got. We use all the common list separators.
9718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9719 for pkg in $enableval; do
9720 IFS=$lt_save_ifs
9721 if test "X$pkg" = "X$p"; then
9722 enable_shared=yes
9723 fi
9724 done
9725 IFS=$lt_save_ifs
9726 ;;
9727 esac
9728 else $as_nop
9729 enable_shared=yes
9730 fi
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 # Check whether --with-pic was given.
9743 if test ${with_pic+y}
9744 then :
9745 withval=$with_pic; lt_p=${PACKAGE-default}
9746 case $withval in
9747 yes|no) pic_mode=$withval ;;
9748 *)
9749 pic_mode=default
9750 # Look at the argument we got. We use all the common list separators.
9751 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9752 for lt_pkg in $withval; do
9753 IFS=$lt_save_ifs
9754 if test "X$lt_pkg" = "X$lt_p"; then
9755 pic_mode=yes
9756 fi
9757 done
9758 IFS=$lt_save_ifs
9759 ;;
9760 esac
9761 else $as_nop
9762 pic_mode=default
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771
9772 # Check whether --enable-fast-install was given.
9773 if test ${enable_fast_install+y}
9774 then :
9775 enableval=$enable_fast_install; p=${PACKAGE-default}
9776 case $enableval in
9777 yes) enable_fast_install=yes ;;
9778 no) enable_fast_install=no ;;
9779 *)
9780 enable_fast_install=no
9781 # Look at the argument we got. We use all the common list separators.
9782 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9783 for pkg in $enableval; do
9784 IFS=$lt_save_ifs
9785 if test "X$pkg" = "X$p"; then
9786 enable_fast_install=yes
9787 fi
9788 done
9789 IFS=$lt_save_ifs
9790 ;;
9791 esac
9792 else $as_nop
9793 enable_fast_install=yes
9794 fi
9795
9796
9797
9798
9799
9800
9801
9802
9803 shared_archive_member_spec=
9804 case $host,$enable_shared in
9805 power*-*-aix[5-9]*,yes)
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9807 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9808
9809 # Check whether --with-aix-soname was given.
9810 if test ${with_aix_soname+y}
9811 then :
9812 withval=$with_aix_soname; case $withval in
9813 aix|svr4|both)
9814 ;;
9815 *)
9816 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9817 ;;
9818 esac
9819 lt_cv_with_aix_soname=$with_aix_soname
9820 else $as_nop
9821 if test ${lt_cv_with_aix_soname+y}
9822 then :
9823 printf %s "(cached) " >&6
9824 else $as_nop
9825 lt_cv_with_aix_soname=aix
9826 fi
9827
9828 with_aix_soname=$lt_cv_with_aix_soname
9829 fi
9830
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9832 printf "%s\n" "$with_aix_soname" >&6; }
9833 if test aix != "$with_aix_soname"; then
9834 # For the AIX way of multilib, we name the shared archive member
9835 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9836 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9837 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9838 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9839 if test 64 = "${OBJECT_MODE-32}"; then
9840 shared_archive_member_spec=shr_64
9841 else
9842 shared_archive_member_spec=shr
9843 fi
9844 fi
9845 ;;
9846 *)
9847 with_aix_soname=aix
9848 ;;
9849 esac
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 # This can be used to rebuild libtool when needed
9861 LIBTOOL_DEPS=$ltmain
9862
9863 # Always use our own libtool.
9864 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895 test -z "$LN_S" && LN_S="ln -s"
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 if test -n "${ZSH_VERSION+set}"; then
9911 setopt NO_GLOB_SUBST
9912 fi
9913
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9915 printf %s "checking for objdir... " >&6; }
9916 if test ${lt_cv_objdir+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else $as_nop
9920 rm -f .libs 2>/dev/null
9921 mkdir .libs 2>/dev/null
9922 if test -d .libs; then
9923 lt_cv_objdir=.libs
9924 else
9925 # MS-DOS does not allow filenames that begin with a dot.
9926 lt_cv_objdir=_libs
9927 fi
9928 rmdir .libs 2>/dev/null
9929 fi
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9931 printf "%s\n" "$lt_cv_objdir" >&6; }
9932 objdir=$lt_cv_objdir
9933
9934
9935
9936
9937
9938 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9939
9940
9941
9942
9943 case $host_os in
9944 aix3*)
9945 # AIX sometimes has problems with the GCC collect2 program. For some
9946 # reason, if we set the COLLECT_NAMES environment variable, the problems
9947 # vanish in a puff of smoke.
9948 if test set != "${COLLECT_NAMES+set}"; then
9949 COLLECT_NAMES=
9950 export COLLECT_NAMES
9951 fi
9952 ;;
9953 esac
9954
9955 # Global variables:
9956 ofile=libtool
9957 can_build_shared=yes
9958
9959 # All known linkers require a '.a' archive for static linking (except MSVC,
9960 # which needs '.lib').
9961 libext=a
9962
9963 with_gnu_ld=$lt_cv_prog_gnu_ld
9964
9965 old_CC=$CC
9966 old_CFLAGS=$CFLAGS
9967
9968 # Set sane defaults for various variables
9969 test -z "$CC" && CC=cc
9970 test -z "$LTCC" && LTCC=$CC
9971 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9972 test -z "$LD" && LD=ld
9973 test -z "$ac_objext" && ac_objext=o
9974
9975 func_cc_basename $compiler
9976 cc_basename=$func_cc_basename_result
9977
9978
9979 # Only perform the check for file, if the check method requires it
9980 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9981 case $deplibs_check_method in
9982 file_magic*)
9983 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9985 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9986 if test ${lt_cv_path_MAGIC_CMD+y}
9987 then :
9988 printf %s "(cached) " >&6
9989 else $as_nop
9990 case $MAGIC_CMD in
9991 [\\/*] | ?:[\\/]*)
9992 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9993 ;;
9994 *)
9995 lt_save_MAGIC_CMD=$MAGIC_CMD
9996 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9998 for ac_dir in $ac_dummy; do
9999 IFS=$lt_save_ifs
10000 test -z "$ac_dir" && ac_dir=.
10001 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10002 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10003 if test -n "$file_magic_test_file"; then
10004 case $deplibs_check_method in
10005 "file_magic "*)
10006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10007 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10009 $EGREP "$file_magic_regex" > /dev/null; then
10010 :
10011 else
10012 cat <<_LT_EOF 1>&2
10013
10014 *** Warning: the command libtool uses to detect shared libraries,
10015 *** $file_magic_cmd, produces output that libtool cannot recognize.
10016 *** The result is that libtool may fail to recognize shared libraries
10017 *** as such. This will affect the creation of libtool libraries that
10018 *** depend on shared libraries, but programs linked with such libtool
10019 *** libraries will work regardless of this problem. Nevertheless, you
10020 *** may want to report the problem to your system manager and/or to
10021 *** [email protected]
10022
10023 _LT_EOF
10024 fi ;;
10025 esac
10026 fi
10027 break
10028 fi
10029 done
10030 IFS=$lt_save_ifs
10031 MAGIC_CMD=$lt_save_MAGIC_CMD
10032 ;;
10033 esac
10034 fi
10035
10036 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10037 if test -n "$MAGIC_CMD"; then
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10039 printf "%s\n" "$MAGIC_CMD" >&6; }
10040 else
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 printf "%s\n" "no" >&6; }
10043 fi
10044
10045
10046
10047
10048
10049 if test -z "$lt_cv_path_MAGIC_CMD"; then
10050 if test -n "$ac_tool_prefix"; then
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10052 printf %s "checking for file... " >&6; }
10053 if test ${lt_cv_path_MAGIC_CMD+y}
10054 then :
10055 printf %s "(cached) " >&6
10056 else $as_nop
10057 case $MAGIC_CMD in
10058 [\\/*] | ?:[\\/]*)
10059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10060 ;;
10061 *)
10062 lt_save_MAGIC_CMD=$MAGIC_CMD
10063 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10065 for ac_dir in $ac_dummy; do
10066 IFS=$lt_save_ifs
10067 test -z "$ac_dir" && ac_dir=.
10068 if test -f "$ac_dir/file"; then
10069 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10070 if test -n "$file_magic_test_file"; then
10071 case $deplibs_check_method in
10072 "file_magic "*)
10073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10074 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10076 $EGREP "$file_magic_regex" > /dev/null; then
10077 :
10078 else
10079 cat <<_LT_EOF 1>&2
10080
10081 *** Warning: the command libtool uses to detect shared libraries,
10082 *** $file_magic_cmd, produces output that libtool cannot recognize.
10083 *** The result is that libtool may fail to recognize shared libraries
10084 *** as such. This will affect the creation of libtool libraries that
10085 *** depend on shared libraries, but programs linked with such libtool
10086 *** libraries will work regardless of this problem. Nevertheless, you
10087 *** may want to report the problem to your system manager and/or to
10088 *** [email protected]
10089
10090 _LT_EOF
10091 fi ;;
10092 esac
10093 fi
10094 break
10095 fi
10096 done
10097 IFS=$lt_save_ifs
10098 MAGIC_CMD=$lt_save_MAGIC_CMD
10099 ;;
10100 esac
10101 fi
10102
10103 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10104 if test -n "$MAGIC_CMD"; then
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10106 printf "%s\n" "$MAGIC_CMD" >&6; }
10107 else
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 printf "%s\n" "no" >&6; }
10110 fi
10111
10112
10113 else
10114 MAGIC_CMD=:
10115 fi
10116 fi
10117
10118 fi
10119 ;;
10120 esac
10121
10122 # Use C for the default configuration in the libtool script
10123
10124 lt_save_CC=$CC
10125 ac_ext=c
10126 ac_cpp='$CPP $CPPFLAGS'
10127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10130
10131
10132 # Source file extension for C test sources.
10133 ac_ext=c
10134
10135 # Object file extension for compiled C test sources.
10136 objext=o
10137 objext=$objext
10138
10139 # Code to be used in simple compile tests
10140 lt_simple_compile_test_code="int some_variable = 0;"
10141
10142 # Code to be used in simple link tests
10143 lt_simple_link_test_code='int main(){return(0);}'
10144
10145
10146
10147
10148
10149
10150
10151 # If no C compiler was specified, use CC.
10152 LTCC=${LTCC-"$CC"}
10153
10154 # If no C compiler flags were specified, use CFLAGS.
10155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10156
10157 # Allow CC to be a program name with arguments.
10158 compiler=$CC
10159
10160 # Save the default compiler, since it gets overwritten when the other
10161 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10162 compiler_DEFAULT=$CC
10163
10164 # save warnings/boilerplate of simple test code
10165 ac_outfile=conftest.$ac_objext
10166 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10168 _lt_compiler_boilerplate=`cat conftest.err`
10169 $RM conftest*
10170
10171 ac_outfile=conftest.$ac_objext
10172 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10174 _lt_linker_boilerplate=`cat conftest.err`
10175 $RM -r conftest*
10176
10177
10178 ## CAVEAT EMPTOR:
10179 ## There is no encapsulation within the following macros, do not change
10180 ## the running order or otherwise move them around unless you know exactly
10181 ## what you are doing...
10182 if test -n "$compiler"; then
10183
10184 lt_prog_compiler_no_builtin_flag=
10185
10186 if test yes = "$GCC"; then
10187 case $cc_basename in
10188 nvcc*)
10189 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10190 *)
10191 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10192 esac
10193
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10195 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10196 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10197 then :
10198 printf %s "(cached) " >&6
10199 else $as_nop
10200 lt_cv_prog_compiler_rtti_exceptions=no
10201 ac_outfile=conftest.$ac_objext
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10204 # Insert the option either (1) after the last *FLAGS variable, or
10205 # (2) before a word containing "conftest.", or (3) at the end.
10206 # Note that $ac_compile itself does not contain backslashes and begins
10207 # with a dollar sign (not a hyphen), so the echo should work correctly.
10208 # The option is referenced via a variable to avoid confusing sed.
10209 lt_compile=`echo "$ac_compile" | $SED \
10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10212 -e 's:$: $lt_compiler_flag:'`
10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10214 (eval "$lt_compile" 2>conftest.err)
10215 ac_status=$?
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 if (exit $ac_status) && test -s "$ac_outfile"; then
10219 # The compiler can only warn and ignore the option if not recognized
10220 # So say no if there are warnings other than the usual output.
10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler_rtti_exceptions=yes
10225 fi
10226 fi
10227 $RM conftest*
10228
10229 fi
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10231 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10232
10233 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10234 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10235 else
10236 :
10237 fi
10238
10239 fi
10240
10241
10242
10243
10244
10245
10246 lt_prog_compiler_wl=
10247 lt_prog_compiler_pic=
10248 lt_prog_compiler_static=
10249
10250
10251 if test yes = "$GCC"; then
10252 lt_prog_compiler_wl='-Wl,'
10253 lt_prog_compiler_static='-static'
10254
10255 case $host_os in
10256 aix*)
10257 # All AIX code is PIC.
10258 if test ia64 = "$host_cpu"; then
10259 # AIX 5 now supports IA64 processor
10260 lt_prog_compiler_static='-Bstatic'
10261 fi
10262 lt_prog_compiler_pic='-fPIC'
10263 ;;
10264
10265 amigaos*)
10266 case $host_cpu in
10267 powerpc)
10268 # see comment about AmigaOS4 .so support
10269 lt_prog_compiler_pic='-fPIC'
10270 ;;
10271 m68k)
10272 # FIXME: we need at least 68020 code to build shared libraries, but
10273 # adding the '-m68020' flag to GCC prevents building anything better,
10274 # like '-m68040'.
10275 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10276 ;;
10277 esac
10278 ;;
10279
10280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10281 # PIC is the default for these OSes.
10282 ;;
10283
10284 mingw* | cygwin* | pw32* | os2* | cegcc*)
10285 # This hack is so that the source file can tell whether it is being
10286 # built for inclusion in a dll (and should export symbols for example).
10287 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10288 # (--disable-auto-import) libraries
10289 lt_prog_compiler_pic='-DDLL_EXPORT'
10290 case $host_os in
10291 os2*)
10292 lt_prog_compiler_static='$wl-static'
10293 ;;
10294 esac
10295 ;;
10296
10297 darwin* | rhapsody*)
10298 # PIC is the default on this platform
10299 # Common symbols not allowed in MH_DYLIB files
10300 lt_prog_compiler_pic='-fno-common'
10301 ;;
10302
10303 haiku*)
10304 # PIC is the default for Haiku.
10305 # The "-static" flag exists, but is broken.
10306 lt_prog_compiler_static=
10307 ;;
10308
10309 hpux*)
10310 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10311 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10312 # sets the default TLS model and affects inlining.
10313 case $host_cpu in
10314 hppa*64*)
10315 # +Z the default
10316 ;;
10317 *)
10318 lt_prog_compiler_pic='-fPIC'
10319 ;;
10320 esac
10321 ;;
10322
10323 interix[3-9]*)
10324 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10325 # Instead, we relocate shared libraries at runtime.
10326 ;;
10327
10328 msdosdjgpp*)
10329 # Just because we use GCC doesn't mean we suddenly get shared libraries
10330 # on systems that don't support them.
10331 lt_prog_compiler_can_build_shared=no
10332 enable_shared=no
10333 ;;
10334
10335 *nto* | *qnx*)
10336 # QNX uses GNU C++, but need to define -shared option too, otherwise
10337 # it will coredump.
10338 lt_prog_compiler_pic='-fPIC -shared'
10339 ;;
10340
10341 sysv4*MP*)
10342 if test -d /usr/nec; then
10343 lt_prog_compiler_pic=-Kconform_pic
10344 fi
10345 ;;
10346
10347 *)
10348 lt_prog_compiler_pic='-fPIC'
10349 ;;
10350 esac
10351
10352 case $cc_basename in
10353 nvcc*) # Cuda Compiler Driver 2.2
10354 lt_prog_compiler_wl='-Xlinker '
10355 if test -n "$lt_prog_compiler_pic"; then
10356 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10357 fi
10358 ;;
10359 esac
10360 else
10361 # PORTME Check for flag to pass linker flags through the system compiler.
10362 case $host_os in
10363 aix*)
10364 lt_prog_compiler_wl='-Wl,'
10365 if test ia64 = "$host_cpu"; then
10366 # AIX 5 now supports IA64 processor
10367 lt_prog_compiler_static='-Bstatic'
10368 else
10369 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10370 fi
10371 ;;
10372
10373 darwin* | rhapsody*)
10374 # PIC is the default on this platform
10375 # Common symbols not allowed in MH_DYLIB files
10376 lt_prog_compiler_pic='-fno-common'
10377 case $cc_basename in
10378 nagfor*)
10379 # NAG Fortran compiler
10380 lt_prog_compiler_wl='-Wl,-Wl,,'
10381 lt_prog_compiler_pic='-PIC'
10382 lt_prog_compiler_static='-Bstatic'
10383 ;;
10384 esac
10385 ;;
10386
10387 mingw* | cygwin* | pw32* | os2* | cegcc*)
10388 # This hack is so that the source file can tell whether it is being
10389 # built for inclusion in a dll (and should export symbols for example).
10390 lt_prog_compiler_pic='-DDLL_EXPORT'
10391 case $host_os in
10392 os2*)
10393 lt_prog_compiler_static='$wl-static'
10394 ;;
10395 esac
10396 ;;
10397
10398 hpux9* | hpux10* | hpux11*)
10399 lt_prog_compiler_wl='-Wl,'
10400 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10401 # not for PA HP-UX.
10402 case $host_cpu in
10403 hppa*64*|ia64*)
10404 # +Z the default
10405 ;;
10406 *)
10407 lt_prog_compiler_pic='+Z'
10408 ;;
10409 esac
10410 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10411 lt_prog_compiler_static='$wl-a ${wl}archive'
10412 ;;
10413
10414 irix5* | irix6* | nonstopux*)
10415 lt_prog_compiler_wl='-Wl,'
10416 # PIC (with -KPIC) is the default.
10417 lt_prog_compiler_static='-non_shared'
10418 ;;
10419
10420 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10421 case $cc_basename in
10422 # old Intel for x86_64, which still supported -KPIC.
10423 ecc*)
10424 lt_prog_compiler_wl='-Wl,'
10425 lt_prog_compiler_pic='-KPIC'
10426 lt_prog_compiler_static='-static'
10427 ;;
10428 # flang / f18. f95 an alias for gfortran or flang on Debian
10429 flang* | f18* | f95*)
10430 lt_prog_compiler_wl='-Wl,'
10431 lt_prog_compiler_pic='-fPIC'
10432 lt_prog_compiler_static='-static'
10433 ;;
10434 # icc used to be incompatible with GCC.
10435 # ICC 10 doesn't accept -KPIC any more.
10436 icc* | ifort*)
10437 lt_prog_compiler_wl='-Wl,'
10438 lt_prog_compiler_pic='-fPIC'
10439 lt_prog_compiler_static='-static'
10440 ;;
10441 # Lahey Fortran 8.1.
10442 lf95*)
10443 lt_prog_compiler_wl='-Wl,'
10444 lt_prog_compiler_pic='--shared'
10445 lt_prog_compiler_static='--static'
10446 ;;
10447 nagfor*)
10448 # NAG Fortran compiler
10449 lt_prog_compiler_wl='-Wl,-Wl,,'
10450 lt_prog_compiler_pic='-PIC'
10451 lt_prog_compiler_static='-Bstatic'
10452 ;;
10453 tcc*)
10454 # Fabrice Bellard et al's Tiny C Compiler
10455 lt_prog_compiler_wl='-Wl,'
10456 lt_prog_compiler_pic='-fPIC'
10457 lt_prog_compiler_static='-static'
10458 ;;
10459 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10460 # Portland Group compilers (*not* the Pentium gcc compiler,
10461 # which looks to be a dead project)
10462 lt_prog_compiler_wl='-Wl,'
10463 lt_prog_compiler_pic='-fpic'
10464 lt_prog_compiler_static='-Bstatic'
10465 ;;
10466 ccc*)
10467 lt_prog_compiler_wl='-Wl,'
10468 # All Alpha code is PIC.
10469 lt_prog_compiler_static='-non_shared'
10470 ;;
10471 xl* | bgxl* | bgf* | mpixl*)
10472 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10473 lt_prog_compiler_wl='-Wl,'
10474 lt_prog_compiler_pic='-qpic'
10475 lt_prog_compiler_static='-qstaticlink'
10476 ;;
10477 *)
10478 case `$CC -V 2>&1 | sed 5q` in
10479 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10480 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10481 lt_prog_compiler_pic='-KPIC'
10482 lt_prog_compiler_static='-Bstatic'
10483 lt_prog_compiler_wl=''
10484 ;;
10485 *Sun\ F* | *Sun*Fortran*)
10486 lt_prog_compiler_pic='-KPIC'
10487 lt_prog_compiler_static='-Bstatic'
10488 lt_prog_compiler_wl='-Qoption ld '
10489 ;;
10490 *Sun\ C*)
10491 # Sun C 5.9
10492 lt_prog_compiler_pic='-KPIC'
10493 lt_prog_compiler_static='-Bstatic'
10494 lt_prog_compiler_wl='-Wl,'
10495 ;;
10496 *Intel*\ [CF]*Compiler*)
10497 lt_prog_compiler_wl='-Wl,'
10498 lt_prog_compiler_pic='-fPIC'
10499 lt_prog_compiler_static='-static'
10500 ;;
10501 *Portland\ Group*)
10502 lt_prog_compiler_wl='-Wl,'
10503 lt_prog_compiler_pic='-fpic'
10504 lt_prog_compiler_static='-Bstatic'
10505 ;;
10506 esac
10507 ;;
10508 esac
10509 ;;
10510
10511 newsos6)
10512 lt_prog_compiler_pic='-KPIC'
10513 lt_prog_compiler_static='-Bstatic'
10514 ;;
10515
10516 *nto* | *qnx*)
10517 # QNX uses GNU C++, but need to define -shared option too, otherwise
10518 # it will coredump.
10519 lt_prog_compiler_pic='-fPIC -shared'
10520 ;;
10521
10522 osf3* | osf4* | osf5*)
10523 lt_prog_compiler_wl='-Wl,'
10524 # All OSF/1 code is PIC.
10525 lt_prog_compiler_static='-non_shared'
10526 ;;
10527
10528 rdos*)
10529 lt_prog_compiler_static='-non_shared'
10530 ;;
10531
10532 solaris*)
10533 lt_prog_compiler_pic='-KPIC'
10534 lt_prog_compiler_static='-Bstatic'
10535 case $cc_basename in
10536 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10537 lt_prog_compiler_wl='-Qoption ld ';;
10538 *)
10539 lt_prog_compiler_wl='-Wl,';;
10540 esac
10541 ;;
10542
10543 sunos4*)
10544 lt_prog_compiler_wl='-Qoption ld '
10545 lt_prog_compiler_pic='-PIC'
10546 lt_prog_compiler_static='-Bstatic'
10547 ;;
10548
10549 sysv4 | sysv4.2uw2* | sysv4.3*)
10550 lt_prog_compiler_wl='-Wl,'
10551 lt_prog_compiler_pic='-KPIC'
10552 lt_prog_compiler_static='-Bstatic'
10553 ;;
10554
10555 sysv4*MP*)
10556 if test -d /usr/nec; then
10557 lt_prog_compiler_pic='-Kconform_pic'
10558 lt_prog_compiler_static='-Bstatic'
10559 fi
10560 ;;
10561
10562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10563 lt_prog_compiler_wl='-Wl,'
10564 lt_prog_compiler_pic='-KPIC'
10565 lt_prog_compiler_static='-Bstatic'
10566 ;;
10567
10568 unicos*)
10569 lt_prog_compiler_wl='-Wl,'
10570 lt_prog_compiler_can_build_shared=no
10571 ;;
10572
10573 uts4*)
10574 lt_prog_compiler_pic='-pic'
10575 lt_prog_compiler_static='-Bstatic'
10576 ;;
10577
10578 *)
10579 lt_prog_compiler_can_build_shared=no
10580 ;;
10581 esac
10582 fi
10583
10584 case $host_os in
10585 # For platforms that do not support PIC, -DPIC is meaningless:
10586 *djgpp*)
10587 lt_prog_compiler_pic=
10588 ;;
10589 *)
10590 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10591 ;;
10592 esac
10593
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10595 printf %s "checking for $compiler option to produce PIC... " >&6; }
10596 if test ${lt_cv_prog_compiler_pic+y}
10597 then :
10598 printf %s "(cached) " >&6
10599 else $as_nop
10600 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10601 fi
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10603 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10604 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10605
10606 #
10607 # Check to make sure the PIC flag actually works.
10608 #
10609 if test -n "$lt_prog_compiler_pic"; then
10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10611 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10612 if test ${lt_cv_prog_compiler_pic_works+y}
10613 then :
10614 printf %s "(cached) " >&6
10615 else $as_nop
10616 lt_cv_prog_compiler_pic_works=no
10617 ac_outfile=conftest.$ac_objext
10618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10619 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10620 # Insert the option either (1) after the last *FLAGS variable, or
10621 # (2) before a word containing "conftest.", or (3) at the end.
10622 # Note that $ac_compile itself does not contain backslashes and begins
10623 # with a dollar sign (not a hyphen), so the echo should work correctly.
10624 # The option is referenced via a variable to avoid confusing sed.
10625 lt_compile=`echo "$ac_compile" | $SED \
10626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10628 -e 's:$: $lt_compiler_flag:'`
10629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10630 (eval "$lt_compile" 2>conftest.err)
10631 ac_status=$?
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 if (exit $ac_status) && test -s "$ac_outfile"; then
10635 # The compiler can only warn and ignore the option if not recognized
10636 # So say no if there are warnings other than the usual output.
10637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10640 lt_cv_prog_compiler_pic_works=yes
10641 fi
10642 fi
10643 $RM conftest*
10644
10645 fi
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10647 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10648
10649 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10650 case $lt_prog_compiler_pic in
10651 "" | " "*) ;;
10652 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10653 esac
10654 else
10655 lt_prog_compiler_pic=
10656 lt_prog_compiler_can_build_shared=no
10657 fi
10658
10659 fi
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671 #
10672 # Check to make sure the static flag actually works.
10673 #
10674 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10676 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10677 if test ${lt_cv_prog_compiler_static_works+y}
10678 then :
10679 printf %s "(cached) " >&6
10680 else $as_nop
10681 lt_cv_prog_compiler_static_works=no
10682 save_LDFLAGS=$LDFLAGS
10683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10686 # The linker can only warn and ignore the option if not recognized
10687 # So say no if there are warnings
10688 if test -s conftest.err; then
10689 # Append any errors to the config.log.
10690 cat conftest.err 1>&5
10691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10693 if diff conftest.exp conftest.er2 >/dev/null; then
10694 lt_cv_prog_compiler_static_works=yes
10695 fi
10696 else
10697 lt_cv_prog_compiler_static_works=yes
10698 fi
10699 fi
10700 $RM -r conftest*
10701 LDFLAGS=$save_LDFLAGS
10702
10703 fi
10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10705 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10706
10707 if test yes = "$lt_cv_prog_compiler_static_works"; then
10708 :
10709 else
10710 lt_prog_compiler_static=
10711 fi
10712
10713
10714
10715
10716
10717
10718
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10720 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10721 if test ${lt_cv_prog_compiler_c_o+y}
10722 then :
10723 printf %s "(cached) " >&6
10724 else $as_nop
10725 lt_cv_prog_compiler_c_o=no
10726 $RM -r conftest 2>/dev/null
10727 mkdir conftest
10728 cd conftest
10729 mkdir out
10730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10731
10732 lt_compiler_flag="-o out/conftest2.$ac_objext"
10733 # Insert the option either (1) after the last *FLAGS variable, or
10734 # (2) before a word containing "conftest.", or (3) at the end.
10735 # Note that $ac_compile itself does not contain backslashes and begins
10736 # with a dollar sign (not a hyphen), so the echo should work correctly.
10737 lt_compile=`echo "$ac_compile" | $SED \
10738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10740 -e 's:$: $lt_compiler_flag:'`
10741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10742 (eval "$lt_compile" 2>out/conftest.err)
10743 ac_status=$?
10744 cat out/conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10747 then
10748 # The compiler can only warn and ignore the option if not recognized
10749 # So say no if there are warnings
10750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10753 lt_cv_prog_compiler_c_o=yes
10754 fi
10755 fi
10756 chmod u+w . 2>&5
10757 $RM conftest*
10758 # SGI C++ compiler will create directory out/ii_files/ for
10759 # template instantiation
10760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10761 $RM out/* && rmdir out
10762 cd ..
10763 $RM -r conftest
10764 $RM conftest*
10765
10766 fi
10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10768 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10769
10770
10771
10772
10773
10774
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10776 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10777 if test ${lt_cv_prog_compiler_c_o+y}
10778 then :
10779 printf %s "(cached) " >&6
10780 else $as_nop
10781 lt_cv_prog_compiler_c_o=no
10782 $RM -r conftest 2>/dev/null
10783 mkdir conftest
10784 cd conftest
10785 mkdir out
10786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10787
10788 lt_compiler_flag="-o out/conftest2.$ac_objext"
10789 # Insert the option either (1) after the last *FLAGS variable, or
10790 # (2) before a word containing "conftest.", or (3) at the end.
10791 # Note that $ac_compile itself does not contain backslashes and begins
10792 # with a dollar sign (not a hyphen), so the echo should work correctly.
10793 lt_compile=`echo "$ac_compile" | $SED \
10794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10796 -e 's:$: $lt_compiler_flag:'`
10797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10798 (eval "$lt_compile" 2>out/conftest.err)
10799 ac_status=$?
10800 cat out/conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10803 then
10804 # The compiler can only warn and ignore the option if not recognized
10805 # So say no if there are warnings
10806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10809 lt_cv_prog_compiler_c_o=yes
10810 fi
10811 fi
10812 chmod u+w . 2>&5
10813 $RM conftest*
10814 # SGI C++ compiler will create directory out/ii_files/ for
10815 # template instantiation
10816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10817 $RM out/* && rmdir out
10818 cd ..
10819 $RM -r conftest
10820 $RM conftest*
10821
10822 fi
10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10824 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10825
10826
10827
10828
10829 hard_links=nottested
10830 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10831 # do not overwrite the value of need_locks provided by the user
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10833 printf %s "checking if we can lock with hard links... " >&6; }
10834 hard_links=yes
10835 $RM conftest*
10836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10837 touch conftest.a
10838 ln conftest.a conftest.b 2>&5 || hard_links=no
10839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10841 printf "%s\n" "$hard_links" >&6; }
10842 if test no = "$hard_links"; then
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10844 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10845 need_locks=warn
10846 fi
10847 else
10848 need_locks=no
10849 fi
10850
10851
10852
10853
10854
10855
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10857 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10858
10859 runpath_var=
10860 allow_undefined_flag=
10861 always_export_symbols=no
10862 archive_cmds=
10863 archive_expsym_cmds=
10864 compiler_needs_object=no
10865 enable_shared_with_static_runtimes=no
10866 export_dynamic_flag_spec=
10867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10868 hardcode_automatic=no
10869 hardcode_direct=no
10870 hardcode_direct_absolute=no
10871 hardcode_libdir_flag_spec=
10872 hardcode_libdir_separator=
10873 hardcode_minus_L=no
10874 hardcode_shlibpath_var=unsupported
10875 inherit_rpath=no
10876 link_all_deplibs=unknown
10877 module_cmds=
10878 module_expsym_cmds=
10879 old_archive_from_new_cmds=
10880 old_archive_from_expsyms_cmds=
10881 thread_safe_flag_spec=
10882 whole_archive_flag_spec=
10883 # include_expsyms should be a list of space-separated symbols to be *always*
10884 # included in the symbol list
10885 include_expsyms=
10886 # exclude_expsyms can be an extended regexp of symbols to exclude
10887 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10888 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10889 # as well as any symbol that contains 'd'.
10890 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10892 # platforms (ab)use it in PIC code, but their linkers get confused if
10893 # the symbol is explicitly referenced. Since portable code cannot
10894 # rely on this symbol name, it's probably fine to never include it in
10895 # preloaded symbol tables.
10896 # Exclude shared library initialization/finalization symbols.
10897 extract_expsyms_cmds=
10898
10899 case $host_os in
10900 cygwin* | mingw* | pw32* | cegcc*)
10901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10902 # When not using gcc, we currently assume that we are using
10903 # Microsoft Visual C++.
10904 if test yes != "$GCC"; then
10905 with_gnu_ld=no
10906 fi
10907 ;;
10908 interix*)
10909 # we just hope/assume this is gcc and not c89 (= MSVC++)
10910 with_gnu_ld=yes
10911 ;;
10912 openbsd* | bitrig*)
10913 with_gnu_ld=no
10914 ;;
10915 linux* | k*bsd*-gnu | gnu*)
10916 link_all_deplibs=no
10917 ;;
10918 esac
10919
10920 ld_shlibs=yes
10921
10922 # On some targets, GNU ld is compatible enough with the native linker
10923 # that we're better off using the native interface for both.
10924 lt_use_gnu_ld_interface=no
10925 if test yes = "$with_gnu_ld"; then
10926 case $host_os in
10927 aix*)
10928 # The AIX port of GNU ld has always aspired to compatibility
10929 # with the native linker. However, as the warning in the GNU ld
10930 # block says, versions before 2.19.5* couldn't really create working
10931 # shared libraries, regardless of the interface used.
10932 case `$LD -v 2>&1` in
10933 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10934 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10935 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10936 *)
10937 lt_use_gnu_ld_interface=yes
10938 ;;
10939 esac
10940 ;;
10941 *)
10942 lt_use_gnu_ld_interface=yes
10943 ;;
10944 esac
10945 fi
10946
10947 if test yes = "$lt_use_gnu_ld_interface"; then
10948 # If archive_cmds runs LD, not CC, wlarc should be empty
10949 wlarc='$wl'
10950
10951 # Set some defaults for GNU ld with shared library support. These
10952 # are reset later if shared libraries are not supported. Putting them
10953 # here allows them to be overridden if necessary.
10954 runpath_var=LD_RUN_PATH
10955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10956 export_dynamic_flag_spec='$wl--export-dynamic'
10957 # ancient GNU ld didn't support --whole-archive et. al.
10958 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10959 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10960 else
10961 whole_archive_flag_spec=
10962 fi
10963 supports_anon_versioning=no
10964 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10965 *GNU\ gold*) supports_anon_versioning=yes ;;
10966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10969 *\ 2.11.*) ;; # other 2.11 versions
10970 *) supports_anon_versioning=yes ;;
10971 esac
10972
10973 # See if GNU ld supports shared libraries.
10974 case $host_os in
10975 aix[3-9]*)
10976 # On AIX/PPC, the GNU linker is very broken
10977 if test ia64 != "$host_cpu"; then
10978 ld_shlibs=no
10979 cat <<_LT_EOF 1>&2
10980
10981 *** Warning: the GNU linker, at least up to release 2.19, is reported
10982 *** to be unable to reliably create shared libraries on AIX.
10983 *** Therefore, libtool is disabling shared libraries support. If you
10984 *** really care for shared libraries, you may want to install binutils
10985 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10986 *** You will then need to restart the configuration process.
10987
10988 _LT_EOF
10989 fi
10990 ;;
10991
10992 amigaos*)
10993 case $host_cpu in
10994 powerpc)
10995 # see comment about AmigaOS4 .so support
10996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10997 archive_expsym_cmds=''
10998 ;;
10999 m68k)
11000 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)'
11001 hardcode_libdir_flag_spec='-L$libdir'
11002 hardcode_minus_L=yes
11003 ;;
11004 esac
11005 ;;
11006
11007 beos*)
11008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11009 allow_undefined_flag=unsupported
11010 # Joseph Beckenbach <[email protected]> says some releases of gcc
11011 # support --undefined. This deserves some investigation. FIXME
11012 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11013 else
11014 ld_shlibs=no
11015 fi
11016 ;;
11017
11018 cygwin* | mingw* | pw32* | cegcc*)
11019 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11020 # as there is no search path for DLLs.
11021 hardcode_libdir_flag_spec='-L$libdir'
11022 export_dynamic_flag_spec='$wl--export-all-symbols'
11023 allow_undefined_flag=unsupported
11024 always_export_symbols=no
11025 enable_shared_with_static_runtimes=yes
11026 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'
11027 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11028
11029 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11031 # If the export-symbols file already is a .def file, use it as
11032 # is; otherwise, prepend EXPORTS...
11033 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11034 cp $export_symbols $output_objdir/$soname.def;
11035 else
11036 echo EXPORTS > $output_objdir/$soname.def;
11037 cat $export_symbols >> $output_objdir/$soname.def;
11038 fi~
11039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11040 else
11041 ld_shlibs=no
11042 fi
11043 ;;
11044
11045 haiku*)
11046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11047 link_all_deplibs=yes
11048 ;;
11049
11050 os2*)
11051 hardcode_libdir_flag_spec='-L$libdir'
11052 hardcode_minus_L=yes
11053 allow_undefined_flag=unsupported
11054 shrext_cmds=.dll
11055 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11056 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11057 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11058 $ECHO EXPORTS >> $output_objdir/$libname.def~
11059 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11060 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11061 emximp -o $lib $output_objdir/$libname.def'
11062 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11063 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11064 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11065 $ECHO EXPORTS >> $output_objdir/$libname.def~
11066 prefix_cmds="$SED"~
11067 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11068 prefix_cmds="$prefix_cmds -e 1d";
11069 fi~
11070 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11071 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11072 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11073 emximp -o $lib $output_objdir/$libname.def'
11074 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11075 enable_shared_with_static_runtimes=yes
11076 ;;
11077
11078 interix[3-9]*)
11079 hardcode_direct=no
11080 hardcode_shlibpath_var=no
11081 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11082 export_dynamic_flag_spec='$wl-E'
11083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11084 # Instead, shared libraries are loaded at an image base (0x10000000 by
11085 # default) and relocated if they conflict, which is a slow very memory
11086 # consuming and fragmenting process. To avoid this, we pick a random,
11087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11090 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'
11091 ;;
11092
11093 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11094 tmp_diet=no
11095 if test linux-dietlibc = "$host_os"; then
11096 case $cc_basename in
11097 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11098 esac
11099 fi
11100 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11101 && test no = "$tmp_diet"
11102 then
11103 tmp_addflag=' $pic_flag'
11104 tmp_sharedflag='-shared'
11105 case $cc_basename,$host_cpu in
11106 pgcc*) # Portland Group C compiler
11107 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'
11108 tmp_addflag=' $pic_flag'
11109 ;;
11110 pgf77* | pgf90* | pgf95* | pgfortran*)
11111 # Portland Group f77 and f90 compilers
11112 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'
11113 tmp_addflag=' $pic_flag -Mnomain' ;;
11114 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11115 tmp_addflag=' -i_dynamic' ;;
11116 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11117 tmp_addflag=' -i_dynamic -nofor_main' ;;
11118 ifc* | ifort*) # Intel Fortran compiler
11119 tmp_addflag=' -nofor_main' ;;
11120 lf95*) # Lahey Fortran 8.1
11121 whole_archive_flag_spec=
11122 tmp_sharedflag='--shared' ;;
11123 nagfor*) # NAGFOR 5.3
11124 tmp_sharedflag='-Wl,-shared' ;;
11125 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11126 tmp_sharedflag='-qmkshrobj'
11127 tmp_addflag= ;;
11128 nvcc*) # Cuda Compiler Driver 2.2
11129 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'
11130 compiler_needs_object=yes
11131 ;;
11132 esac
11133 case `$CC -V 2>&1 | sed 5q` in
11134 *Sun\ C*) # Sun C 5.9
11135 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'
11136 compiler_needs_object=yes
11137 tmp_sharedflag='-G' ;;
11138 *Sun\ F*) # Sun Fortran 8.3
11139 tmp_sharedflag='-G' ;;
11140 esac
11141 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11142
11143 if test yes = "$supports_anon_versioning"; then
11144 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11146 echo "local: *; };" >> $output_objdir/$libname.ver~
11147 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11148 fi
11149
11150 case $cc_basename in
11151 tcc*)
11152 export_dynamic_flag_spec='-rdynamic'
11153 ;;
11154 xlf* | bgf* | bgxlf* | mpixlf*)
11155 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11156 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11157 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11158 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11159 if test yes = "$supports_anon_versioning"; then
11160 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11162 echo "local: *; };" >> $output_objdir/$libname.ver~
11163 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11164 fi
11165 ;;
11166 esac
11167 else
11168 ld_shlibs=no
11169 fi
11170 ;;
11171
11172 netbsd* | netbsdelf*-gnu)
11173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11175 wlarc=
11176 else
11177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11178 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11179 fi
11180 ;;
11181
11182 solaris*)
11183 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11184 ld_shlibs=no
11185 cat <<_LT_EOF 1>&2
11186
11187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11188 *** create shared libraries on Solaris systems. Therefore, libtool
11189 *** is disabling shared libraries support. We urge you to upgrade GNU
11190 *** binutils to release 2.9.1 or newer. Another option is to modify
11191 *** your PATH or compiler configuration so that the native linker is
11192 *** used, and then restart.
11193
11194 _LT_EOF
11195 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11196 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11197 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11198 else
11199 ld_shlibs=no
11200 fi
11201 ;;
11202
11203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11204 case `$LD -v 2>&1` in
11205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11206 ld_shlibs=no
11207 cat <<_LT_EOF 1>&2
11208
11209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11210 *** reliably create shared libraries on SCO systems. Therefore, libtool
11211 *** is disabling shared libraries support. We urge you to upgrade GNU
11212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11213 *** your PATH or compiler configuration so that the native linker is
11214 *** used, and then restart.
11215
11216 _LT_EOF
11217 ;;
11218 *)
11219 # For security reasons, it is highly recommended that you always
11220 # use absolute paths for naming shared libraries, and exclude the
11221 # DT_RUNPATH tag from executables and libraries. But doing so
11222 # requires that you compile everything twice, which is a pain.
11223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11224 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11227 else
11228 ld_shlibs=no
11229 fi
11230 ;;
11231 esac
11232 ;;
11233
11234 sunos4*)
11235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11236 wlarc=
11237 hardcode_direct=yes
11238 hardcode_shlibpath_var=no
11239 ;;
11240
11241 *)
11242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11244 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11245 else
11246 ld_shlibs=no
11247 fi
11248 ;;
11249 esac
11250
11251 if test no = "$ld_shlibs"; then
11252 runpath_var=
11253 hardcode_libdir_flag_spec=
11254 export_dynamic_flag_spec=
11255 whole_archive_flag_spec=
11256 fi
11257 else
11258 # PORTME fill in a description of your system's linker (not GNU ld)
11259 case $host_os in
11260 aix3*)
11261 allow_undefined_flag=unsupported
11262 always_export_symbols=yes
11263 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'
11264 # Note: this linker hardcodes the directories in LIBPATH if there
11265 # are no directories specified by -L.
11266 hardcode_minus_L=yes
11267 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11268 # Neither direct hardcoding nor static linking is supported with a
11269 # broken collect2.
11270 hardcode_direct=unsupported
11271 fi
11272 ;;
11273
11274 aix[4-9]*)
11275 if test ia64 = "$host_cpu"; then
11276 # On IA64, the linker does run time linking by default, so we don't
11277 # have to do anything special.
11278 aix_use_runtimelinking=no
11279 exp_sym_flag='-Bexport'
11280 no_entry_flag=
11281 else
11282 # If we're using GNU nm, then we don't want the "-C" option.
11283 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11284 # Without the "-l" option, or with the "-B" option, AIX nm treats
11285 # weak defined symbols like other global defined symbols, whereas
11286 # GNU nm marks them as "W".
11287 # While the 'weak' keyword is ignored in the Export File, we need
11288 # it in the Import File for the 'aix-soname' feature, so we have
11289 # to replace the "-B" option with "-P" for AIX nm.
11290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11291 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'
11292 else
11293 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11294 fi
11295 aix_use_runtimelinking=no
11296
11297 # Test if we are trying to use run time linking or normal
11298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11299 # have runtime linking enabled, and use it for executables.
11300 # For shared libraries, we enable/disable runtime linking
11301 # depending on the kind of the shared library created -
11302 # when "with_aix_soname,aix_use_runtimelinking" is:
11303 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11304 # "aix,yes" lib.so shared, rtl:yes, for executables
11305 # lib.a static archive
11306 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11307 # lib.a(lib.so.V) shared, rtl:no, for executables
11308 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11309 # lib.a(lib.so.V) shared, rtl:no
11310 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11311 # lib.a static archive
11312 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11313 for ld_flag in $LDFLAGS; do
11314 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11315 aix_use_runtimelinking=yes
11316 break
11317 fi
11318 done
11319 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11320 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11321 # so we don't have lib.a shared libs to link our executables.
11322 # We have to force runtime linking in this case.
11323 aix_use_runtimelinking=yes
11324 LDFLAGS="$LDFLAGS -Wl,-brtl"
11325 fi
11326 ;;
11327 esac
11328
11329 exp_sym_flag='-bexport'
11330 no_entry_flag='-bnoentry'
11331 fi
11332
11333 # When large executables or shared objects are built, AIX ld can
11334 # have problems creating the table of contents. If linking a library
11335 # or program results in "error TOC overflow" add -mminimal-toc to
11336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11338
11339 archive_cmds=''
11340 hardcode_direct=yes
11341 hardcode_direct_absolute=yes
11342 hardcode_libdir_separator=':'
11343 link_all_deplibs=yes
11344 file_list_spec='$wl-f,'
11345 case $with_aix_soname,$aix_use_runtimelinking in
11346 aix,*) ;; # traditional, no import file
11347 svr4,* | *,yes) # use import file
11348 # The Import File defines what to hardcode.
11349 hardcode_direct=no
11350 hardcode_direct_absolute=no
11351 ;;
11352 esac
11353
11354 if test yes = "$GCC"; then
11355 case $host_os in aix4.[012]|aix4.[012].*)
11356 # We only want to do this on AIX 4.2 and lower, the check
11357 # below for broken collect2 doesn't work under 4.3+
11358 collect2name=`$CC -print-prog-name=collect2`
11359 if test -f "$collect2name" &&
11360 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11361 then
11362 # We have reworked collect2
11363 :
11364 else
11365 # We have old collect2
11366 hardcode_direct=unsupported
11367 # It fails to find uninstalled libraries when the uninstalled
11368 # path is not listed in the libpath. Setting hardcode_minus_L
11369 # to unsupported forces relinking
11370 hardcode_minus_L=yes
11371 hardcode_libdir_flag_spec='-L$libdir'
11372 hardcode_libdir_separator=
11373 fi
11374 ;;
11375 esac
11376 shared_flag='-shared'
11377 if test yes = "$aix_use_runtimelinking"; then
11378 shared_flag="$shared_flag "'$wl-G'
11379 fi
11380 # Need to ensure runtime linking is disabled for the traditional
11381 # shared library, or the linker may eventually find shared libraries
11382 # /with/ Import File - we do not want to mix them.
11383 shared_flag_aix='-shared'
11384 shared_flag_svr4='-shared $wl-G'
11385 else
11386 # not using gcc
11387 if test ia64 = "$host_cpu"; then
11388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11389 # chokes on -Wl,-G. The following line is correct:
11390 shared_flag='-G'
11391 else
11392 if test yes = "$aix_use_runtimelinking"; then
11393 shared_flag='$wl-G'
11394 else
11395 shared_flag='$wl-bM:SRE'
11396 fi
11397 shared_flag_aix='$wl-bM:SRE'
11398 shared_flag_svr4='$wl-G'
11399 fi
11400 fi
11401
11402 export_dynamic_flag_spec='$wl-bexpall'
11403 # It seems that -bexpall does not export symbols beginning with
11404 # underscore (_), so it is better to generate a list of symbols to export.
11405 always_export_symbols=yes
11406 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11407 # Warning - without using the other runtime loading flags (-brtl),
11408 # -berok will link without error, but may produce a broken library.
11409 allow_undefined_flag='-berok'
11410 # Determine the default libpath from the value encoded in an
11411 # empty executable.
11412 if test set = "${lt_cv_aix_libpath+set}"; then
11413 aix_libpath=$lt_cv_aix_libpath
11414 else
11415 if test ${lt_cv_aix_libpath_+y}
11416 then :
11417 printf %s "(cached) " >&6
11418 else $as_nop
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421
11422 int
11423 main (void)
11424 {
11425
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_c_try_link "$LINENO"
11431 then :
11432
11433 lt_aix_libpath_sed='
11434 /Import File Strings/,/^$/ {
11435 /^0/ {
11436 s/^0 *\([^ ]*\) *$/\1/
11437 p
11438 }
11439 }'
11440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if test -z "$lt_cv_aix_libpath_"; then
11443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444 fi
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11447 conftest$ac_exeext conftest.$ac_ext
11448 if test -z "$lt_cv_aix_libpath_"; then
11449 lt_cv_aix_libpath_=/usr/lib:/lib
11450 fi
11451
11452 fi
11453
11454 aix_libpath=$lt_cv_aix_libpath_
11455 fi
11456
11457 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11458 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
11459 else
11460 if test ia64 = "$host_cpu"; then
11461 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11462 allow_undefined_flag="-z nodefs"
11463 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"
11464 else
11465 # Determine the default libpath from the value encoded in an
11466 # empty executable.
11467 if test set = "${lt_cv_aix_libpath+set}"; then
11468 aix_libpath=$lt_cv_aix_libpath
11469 else
11470 if test ${lt_cv_aix_libpath_+y}
11471 then :
11472 printf %s "(cached) " >&6
11473 else $as_nop
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476
11477 int
11478 main (void)
11479 {
11480
11481 ;
11482 return 0;
11483 }
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"
11486 then :
11487
11488 lt_aix_libpath_sed='
11489 /Import File Strings/,/^$/ {
11490 /^0/ {
11491 s/^0 *\([^ ]*\) *$/\1/
11492 p
11493 }
11494 }'
11495 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11496 # Check for a 64-bit object if we didn't find anything.
11497 if test -z "$lt_cv_aix_libpath_"; then
11498 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11499 fi
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11502 conftest$ac_exeext conftest.$ac_ext
11503 if test -z "$lt_cv_aix_libpath_"; then
11504 lt_cv_aix_libpath_=/usr/lib:/lib
11505 fi
11506
11507 fi
11508
11509 aix_libpath=$lt_cv_aix_libpath_
11510 fi
11511
11512 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11513 # Warning - without using the other run time loading flags,
11514 # -berok will link without error, but may produce a broken library.
11515 no_undefined_flag=' $wl-bernotok'
11516 allow_undefined_flag=' $wl-berok'
11517 if test yes = "$with_gnu_ld"; then
11518 # We only use this code for GNU lds that support --whole-archive.
11519 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11520 else
11521 # Exported symbols can be pulled into shared objects from archives
11522 whole_archive_flag_spec='$convenience'
11523 fi
11524 archive_cmds_need_lc=yes
11525 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11526 # -brtl affects multiple linker settings, -berok does not and is overridden later
11527 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11528 if test svr4 != "$with_aix_soname"; then
11529 # This is similar to how AIX traditionally builds its shared libraries.
11530 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'
11531 fi
11532 if test aix != "$with_aix_soname"; then
11533 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'
11534 else
11535 # used by -dlpreopen to get the symbols
11536 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11537 fi
11538 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11539 fi
11540 fi
11541 ;;
11542
11543 amigaos*)
11544 case $host_cpu in
11545 powerpc)
11546 # see comment about AmigaOS4 .so support
11547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11548 archive_expsym_cmds=''
11549 ;;
11550 m68k)
11551 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)'
11552 hardcode_libdir_flag_spec='-L$libdir'
11553 hardcode_minus_L=yes
11554 ;;
11555 esac
11556 ;;
11557
11558 bsdi[45]*)
11559 export_dynamic_flag_spec=-rdynamic
11560 ;;
11561
11562 cygwin* | mingw* | pw32* | cegcc*)
11563 # When not using gcc, we currently assume that we are using
11564 # Microsoft Visual C++.
11565 # hardcode_libdir_flag_spec is actually meaningless, as there is
11566 # no search path for DLLs.
11567 case $cc_basename in
11568 cl*)
11569 # Native MSVC
11570 hardcode_libdir_flag_spec=' '
11571 allow_undefined_flag=unsupported
11572 always_export_symbols=yes
11573 file_list_spec='@'
11574 # Tell ltmain to make .lib files, not .a files.
11575 libext=lib
11576 # Tell ltmain to make .dll files, not .so files.
11577 shrext_cmds=.dll
11578 # FIXME: Setting linknames here is a bad hack.
11579 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11580 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11581 cp "$export_symbols" "$output_objdir/$soname.def";
11582 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11583 else
11584 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11585 fi~
11586 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11587 linknames='
11588 # The linker will not automatically build a static lib if we build a DLL.
11589 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11590 enable_shared_with_static_runtimes=yes
11591 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11592 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11593 # Don't use ranlib
11594 old_postinstall_cmds='chmod 644 $oldlib'
11595 postlink_cmds='lt_outputfile="@OUTPUT@"~
11596 lt_tool_outputfile="@TOOL_OUTPUT@"~
11597 case $lt_outputfile in
11598 *.exe|*.EXE) ;;
11599 *)
11600 lt_outputfile=$lt_outputfile.exe
11601 lt_tool_outputfile=$lt_tool_outputfile.exe
11602 ;;
11603 esac~
11604 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11605 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11606 $RM "$lt_outputfile.manifest";
11607 fi'
11608 ;;
11609 *)
11610 # Assume MSVC wrapper
11611 hardcode_libdir_flag_spec=' '
11612 allow_undefined_flag=unsupported
11613 # Tell ltmain to make .lib files, not .a files.
11614 libext=lib
11615 # Tell ltmain to make .dll files, not .so files.
11616 shrext_cmds=.dll
11617 # FIXME: Setting linknames here is a bad hack.
11618 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11619 # The linker will automatically build a .lib file if we build a DLL.
11620 old_archive_from_new_cmds='true'
11621 # FIXME: Should let the user specify the lib program.
11622 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11623 enable_shared_with_static_runtimes=yes
11624 ;;
11625 esac
11626 ;;
11627
11628 darwin* | rhapsody*)
11629
11630
11631 archive_cmds_need_lc=no
11632 hardcode_direct=no
11633 hardcode_automatic=yes
11634 hardcode_shlibpath_var=unsupported
11635 if test yes = "$lt_cv_ld_force_load"; then
11636 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\"`'
11637
11638 else
11639 whole_archive_flag_spec=''
11640 fi
11641 link_all_deplibs=yes
11642 allow_undefined_flag=$_lt_dar_allow_undefined
11643 case $cc_basename in
11644 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11645 *) _lt_dar_can_shared=$GCC ;;
11646 esac
11647 if test yes = "$_lt_dar_can_shared"; then
11648 output_verbose_link_cmd=func_echo_all
11649 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11650 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11651 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"
11652 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"
11653
11654 else
11655 ld_shlibs=no
11656 fi
11657
11658 ;;
11659
11660 dgux*)
11661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11662 hardcode_libdir_flag_spec='-L$libdir'
11663 hardcode_shlibpath_var=no
11664 ;;
11665
11666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11667 # support. Future versions do this automatically, but an explicit c++rt0.o
11668 # does not break anything, and helps significantly (at the cost of a little
11669 # extra space).
11670 freebsd2.2*)
11671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11672 hardcode_libdir_flag_spec='-R$libdir'
11673 hardcode_direct=yes
11674 hardcode_shlibpath_var=no
11675 ;;
11676
11677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11678 freebsd2.*)
11679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11680 hardcode_direct=yes
11681 hardcode_minus_L=yes
11682 hardcode_shlibpath_var=no
11683 ;;
11684
11685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11686 freebsd* | dragonfly*)
11687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11688 hardcode_libdir_flag_spec='-R$libdir'
11689 hardcode_direct=yes
11690 hardcode_shlibpath_var=no
11691 ;;
11692
11693 hpux9*)
11694 if test yes = "$GCC"; then
11695 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'
11696 else
11697 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'
11698 fi
11699 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11700 hardcode_libdir_separator=:
11701 hardcode_direct=yes
11702
11703 # hardcode_minus_L: Not really in the search PATH,
11704 # but as the default location of the library.
11705 hardcode_minus_L=yes
11706 export_dynamic_flag_spec='$wl-E'
11707 ;;
11708
11709 hpux10*)
11710 if test yes,no = "$GCC,$with_gnu_ld"; then
11711 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11712 else
11713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11714 fi
11715 if test no = "$with_gnu_ld"; then
11716 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11717 hardcode_libdir_separator=:
11718 hardcode_direct=yes
11719 hardcode_direct_absolute=yes
11720 export_dynamic_flag_spec='$wl-E'
11721 # hardcode_minus_L: Not really in the search PATH,
11722 # but as the default location of the library.
11723 hardcode_minus_L=yes
11724 fi
11725 ;;
11726
11727 hpux11*)
11728 if test yes,no = "$GCC,$with_gnu_ld"; then
11729 case $host_cpu in
11730 hppa*64*)
11731 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11732 ;;
11733 ia64*)
11734 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11735 ;;
11736 *)
11737 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11738 ;;
11739 esac
11740 else
11741 case $host_cpu in
11742 hppa*64*)
11743 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11744 ;;
11745 ia64*)
11746 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11747 ;;
11748 *)
11749
11750 # Older versions of the 11.00 compiler do not understand -b yet
11751 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11753 printf %s "checking if $CC understands -b... " >&6; }
11754 if test ${lt_cv_prog_compiler__b+y}
11755 then :
11756 printf %s "(cached) " >&6
11757 else $as_nop
11758 lt_cv_prog_compiler__b=no
11759 save_LDFLAGS=$LDFLAGS
11760 LDFLAGS="$LDFLAGS -b"
11761 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11763 # The linker can only warn and ignore the option if not recognized
11764 # So say no if there are warnings
11765 if test -s conftest.err; then
11766 # Append any errors to the config.log.
11767 cat conftest.err 1>&5
11768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11770 if diff conftest.exp conftest.er2 >/dev/null; then
11771 lt_cv_prog_compiler__b=yes
11772 fi
11773 else
11774 lt_cv_prog_compiler__b=yes
11775 fi
11776 fi
11777 $RM -r conftest*
11778 LDFLAGS=$save_LDFLAGS
11779
11780 fi
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11782 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11783
11784 if test yes = "$lt_cv_prog_compiler__b"; then
11785 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11786 else
11787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11788 fi
11789
11790 ;;
11791 esac
11792 fi
11793 if test no = "$with_gnu_ld"; then
11794 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11795 hardcode_libdir_separator=:
11796
11797 case $host_cpu in
11798 hppa*64*|ia64*)
11799 hardcode_direct=no
11800 hardcode_shlibpath_var=no
11801 ;;
11802 *)
11803 hardcode_direct=yes
11804 hardcode_direct_absolute=yes
11805 export_dynamic_flag_spec='$wl-E'
11806
11807 # hardcode_minus_L: Not really in the search PATH,
11808 # but as the default location of the library.
11809 hardcode_minus_L=yes
11810 ;;
11811 esac
11812 fi
11813 ;;
11814
11815 irix5* | irix6* | nonstopux*)
11816 if test yes = "$GCC"; then
11817 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'
11818 # Try to use the -exported_symbol ld option, if it does not
11819 # work, assume that -exports_file does not work either and
11820 # implicitly export all symbols.
11821 # This should be the same for all languages, so no per-tag cache variable.
11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11823 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11824 if test ${lt_cv_irix_exported_symbol+y}
11825 then :
11826 printf %s "(cached) " >&6
11827 else $as_nop
11828 save_LDFLAGS=$LDFLAGS
11829 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11832 int foo (void) { return 0; }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"
11835 then :
11836 lt_cv_irix_exported_symbol=yes
11837 else $as_nop
11838 lt_cv_irix_exported_symbol=no
11839 fi
11840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11841 conftest$ac_exeext conftest.$ac_ext
11842 LDFLAGS=$save_LDFLAGS
11843 fi
11844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11845 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11846 if test yes = "$lt_cv_irix_exported_symbol"; then
11847 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'
11848 fi
11849 link_all_deplibs=no
11850 else
11851 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'
11852 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'
11853 fi
11854 archive_cmds_need_lc='no'
11855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11856 hardcode_libdir_separator=:
11857 inherit_rpath=yes
11858 link_all_deplibs=yes
11859 ;;
11860
11861 linux*)
11862 case $cc_basename in
11863 tcc*)
11864 # Fabrice Bellard et al's Tiny C Compiler
11865 ld_shlibs=yes
11866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11867 ;;
11868 esac
11869 ;;
11870
11871 netbsd* | netbsdelf*-gnu)
11872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11874 else
11875 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11876 fi
11877 hardcode_libdir_flag_spec='-R$libdir'
11878 hardcode_direct=yes
11879 hardcode_shlibpath_var=no
11880 ;;
11881
11882 newsos6)
11883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11884 hardcode_direct=yes
11885 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11886 hardcode_libdir_separator=:
11887 hardcode_shlibpath_var=no
11888 ;;
11889
11890 *nto* | *qnx*)
11891 ;;
11892
11893 openbsd* | bitrig*)
11894 if test -f /usr/libexec/ld.so; then
11895 hardcode_direct=yes
11896 hardcode_shlibpath_var=no
11897 hardcode_direct_absolute=yes
11898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11901 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11902 export_dynamic_flag_spec='$wl-E'
11903 else
11904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11905 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11906 fi
11907 else
11908 ld_shlibs=no
11909 fi
11910 ;;
11911
11912 os2*)
11913 hardcode_libdir_flag_spec='-L$libdir'
11914 hardcode_minus_L=yes
11915 allow_undefined_flag=unsupported
11916 shrext_cmds=.dll
11917 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11918 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11919 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11920 $ECHO EXPORTS >> $output_objdir/$libname.def~
11921 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11922 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11923 emximp -o $lib $output_objdir/$libname.def'
11924 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11925 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11926 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11927 $ECHO EXPORTS >> $output_objdir/$libname.def~
11928 prefix_cmds="$SED"~
11929 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11930 prefix_cmds="$prefix_cmds -e 1d";
11931 fi~
11932 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11933 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11934 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11935 emximp -o $lib $output_objdir/$libname.def'
11936 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11937 enable_shared_with_static_runtimes=yes
11938 ;;
11939
11940 osf3*)
11941 if test yes = "$GCC"; then
11942 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11943 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'
11944 else
11945 allow_undefined_flag=' -expect_unresolved \*'
11946 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'
11947 fi
11948 archive_cmds_need_lc='no'
11949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11950 hardcode_libdir_separator=:
11951 ;;
11952
11953 osf4* | osf5*) # as osf3* with the addition of -msym flag
11954 if test yes = "$GCC"; then
11955 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11956 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'
11957 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11958 else
11959 allow_undefined_flag=' -expect_unresolved \*'
11960 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'
11961 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~
11962 $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'
11963
11964 # Both c and cxx compiler support -rpath directly
11965 hardcode_libdir_flag_spec='-rpath $libdir'
11966 fi
11967 archive_cmds_need_lc='no'
11968 hardcode_libdir_separator=:
11969 ;;
11970
11971 solaris*)
11972 no_undefined_flag=' -z defs'
11973 if test yes = "$GCC"; then
11974 wlarc='$wl'
11975 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11976 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11977 $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'
11978 else
11979 case `$CC -V 2>&1` in
11980 *"Compilers 5.0"*)
11981 wlarc=''
11982 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11983 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11984 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11985 ;;
11986 *)
11987 wlarc='$wl'
11988 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11990 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11991 ;;
11992 esac
11993 fi
11994 hardcode_libdir_flag_spec='-R$libdir'
11995 hardcode_shlibpath_var=no
11996 case $host_os in
11997 solaris2.[0-5] | solaris2.[0-5].*) ;;
11998 *)
11999 # The compiler driver will combine and reorder linker options,
12000 # but understands '-z linker_flag'. GCC discards it without '$wl',
12001 # but is careful enough not to reorder.
12002 # Supported since Solaris 2.6 (maybe 2.5.1?)
12003 if test yes = "$GCC"; then
12004 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12005 else
12006 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12007 fi
12008 ;;
12009 esac
12010 link_all_deplibs=yes
12011 ;;
12012
12013 sunos4*)
12014 if test sequent = "$host_vendor"; then
12015 # Use $CC to link under sequent, because it throws in some extra .o
12016 # files that make .init and .fini sections work.
12017 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12018 else
12019 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12020 fi
12021 hardcode_libdir_flag_spec='-L$libdir'
12022 hardcode_direct=yes
12023 hardcode_minus_L=yes
12024 hardcode_shlibpath_var=no
12025 ;;
12026
12027 sysv4)
12028 case $host_vendor in
12029 sni)
12030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12031 hardcode_direct=yes # is this really true???
12032 ;;
12033 siemens)
12034 ## LD is ld it makes a PLAMLIB
12035 ## CC just makes a GrossModule.
12036 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12037 reload_cmds='$CC -r -o $output$reload_objs'
12038 hardcode_direct=no
12039 ;;
12040 motorola)
12041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12042 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12043 ;;
12044 esac
12045 runpath_var='LD_RUN_PATH'
12046 hardcode_shlibpath_var=no
12047 ;;
12048
12049 sysv4.3*)
12050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12051 hardcode_shlibpath_var=no
12052 export_dynamic_flag_spec='-Bexport'
12053 ;;
12054
12055 sysv4*MP*)
12056 if test -d /usr/nec; then
12057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12058 hardcode_shlibpath_var=no
12059 runpath_var=LD_RUN_PATH
12060 hardcode_runpath_var=yes
12061 ld_shlibs=yes
12062 fi
12063 ;;
12064
12065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12066 no_undefined_flag='$wl-z,text'
12067 archive_cmds_need_lc=no
12068 hardcode_shlibpath_var=no
12069 runpath_var='LD_RUN_PATH'
12070
12071 if test yes = "$GCC"; then
12072 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12073 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12074 else
12075 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12076 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12077 fi
12078 ;;
12079
12080 sysv5* | sco3.2v5* | sco5v6*)
12081 # Note: We CANNOT use -z defs as we might desire, because we do not
12082 # link with -lc, and that would cause any symbols used from libc to
12083 # always be unresolved, which means just about no library would
12084 # ever link correctly. If we're not using GNU ld we use -z text
12085 # though, which does catch some bad symbols but isn't as heavy-handed
12086 # as -z defs.
12087 no_undefined_flag='$wl-z,text'
12088 allow_undefined_flag='$wl-z,nodefs'
12089 archive_cmds_need_lc=no
12090 hardcode_shlibpath_var=no
12091 hardcode_libdir_flag_spec='$wl-R,$libdir'
12092 hardcode_libdir_separator=':'
12093 link_all_deplibs=yes
12094 export_dynamic_flag_spec='$wl-Bexport'
12095 runpath_var='LD_RUN_PATH'
12096
12097 if test yes = "$GCC"; then
12098 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12099 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12100 else
12101 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12102 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 fi
12104 ;;
12105
12106 uts4*)
12107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12108 hardcode_libdir_flag_spec='-L$libdir'
12109 hardcode_shlibpath_var=no
12110 ;;
12111
12112 *)
12113 ld_shlibs=no
12114 ;;
12115 esac
12116
12117 if test sni = "$host_vendor"; then
12118 case $host in
12119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12120 export_dynamic_flag_spec='$wl-Blargedynsym'
12121 ;;
12122 esac
12123 fi
12124 fi
12125
12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12127 printf "%s\n" "$ld_shlibs" >&6; }
12128 test no = "$ld_shlibs" && can_build_shared=no
12129
12130 with_gnu_ld=$with_gnu_ld
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146 #
12147 # Do we need to explicitly link libc?
12148 #
12149 case "x$archive_cmds_need_lc" in
12150 x|xyes)
12151 # Assume -lc should be added
12152 archive_cmds_need_lc=yes
12153
12154 if test yes,yes = "$GCC,$enable_shared"; then
12155 case $archive_cmds in
12156 *'~'*)
12157 # FIXME: we may have to deal with multi-command sequences.
12158 ;;
12159 '$CC '*)
12160 # Test whether the compiler implicitly links with -lc since on some
12161 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12162 # to ld, don't add -lc before -lgcc.
12163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12164 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12165 if test ${lt_cv_archive_cmds_need_lc+y}
12166 then :
12167 printf %s "(cached) " >&6
12168 else $as_nop
12169 $RM conftest*
12170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12171
12172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12173 (eval $ac_compile) 2>&5
12174 ac_status=$?
12175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12176 test $ac_status = 0; } 2>conftest.err; then
12177 soname=conftest
12178 lib=conftest
12179 libobjs=conftest.$ac_objext
12180 deplibs=
12181 wl=$lt_prog_compiler_wl
12182 pic_flag=$lt_prog_compiler_pic
12183 compiler_flags=-v
12184 linker_flags=-v
12185 verstring=
12186 output_objdir=.
12187 libname=conftest
12188 lt_save_allow_undefined_flag=$allow_undefined_flag
12189 allow_undefined_flag=
12190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12191 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12192 ac_status=$?
12193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12194 test $ac_status = 0; }
12195 then
12196 lt_cv_archive_cmds_need_lc=no
12197 else
12198 lt_cv_archive_cmds_need_lc=yes
12199 fi
12200 allow_undefined_flag=$lt_save_allow_undefined_flag
12201 else
12202 cat conftest.err 1>&5
12203 fi
12204 $RM conftest*
12205
12206 fi
12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12208 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12209 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12210 ;;
12211 esac
12212 fi
12213 ;;
12214 esac
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12368 printf %s "checking dynamic linker characteristics... " >&6; }
12369
12370 if test yes = "$GCC"; then
12371 case $host_os in
12372 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12373 *) lt_awk_arg='/^libraries:/' ;;
12374 esac
12375 case $host_os in
12376 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12377 *) lt_sed_strip_eq='s|=/|/|g' ;;
12378 esac
12379 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12380 case $lt_search_path_spec in
12381 *\;*)
12382 # if the path contains ";" then we assume it to be the separator
12383 # otherwise default to the standard path separator (i.e. ":") - it is
12384 # assumed that no part of a normal pathname contains ";" but that should
12385 # okay in the real world where ";" in dirpaths is itself problematic.
12386 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12387 ;;
12388 *)
12389 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12390 ;;
12391 esac
12392 # Ok, now we have the path, separated by spaces, we can step through it
12393 # and add multilib dir if necessary...
12394 lt_tmp_lt_search_path_spec=
12395 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12396 # ...but if some path component already ends with the multilib dir we assume
12397 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12398 case "$lt_multi_os_dir; $lt_search_path_spec " in
12399 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12400 lt_multi_os_dir=
12401 ;;
12402 esac
12403 for lt_sys_path in $lt_search_path_spec; do
12404 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12405 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12406 elif test -n "$lt_multi_os_dir"; then
12407 test -d "$lt_sys_path" && \
12408 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12409 fi
12410 done
12411 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12412 BEGIN {RS = " "; FS = "/|\n";} {
12413 lt_foo = "";
12414 lt_count = 0;
12415 for (lt_i = NF; lt_i > 0; lt_i--) {
12416 if ($lt_i != "" && $lt_i != ".") {
12417 if ($lt_i == "..") {
12418 lt_count++;
12419 } else {
12420 if (lt_count == 0) {
12421 lt_foo = "/" $lt_i lt_foo;
12422 } else {
12423 lt_count--;
12424 }
12425 }
12426 }
12427 }
12428 if (lt_foo != "") { lt_freq[lt_foo]++; }
12429 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12430 }'`
12431 # AWK program above erroneously prepends '/' to C:/dos/paths
12432 # for these hosts.
12433 case $host_os in
12434 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12435 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12436 esac
12437 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12438 else
12439 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12440 fi
12441 library_names_spec=
12442 libname_spec='lib$name'
12443 soname_spec=
12444 shrext_cmds=.so
12445 postinstall_cmds=
12446 postuninstall_cmds=
12447 finish_cmds=
12448 finish_eval=
12449 shlibpath_var=
12450 shlibpath_overrides_runpath=unknown
12451 version_type=none
12452 dynamic_linker="$host_os ld.so"
12453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12454 need_lib_prefix=unknown
12455 hardcode_into_libs=no
12456
12457 # when you set need_version to no, make sure it does not cause -set_version
12458 # flags to be left without arguments
12459 need_version=unknown
12460
12461
12462
12463 case $host_os in
12464 aix3*)
12465 version_type=linux # correct to gnu/linux during the next big refactor
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12467 shlibpath_var=LIBPATH
12468
12469 # AIX 3 has no versioning support, so we append a major version to the name.
12470 soname_spec='$libname$release$shared_ext$major'
12471 ;;
12472
12473 aix[4-9]*)
12474 version_type=linux # correct to gnu/linux during the next big refactor
12475 need_lib_prefix=no
12476 need_version=no
12477 hardcode_into_libs=yes
12478 if test ia64 = "$host_cpu"; then
12479 # AIX 5 supports IA64
12480 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12481 shlibpath_var=LD_LIBRARY_PATH
12482 else
12483 # With GCC up to 2.95.x, collect2 would create an import file
12484 # for dependence libraries. The import file would start with
12485 # the line '#! .'. This would cause the generated library to
12486 # depend on '.', always an invalid library. This was fixed in
12487 # development snapshots of GCC prior to 3.0.
12488 case $host_os in
12489 aix4 | aix4.[01] | aix4.[01].*)
12490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12491 echo ' yes '
12492 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12493 :
12494 else
12495 can_build_shared=no
12496 fi
12497 ;;
12498 esac
12499 # Using Import Files as archive members, it is possible to support
12500 # filename-based versioning of shared library archives on AIX. While
12501 # this would work for both with and without runtime linking, it will
12502 # prevent static linking of such archives. So we do filename-based
12503 # shared library versioning with .so extension only, which is used
12504 # when both runtime linking and shared linking is enabled.
12505 # Unfortunately, runtime linking may impact performance, so we do
12506 # not want this to be the default eventually. Also, we use the
12507 # versioned .so libs for executables only if there is the -brtl
12508 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12509 # To allow for filename-based versioning support, we need to create
12510 # libNAME.so.V as an archive file, containing:
12511 # *) an Import File, referring to the versioned filename of the
12512 # archive as well as the shared archive member, telling the
12513 # bitwidth (32 or 64) of that shared object, and providing the
12514 # list of exported symbols of that shared object, eventually
12515 # decorated with the 'weak' keyword
12516 # *) the shared object with the F_LOADONLY flag set, to really avoid
12517 # it being seen by the linker.
12518 # At run time we better use the real file rather than another symlink,
12519 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12520
12521 case $with_aix_soname,$aix_use_runtimelinking in
12522 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12523 # soname into executable. Probably we can add versioning support to
12524 # collect2, so additional links can be useful in future.
12525 aix,yes) # traditional libtool
12526 dynamic_linker='AIX unversionable lib.so'
12527 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12528 # instead of lib<name>.a to let people know that these are not
12529 # typical AIX shared libraries.
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531 ;;
12532 aix,no) # traditional AIX only
12533 dynamic_linker='AIX lib.a(lib.so.V)'
12534 # We preserve .a as extension for shared libraries through AIX4.2
12535 # and later when we are not doing run time linking.
12536 library_names_spec='$libname$release.a $libname.a'
12537 soname_spec='$libname$release$shared_ext$major'
12538 ;;
12539 svr4,*) # full svr4 only
12540 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12541 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12542 # We do not specify a path in Import Files, so LIBPATH fires.
12543 shlibpath_overrides_runpath=yes
12544 ;;
12545 *,yes) # both, prefer svr4
12546 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12547 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12548 # unpreferred sharedlib libNAME.a needs extra handling
12549 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"'
12550 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"'
12551 # We do not specify a path in Import Files, so LIBPATH fires.
12552 shlibpath_overrides_runpath=yes
12553 ;;
12554 *,no) # both, prefer aix
12555 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12556 library_names_spec='$libname$release.a $libname.a'
12557 soname_spec='$libname$release$shared_ext$major'
12558 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12559 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)'
12560 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"'
12561 ;;
12562 esac
12563 shlibpath_var=LIBPATH
12564 fi
12565 ;;
12566
12567 amigaos*)
12568 case $host_cpu in
12569 powerpc)
12570 # Since July 2007 AmigaOS4 officially supports .so libraries.
12571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12573 ;;
12574 m68k)
12575 library_names_spec='$libname.ixlibrary $libname.a'
12576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12577 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'
12578 ;;
12579 esac
12580 ;;
12581
12582 beos*)
12583 library_names_spec='$libname$shared_ext'
12584 dynamic_linker="$host_os ld.so"
12585 shlibpath_var=LIBRARY_PATH
12586 ;;
12587
12588 bsdi[45]*)
12589 version_type=linux # correct to gnu/linux during the next big refactor
12590 need_version=no
12591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12592 soname_spec='$libname$release$shared_ext$major'
12593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12597 # the default ld.so.conf also contains /usr/contrib/lib and
12598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12599 # libtool to hard-code these into programs
12600 ;;
12601
12602 cygwin* | mingw* | pw32* | cegcc*)
12603 version_type=windows
12604 shrext_cmds=.dll
12605 need_version=no
12606 need_lib_prefix=no
12607
12608 case $GCC,$cc_basename in
12609 yes,*)
12610 # gcc
12611 library_names_spec='$libname.dll.a'
12612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12613 postinstall_cmds='base_file=`basename \$file`~
12614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12615 dldir=$destdir/`dirname \$dlpath`~
12616 test -d \$dldir || mkdir -p \$dldir~
12617 $install_prog $dir/$dlname \$dldir/$dlname~
12618 chmod a+x \$dldir/$dlname~
12619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12621 fi'
12622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12623 dlpath=$dir/\$dldll~
12624 $RM \$dlpath'
12625 shlibpath_overrides_runpath=yes
12626
12627 case $host_os in
12628 cygwin*)
12629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12630 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12631
12632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12633 ;;
12634 mingw* | cegcc*)
12635 # MinGW DLLs use traditional 'lib' prefix
12636 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12637 ;;
12638 pw32*)
12639 # pw32 DLLs use 'pw' prefix rather than 'lib'
12640 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12641 ;;
12642 esac
12643 dynamic_linker='Win32 ld.exe'
12644 ;;
12645
12646 *,cl*)
12647 # Native MSVC
12648 libname_spec='$name'
12649 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12650 library_names_spec='$libname.dll.lib'
12651
12652 case $build_os in
12653 mingw*)
12654 sys_lib_search_path_spec=
12655 lt_save_ifs=$IFS
12656 IFS=';'
12657 for lt_path in $LIB
12658 do
12659 IFS=$lt_save_ifs
12660 # Let DOS variable expansion print the short 8.3 style file name.
12661 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12662 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12663 done
12664 IFS=$lt_save_ifs
12665 # Convert to MSYS style.
12666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12667 ;;
12668 cygwin*)
12669 # Convert to unix form, then to dos form, then back to unix form
12670 # but this time dos style (no spaces!) so that the unix form looks
12671 # like /cygdrive/c/PROGRA~1:/cygdr...
12672 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12673 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12674 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12675 ;;
12676 *)
12677 sys_lib_search_path_spec=$LIB
12678 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12679 # It is most probably a Windows format PATH.
12680 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12681 else
12682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12683 fi
12684 # FIXME: find the short name or the path components, as spaces are
12685 # common. (e.g. "Program Files" -> "PROGRA~1")
12686 ;;
12687 esac
12688
12689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12690 postinstall_cmds='base_file=`basename \$file`~
12691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12692 dldir=$destdir/`dirname \$dlpath`~
12693 test -d \$dldir || mkdir -p \$dldir~
12694 $install_prog $dir/$dlname \$dldir/$dlname'
12695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12696 dlpath=$dir/\$dldll~
12697 $RM \$dlpath'
12698 shlibpath_overrides_runpath=yes
12699 dynamic_linker='Win32 link.exe'
12700 ;;
12701
12702 *)
12703 # Assume MSVC wrapper
12704 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12705 dynamic_linker='Win32 ld.exe'
12706 ;;
12707 esac
12708 # FIXME: first we should search . and the directory the executable is in
12709 shlibpath_var=PATH
12710 ;;
12711
12712 darwin* | rhapsody*)
12713 dynamic_linker="$host_os dyld"
12714 version_type=darwin
12715 need_lib_prefix=no
12716 need_version=no
12717 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12718 soname_spec='$libname$release$major$shared_ext'
12719 shlibpath_overrides_runpath=yes
12720 shlibpath_var=DYLD_LIBRARY_PATH
12721 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12722
12723 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12725 ;;
12726
12727 dgux*)
12728 version_type=linux # correct to gnu/linux during the next big refactor
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12732 soname_spec='$libname$release$shared_ext$major'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 ;;
12735
12736 freebsd* | dragonfly*)
12737 # DragonFly does not have aout. When/if they implement a new
12738 # versioning mechanism, adjust this.
12739 if test -x /usr/bin/objformat; then
12740 objformat=`/usr/bin/objformat`
12741 else
12742 case $host_os in
12743 freebsd[23].*) objformat=aout ;;
12744 *) objformat=elf ;;
12745 esac
12746 fi
12747 version_type=freebsd-$objformat
12748 case $version_type in
12749 freebsd-elf*)
12750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12751 soname_spec='$libname$release$shared_ext$major'
12752 need_version=no
12753 need_lib_prefix=no
12754 ;;
12755 freebsd-*)
12756 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12757 need_version=yes
12758 ;;
12759 esac
12760 shlibpath_var=LD_LIBRARY_PATH
12761 case $host_os in
12762 freebsd2.*)
12763 shlibpath_overrides_runpath=yes
12764 ;;
12765 freebsd3.[01]* | freebsdelf3.[01]*)
12766 shlibpath_overrides_runpath=yes
12767 hardcode_into_libs=yes
12768 ;;
12769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12771 shlibpath_overrides_runpath=no
12772 hardcode_into_libs=yes
12773 ;;
12774 *) # from 4.6 on, and DragonFly
12775 shlibpath_overrides_runpath=yes
12776 hardcode_into_libs=yes
12777 ;;
12778 esac
12779 ;;
12780
12781 haiku*)
12782 version_type=linux # correct to gnu/linux during the next big refactor
12783 need_lib_prefix=no
12784 need_version=no
12785 dynamic_linker="$host_os runtime_loader"
12786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12787 soname_spec='$libname$release$shared_ext$major'
12788 shlibpath_var=LIBRARY_PATH
12789 shlibpath_overrides_runpath=no
12790 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12791 hardcode_into_libs=yes
12792 ;;
12793
12794 hpux9* | hpux10* | hpux11*)
12795 # Give a soname corresponding to the major version so that dld.sl refuses to
12796 # link against other versions.
12797 version_type=sunos
12798 need_lib_prefix=no
12799 need_version=no
12800 case $host_cpu in
12801 ia64*)
12802 shrext_cmds='.so'
12803 hardcode_into_libs=yes
12804 dynamic_linker="$host_os dld.so"
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12808 soname_spec='$libname$release$shared_ext$major'
12809 if test 32 = "$HPUX_IA64_MODE"; then
12810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12811 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12812 else
12813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12814 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12815 fi
12816 ;;
12817 hppa*64*)
12818 shrext_cmds='.sl'
12819 hardcode_into_libs=yes
12820 dynamic_linker="$host_os dld.sl"
12821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824 soname_spec='$libname$release$shared_ext$major'
12825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12827 ;;
12828 *)
12829 shrext_cmds='.sl'
12830 dynamic_linker="$host_os dld.sl"
12831 shlibpath_var=SHLIB_PATH
12832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12834 soname_spec='$libname$release$shared_ext$major'
12835 ;;
12836 esac
12837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12838 postinstall_cmds='chmod 555 $lib'
12839 # or fails outright, so override atomically:
12840 install_override_mode=555
12841 ;;
12842
12843 interix[3-9]*)
12844 version_type=linux # correct to gnu/linux during the next big refactor
12845 need_lib_prefix=no
12846 need_version=no
12847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12848 soname_spec='$libname$release$shared_ext$major'
12849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 shlibpath_overrides_runpath=no
12852 hardcode_into_libs=yes
12853 ;;
12854
12855 irix5* | irix6* | nonstopux*)
12856 case $host_os in
12857 nonstopux*) version_type=nonstopux ;;
12858 *)
12859 if test yes = "$lt_cv_prog_gnu_ld"; then
12860 version_type=linux # correct to gnu/linux during the next big refactor
12861 else
12862 version_type=irix
12863 fi ;;
12864 esac
12865 need_lib_prefix=no
12866 need_version=no
12867 soname_spec='$libname$release$shared_ext$major'
12868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12869 case $host_os in
12870 irix5* | nonstopux*)
12871 libsuff= shlibsuff=
12872 ;;
12873 *)
12874 case $LD in # libtool.m4 will add one of these switches to LD
12875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12876 libsuff= shlibsuff= libmagic=32-bit;;
12877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12878 libsuff=32 shlibsuff=N32 libmagic=N32;;
12879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12881 *) libsuff= shlibsuff= libmagic=never-match;;
12882 esac
12883 ;;
12884 esac
12885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12886 shlibpath_overrides_runpath=no
12887 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12888 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12889 hardcode_into_libs=yes
12890 ;;
12891
12892 # No shared lib support for Linux oldld, aout, or coff.
12893 linux*oldld* | linux*aout* | linux*coff*)
12894 dynamic_linker=no
12895 ;;
12896
12897 linux*android*)
12898 version_type=none # Android doesn't support versioned libraries.
12899 need_lib_prefix=no
12900 need_version=no
12901 library_names_spec='$libname$release$shared_ext'
12902 soname_spec='$libname$release$shared_ext'
12903 finish_cmds=
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes
12906
12907 # This implies no fast_install, which is unacceptable.
12908 # Some rework will be needed to allow for fast_install
12909 # before this can be enabled.
12910 hardcode_into_libs=yes
12911
12912 dynamic_linker='Android linker'
12913 # Don't embed -rpath directories since the linker doesn't support them.
12914 hardcode_libdir_flag_spec='-L$libdir'
12915 ;;
12916
12917 # This must be glibc/ELF.
12918 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12919 version_type=linux # correct to gnu/linux during the next big refactor
12920 need_lib_prefix=no
12921 need_version=no
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923 soname_spec='$libname$release$shared_ext$major'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=no
12927
12928 # Some binutils ld are patched to set DT_RUNPATH
12929 if test ${lt_cv_shlibpath_overrides_runpath+y}
12930 then :
12931 printf %s "(cached) " >&6
12932 else $as_nop
12933 lt_cv_shlibpath_overrides_runpath=no
12934 save_LDFLAGS=$LDFLAGS
12935 save_libdir=$libdir
12936 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12937 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940
12941 int
12942 main (void)
12943 {
12944
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"
12950 then :
12951 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12952 then :
12953 lt_cv_shlibpath_overrides_runpath=yes
12954 fi
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LDFLAGS=$save_LDFLAGS
12959 libdir=$save_libdir
12960
12961 fi
12962
12963 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12964
12965 # This implies no fast_install, which is unacceptable.
12966 # Some rework will be needed to allow for fast_install
12967 # before this can be enabled.
12968 hardcode_into_libs=yes
12969
12970 # Ideally, we could use ldconfig to report *all* directores which are
12971 # searched for libraries, however this is still not possible. Aside from not
12972 # being certain /sbin/ldconfig is available, command
12973 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12974 # even though it is searched at run-time. Try to do the best guess by
12975 # appending ld.so.conf contents (and includes) to the search path.
12976 if test -f /etc/ld.so.conf; then
12977 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' ' '`
12978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12979 fi
12980
12981 # We used to test for /lib/ld.so.1 and disable shared libraries on
12982 # powerpc, because MkLinux only supported shared libraries with the
12983 # GNU dynamic linker. Since this was broken with cross compilers,
12984 # most powerpc-linux boxes support dynamic linking these days and
12985 # people can always --disable-shared, the test was removed, and we
12986 # assume the GNU/Linux dynamic linker is in use.
12987 dynamic_linker='GNU/Linux ld.so'
12988 ;;
12989
12990 netbsdelf*-gnu)
12991 version_type=linux
12992 need_lib_prefix=no
12993 need_version=no
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 shlibpath_overrides_runpath=no
12998 hardcode_into_libs=yes
12999 dynamic_linker='NetBSD ld.elf_so'
13000 ;;
13001
13002 netbsd*)
13003 version_type=sunos
13004 need_lib_prefix=no
13005 need_version=no
13006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13007 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13009 dynamic_linker='NetBSD (a.out) ld.so'
13010 else
13011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13012 soname_spec='$libname$release$shared_ext$major'
13013 dynamic_linker='NetBSD ld.elf_so'
13014 fi
13015 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13017 hardcode_into_libs=yes
13018 ;;
13019
13020 newsos6)
13021 version_type=linux # correct to gnu/linux during the next big refactor
13022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=yes
13025 ;;
13026
13027 *nto* | *qnx*)
13028 version_type=qnx
13029 need_lib_prefix=no
13030 need_version=no
13031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13032 soname_spec='$libname$release$shared_ext$major'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=no
13035 hardcode_into_libs=yes
13036 dynamic_linker='ldqnx.so'
13037 ;;
13038
13039 openbsd* | bitrig*)
13040 version_type=sunos
13041 sys_lib_dlsearch_path_spec=/usr/lib
13042 need_lib_prefix=no
13043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13044 need_version=no
13045 else
13046 need_version=yes
13047 fi
13048 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13052 ;;
13053
13054 os2*)
13055 libname_spec='$name'
13056 version_type=windows
13057 shrext_cmds=.dll
13058 need_version=no
13059 need_lib_prefix=no
13060 # OS/2 can only load a DLL with a base name of 8 characters or less.
13061 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13062 v=$($ECHO $release$versuffix | tr -d .-);
13063 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13064 $ECHO $n$v`$shared_ext'
13065 library_names_spec='${libname}_dll.$libext'
13066 dynamic_linker='OS/2 ld.exe'
13067 shlibpath_var=BEGINLIBPATH
13068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13070 postinstall_cmds='base_file=`basename \$file`~
13071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13072 dldir=$destdir/`dirname \$dlpath`~
13073 test -d \$dldir || mkdir -p \$dldir~
13074 $install_prog $dir/$dlname \$dldir/$dlname~
13075 chmod a+x \$dldir/$dlname~
13076 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13077 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13078 fi'
13079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13080 dlpath=$dir/\$dldll~
13081 $RM \$dlpath'
13082 ;;
13083
13084 osf3* | osf4* | osf5*)
13085 version_type=osf
13086 need_lib_prefix=no
13087 need_version=no
13088 soname_spec='$libname$release$shared_ext$major'
13089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13090 shlibpath_var=LD_LIBRARY_PATH
13091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13093 ;;
13094
13095 rdos*)
13096 dynamic_linker=no
13097 ;;
13098
13099 solaris*)
13100 version_type=linux # correct to gnu/linux during the next big refactor
13101 need_lib_prefix=no
13102 need_version=no
13103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13104 soname_spec='$libname$release$shared_ext$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 # ldd complains unless libraries are executable
13109 postinstall_cmds='chmod +x $lib'
13110 ;;
13111
13112 sunos4*)
13113 version_type=sunos
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116 shlibpath_var=LD_LIBRARY_PATH
13117 shlibpath_overrides_runpath=yes
13118 if test yes = "$with_gnu_ld"; then
13119 need_lib_prefix=no
13120 fi
13121 need_version=yes
13122 ;;
13123
13124 sysv4 | sysv4.3*)
13125 version_type=linux # correct to gnu/linux during the next big refactor
13126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13127 soname_spec='$libname$release$shared_ext$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 case $host_vendor in
13130 sni)
13131 shlibpath_overrides_runpath=no
13132 need_lib_prefix=no
13133 runpath_var=LD_RUN_PATH
13134 ;;
13135 siemens)
13136 need_lib_prefix=no
13137 ;;
13138 motorola)
13139 need_lib_prefix=no
13140 need_version=no
13141 shlibpath_overrides_runpath=no
13142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13143 ;;
13144 esac
13145 ;;
13146
13147 sysv4*MP*)
13148 if test -d /usr/nec; then
13149 version_type=linux # correct to gnu/linux during the next big refactor
13150 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13151 soname_spec='$libname$shared_ext.$major'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 fi
13154 ;;
13155
13156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13157 version_type=sco
13158 need_lib_prefix=no
13159 need_version=no
13160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13161 soname_spec='$libname$release$shared_ext$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 shlibpath_overrides_runpath=yes
13164 hardcode_into_libs=yes
13165 if test yes = "$with_gnu_ld"; then
13166 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13167 else
13168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13169 case $host_os in
13170 sco3.2v5*)
13171 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13172 ;;
13173 esac
13174 fi
13175 sys_lib_dlsearch_path_spec='/usr/lib'
13176 ;;
13177
13178 tpf*)
13179 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13180 version_type=linux # correct to gnu/linux during the next big refactor
13181 need_lib_prefix=no
13182 need_version=no
13183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 shlibpath_overrides_runpath=no
13186 hardcode_into_libs=yes
13187 ;;
13188
13189 uts4*)
13190 version_type=linux # correct to gnu/linux during the next big refactor
13191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13192 soname_spec='$libname$release$shared_ext$major'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 ;;
13195
13196 *)
13197 dynamic_linker=no
13198 ;;
13199 esac
13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13201 printf "%s\n" "$dynamic_linker" >&6; }
13202 test no = "$dynamic_linker" && can_build_shared=no
13203
13204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13205 if test yes = "$GCC"; then
13206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13207 fi
13208
13209 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13210 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13211 fi
13212
13213 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13214 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13215 fi
13216
13217 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13218 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13219
13220 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13221 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13222
13223 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13224 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13323 printf %s "checking how to hardcode library paths into programs... " >&6; }
13324 hardcode_action=
13325 if test -n "$hardcode_libdir_flag_spec" ||
13326 test -n "$runpath_var" ||
13327 test yes = "$hardcode_automatic"; then
13328
13329 # We can hardcode non-existent directories.
13330 if test no != "$hardcode_direct" &&
13331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13332 # have to relink, otherwise we might link with an installed library
13333 # when we should be linking with a yet-to-be-installed one
13334 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13335 test no != "$hardcode_minus_L"; then
13336 # Linking always hardcodes the temporary library directory.
13337 hardcode_action=relink
13338 else
13339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13340 hardcode_action=immediate
13341 fi
13342 else
13343 # We cannot hardcode anything, or else we can only hardcode existing
13344 # directories.
13345 hardcode_action=unsupported
13346 fi
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13348 printf "%s\n" "$hardcode_action" >&6; }
13349
13350 if test relink = "$hardcode_action" ||
13351 test yes = "$inherit_rpath"; then
13352 # Fast installation is not supported
13353 enable_fast_install=no
13354 elif test yes = "$shlibpath_overrides_runpath" ||
13355 test no = "$enable_shared"; then
13356 # Fast installation is not necessary
13357 enable_fast_install=needless
13358 fi
13359
13360
13361
13362
13363
13364
13365 if test yes != "$enable_dlopen"; then
13366 enable_dlopen=unknown
13367 enable_dlopen_self=unknown
13368 enable_dlopen_self_static=unknown
13369 else
13370 lt_cv_dlopen=no
13371 lt_cv_dlopen_libs=
13372
13373 case $host_os in
13374 beos*)
13375 lt_cv_dlopen=load_add_on
13376 lt_cv_dlopen_libs=
13377 lt_cv_dlopen_self=yes
13378 ;;
13379
13380 mingw* | pw32* | cegcc*)
13381 lt_cv_dlopen=LoadLibrary
13382 lt_cv_dlopen_libs=
13383 ;;
13384
13385 cygwin*)
13386 lt_cv_dlopen=dlopen
13387 lt_cv_dlopen_libs=
13388 ;;
13389
13390 darwin*)
13391 # if libdl is installed we need to link against it
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13393 printf %s "checking for dlopen in -ldl... " >&6; }
13394 if test ${ac_cv_lib_dl_dlopen+y}
13395 then :
13396 printf %s "(cached) " >&6
13397 else $as_nop
13398 ac_check_lib_save_LIBS=$LIBS
13399 LIBS="-ldl $LIBS"
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402
13403 /* Override any GCC internal prototype to avoid an error.
13404 Use char because int might match the return type of a GCC
13405 builtin and then its argument prototype would still apply. */
13406 char dlopen ();
13407 int
13408 main (void)
13409 {
13410 return dlopen ();
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"
13416 then :
13417 ac_cv_lib_dl_dlopen=yes
13418 else $as_nop
13419 ac_cv_lib_dl_dlopen=no
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13422 conftest$ac_exeext conftest.$ac_ext
13423 LIBS=$ac_check_lib_save_LIBS
13424 fi
13425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13426 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13427 if test "x$ac_cv_lib_dl_dlopen" = xyes
13428 then :
13429 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13430 else $as_nop
13431
13432 lt_cv_dlopen=dyld
13433 lt_cv_dlopen_libs=
13434 lt_cv_dlopen_self=yes
13435
13436 fi
13437
13438 ;;
13439
13440 tpf*)
13441 # Don't try to run any link tests for TPF. We know it's impossible
13442 # because TPF is a cross-compiler, and we know how we open DSOs.
13443 lt_cv_dlopen=dlopen
13444 lt_cv_dlopen_libs=
13445 lt_cv_dlopen_self=no
13446 ;;
13447
13448 *)
13449 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13450 if test "x$ac_cv_func_shl_load" = xyes
13451 then :
13452 lt_cv_dlopen=shl_load
13453 else $as_nop
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13455 printf %s "checking for shl_load in -ldld... " >&6; }
13456 if test ${ac_cv_lib_dld_shl_load+y}
13457 then :
13458 printf %s "(cached) " >&6
13459 else $as_nop
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-ldld $LIBS"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464
13465 /* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13468 char shl_load ();
13469 int
13470 main (void)
13471 {
13472 return shl_load ();
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"
13478 then :
13479 ac_cv_lib_dld_shl_load=yes
13480 else $as_nop
13481 ac_cv_lib_dld_shl_load=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13484 conftest$ac_exeext conftest.$ac_ext
13485 LIBS=$ac_check_lib_save_LIBS
13486 fi
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13488 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13489 if test "x$ac_cv_lib_dld_shl_load" = xyes
13490 then :
13491 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13492 else $as_nop
13493 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13494 if test "x$ac_cv_func_dlopen" = xyes
13495 then :
13496 lt_cv_dlopen=dlopen
13497 else $as_nop
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13499 printf %s "checking for dlopen in -ldl... " >&6; }
13500 if test ${ac_cv_lib_dl_dlopen+y}
13501 then :
13502 printf %s "(cached) " >&6
13503 else $as_nop
13504 ac_check_lib_save_LIBS=$LIBS
13505 LIBS="-ldl $LIBS"
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13512 char dlopen ();
13513 int
13514 main (void)
13515 {
13516 return dlopen ();
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"
13522 then :
13523 ac_cv_lib_dl_dlopen=yes
13524 else $as_nop
13525 ac_cv_lib_dl_dlopen=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13528 conftest$ac_exeext conftest.$ac_ext
13529 LIBS=$ac_check_lib_save_LIBS
13530 fi
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13532 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13533 if test "x$ac_cv_lib_dl_dlopen" = xyes
13534 then :
13535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13536 else $as_nop
13537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13538 printf %s "checking for dlopen in -lsvld... " >&6; }
13539 if test ${ac_cv_lib_svld_dlopen+y}
13540 then :
13541 printf %s "(cached) " >&6
13542 else $as_nop
13543 ac_check_lib_save_LIBS=$LIBS
13544 LIBS="-lsvld $LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13551 char dlopen ();
13552 int
13553 main (void)
13554 {
13555 return dlopen ();
13556 ;
13557 return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"
13561 then :
13562 ac_cv_lib_svld_dlopen=yes
13563 else $as_nop
13564 ac_cv_lib_svld_dlopen=no
13565 fi
13566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LIBS=$ac_check_lib_save_LIBS
13569 fi
13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13571 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13572 if test "x$ac_cv_lib_svld_dlopen" = xyes
13573 then :
13574 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13575 else $as_nop
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13577 printf %s "checking for dld_link in -ldld... " >&6; }
13578 if test ${ac_cv_lib_dld_dld_link+y}
13579 then :
13580 printf %s "(cached) " >&6
13581 else $as_nop
13582 ac_check_lib_save_LIBS=$LIBS
13583 LIBS="-ldld $LIBS"
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586
13587 /* Override any GCC internal prototype to avoid an error.
13588 Use char because int might match the return type of a GCC
13589 builtin and then its argument prototype would still apply. */
13590 char dld_link ();
13591 int
13592 main (void)
13593 {
13594 return dld_link ();
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"
13600 then :
13601 ac_cv_lib_dld_dld_link=yes
13602 else $as_nop
13603 ac_cv_lib_dld_dld_link=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13606 conftest$ac_exeext conftest.$ac_ext
13607 LIBS=$ac_check_lib_save_LIBS
13608 fi
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13610 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13611 if test "x$ac_cv_lib_dld_dld_link" = xyes
13612 then :
13613 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13614 fi
13615
13616
13617 fi
13618
13619
13620 fi
13621
13622
13623 fi
13624
13625
13626 fi
13627
13628
13629 fi
13630
13631 ;;
13632 esac
13633
13634 if test no = "$lt_cv_dlopen"; then
13635 enable_dlopen=no
13636 else
13637 enable_dlopen=yes
13638 fi
13639
13640 case $lt_cv_dlopen in
13641 dlopen)
13642 save_CPPFLAGS=$CPPFLAGS
13643 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13644
13645 save_LDFLAGS=$LDFLAGS
13646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13647
13648 save_LIBS=$LIBS
13649 LIBS="$lt_cv_dlopen_libs $LIBS"
13650
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13652 printf %s "checking whether a program can dlopen itself... " >&6; }
13653 if test ${lt_cv_dlopen_self+y}
13654 then :
13655 printf %s "(cached) " >&6
13656 else $as_nop
13657 if test yes = "$cross_compiling"; then :
13658 lt_cv_dlopen_self=cross
13659 else
13660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13661 lt_status=$lt_dlunknown
13662 cat > conftest.$ac_ext <<_LT_EOF
13663 #line $LINENO "configure"
13664 #include "confdefs.h"
13665
13666 #if HAVE_DLFCN_H
13667 #include <dlfcn.h>
13668 #endif
13669
13670 #include <stdio.h>
13671
13672 #ifdef RTLD_GLOBAL
13673 # define LT_DLGLOBAL RTLD_GLOBAL
13674 #else
13675 # ifdef DL_GLOBAL
13676 # define LT_DLGLOBAL DL_GLOBAL
13677 # else
13678 # define LT_DLGLOBAL 0
13679 # endif
13680 #endif
13681
13682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13683 find out it does not work in some platform. */
13684 #ifndef LT_DLLAZY_OR_NOW
13685 # ifdef RTLD_LAZY
13686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13687 # else
13688 # ifdef DL_LAZY
13689 # define LT_DLLAZY_OR_NOW DL_LAZY
13690 # else
13691 # ifdef RTLD_NOW
13692 # define LT_DLLAZY_OR_NOW RTLD_NOW
13693 # else
13694 # ifdef DL_NOW
13695 # define LT_DLLAZY_OR_NOW DL_NOW
13696 # else
13697 # define LT_DLLAZY_OR_NOW 0
13698 # endif
13699 # endif
13700 # endif
13701 # endif
13702 #endif
13703
13704 /* When -fvisibility=hidden is used, assume the code has been annotated
13705 correspondingly for the symbols needed. */
13706 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13707 int fnord () __attribute__((visibility("default")));
13708 #endif
13709
13710 int fnord () { return 42; }
13711 int main ()
13712 {
13713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13714 int status = $lt_dlunknown;
13715
13716 if (self)
13717 {
13718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13719 else
13720 {
13721 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13722 else puts (dlerror ());
13723 }
13724 /* dlclose (self); */
13725 }
13726 else
13727 puts (dlerror ());
13728
13729 return status;
13730 }
13731 _LT_EOF
13732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13733 (eval $ac_link) 2>&5
13734 ac_status=$?
13735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13737 (./conftest; exit; ) >&5 2>/dev/null
13738 lt_status=$?
13739 case x$lt_status in
13740 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13741 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13742 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13743 esac
13744 else :
13745 # compilation failed
13746 lt_cv_dlopen_self=no
13747 fi
13748 fi
13749 rm -fr conftest*
13750
13751
13752 fi
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13754 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13755
13756 if test yes = "$lt_cv_dlopen_self"; then
13757 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13759 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13760 if test ${lt_cv_dlopen_self_static+y}
13761 then :
13762 printf %s "(cached) " >&6
13763 else $as_nop
13764 if test yes = "$cross_compiling"; then :
13765 lt_cv_dlopen_self_static=cross
13766 else
13767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13768 lt_status=$lt_dlunknown
13769 cat > conftest.$ac_ext <<_LT_EOF
13770 #line $LINENO "configure"
13771 #include "confdefs.h"
13772
13773 #if HAVE_DLFCN_H
13774 #include <dlfcn.h>
13775 #endif
13776
13777 #include <stdio.h>
13778
13779 #ifdef RTLD_GLOBAL
13780 # define LT_DLGLOBAL RTLD_GLOBAL
13781 #else
13782 # ifdef DL_GLOBAL
13783 # define LT_DLGLOBAL DL_GLOBAL
13784 # else
13785 # define LT_DLGLOBAL 0
13786 # endif
13787 #endif
13788
13789 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13790 find out it does not work in some platform. */
13791 #ifndef LT_DLLAZY_OR_NOW
13792 # ifdef RTLD_LAZY
13793 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13794 # else
13795 # ifdef DL_LAZY
13796 # define LT_DLLAZY_OR_NOW DL_LAZY
13797 # else
13798 # ifdef RTLD_NOW
13799 # define LT_DLLAZY_OR_NOW RTLD_NOW
13800 # else
13801 # ifdef DL_NOW
13802 # define LT_DLLAZY_OR_NOW DL_NOW
13803 # else
13804 # define LT_DLLAZY_OR_NOW 0
13805 # endif
13806 # endif
13807 # endif
13808 # endif
13809 #endif
13810
13811 /* When -fvisibility=hidden is used, assume the code has been annotated
13812 correspondingly for the symbols needed. */
13813 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13814 int fnord () __attribute__((visibility("default")));
13815 #endif
13816
13817 int fnord () { return 42; }
13818 int main ()
13819 {
13820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13821 int status = $lt_dlunknown;
13822
13823 if (self)
13824 {
13825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13826 else
13827 {
13828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13829 else puts (dlerror ());
13830 }
13831 /* dlclose (self); */
13832 }
13833 else
13834 puts (dlerror ());
13835
13836 return status;
13837 }
13838 _LT_EOF
13839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13840 (eval $ac_link) 2>&5
13841 ac_status=$?
13842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13843 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13844 (./conftest; exit; ) >&5 2>/dev/null
13845 lt_status=$?
13846 case x$lt_status in
13847 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13848 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13849 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13850 esac
13851 else :
13852 # compilation failed
13853 lt_cv_dlopen_self_static=no
13854 fi
13855 fi
13856 rm -fr conftest*
13857
13858
13859 fi
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13861 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13862 fi
13863
13864 CPPFLAGS=$save_CPPFLAGS
13865 LDFLAGS=$save_LDFLAGS
13866 LIBS=$save_LIBS
13867 ;;
13868 esac
13869
13870 case $lt_cv_dlopen_self in
13871 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13872 *) enable_dlopen_self=unknown ;;
13873 esac
13874
13875 case $lt_cv_dlopen_self_static in
13876 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13877 *) enable_dlopen_self_static=unknown ;;
13878 esac
13879 fi
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897 striplib=
13898 old_striplib=
13899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13900 printf %s "checking whether stripping libraries is possible... " >&6; }
13901 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13902 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13903 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13905 printf "%s\n" "yes" >&6; }
13906 else
13907 # FIXME - insert some real tests, host_os isn't really good enough
13908 case $host_os in
13909 darwin*)
13910 if test -n "$STRIP"; then
13911 striplib="$STRIP -x"
13912 old_striplib="$STRIP -S"
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13914 printf "%s\n" "yes" >&6; }
13915 else
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 printf "%s\n" "no" >&6; }
13918 fi
13919 ;;
13920 *)
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 printf "%s\n" "no" >&6; }
13923 ;;
13924 esac
13925 fi
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938 # Report what library types will actually be built
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13940 printf %s "checking if libtool supports shared libraries... " >&6; }
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13942 printf "%s\n" "$can_build_shared" >&6; }
13943
13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13945 printf %s "checking whether to build shared libraries... " >&6; }
13946 test no = "$can_build_shared" && enable_shared=no
13947
13948 # On AIX, shared libraries and static libraries use the same namespace, and
13949 # are all built from PIC.
13950 case $host_os in
13951 aix3*)
13952 test yes = "$enable_shared" && enable_static=no
13953 if test -n "$RANLIB"; then
13954 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13955 postinstall_cmds='$RANLIB $lib'
13956 fi
13957 ;;
13958
13959 aix[4-9]*)
13960 if test ia64 != "$host_cpu"; then
13961 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13962 yes,aix,yes) ;; # shared object as lib.so file only
13963 yes,svr4,*) ;; # shared object as lib.so archive member only
13964 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13965 esac
13966 fi
13967 ;;
13968 esac
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13970 printf "%s\n" "$enable_shared" >&6; }
13971
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13973 printf %s "checking whether to build static libraries... " >&6; }
13974 # Make sure either enable_shared or enable_static is yes.
13975 test yes = "$enable_shared" || enable_static=yes
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13977 printf "%s\n" "$enable_static" >&6; }
13978
13979
13980
13981
13982 fi
13983 ac_ext=c
13984 ac_cpp='$CPP $CPPFLAGS'
13985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988
13989 CC=$lt_save_CC
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005 ac_config_commands="$ac_config_commands libtool"
14006
14007
14008
14009
14010 # Only expand once:
14011
14012
14013
14014
14015 CFLAGS="$CFLAGS -Wall"
14016
14017 # Check whether --enable-virus_scan_profiles was given.
14018 if test ${enable_virus_scan_profiles+y}
14019 then :
14020 enableval=$enable_virus_scan_profiles; if test a"$enableval"=a"yes"; then
14021 virus_scan_profiles_support="yes"
14022
14023 printf "%s\n" "#define USE_VSCAN_PROFILES 1" >>confdefs.h
14024
14025 else
14026 virus_scan_profiles_support="no"
14027 fi
14028
14029 else $as_nop
14030 virus_scan_profiles_support="no"
14031
14032 fi
14033
14034
14035 #check for c-icap
14036
14037 # Check whether --with-c-icap was given.
14038 if test ${with_c_icap+y}
14039 then :
14040 withval=$with_c_icap;
14041 cicapdir="$withval"
14042 if test -f $withval/bin/c-icap-config; then
14043 cicapflags=`$withval/bin/c-icap-config --cflags`
14044 cicaplibs=`$withval/bin/c-icap-config --libs`
14045 cicapetc=`$withval/bin/c-icap-config --configdir`
14046 cicapprefix=`$withval/bin/c-icap-config --prefix`
14047 cicapmods=`$withval/bin/c-icap-config --modulesdir`
14048 cicapdatadir=`$withval/bin/c-icap-config --datarootdir`
14049 cicaplibflags=`$withval/bin/c-icap-libicapapi-config --cflags`
14050 cicapliblibs=`$withval/bin/c-icap-libicapapi-config --libs`
14051 else
14052 cicapflags=`c-icap-config --cflags`
14053 cicaplibs=`c-icap-config --libs`
14054 cicapetc=`c-icap-config --configdir`
14055 cicapprefix=`c-icap-config --prefix`
14056 cicapmods=`c-icap-config --modulesdir`
14057 cicapdatadir=`c-icap-config --datarootdir`
14058 cicaplibflags=`c-icap-libicapapi-config --cflags`
14059 cicapliblibs=`c-icap-libicapapi-config --libs`
14060 fi
14061
14062 fi
14063
14064
14065 if test -z "$cicapdir"; then
14066 if c-icap-config >& /dev/null; then
14067 cicapflags=`c-icap-config --cflags`
14068 cicaplibs=`c-icap-config --libs`
14069 cicapetc=`c-icap-config --configdir`
14070 cicapprefix=`c-icap-config --prefix`
14071 cicapmods=`c-icap-config --modulesdir`
14072 cicapdatadir=`c-icap-config --datarootdir`
14073 cicaplibflags=`c-icap-libicapapi-config --cflags`
14074 cicapliblibs=`c-icap-libicapapi-config --libs`
14075 else
14076 echo "ERROR: c-icap-config not found!"
14077 exit -1;
14078 fi
14079 fi
14080
14081 if test -n $cicapmods; then
14082 CICAPMODULESDIR_TRUE=
14083 CICAPMODULESDIR_FALSE='#'
14084 else
14085 CICAPMODULESDIR_TRUE='#'
14086 CICAPMODULESDIR_FALSE=
14087 fi
14088
14089
14090 CFLAGS="$CFLAGS $cicapflags"
14091 MODULES_LIBADD="$cicaplibs"
14092 UTILITIES_LIBADD="$cicapliblibs"
14093 UTILITIES_CFLAGS="$cicaplibflags"
14094 CONFDIR="$cicapetc"
14095 MODSDIR="$cicapmods"
14096 DATADIR="$cicapdatadir"
14097
14098
14099
14100
14101
14102
14103
14104 #Check for icapapi functions
14105 OLD_LIBS=$LIBS
14106 LIBS="$LIBS $cicapliblibs"
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ci_brinflate_to_simple_file in -licapapi" >&5
14108 printf %s "checking for ci_brinflate_to_simple_file in -licapapi... " >&6; }
14109 if test ${ac_cv_lib_icapapi_ci_brinflate_to_simple_file+y}
14110 then :
14111 printf %s "(cached) " >&6
14112 else $as_nop
14113 ac_check_lib_save_LIBS=$LIBS
14114 LIBS="-licapapi $LIBS"
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117
14118 /* Override any GCC internal prototype to avoid an error.
14119 Use char because int might match the return type of a GCC
14120 builtin and then its argument prototype would still apply. */
14121 char ci_brinflate_to_simple_file ();
14122 int
14123 main (void)
14124 {
14125 return ci_brinflate_to_simple_file ();
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"
14131 then :
14132 ac_cv_lib_icapapi_ci_brinflate_to_simple_file=yes
14133 else $as_nop
14134 ac_cv_lib_icapapi_ci_brinflate_to_simple_file=no
14135 fi
14136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14139 fi
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icapapi_ci_brinflate_to_simple_file" >&5
14141 printf "%s\n" "$ac_cv_lib_icapapi_ci_brinflate_to_simple_file" >&6; }
14142 if test "x$ac_cv_lib_icapapi_ci_brinflate_to_simple_file" = xyes
14143 then :
14144 cicap_brotli='yes';
14145 printf "%s\n" "#define HAVE_CICAP_BROTLI 1" >>confdefs.h
14146
14147 else $as_nop
14148 cicap_brotli='no'
14149 fi
14150
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ci_decompress_to_simple_file in -licapapi" >&5
14152 printf %s "checking for ci_decompress_to_simple_file in -licapapi... " >&6; }
14153 if test ${ac_cv_lib_icapapi_ci_decompress_to_simple_file+y}
14154 then :
14155 printf %s "(cached) " >&6
14156 else $as_nop
14157 ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-licapapi $LIBS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14165 char ci_decompress_to_simple_file ();
14166 int
14167 main (void)
14168 {
14169 return ci_decompress_to_simple_file ();
14170 ;
14171 return 0;
14172 }
14173 _ACEOF
14174 if ac_fn_c_try_link "$LINENO"
14175 then :
14176 ac_cv_lib_icapapi_ci_decompress_to_simple_file=yes
14177 else $as_nop
14178 ac_cv_lib_icapapi_ci_decompress_to_simple_file=no
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14183 fi
14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icapapi_ci_decompress_to_simple_file" >&5
14185 printf "%s\n" "$ac_cv_lib_icapapi_ci_decompress_to_simple_file" >&6; }
14186 if test "x$ac_cv_lib_icapapi_ci_decompress_to_simple_file" = xyes
14187 then :
14188 cicap_decompress_to='yes';
14189 printf "%s\n" "#define HAVE_CICAP_DECOMPRESS_TO 1" >>confdefs.h
14190
14191 else $as_nop
14192 cicap_decompress_to='no'
14193 fi
14194
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ci_decompress_error in -licapapi" >&5
14196 printf %s "checking for ci_decompress_error in -licapapi... " >&6; }
14197 if test ${ac_cv_lib_icapapi_ci_decompress_error+y}
14198 then :
14199 printf %s "(cached) " >&6
14200 else $as_nop
14201 ac_check_lib_save_LIBS=$LIBS
14202 LIBS="-licapapi $LIBS"
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205
14206 /* Override any GCC internal prototype to avoid an error.
14207 Use char because int might match the return type of a GCC
14208 builtin and then its argument prototype would still apply. */
14209 char ci_decompress_error ();
14210 int
14211 main (void)
14212 {
14213 return ci_decompress_error ();
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_link "$LINENO"
14219 then :
14220 ac_cv_lib_icapapi_ci_decompress_error=yes
14221 else $as_nop
14222 ac_cv_lib_icapapi_ci_decompress_error=no
14223 fi
14224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14225 conftest$ac_exeext conftest.$ac_ext
14226 LIBS=$ac_check_lib_save_LIBS
14227 fi
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icapapi_ci_decompress_error" >&5
14229 printf "%s\n" "$ac_cv_lib_icapapi_ci_decompress_error" >&6; }
14230 if test "x$ac_cv_lib_icapapi_ci_decompress_error" = xyes
14231 then :
14232 cicap_decompress_error='yes';
14233 printf "%s\n" "#define HAVE_CICAP_DECOMPRESS_ERROR 1" >>confdefs.h
14234
14235 else $as_nop
14236 cicap_decompress_error='no'
14237 fi
14238
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ci_magic_type_groups in -licapapi" >&5
14240 printf %s "checking for ci_magic_type_groups in -licapapi... " >&6; }
14241 if test ${ac_cv_lib_icapapi_ci_magic_type_groups+y}
14242 then :
14243 printf %s "(cached) " >&6
14244 else $as_nop
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-licapapi $LIBS"
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14249
14250 /* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14253 char ci_magic_type_groups ();
14254 int
14255 main (void)
14256 {
14257 return ci_magic_type_groups ();
14258 ;
14259 return 0;
14260 }
14261 _ACEOF
14262 if ac_fn_c_try_link "$LINENO"
14263 then :
14264 ac_cv_lib_icapapi_ci_magic_type_groups=yes
14265 else $as_nop
14266 ac_cv_lib_icapapi_ci_magic_type_groups=no
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14269 conftest$ac_exeext conftest.$ac_ext
14270 LIBS=$ac_check_lib_save_LIBS
14271 fi
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icapapi_ci_magic_type_groups" >&5
14273 printf "%s\n" "$ac_cv_lib_icapapi_ci_magic_type_groups" >&6; }
14274 if test "x$ac_cv_lib_icapapi_ci_magic_type_groups" = xyes
14275 then :
14276 cicap_ci_magic_type_groups='yes';
14277 printf "%s\n" "#define HAVE_CICAP_CI_MAGIC_TYPE_GROUPS 1" >>confdefs.h
14278
14279 else $as_nop
14280 cicap_ci_magic_type_groups='no'
14281 fi
14282
14283
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ci_magic_type_id in -licapapi" >&5
14285 printf %s "checking for ci_magic_type_id in -licapapi... " >&6; }
14286 if test ${ac_cv_lib_icapapi_ci_magic_type_id+y}
14287 then :
14288 printf %s "(cached) " >&6
14289 else $as_nop
14290 ac_check_lib_save_LIBS=$LIBS
14291 LIBS="-licapapi $LIBS"
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14294
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298 char ci_magic_type_id ();
14299 int
14300 main (void)
14301 {
14302 return ci_magic_type_id ();
14303 ;
14304 return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_link "$LINENO"
14308 then :
14309 ac_cv_lib_icapapi_ci_magic_type_id=yes
14310 else $as_nop
14311 ac_cv_lib_icapapi_ci_magic_type_id=no
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14314 conftest$ac_exeext conftest.$ac_ext
14315 LIBS=$ac_check_lib_save_LIBS
14316 fi
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icapapi_ci_magic_type_id" >&5
14318 printf "%s\n" "$ac_cv_lib_icapapi_ci_magic_type_id" >&6; }
14319 if test "x$ac_cv_lib_icapapi_ci_magic_type_id" = xyes
14320 then :
14321 cicap_ci_magic_type_id='yes';
14322 printf "%s\n" "#define HAVE_CICAP_CI_MAGIC_TYPE_ID 1" >>confdefs.h
14323
14324 else $as_nop
14325 cicap_ci_magic_type_id='no'
14326 fi
14327
14328 LIBS=$OLD_LIBS
14329
14330 # Checks for libraries
14331
14332
14333 # Check whether --with-clamav was given.
14334 if test ${with_clamav+y}
14335 then :
14336 withval=$with_clamav; case "$withval" in
14337 yes)
14338 # AC_MSG_WARN([--with-clamav called without argument])
14339 clamav="yes"
14340 ;;
14341 no )
14342 clamav="no"
14343 ;;
14344 * )
14345 clamav="yes"
14346 clamavinc=-I"$withval"/include
14347 clamavlib=-L"$withval"/lib
14348 ;;
14349 esac
14350
14351 fi
14352
14353
14354 #check if the clamav is installed
14355 if test a"$clamav" != "ano"; then
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working clamav library" >&5
14357 printf %s "checking for a working clamav library... " >&6; }
14358 # Save old CFLAGS/LDFLAGS
14359 OLDCFLAGS=$CFLAGS
14360 OLDLIBS=$LIBS
14361 CFLAGS="$clamavinc $CFLAGS"
14362 LIBS="$clamavlib -lclamav $LIBS"
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365
14366 #include <clamav.h>
14367 int main(){
14368 char *s = cl_retver();
14369 return 0;
14370 }
14371
14372
14373 _ACEOF
14374 if ac_fn_c_try_link "$LINENO"
14375 then :
14376 clamav="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14377 printf "%s\n" "yes" >&6; }
14378 else $as_nop
14379 clamav="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14380 printf "%s\n" "no" >&6; }
14381
14382 fi
14383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14384 conftest$ac_exeext conftest.$ac_ext
14385 CFLAGS=$OLDCFLAGS
14386 LIBS=$OLDLIBS
14387 else
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: clamav is disabled" >&5
14389 printf "%s\n" "$as_me: clamav is disabled" >&6;}
14390 fi
14391
14392 if test a"$clamav" = "ayes"; then
14393
14394 printf "%s\n" "#define HAVE_CLAMAV 1" >>confdefs.h
14395
14396
14397
14398 OLD_CFLAGS=$CFLAGS
14399 CFLAGS=$clamavinc
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clamav 0.90.x or newer" >&5
14401 printf %s "checking for clamav 0.90.x or newer... " >&6; }
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14404
14405 #include <clamav.h>
14406 int main(int argc, char *argv)
14407 {
14408 struct cl_engine node; node.refcount=1;
14409 }
14410
14411 _ACEOF
14412 if ac_fn_c_try_compile "$LINENO"
14413 then :
14414
14415
14416 printf "%s\n" "#define HAVE_LIBCLAMAV_09X 1" >>confdefs.h
14417
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14419 printf "%s\n" "yes" >&6; }
14420
14421 else $as_nop
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 printf "%s\n" "no" >&6; }
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14426
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maxratio field in cl_limits struct" >&5
14428 printf %s "checking for maxratio field in cl_limits struct... " >&6; }
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431
14432 #include <clamav.h>
14433 int main(int argc, cgar *argv)
14434 {
14435 struct cl_limits limits;
14436 limits.maxratio=200;
14437 }
14438
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"
14441 then :
14442
14443
14444 printf "%s\n" "#define HAVE_LIBCLAMAV_LIMITS_MAXRATIO 1" >>confdefs.h
14445
14446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14447 printf "%s\n" "yes" >&6; }
14448
14449 else $as_nop
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 printf "%s\n" "no" >&6; }
14452 fi
14453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14454
14455 #
14456 # clamav drop the cl_limits struct at version 0.95. I think it is
14457 # a good check for clamav lib version.
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clamav 0.95 or newer" >&5
14459 printf %s "checking for clamav 0.95 or newer... " >&6; }
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462
14463 #include <clamav.h>
14464 int main(int argc, char *argv)
14465 {
14466 struct cl_limits limits;
14467 }
14468
14469 _ACEOF
14470 if ac_fn_c_try_compile "$LINENO"
14471 then :
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 printf "%s\n" "no" >&6; }
14474 else $as_nop
14475
14476
14477 printf "%s\n" "#define HAVE_LIBCLAMAV_095 1" >>confdefs.h
14478
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14480 printf "%s\n" "yes" >&6; }
14481
14482
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14485
14486 #
14487 # clamav dropped CL_SCAN_HEURISTIC_ENCRYPTED in 0.101 replacing it with
14488 # CL_SCAN_HEURISTIC_ENCRYPTED_ARCHIVE and CL_SCAN_HEURISTIC_ENCRYPTED_DOC
14489 # restore flags / clamav tests
14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HAVE_CL_SCAN_OPTIONS in clamav.h" >&5
14491 printf %s "checking for HAVE_CL_SCAN_OPTIONS in clamav.h... " >&6; }
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494
14495 #include <clamav.h>
14496 int main(int argc, char *argv)
14497 {
14498 struct cl_scan_options CLAMSCAN_OPTIONS = { 0, 0, 0, 0, 0 };
14499 }
14500
14501 _ACEOF
14502 if ac_fn_c_try_compile "$LINENO"
14503 then :
14504
14505
14506 printf "%s\n" "#define HAVE_CL_SCAN_OPTIONS 1" >>confdefs.h
14507
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14509 printf "%s\n" "yes" >&6; }
14510
14511 else $as_nop
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513 printf "%s\n" "no" >&6; }
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14516 CFLAGS=$OLD_CFLAGS
14517 fi # if test a"$clamav" = "ayes";
14518
14519 ###############
14520 # Detect Berkeley DB library
14521 libdb="yes"
14522 libdbpath=""
14523
14524 # Check whether --with-bdb was given.
14525 if test ${with_bdb+y}
14526 then :
14527 withval=$with_bdb; case "$withval" in
14528 yes)
14529 libdb="yes"
14530 ;;
14531 no )
14532 libdb="no"
14533 ;;
14534 * )
14535 libdb="yes"
14536 libdbpath=$withval
14537 ;;
14538 esac
14539
14540 fi
14541
14542
14543 if test a"$libdb" != "ano"; then
14544 # Save old CFLAGS/LDFLAGS
14545 OLDCFLAGS=$CFLAGS
14546 OLDLDFLAGS=$LDFLAGS
14547 OLDLIBS=$LIBS
14548
14549 if test "a$libdbpath" != "a"; then
14550 CFLAGS="-I$libdbpath/include $CFLAGS"
14551 LDFLAGS="-L$libdbpath/lib $LDFLAGS"
14552 fi
14553 # We are going to see if we can found a Berkeley DB located under a
14554 # libdbpath/include/db4x directory and use lbdbpath/lib/libdb-4.x library.
14555 for DBVER in "" 6 6.3 6.2 6.1 6.0 5 5.4 5.3 5.2 5.1 5.0 4 4.9 4.8 4.7 4.6 4.5 4.4 4.3 4.2; do
14556 if test -z $DBVER; then
14557 usedblib="-ldb"
14558 incdbdir=""
14559 else
14560 usedblib="-ldb-$DBVER"
14561 incdbdir=db`echo $DBVER|sed 's/\.//'`"/"
14562 fi
14563 if test -z "$libdbpath"; then
14564 print_libdbpath="..."
14565 else
14566 print_libdbpath="under $libdbpath..."
14567 fi
14568 echo -n "checking for BerleleyDB v$DBVER $print_libdbpath"
14569 LIBS="$usedblib $OLD_LIBS"
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14572
14573 #include <${incdbdir}db.h>
14574 int main(){
14575 int major,minor,patch;
14576 if (!db_version(&major,&minor,&patch))
14577 return -1;
14578 return 0;
14579 }
14580
14581
14582 _ACEOF
14583 if ac_fn_c_try_link "$LINENO"
14584 then :
14585 echo yes;libdb="yes";
14586 else $as_nop
14587 echo "no";libdb="no";
14588
14589 fi
14590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14591 conftest$ac_exeext conftest.$ac_ext
14592
14593 if test a"$libdb" = "ayes"; then
14594 BDB_ADD_LDADD=""
14595 BDB_ADD_FLAG=""
14596 if test "a$libdbpath" != "a"; then
14597 BDB_ADD_LDADD="-L$libdbpath/lib "
14598 BDB_ADD_FLAG="-I$libdbpath/include"
14599 fi
14600 BDB_ADD_LDADD="$BDB_ADD_LDADD$usedblib"
14601
14602
14603
14604 printf "%s\n" "#define HAVE_BDB 1" >>confdefs.h
14605
14606
14607 printf "%s\n" "#define BDB_HEADER_PATH(incfile) <${incdbdir}incfile>" >>confdefs.h
14608
14609 break;
14610 fi
14611 done
14612
14613 CFLAGS=$OLDCFLAGS
14614 LDFLAGS=$OLDLDFLAGS
14615 LIBS=$OLDLIBS
14616 fi
14617
14618 if test a"$libdb" = "ayes"; then
14619
14620 printf "%s\n" "#define HAVE_BDB 1" >>confdefs.h
14621
14622 fi
14623
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fds can send through unix sockets" >&5
14625 printf %s "checking if fds can send through unix sockets... " >&6; }
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628
14629 #include <stdlib.h>
14630 #include <sys/socket.h>
14631 #include <sys/un.h>
14632
14633 int main(int argc, char **argv) {
14634 struct msghdr mh;
14635 struct cmsghdr cmh;
14636 mh.msg_control = NULL;
14637 mh.msg_controllen = 0;
14638 cmh.cmsg_level = SOL_SOCKET;
14639 cmh.cmsg_type = SCM_RIGHTS;
14640 }
14641
14642 _ACEOF
14643 if ac_fn_c_try_compile "$LINENO"
14644 then :
14645
14646
14647 printf "%s\n" "#define HAVE_FD_PASSING 1" >>confdefs.h
14648
14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14650 printf "%s\n" "yes" >&6; }
14651
14652 else $as_nop
14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 printf "%s\n" "no" >&6; }
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14657
14658 # Check for header files
14659 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
14660 if test "x$ac_cv_header_ctype_h" = xyes
14661 then :
14662 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
14663
14664 fi
14665
14666
14667
14668 for ac_func in strcasestr
14669 do :
14670 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14671 if test "x$ac_cv_func_strcasestr" = xyes
14672 then :
14673 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
14674
14675 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
14676
14677
14678 fi
14679
14680 done
14681
14682 # Now determine which modules will going to build .....
14683
14684 if test a"$clamav" != ano; then
14685 USECLAMAV_TRUE=
14686 USECLAMAV_FALSE='#'
14687 else
14688 USECLAMAV_TRUE='#'
14689 USECLAMAV_FALSE=
14690 fi
14691
14692 if test a"$libdb" != ano; then
14693 USEBDB_TRUE=
14694 USEBDB_FALSE='#'
14695 else
14696 USEBDB_TRUE='#'
14697 USEBDB_FALSE=
14698 fi
14699
14700 if test a"$virus_scan_profiles_support" != a"no"; then
14701 USE_VSCAN_PROFILES_TRUE=
14702 USE_VSCAN_PROFILES_FALSE='#'
14703 else
14704 USE_VSCAN_PROFILES_TRUE='#'
14705 USE_VSCAN_PROFILES_FALSE=
14706 fi
14707
14708
14709 ac_config_files="$ac_config_files Makefile services/Makefile services/virus_scan/Makefile services/url_check/Makefile services/content_filtering/Makefile modules/Makefile"
14710
14711 cat >confcache <<\_ACEOF
14712 # This file is a shell script that caches the results of configure
14713 # tests run on this system so they can be shared between configure
14714 # scripts and configure runs, see configure's option --config-cache.
14715 # It is not useful on other systems. If it contains results you don't
14716 # want to keep, you may remove or edit it.
14717 #
14718 # config.status only pays attention to the cache file if you give it
14719 # the --recheck option to rerun configure.
14720 #
14721 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14722 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14723 # following values.
14724
14725 _ACEOF
14726
14727 # The following way of writing the cache mishandles newlines in values,
14728 # but we know of no workaround that is simple, portable, and efficient.
14729 # So, we kill variables containing newlines.
14730 # Ultrix sh set writes to stderr and can't be redirected directly,
14731 # and sets the high bit in the cache file unless we assign to the vars.
14732 (
14733 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14734 eval ac_val=\$$ac_var
14735 case $ac_val in #(
14736 *${as_nl}*)
14737 case $ac_var in #(
14738 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14739 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14740 esac
14741 case $ac_var in #(
14742 _ | IFS | as_nl) ;; #(
14743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14744 *) { eval $ac_var=; unset $ac_var;} ;;
14745 esac ;;
14746 esac
14747 done
14748
14749 (set) 2>&1 |
14750 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14751 *${as_nl}ac_space=\ *)
14752 # `set' does not quote correctly, so add quotes: double-quote
14753 # substitution turns \\\\ into \\, and sed turns \\ into \.
14754 sed -n \
14755 "s/'/'\\\\''/g;
14756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14757 ;; #(
14758 *)
14759 # `set' quotes correctly as required by POSIX, so do not add quotes.
14760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14761 ;;
14762 esac |
14763 sort
14764 ) |
14765 sed '
14766 /^ac_cv_env_/b end
14767 t clear
14768 :clear
14769 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14770 t end
14771 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14772 :end' >>confcache
14773 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14774 if test -w "$cache_file"; then
14775 if test "x$cache_file" != "x/dev/null"; then
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14777 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14778 if test ! -f "$cache_file" || test -h "$cache_file"; then
14779 cat confcache >"$cache_file"
14780 else
14781 case $cache_file in #(
14782 */* | ?:*)
14783 mv -f confcache "$cache_file"$$ &&
14784 mv -f "$cache_file"$$ "$cache_file" ;; #(
14785 *)
14786 mv -f confcache "$cache_file" ;;
14787 esac
14788 fi
14789 fi
14790 else
14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14792 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14793 fi
14794 fi
14795 rm -f confcache
14796
14797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14798 # Let make expand exec_prefix.
14799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14800
14801 DEFS=-DHAVE_CONFIG_H
14802
14803 ac_libobjs=
14804 ac_ltlibobjs=
14805 U=
14806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14807 # 1. Remove the extension, and $U if already installed.
14808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14809 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14811 # will be set to the directory where LIBOBJS objects are built.
14812 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14813 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14814 done
14815 LIBOBJS=$ac_libobjs
14816
14817 LTLIBOBJS=$ac_ltlibobjs
14818
14819
14820 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14821 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14823 fi
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14825 printf %s "checking that generated files are newer than configure... " >&6; }
14826 if test -n "$am_sleep_pid"; then
14827 # Hide warnings about reused PIDs.
14828 wait $am_sleep_pid 2>/dev/null
14829 fi
14830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14831 printf "%s\n" "done" >&6; }
14832 if test -n "$EXEEXT"; then
14833 am__EXEEXT_TRUE=
14834 am__EXEEXT_FALSE='#'
14835 else
14836 am__EXEEXT_TRUE='#'
14837 am__EXEEXT_FALSE=
14838 fi
14839
14840 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14841 as_fn_error $? "conditional \"AMDEP\" was never defined.
14842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14843 fi
14844 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14845 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14847 fi
14848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14849 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14851 fi
14852
14853 if test -z "${CICAPMODULESDIR_TRUE}" && test -z "${CICAPMODULESDIR_FALSE}"; then
14854 as_fn_error $? "conditional \"CICAPMODULESDIR\" was never defined.
14855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14856 fi
14857 if test -z "${USECLAMAV_TRUE}" && test -z "${USECLAMAV_FALSE}"; then
14858 as_fn_error $? "conditional \"USECLAMAV\" was never defined.
14859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14860 fi
14861 if test -z "${USEBDB_TRUE}" && test -z "${USEBDB_FALSE}"; then
14862 as_fn_error $? "conditional \"USEBDB\" was never defined.
14863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14864 fi
14865 if test -z "${USE_VSCAN_PROFILES_TRUE}" && test -z "${USE_VSCAN_PROFILES_FALSE}"; then
14866 as_fn_error $? "conditional \"USE_VSCAN_PROFILES\" was never defined.
14867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14868 fi
14869
14870 : "${CONFIG_STATUS=./config.status}"
14871 ac_write_fail=0
14872 ac_clean_files_save=$ac_clean_files
14873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14875 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14876 as_write_fail=0
14877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14878 #! $SHELL
14879 # Generated by $as_me.
14880 # Run this file to recreate the current configuration.
14881 # Compiler output produced by configure, useful for debugging
14882 # configure, is in config.log if it exists.
14883
14884 debug=false
14885 ac_cs_recheck=false
14886 ac_cs_silent=false
14887
14888 SHELL=\${CONFIG_SHELL-$SHELL}
14889 export SHELL
14890 _ASEOF
14891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14892 ## -------------------- ##
14893 ## M4sh Initialization. ##
14894 ## -------------------- ##
14895
14896 # Be more Bourne compatible
14897 DUALCASE=1; export DUALCASE # for MKS sh
14898 as_nop=:
14899 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14900 then :
14901 emulate sh
14902 NULLCMD=:
14903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14904 # is contrary to our usage. Disable this feature.
14905 alias -g '${1+"$@"}'='"$@"'
14906 setopt NO_GLOB_SUBST
14907 else $as_nop
14908 case `(set -o) 2>/dev/null` in #(
14909 *posix*) :
14910 set -o posix ;; #(
14911 *) :
14912 ;;
14913 esac
14914 fi
14915
14916
14917
14918 # Reset variables that may have inherited troublesome values from
14919 # the environment.
14920
14921 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14922 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14923 # side effect of setting IFS to empty, thus disabling word splitting.)
14924 # Quoting is to prevent editors from complaining about space-tab.
14925 as_nl='
14926 '
14927 export as_nl
14928 IFS=" "" $as_nl"
14929
14930 PS1='$ '
14931 PS2='> '
14932 PS4='+ '
14933
14934 # Ensure predictable behavior from utilities with locale-dependent output.
14935 LC_ALL=C
14936 export LC_ALL
14937 LANGUAGE=C
14938 export LANGUAGE
14939
14940 # We cannot yet rely on "unset" to work, but we need these variables
14941 # to be unset--not just set to an empty or harmless value--now, to
14942 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14943 # also avoids known problems related to "unset" and subshell syntax
14944 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14945 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14946 do eval test \${$as_var+y} \
14947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14948 done
14949
14950 # Ensure that fds 0, 1, and 2 are open.
14951 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14952 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14953 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14954
14955 # The user is always right.
14956 if ${PATH_SEPARATOR+false} :; then
14957 PATH_SEPARATOR=:
14958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14960 PATH_SEPARATOR=';'
14961 }
14962 fi
14963
14964
14965 # Find who we are. Look in the path if we contain no directory separator.
14966 as_myself=
14967 case $0 in #((
14968 *[\\/]* ) as_myself=$0 ;;
14969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970 for as_dir in $PATH
14971 do
14972 IFS=$as_save_IFS
14973 case $as_dir in #(((
14974 '') as_dir=./ ;;
14975 */) ;;
14976 *) as_dir=$as_dir/ ;;
14977 esac
14978 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14979 done
14980 IFS=$as_save_IFS
14981
14982 ;;
14983 esac
14984 # We did not find ourselves, most probably we were run as `sh COMMAND'
14985 # in which case we are not to be found in the path.
14986 if test "x$as_myself" = x; then
14987 as_myself=$0
14988 fi
14989 if test ! -f "$as_myself"; then
14990 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14991 exit 1
14992 fi
14993
14994
14995
14996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14997 # ----------------------------------------
14998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15000 # script with STATUS, using 1 if that was 0.
15001 as_fn_error ()
15002 {
15003 as_status=$1; test $as_status -eq 0 && as_status=1
15004 if test "$4"; then
15005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15007 fi
15008 printf "%s\n" "$as_me: error: $2" >&2
15009 as_fn_exit $as_status
15010 } # as_fn_error
15011
15012
15013
15014 # as_fn_set_status STATUS
15015 # -----------------------
15016 # Set $? to STATUS, without forking.
15017 as_fn_set_status ()
15018 {
15019 return $1
15020 } # as_fn_set_status
15021
15022 # as_fn_exit STATUS
15023 # -----------------
15024 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15025 as_fn_exit ()
15026 {
15027 set +e
15028 as_fn_set_status $1
15029 exit $1
15030 } # as_fn_exit
15031
15032 # as_fn_unset VAR
15033 # ---------------
15034 # Portably unset VAR.
15035 as_fn_unset ()
15036 {
15037 { eval $1=; unset $1;}
15038 }
15039 as_unset=as_fn_unset
15040
15041 # as_fn_append VAR VALUE
15042 # ----------------------
15043 # Append the text in VALUE to the end of the definition contained in VAR. Take
15044 # advantage of any shell optimizations that allow amortized linear growth over
15045 # repeated appends, instead of the typical quadratic growth present in naive
15046 # implementations.
15047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15048 then :
15049 eval 'as_fn_append ()
15050 {
15051 eval $1+=\$2
15052 }'
15053 else $as_nop
15054 as_fn_append ()
15055 {
15056 eval $1=\$$1\$2
15057 }
15058 fi # as_fn_append
15059
15060 # as_fn_arith ARG...
15061 # ------------------
15062 # Perform arithmetic evaluation on the ARGs, and store the result in the
15063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15064 # must be portable across $(()) and expr.
15065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15066 then :
15067 eval 'as_fn_arith ()
15068 {
15069 as_val=$(( $* ))
15070 }'
15071 else $as_nop
15072 as_fn_arith ()
15073 {
15074 as_val=`expr "$@" || test $? -eq 1`
15075 }
15076 fi # as_fn_arith
15077
15078
15079 if expr a : '\(a\)' >/dev/null 2>&1 &&
15080 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15081 as_expr=expr
15082 else
15083 as_expr=false
15084 fi
15085
15086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15087 as_basename=basename
15088 else
15089 as_basename=false
15090 fi
15091
15092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15093 as_dirname=dirname
15094 else
15095 as_dirname=false
15096 fi
15097
15098 as_me=`$as_basename -- "$0" ||
15099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15100 X"$0" : 'X\(//\)$' \| \
15101 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15102 printf "%s\n" X/"$0" |
15103 sed '/^.*\/\([^/][^/]*\)\/*$/{
15104 s//\1/
15105 q
15106 }
15107 /^X\/\(\/\/\)$/{
15108 s//\1/
15109 q
15110 }
15111 /^X\/\(\/\).*/{
15112 s//\1/
15113 q
15114 }
15115 s/.*/./; q'`
15116
15117 # Avoid depending upon Character Ranges.
15118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15121 as_cr_digits='0123456789'
15122 as_cr_alnum=$as_cr_Letters$as_cr_digits
15123
15124
15125 # Determine whether it's possible to make 'echo' print without a newline.
15126 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15127 # for compatibility with existing Makefiles.
15128 ECHO_C= ECHO_N= ECHO_T=
15129 case `echo -n x` in #(((((
15130 -n*)
15131 case `echo 'xy\c'` in
15132 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15133 xy) ECHO_C='\c';;
15134 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15135 ECHO_T=' ';;
15136 esac;;
15137 *)
15138 ECHO_N='-n';;
15139 esac
15140
15141 # For backward compatibility with old third-party macros, we provide
15142 # the shell variables $as_echo and $as_echo_n. New code should use
15143 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15144 as_echo='printf %s\n'
15145 as_echo_n='printf %s'
15146
15147 rm -f conf$$ conf$$.exe conf$$.file
15148 if test -d conf$$.dir; then
15149 rm -f conf$$.dir/conf$$.file
15150 else
15151 rm -f conf$$.dir
15152 mkdir conf$$.dir 2>/dev/null
15153 fi
15154 if (echo >conf$$.file) 2>/dev/null; then
15155 if ln -s conf$$.file conf$$ 2>/dev/null; then
15156 as_ln_s='ln -s'
15157 # ... but there are two gotchas:
15158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15160 # In both cases, we have to default to `cp -pR'.
15161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15162 as_ln_s='cp -pR'
15163 elif ln conf$$.file conf$$ 2>/dev/null; then
15164 as_ln_s=ln
15165 else
15166 as_ln_s='cp -pR'
15167 fi
15168 else
15169 as_ln_s='cp -pR'
15170 fi
15171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15172 rmdir conf$$.dir 2>/dev/null
15173
15174
15175 # as_fn_mkdir_p
15176 # -------------
15177 # Create "$as_dir" as a directory, including parents if necessary.
15178 as_fn_mkdir_p ()
15179 {
15180
15181 case $as_dir in #(
15182 -*) as_dir=./$as_dir;;
15183 esac
15184 test -d "$as_dir" || eval $as_mkdir_p || {
15185 as_dirs=
15186 while :; do
15187 case $as_dir in #(
15188 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15189 *) as_qdir=$as_dir;;
15190 esac
15191 as_dirs="'$as_qdir' $as_dirs"
15192 as_dir=`$as_dirname -- "$as_dir" ||
15193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15194 X"$as_dir" : 'X\(//\)[^/]' \| \
15195 X"$as_dir" : 'X\(//\)$' \| \
15196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15197 printf "%s\n" X"$as_dir" |
15198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15199 s//\1/
15200 q
15201 }
15202 /^X\(\/\/\)[^/].*/{
15203 s//\1/
15204 q
15205 }
15206 /^X\(\/\/\)$/{
15207 s//\1/
15208 q
15209 }
15210 /^X\(\/\).*/{
15211 s//\1/
15212 q
15213 }
15214 s/.*/./; q'`
15215 test -d "$as_dir" && break
15216 done
15217 test -z "$as_dirs" || eval "mkdir $as_dirs"
15218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15219
15220
15221 } # as_fn_mkdir_p
15222 if mkdir -p . 2>/dev/null; then
15223 as_mkdir_p='mkdir -p "$as_dir"'
15224 else
15225 test -d ./-p && rmdir ./-p
15226 as_mkdir_p=false
15227 fi
15228
15229
15230 # as_fn_executable_p FILE
15231 # -----------------------
15232 # Test if FILE is an executable regular file.
15233 as_fn_executable_p ()
15234 {
15235 test -f "$1" && test -x "$1"
15236 } # as_fn_executable_p
15237 as_test_x='test -x'
15238 as_executable_p=as_fn_executable_p
15239
15240 # Sed expression to map a string onto a valid CPP name.
15241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15242
15243 # Sed expression to map a string onto a valid variable name.
15244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15245
15246
15247 exec 6>&1
15248 ## ----------------------------------- ##
15249 ## Main body of $CONFIG_STATUS script. ##
15250 ## ----------------------------------- ##
15251 _ASEOF
15252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15253
15254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15255 # Save the log message, to keep $0 and so on meaningful, and to
15256 # report actual input values of CONFIG_FILES etc. instead of their
15257 # values after options handling.
15258 ac_log="
15259 This file was extended by c_icap_modules $as_me 0.5.7, which was
15260 generated by GNU Autoconf 2.71. Invocation command line was
15261
15262 CONFIG_FILES = $CONFIG_FILES
15263 CONFIG_HEADERS = $CONFIG_HEADERS
15264 CONFIG_LINKS = $CONFIG_LINKS
15265 CONFIG_COMMANDS = $CONFIG_COMMANDS
15266 $ $0 $@
15267
15268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15269 "
15270
15271 _ACEOF
15272
15273 case $ac_config_files in *"
15274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15275 esac
15276
15277 case $ac_config_headers in *"
15278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15279 esac
15280
15281
15282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15283 # Files that config.status was made for.
15284 config_files="$ac_config_files"
15285 config_headers="$ac_config_headers"
15286 config_commands="$ac_config_commands"
15287
15288 _ACEOF
15289
15290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15291 ac_cs_usage="\
15292 \`$as_me' instantiates files and other configuration actions
15293 from templates according to the current configuration. Unless the files
15294 and actions are specified as TAGs, all are instantiated by default.
15295
15296 Usage: $0 [OPTION]... [TAG]...
15297
15298 -h, --help print this help, then exit
15299 -V, --version print version number and configuration settings, then exit
15300 --config print configuration, then exit
15301 -q, --quiet, --silent
15302 do not print progress messages
15303 -d, --debug don't remove temporary files
15304 --recheck update $as_me by reconfiguring in the same conditions
15305 --file=FILE[:TEMPLATE]
15306 instantiate the configuration file FILE
15307 --header=FILE[:TEMPLATE]
15308 instantiate the configuration header FILE
15309
15310 Configuration files:
15311 $config_files
15312
15313 Configuration headers:
15314 $config_headers
15315
15316 Configuration commands:
15317 $config_commands
15318
15319 Report bugs to the package provider."
15320
15321 _ACEOF
15322 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15323 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15325 ac_cs_config='$ac_cs_config_escaped'
15326 ac_cs_version="\\
15327 c_icap_modules config.status 0.5.7
15328 configured by $0, generated by GNU Autoconf 2.71,
15329 with options \\"\$ac_cs_config\\"
15330
15331 Copyright (C) 2021 Free Software Foundation, Inc.
15332 This config.status script is free software; the Free Software Foundation
15333 gives unlimited permission to copy, distribute and modify it."
15334
15335 ac_pwd='$ac_pwd'
15336 srcdir='$srcdir'
15337 INSTALL='$INSTALL'
15338 MKDIR_P='$MKDIR_P'
15339 AWK='$AWK'
15340 test -n "\$AWK" || AWK=awk
15341 _ACEOF
15342
15343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15344 # The default lists apply if the user does not specify any file.
15345 ac_need_defaults=:
15346 while test $# != 0
15347 do
15348 case $1 in
15349 --*=?*)
15350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15352 ac_shift=:
15353 ;;
15354 --*=)
15355 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15356 ac_optarg=
15357 ac_shift=:
15358 ;;
15359 *)
15360 ac_option=$1
15361 ac_optarg=$2
15362 ac_shift=shift
15363 ;;
15364 esac
15365
15366 case $ac_option in
15367 # Handling of the options.
15368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15369 ac_cs_recheck=: ;;
15370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15371 printf "%s\n" "$ac_cs_version"; exit ;;
15372 --config | --confi | --conf | --con | --co | --c )
15373 printf "%s\n" "$ac_cs_config"; exit ;;
15374 --debug | --debu | --deb | --de | --d | -d )
15375 debug=: ;;
15376 --file | --fil | --fi | --f )
15377 $ac_shift
15378 case $ac_optarg in
15379 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15380 '') as_fn_error $? "missing file argument" ;;
15381 esac
15382 as_fn_append CONFIG_FILES " '$ac_optarg'"
15383 ac_need_defaults=false;;
15384 --header | --heade | --head | --hea )
15385 $ac_shift
15386 case $ac_optarg in
15387 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15388 esac
15389 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15390 ac_need_defaults=false;;
15391 --he | --h)
15392 # Conflict between --help and --header
15393 as_fn_error $? "ambiguous option: \`$1'
15394 Try \`$0 --help' for more information.";;
15395 --help | --hel | -h )
15396 printf "%s\n" "$ac_cs_usage"; exit ;;
15397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15399 ac_cs_silent=: ;;
15400
15401 # This is an error.
15402 -*) as_fn_error $? "unrecognized option: \`$1'
15403 Try \`$0 --help' for more information." ;;
15404
15405 *) as_fn_append ac_config_targets " $1"
15406 ac_need_defaults=false ;;
15407
15408 esac
15409 shift
15410 done
15411
15412 ac_configure_extra_args=
15413
15414 if $ac_cs_silent; then
15415 exec 6>/dev/null
15416 ac_configure_extra_args="$ac_configure_extra_args --silent"
15417 fi
15418
15419 _ACEOF
15420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15421 if \$ac_cs_recheck; then
15422 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15423 shift
15424 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15425 CONFIG_SHELL='$SHELL'
15426 export CONFIG_SHELL
15427 exec "\$@"
15428 fi
15429
15430 _ACEOF
15431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432 exec 5>>config.log
15433 {
15434 echo
15435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15436 ## Running $as_me. ##
15437 _ASBOX
15438 printf "%s\n" "$ac_log"
15439 } >&5
15440
15441 _ACEOF
15442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443 #
15444 # INIT-COMMANDS
15445 #
15446 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15447
15448
15449 # The HP-UX ksh and POSIX shell print the target directory to stdout
15450 # if CDPATH is set.
15451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15452
15453 sed_quote_subst='$sed_quote_subst'
15454 double_quote_subst='$double_quote_subst'
15455 delay_variable_subst='$delay_variable_subst'
15456 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15457 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15458 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15459 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15460 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15461 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15462 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15463 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15464 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15465 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15466 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15467 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15468 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15469 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15470 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15471 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15472 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15473 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15474 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15475 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15476 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15477 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15478 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15479 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15480 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15481 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15482 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15483 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15484 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15485 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15486 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15487 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15488 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15489 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15493 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15494 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15495 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15496 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15497 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15498 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15499 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15500 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15501 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15502 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15503 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15504 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15505 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15506 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15507 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15508 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15509 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15510 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15512 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15513 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15514 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"`'
15515 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15516 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15517 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15518 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15519 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15520 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15521 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15522 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15523 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15524 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15525 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15526 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15527 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15528 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15529 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15530 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15531 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15532 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15533 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15534 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15535 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15536 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15537 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15538 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15539 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15540 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15541 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15542 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15543 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15544 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15545 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15546 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15547 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15548 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15549 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15550 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15551 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15552 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15553 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15554 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15555 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15556 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15557 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15558 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15559 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15560 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15561 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15562 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15563 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15564 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15565 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15566 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15567 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15568 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15569 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15570 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15571 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15572 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15573 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15574 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15575 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15576 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15577 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15578 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15579 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15580 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15581 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15582 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15583 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15584 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15585 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15586 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15587 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15588 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15589 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15590 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15591
15592 LTCC='$LTCC'
15593 LTCFLAGS='$LTCFLAGS'
15594 compiler='$compiler_DEFAULT'
15595
15596 # A function that is used when there is no print builtin or printf.
15597 func_fallback_echo ()
15598 {
15599 eval 'cat <<_LTECHO_EOF
15600 \$1
15601 _LTECHO_EOF'
15602 }
15603
15604 # Quote evaled strings.
15605 for var in SHELL \
15606 ECHO \
15607 PATH_SEPARATOR \
15608 SED \
15609 GREP \
15610 EGREP \
15611 FGREP \
15612 LD \
15613 NM \
15614 LN_S \
15615 lt_SP2NL \
15616 lt_NL2SP \
15617 reload_flag \
15618 OBJDUMP \
15619 deplibs_check_method \
15620 file_magic_cmd \
15621 file_magic_glob \
15622 want_nocaseglob \
15623 DLLTOOL \
15624 sharedlib_from_linklib_cmd \
15625 AR \
15626 AR_FLAGS \
15627 archiver_list_spec \
15628 STRIP \
15629 RANLIB \
15630 CC \
15631 CFLAGS \
15632 compiler \
15633 lt_cv_sys_global_symbol_pipe \
15634 lt_cv_sys_global_symbol_to_cdecl \
15635 lt_cv_sys_global_symbol_to_import \
15636 lt_cv_sys_global_symbol_to_c_name_address \
15637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15638 lt_cv_nm_interface \
15639 nm_file_list_spec \
15640 lt_cv_truncate_bin \
15641 lt_prog_compiler_no_builtin_flag \
15642 lt_prog_compiler_pic \
15643 lt_prog_compiler_wl \
15644 lt_prog_compiler_static \
15645 lt_cv_prog_compiler_c_o \
15646 need_locks \
15647 MANIFEST_TOOL \
15648 DSYMUTIL \
15649 NMEDIT \
15650 LIPO \
15651 OTOOL \
15652 OTOOL64 \
15653 shrext_cmds \
15654 export_dynamic_flag_spec \
15655 whole_archive_flag_spec \
15656 compiler_needs_object \
15657 with_gnu_ld \
15658 allow_undefined_flag \
15659 no_undefined_flag \
15660 hardcode_libdir_flag_spec \
15661 hardcode_libdir_separator \
15662 exclude_expsyms \
15663 include_expsyms \
15664 file_list_spec \
15665 variables_saved_for_relink \
15666 libname_spec \
15667 library_names_spec \
15668 soname_spec \
15669 install_override_mode \
15670 finish_eval \
15671 old_striplib \
15672 striplib; do
15673 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15674 *[\\\\\\\`\\"\\\$]*)
15675 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15676 ;;
15677 *)
15678 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15679 ;;
15680 esac
15681 done
15682
15683 # Double-quote double-evaled strings.
15684 for var in reload_cmds \
15685 old_postinstall_cmds \
15686 old_postuninstall_cmds \
15687 old_archive_cmds \
15688 extract_expsyms_cmds \
15689 old_archive_from_new_cmds \
15690 old_archive_from_expsyms_cmds \
15691 archive_cmds \
15692 archive_expsym_cmds \
15693 module_cmds \
15694 module_expsym_cmds \
15695 export_symbols_cmds \
15696 prelink_cmds \
15697 postlink_cmds \
15698 postinstall_cmds \
15699 postuninstall_cmds \
15700 finish_cmds \
15701 sys_lib_search_path_spec \
15702 configure_time_dlsearch_path \
15703 configure_time_lt_sys_library_path; do
15704 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15705 *[\\\\\\\`\\"\\\$]*)
15706 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15707 ;;
15708 *)
15709 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15710 ;;
15711 esac
15712 done
15713
15714 ac_aux_dir='$ac_aux_dir'
15715
15716 # See if we are running on zsh, and set the options that allow our
15717 # commands through without removal of \ escapes INIT.
15718 if test -n "\${ZSH_VERSION+set}"; then
15719 setopt NO_GLOB_SUBST
15720 fi
15721
15722
15723 PACKAGE='$PACKAGE'
15724 VERSION='$VERSION'
15725 RM='$RM'
15726 ofile='$ofile'
15727
15728
15729
15730
15731 _ACEOF
15732
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734
15735 # Handling of arguments.
15736 for ac_config_target in $ac_config_targets
15737 do
15738 case $ac_config_target in
15739 "autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
15740 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15741 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15742 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15743 "services/Makefile") CONFIG_FILES="$CONFIG_FILES services/Makefile" ;;
15744 "services/virus_scan/Makefile") CONFIG_FILES="$CONFIG_FILES services/virus_scan/Makefile" ;;
15745 "services/url_check/Makefile") CONFIG_FILES="$CONFIG_FILES services/url_check/Makefile" ;;
15746 "services/content_filtering/Makefile") CONFIG_FILES="$CONFIG_FILES services/content_filtering/Makefile" ;;
15747 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15748
15749 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15750 esac
15751 done
15752
15753
15754 # If the user did not use the arguments to specify the items to instantiate,
15755 # then the envvar interface is used. Set only those that are not.
15756 # We use the long form for the default assignment because of an extremely
15757 # bizarre bug on SunOS 4.1.3.
15758 if $ac_need_defaults; then
15759 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15760 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15761 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15762 fi
15763
15764 # Have a temporary directory for convenience. Make it in the build tree
15765 # simply because there is no reason against having it here, and in addition,
15766 # creating and moving files from /tmp can sometimes cause problems.
15767 # Hook for its removal unless debugging.
15768 # Note that there is a small window in which the directory will not be cleaned:
15769 # after its creation but before its name has been assigned to `$tmp'.
15770 $debug ||
15771 {
15772 tmp= ac_tmp=
15773 trap 'exit_status=$?
15774 : "${ac_tmp:=$tmp}"
15775 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15776 ' 0
15777 trap 'as_fn_exit 1' 1 2 13 15
15778 }
15779 # Create a (secure) tmp directory for tmp files.
15780
15781 {
15782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15783 test -d "$tmp"
15784 } ||
15785 {
15786 tmp=./conf$$-$RANDOM
15787 (umask 077 && mkdir "$tmp")
15788 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15789 ac_tmp=$tmp
15790
15791 # Set up the scripts for CONFIG_FILES section.
15792 # No need to generate them if there are no CONFIG_FILES.
15793 # This happens for instance with `./config.status config.h'.
15794 if test -n "$CONFIG_FILES"; then
15795
15796
15797 ac_cr=`echo X | tr X '\015'`
15798 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15799 # But we know of no other shell where ac_cr would be empty at this
15800 # point, so we can use a bashism as a fallback.
15801 if test "x$ac_cr" = x; then
15802 eval ac_cr=\$\'\\r\'
15803 fi
15804 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15805 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15806 ac_cs_awk_cr='\\r'
15807 else
15808 ac_cs_awk_cr=$ac_cr
15809 fi
15810
15811 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15812 _ACEOF
15813
15814
15815 {
15816 echo "cat >conf$$subs.awk <<_ACEOF" &&
15817 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15818 echo "_ACEOF"
15819 } >conf$$subs.sh ||
15820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15822 ac_delim='%!_!# '
15823 for ac_last_try in false false false false false :; do
15824 . ./conf$$subs.sh ||
15825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15826
15827 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15828 if test $ac_delim_n = $ac_delim_num; then
15829 break
15830 elif $ac_last_try; then
15831 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15832 else
15833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15834 fi
15835 done
15836 rm -f conf$$subs.sh
15837
15838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15840 _ACEOF
15841 sed -n '
15842 h
15843 s/^/S["/; s/!.*/"]=/
15844 p
15845 g
15846 s/^[^!]*!//
15847 :repl
15848 t repl
15849 s/'"$ac_delim"'$//
15850 t delim
15851 :nl
15852 h
15853 s/\(.\{148\}\)..*/\1/
15854 t more1
15855 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15856 p
15857 n
15858 b repl
15859 :more1
15860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15861 p
15862 g
15863 s/.\{148\}//
15864 t nl
15865 :delim
15866 h
15867 s/\(.\{148\}\)..*/\1/
15868 t more2
15869 s/["\\]/\\&/g; s/^/"/; s/$/"/
15870 p
15871 b
15872 :more2
15873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15874 p
15875 g
15876 s/.\{148\}//
15877 t delim
15878 ' <conf$$subs.awk | sed '
15879 /^[^""]/{
15880 N
15881 s/\n//
15882 }
15883 ' >>$CONFIG_STATUS || ac_write_fail=1
15884 rm -f conf$$subs.awk
15885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15886 _ACAWK
15887 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15888 for (key in S) S_is_set[key] = 1
15889 FS = ""
15890
15891 }
15892 {
15893 line = $ 0
15894 nfields = split(line, field, "@")
15895 substed = 0
15896 len = length(field[1])
15897 for (i = 2; i < nfields; i++) {
15898 key = field[i]
15899 keylen = length(key)
15900 if (S_is_set[key]) {
15901 value = S[key]
15902 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15903 len += length(value) + length(field[++i])
15904 substed = 1
15905 } else
15906 len += 1 + keylen
15907 }
15908
15909 print line
15910 }
15911
15912 _ACAWK
15913 _ACEOF
15914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15916 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15917 else
15918 cat
15919 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15920 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15921 _ACEOF
15922
15923 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15924 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15925 # trailing colons and then remove the whole line if VPATH becomes empty
15926 # (actually we leave an empty line to preserve line numbers).
15927 if test "x$srcdir" = x.; then
15928 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15929 h
15930 s///
15931 s/^/:/
15932 s/[ ]*$/:/
15933 s/:\$(srcdir):/:/g
15934 s/:\${srcdir}:/:/g
15935 s/:@srcdir@:/:/g
15936 s/^:*//
15937 s/:*$//
15938 x
15939 s/\(=[ ]*\).*/\1/
15940 G
15941 s/\n//
15942 s/^[^=]*=[ ]*$//
15943 }'
15944 fi
15945
15946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947 fi # test -n "$CONFIG_FILES"
15948
15949 # Set up the scripts for CONFIG_HEADERS section.
15950 # No need to generate them if there are no CONFIG_HEADERS.
15951 # This happens for instance with `./config.status Makefile'.
15952 if test -n "$CONFIG_HEADERS"; then
15953 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15954 BEGIN {
15955 _ACEOF
15956
15957 # Transform confdefs.h into an awk script `defines.awk', embedded as
15958 # here-document in config.status, that substitutes the proper values into
15959 # config.h.in to produce config.h.
15960
15961 # Create a delimiter string that does not exist in confdefs.h, to ease
15962 # handling of long lines.
15963 ac_delim='%!_!# '
15964 for ac_last_try in false false :; do
15965 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15966 if test -z "$ac_tt"; then
15967 break
15968 elif $ac_last_try; then
15969 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15970 else
15971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15972 fi
15973 done
15974
15975 # For the awk script, D is an array of macro values keyed by name,
15976 # likewise P contains macro parameters if any. Preserve backslash
15977 # newline sequences.
15978
15979 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15980 sed -n '
15981 s/.\{148\}/&'"$ac_delim"'/g
15982 t rset
15983 :rset
15984 s/^[ ]*#[ ]*define[ ][ ]*/ /
15985 t def
15986 d
15987 :def
15988 s/\\$//
15989 t bsnl
15990 s/["\\]/\\&/g
15991 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15992 D["\1"]=" \3"/p
15993 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15994 d
15995 :bsnl
15996 s/["\\]/\\&/g
15997 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15998 D["\1"]=" \3\\\\\\n"\\/p
15999 t cont
16000 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16001 t cont
16002 d
16003 :cont
16004 n
16005 s/.\{148\}/&'"$ac_delim"'/g
16006 t clear
16007 :clear
16008 s/\\$//
16009 t bsnlc
16010 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16011 d
16012 :bsnlc
16013 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16014 b cont
16015 ' <confdefs.h | sed '
16016 s/'"$ac_delim"'/"\\\
16017 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16018
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 for (key in D) D_is_set[key] = 1
16021 FS = ""
16022 }
16023 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16024 line = \$ 0
16025 split(line, arg, " ")
16026 if (arg[1] == "#") {
16027 defundef = arg[2]
16028 mac1 = arg[3]
16029 } else {
16030 defundef = substr(arg[1], 2)
16031 mac1 = arg[2]
16032 }
16033 split(mac1, mac2, "(") #)
16034 macro = mac2[1]
16035 prefix = substr(line, 1, index(line, defundef) - 1)
16036 if (D_is_set[macro]) {
16037 # Preserve the white space surrounding the "#".
16038 print prefix "define", macro P[macro] D[macro]
16039 next
16040 } else {
16041 # Replace #undef with comments. This is necessary, for example,
16042 # in the case of _POSIX_SOURCE, which is predefined and required
16043 # on some systems where configure will not decide to define it.
16044 if (defundef == "undef") {
16045 print "/*", prefix defundef, macro, "*/"
16046 next
16047 }
16048 }
16049 }
16050 { print }
16051 _ACAWK
16052 _ACEOF
16053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16054 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16055 fi # test -n "$CONFIG_HEADERS"
16056
16057
16058 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16059 shift
16060 for ac_tag
16061 do
16062 case $ac_tag in
16063 :[FHLC]) ac_mode=$ac_tag; continue;;
16064 esac
16065 case $ac_mode$ac_tag in
16066 :[FHL]*:*);;
16067 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16068 :[FH]-) ac_tag=-:-;;
16069 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16070 esac
16071 ac_save_IFS=$IFS
16072 IFS=:
16073 set x $ac_tag
16074 IFS=$ac_save_IFS
16075 shift
16076 ac_file=$1
16077 shift
16078
16079 case $ac_mode in
16080 :L) ac_source=$1;;
16081 :[FH])
16082 ac_file_inputs=
16083 for ac_f
16084 do
16085 case $ac_f in
16086 -) ac_f="$ac_tmp/stdin";;
16087 *) # Look for the file first in the build tree, then in the source tree
16088 # (if the path is not absolute). The absolute path cannot be DOS-style,
16089 # because $ac_f cannot contain `:'.
16090 test -f "$ac_f" ||
16091 case $ac_f in
16092 [\\/$]*) false;;
16093 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16094 esac ||
16095 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16096 esac
16097 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16098 as_fn_append ac_file_inputs " '$ac_f'"
16099 done
16100
16101 # Let's still pretend it is `configure' which instantiates (i.e., don't
16102 # use $as_me), people would be surprised to read:
16103 # /* config.h. Generated by config.status. */
16104 configure_input='Generated from '`
16105 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16106 `' by configure.'
16107 if test x"$ac_file" != x-; then
16108 configure_input="$ac_file. $configure_input"
16109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16110 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16111 fi
16112 # Neutralize special characters interpreted by sed in replacement strings.
16113 case $configure_input in #(
16114 *\&* | *\|* | *\\* )
16115 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16116 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16117 *) ac_sed_conf_input=$configure_input;;
16118 esac
16119
16120 case $ac_tag in
16121 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16123 esac
16124 ;;
16125 esac
16126
16127 ac_dir=`$as_dirname -- "$ac_file" ||
16128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16129 X"$ac_file" : 'X\(//\)[^/]' \| \
16130 X"$ac_file" : 'X\(//\)$' \| \
16131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16132 printf "%s\n" X"$ac_file" |
16133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16134 s//\1/
16135 q
16136 }
16137 /^X\(\/\/\)[^/].*/{
16138 s//\1/
16139 q
16140 }
16141 /^X\(\/\/\)$/{
16142 s//\1/
16143 q
16144 }
16145 /^X\(\/\).*/{
16146 s//\1/
16147 q
16148 }
16149 s/.*/./; q'`
16150 as_dir="$ac_dir"; as_fn_mkdir_p
16151 ac_builddir=.
16152
16153 case "$ac_dir" in
16154 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16155 *)
16156 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16157 # A ".." for each directory in $ac_dir_suffix.
16158 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16159 case $ac_top_builddir_sub in
16160 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16161 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16162 esac ;;
16163 esac
16164 ac_abs_top_builddir=$ac_pwd
16165 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16166 # for backward compatibility:
16167 ac_top_builddir=$ac_top_build_prefix
16168
16169 case $srcdir in
16170 .) # We are building in place.
16171 ac_srcdir=.
16172 ac_top_srcdir=$ac_top_builddir_sub
16173 ac_abs_top_srcdir=$ac_pwd ;;
16174 [\\/]* | ?:[\\/]* ) # Absolute name.
16175 ac_srcdir=$srcdir$ac_dir_suffix;
16176 ac_top_srcdir=$srcdir
16177 ac_abs_top_srcdir=$srcdir ;;
16178 *) # Relative name.
16179 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16180 ac_top_srcdir=$ac_top_build_prefix$srcdir
16181 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16182 esac
16183 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16184
16185
16186 case $ac_mode in
16187 :F)
16188 #
16189 # CONFIG_FILE
16190 #
16191
16192 case $INSTALL in
16193 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16194 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16195 esac
16196 ac_MKDIR_P=$MKDIR_P
16197 case $MKDIR_P in
16198 [\\/$]* | ?:[\\/]* ) ;;
16199 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16200 esac
16201 _ACEOF
16202
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 # If the template does not know about datarootdir, expand it.
16205 # FIXME: This hack should be removed a few years after 2.60.
16206 ac_datarootdir_hack=; ac_datarootdir_seen=
16207 ac_sed_dataroot='
16208 /datarootdir/ {
16209 p
16210 q
16211 }
16212 /@datadir@/p
16213 /@docdir@/p
16214 /@infodir@/p
16215 /@localedir@/p
16216 /@mandir@/p'
16217 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16218 *datarootdir*) ac_datarootdir_seen=yes;;
16219 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16221 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16222 _ACEOF
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 ac_datarootdir_hack='
16225 s&@datadir@&$datadir&g
16226 s&@docdir@&$docdir&g
16227 s&@infodir@&$infodir&g
16228 s&@localedir@&$localedir&g
16229 s&@mandir@&$mandir&g
16230 s&\\\${datarootdir}&$datarootdir&g' ;;
16231 esac
16232 _ACEOF
16233
16234 # Neutralize VPATH when `$srcdir' = `.'.
16235 # Shell code in configure.ac might set extrasub.
16236 # FIXME: do we really want to maintain this feature?
16237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 ac_sed_extra="$ac_vpsub
16239 $extrasub
16240 _ACEOF
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242 :t
16243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16244 s|@configure_input@|$ac_sed_conf_input|;t t
16245 s&@top_builddir@&$ac_top_builddir_sub&;t t
16246 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16247 s&@srcdir@&$ac_srcdir&;t t
16248 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16249 s&@top_srcdir@&$ac_top_srcdir&;t t
16250 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16251 s&@builddir@&$ac_builddir&;t t
16252 s&@abs_builddir@&$ac_abs_builddir&;t t
16253 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16254 s&@INSTALL@&$ac_INSTALL&;t t
16255 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16256 $ac_datarootdir_hack
16257 "
16258 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16259 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16260
16261 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16262 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16264 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16266 which seems to be undefined. Please make sure it is defined" >&5
16267 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16268 which seems to be undefined. Please make sure it is defined" >&2;}
16269
16270 rm -f "$ac_tmp/stdin"
16271 case $ac_file in
16272 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16273 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16274 esac \
16275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16276 ;;
16277 :H)
16278 #
16279 # CONFIG_HEADER
16280 #
16281 if test x"$ac_file" != x-; then
16282 {
16283 printf "%s\n" "/* $configure_input */" >&1 \
16284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16285 } >"$ac_tmp/config.h" \
16286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16287 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16289 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16290 else
16291 rm -f "$ac_file"
16292 mv "$ac_tmp/config.h" "$ac_file" \
16293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16294 fi
16295 else
16296 printf "%s\n" "/* $configure_input */" >&1 \
16297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16298 || as_fn_error $? "could not create -" "$LINENO" 5
16299 fi
16300 # Compute "$ac_file"'s index in $config_headers.
16301 _am_arg="$ac_file"
16302 _am_stamp_count=1
16303 for _am_header in $config_headers :; do
16304 case $_am_header in
16305 $_am_arg | $_am_arg:* )
16306 break ;;
16307 * )
16308 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16309 esac
16310 done
16311 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16312 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16313 X"$_am_arg" : 'X\(//\)[^/]' \| \
16314 X"$_am_arg" : 'X\(//\)$' \| \
16315 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16316 printf "%s\n" X"$_am_arg" |
16317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16318 s//\1/
16319 q
16320 }
16321 /^X\(\/\/\)[^/].*/{
16322 s//\1/
16323 q
16324 }
16325 /^X\(\/\/\)$/{
16326 s//\1/
16327 q
16328 }
16329 /^X\(\/\).*/{
16330 s//\1/
16331 q
16332 }
16333 s/.*/./; q'`/stamp-h$_am_stamp_count
16334 ;;
16335
16336 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16337 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16338 ;;
16339 esac
16340
16341
16342 case $ac_file$ac_mode in
16343 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16344 # Older Autoconf quotes --file arguments for eval, but not when files
16345 # are listed without --file. Let's play safe and only enable the eval
16346 # if we detect the quoting.
16347 # TODO: see whether this extra hack can be removed once we start
16348 # requiring Autoconf 2.70 or later.
16349 case $CONFIG_FILES in #(
16350 *\'*) :
16351 eval set x "$CONFIG_FILES" ;; #(
16352 *) :
16353 set x $CONFIG_FILES ;; #(
16354 *) :
16355 ;;
16356 esac
16357 shift
16358 # Used to flag and report bootstrapping failures.
16359 am_rc=0
16360 for am_mf
16361 do
16362 # Strip MF so we end up with the name of the file.
16363 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16364 # Check whether this is an Automake generated Makefile which includes
16365 # dependency-tracking related rules and includes.
16366 # Grep'ing the whole file directly is not great: AIX grep has a line
16367 # limit of 2048, but all sed's we know have understand at least 4000.
16368 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16369 || continue
16370 am_dirpart=`$as_dirname -- "$am_mf" ||
16371 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16372 X"$am_mf" : 'X\(//\)[^/]' \| \
16373 X"$am_mf" : 'X\(//\)$' \| \
16374 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16375 printf "%s\n" X"$am_mf" |
16376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16377 s//\1/
16378 q
16379 }
16380 /^X\(\/\/\)[^/].*/{
16381 s//\1/
16382 q
16383 }
16384 /^X\(\/\/\)$/{
16385 s//\1/
16386 q
16387 }
16388 /^X\(\/\).*/{
16389 s//\1/
16390 q
16391 }
16392 s/.*/./; q'`
16393 am_filepart=`$as_basename -- "$am_mf" ||
16394 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16395 X"$am_mf" : 'X\(//\)$' \| \
16396 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16397 printf "%s\n" X/"$am_mf" |
16398 sed '/^.*\/\([^/][^/]*\)\/*$/{
16399 s//\1/
16400 q
16401 }
16402 /^X\/\(\/\/\)$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\/\(\/\).*/{
16407 s//\1/
16408 q
16409 }
16410 s/.*/./; q'`
16411 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16412 && sed -e '/# am--include-marker/d' "$am_filepart" \
16413 | $MAKE -f - am--depfiles" >&5
16414 (cd "$am_dirpart" \
16415 && sed -e '/# am--include-marker/d' "$am_filepart" \
16416 | $MAKE -f - am--depfiles) >&5 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } || am_rc=$?
16420 done
16421 if test $am_rc -ne 0; then
16422 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16423 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16424 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16425 for automatic dependency tracking. If GNU make was not used, consider
16426 re-running the configure script with MAKE=\"gmake\" (or whatever is
16427 necessary). You can also try re-running configure with the
16428 '--disable-dependency-tracking' option to at least be able to build
16429 the package (albeit without support for automatic dependency tracking).
16430 See \`config.log' for more details" "$LINENO" 5; }
16431 fi
16432 { am_dirpart=; unset am_dirpart;}
16433 { am_filepart=; unset am_filepart;}
16434 { am_mf=; unset am_mf;}
16435 { am_rc=; unset am_rc;}
16436 rm -f conftest-deps.mk
16437 }
16438 ;;
16439 "libtool":C)
16440
16441 # See if we are running on zsh, and set the options that allow our
16442 # commands through without removal of \ escapes.
16443 if test -n "${ZSH_VERSION+set}"; then
16444 setopt NO_GLOB_SUBST
16445 fi
16446
16447 cfgfile=${ofile}T
16448 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16449 $RM "$cfgfile"
16450
16451 cat <<_LT_EOF >> "$cfgfile"
16452 #! $SHELL
16453 # Generated automatically by $as_me ($PACKAGE) $VERSION
16454 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16455
16456 # Provide generalized library-building support services.
16457 # Written by Gordon Matzigkeit, 1996
16458
16459 # Copyright (C) 2014 Free Software Foundation, Inc.
16460 # This is free software; see the source for copying conditions. There is NO
16461 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16462
16463 # GNU Libtool is free software; you can redistribute it and/or modify
16464 # it under the terms of the GNU General Public License as published by
16465 # the Free Software Foundation; either version 2 of of the License, or
16466 # (at your option) any later version.
16467 #
16468 # As a special exception to the GNU General Public License, if you
16469 # distribute this file as part of a program or library that is built
16470 # using GNU Libtool, you may include this file under the same
16471 # distribution terms that you use for the rest of that program.
16472 #
16473 # GNU Libtool is distributed in the hope that it will be useful, but
16474 # WITHOUT ANY WARRANTY; without even the implied warranty of
16475 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16476 # GNU General Public License for more details.
16477 #
16478 # You should have received a copy of the GNU General Public License
16479 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16480
16481
16482 # The names of the tagged configurations supported by this script.
16483 available_tags=''
16484
16485 # Configured defaults for sys_lib_dlsearch_path munging.
16486 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16487
16488 # ### BEGIN LIBTOOL CONFIG
16489
16490 # Whether or not to build static libraries.
16491 build_old_libs=$enable_static
16492
16493 # Which release of libtool.m4 was used?
16494 macro_version=$macro_version
16495 macro_revision=$macro_revision
16496
16497 # Whether or not to build shared libraries.
16498 build_libtool_libs=$enable_shared
16499
16500 # What type of objects to build.
16501 pic_mode=$pic_mode
16502
16503 # Whether or not to optimize for fast installation.
16504 fast_install=$enable_fast_install
16505
16506 # Shared archive member basename,for filename based shared library versioning on AIX.
16507 shared_archive_member_spec=$shared_archive_member_spec
16508
16509 # Shell to use when invoking shell scripts.
16510 SHELL=$lt_SHELL
16511
16512 # An echo program that protects backslashes.
16513 ECHO=$lt_ECHO
16514
16515 # The PATH separator for the build system.
16516 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16517
16518 # The host system.
16519 host_alias=$host_alias
16520 host=$host
16521 host_os=$host_os
16522
16523 # The build system.
16524 build_alias=$build_alias
16525 build=$build
16526 build_os=$build_os
16527
16528 # A sed program that does not truncate output.
16529 SED=$lt_SED
16530
16531 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16532 Xsed="\$SED -e 1s/^X//"
16533
16534 # A grep program that handles long lines.
16535 GREP=$lt_GREP
16536
16537 # An ERE matcher.
16538 EGREP=$lt_EGREP
16539
16540 # A literal string matcher.
16541 FGREP=$lt_FGREP
16542
16543 # A BSD- or MS-compatible name lister.
16544 NM=$lt_NM
16545
16546 # Whether we need soft or hard links.
16547 LN_S=$lt_LN_S
16548
16549 # What is the maximum length of a command?
16550 max_cmd_len=$max_cmd_len
16551
16552 # Object file suffix (normally "o").
16553 objext=$ac_objext
16554
16555 # Executable file suffix (normally "").
16556 exeext=$exeext
16557
16558 # whether the shell understands "unset".
16559 lt_unset=$lt_unset
16560
16561 # turn spaces into newlines.
16562 SP2NL=$lt_lt_SP2NL
16563
16564 # turn newlines into spaces.
16565 NL2SP=$lt_lt_NL2SP
16566
16567 # convert \$build file names to \$host format.
16568 to_host_file_cmd=$lt_cv_to_host_file_cmd
16569
16570 # convert \$build files to toolchain format.
16571 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16572
16573 # An object symbol dumper.
16574 OBJDUMP=$lt_OBJDUMP
16575
16576 # Method to check whether dependent libraries are shared objects.
16577 deplibs_check_method=$lt_deplibs_check_method
16578
16579 # Command to use when deplibs_check_method = "file_magic".
16580 file_magic_cmd=$lt_file_magic_cmd
16581
16582 # How to find potential files when deplibs_check_method = "file_magic".
16583 file_magic_glob=$lt_file_magic_glob
16584
16585 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16586 want_nocaseglob=$lt_want_nocaseglob
16587
16588 # DLL creation program.
16589 DLLTOOL=$lt_DLLTOOL
16590
16591 # Command to associate shared and link libraries.
16592 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16593
16594 # The archiver.
16595 AR=$lt_AR
16596
16597 # Flags to create an archive.
16598 AR_FLAGS=$lt_AR_FLAGS
16599
16600 # How to feed a file listing to the archiver.
16601 archiver_list_spec=$lt_archiver_list_spec
16602
16603 # A symbol stripping program.
16604 STRIP=$lt_STRIP
16605
16606 # Commands used to install an old-style archive.
16607 RANLIB=$lt_RANLIB
16608 old_postinstall_cmds=$lt_old_postinstall_cmds
16609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16610
16611 # Whether to use a lock for old archive extraction.
16612 lock_old_archive_extraction=$lock_old_archive_extraction
16613
16614 # A C compiler.
16615 LTCC=$lt_CC
16616
16617 # LTCC compiler flags.
16618 LTCFLAGS=$lt_CFLAGS
16619
16620 # Take the output of nm and produce a listing of raw symbols and C names.
16621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16622
16623 # Transform the output of nm in a proper C declaration.
16624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16625
16626 # Transform the output of nm into a list of symbols to manually relocate.
16627 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16628
16629 # Transform the output of nm in a C name address pair.
16630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16631
16632 # Transform the output of nm in a C name address pair when lib prefix is needed.
16633 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16634
16635 # The name lister interface.
16636 nm_interface=$lt_lt_cv_nm_interface
16637
16638 # Specify filename containing input files for \$NM.
16639 nm_file_list_spec=$lt_nm_file_list_spec
16640
16641 # The root where to search for dependent libraries,and where our libraries should be installed.
16642 lt_sysroot=$lt_sysroot
16643
16644 # Command to truncate a binary pipe.
16645 lt_truncate_bin=$lt_lt_cv_truncate_bin
16646
16647 # The name of the directory that contains temporary libtool files.
16648 objdir=$objdir
16649
16650 # Used to examine libraries when file_magic_cmd begins with "file".
16651 MAGIC_CMD=$MAGIC_CMD
16652
16653 # Must we lock files when doing compilation?
16654 need_locks=$lt_need_locks
16655
16656 # Manifest tool.
16657 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16658
16659 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16660 DSYMUTIL=$lt_DSYMUTIL
16661
16662 # Tool to change global to local symbols on Mac OS X.
16663 NMEDIT=$lt_NMEDIT
16664
16665 # Tool to manipulate fat objects and archives on Mac OS X.
16666 LIPO=$lt_LIPO
16667
16668 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16669 OTOOL=$lt_OTOOL
16670
16671 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16672 OTOOL64=$lt_OTOOL64
16673
16674 # Old archive suffix (normally "a").
16675 libext=$libext
16676
16677 # Shared library suffix (normally ".so").
16678 shrext_cmds=$lt_shrext_cmds
16679
16680 # The commands to extract the exported symbol list from a shared archive.
16681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16682
16683 # Variables whose values should be saved in libtool wrapper scripts and
16684 # restored at link time.
16685 variables_saved_for_relink=$lt_variables_saved_for_relink
16686
16687 # Do we need the "lib" prefix for modules?
16688 need_lib_prefix=$need_lib_prefix
16689
16690 # Do we need a version for libraries?
16691 need_version=$need_version
16692
16693 # Library versioning type.
16694 version_type=$version_type
16695
16696 # Shared library runtime path variable.
16697 runpath_var=$runpath_var
16698
16699 # Shared library path variable.
16700 shlibpath_var=$shlibpath_var
16701
16702 # Is shlibpath searched before the hard-coded library search path?
16703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16704
16705 # Format of library name prefix.
16706 libname_spec=$lt_libname_spec
16707
16708 # List of archive names. First name is the real one, the rest are links.
16709 # The last name is the one that the linker finds with -lNAME
16710 library_names_spec=$lt_library_names_spec
16711
16712 # The coded name of the library, if different from the real name.
16713 soname_spec=$lt_soname_spec
16714
16715 # Permission mode override for installation of shared libraries.
16716 install_override_mode=$lt_install_override_mode
16717
16718 # Command to use after installation of a shared archive.
16719 postinstall_cmds=$lt_postinstall_cmds
16720
16721 # Command to use after uninstallation of a shared archive.
16722 postuninstall_cmds=$lt_postuninstall_cmds
16723
16724 # Commands used to finish a libtool library installation in a directory.
16725 finish_cmds=$lt_finish_cmds
16726
16727 # As "finish_cmds", except a single script fragment to be evaled but
16728 # not shown.
16729 finish_eval=$lt_finish_eval
16730
16731 # Whether we should hardcode library paths into libraries.
16732 hardcode_into_libs=$hardcode_into_libs
16733
16734 # Compile-time system search path for libraries.
16735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16736
16737 # Detected run-time system search path for libraries.
16738 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16739
16740 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16741 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16742
16743 # Whether dlopen is supported.
16744 dlopen_support=$enable_dlopen
16745
16746 # Whether dlopen of programs is supported.
16747 dlopen_self=$enable_dlopen_self
16748
16749 # Whether dlopen of statically linked programs is supported.
16750 dlopen_self_static=$enable_dlopen_self_static
16751
16752 # Commands to strip libraries.
16753 old_striplib=$lt_old_striplib
16754 striplib=$lt_striplib
16755
16756
16757 # The linker used to build libraries.
16758 LD=$lt_LD
16759
16760 # How to create reloadable object files.
16761 reload_flag=$lt_reload_flag
16762 reload_cmds=$lt_reload_cmds
16763
16764 # Commands used to build an old-style archive.
16765 old_archive_cmds=$lt_old_archive_cmds
16766
16767 # A language specific compiler.
16768 CC=$lt_compiler
16769
16770 # Is the compiler the GNU compiler?
16771 with_gcc=$GCC
16772
16773 # Compiler flag to turn off builtin functions.
16774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16775
16776 # Additional compiler flags for building library objects.
16777 pic_flag=$lt_lt_prog_compiler_pic
16778
16779 # How to pass a linker flag through the compiler.
16780 wl=$lt_lt_prog_compiler_wl
16781
16782 # Compiler flag to prevent dynamic linking.
16783 link_static_flag=$lt_lt_prog_compiler_static
16784
16785 # Does compiler simultaneously support -c and -o options?
16786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16787
16788 # Whether or not to add -lc for building shared libraries.
16789 build_libtool_need_lc=$archive_cmds_need_lc
16790
16791 # Whether or not to disallow shared libs when runtime libs are static.
16792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16793
16794 # Compiler flag to allow reflexive dlopens.
16795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16796
16797 # Compiler flag to generate shared objects directly from archives.
16798 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16799
16800 # Whether the compiler copes with passing no objects directly.
16801 compiler_needs_object=$lt_compiler_needs_object
16802
16803 # Create an old-style archive from a shared archive.
16804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16805
16806 # Create a temporary old-style archive to link instead of a shared archive.
16807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16808
16809 # Commands used to build a shared archive.
16810 archive_cmds=$lt_archive_cmds
16811 archive_expsym_cmds=$lt_archive_expsym_cmds
16812
16813 # Commands used to build a loadable module if different from building
16814 # a shared archive.
16815 module_cmds=$lt_module_cmds
16816 module_expsym_cmds=$lt_module_expsym_cmds
16817
16818 # Whether we are building with GNU ld or not.
16819 with_gnu_ld=$lt_with_gnu_ld
16820
16821 # Flag that allows shared libraries with undefined symbols to be built.
16822 allow_undefined_flag=$lt_allow_undefined_flag
16823
16824 # Flag that enforces no undefined symbols.
16825 no_undefined_flag=$lt_no_undefined_flag
16826
16827 # Flag to hardcode \$libdir into a binary during linking.
16828 # This must work even if \$libdir does not exist
16829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16830
16831 # Whether we need a single "-rpath" flag with a separated argument.
16832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16833
16834 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16835 # DIR into the resulting binary.
16836 hardcode_direct=$hardcode_direct
16837
16838 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16839 # DIR into the resulting binary and the resulting library dependency is
16840 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16841 # library is relocated.
16842 hardcode_direct_absolute=$hardcode_direct_absolute
16843
16844 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16845 # into the resulting binary.
16846 hardcode_minus_L=$hardcode_minus_L
16847
16848 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16849 # into the resulting binary.
16850 hardcode_shlibpath_var=$hardcode_shlibpath_var
16851
16852 # Set to "yes" if building a shared library automatically hardcodes DIR
16853 # into the library and all subsequent libraries and executables linked
16854 # against it.
16855 hardcode_automatic=$hardcode_automatic
16856
16857 # Set to yes if linker adds runtime paths of dependent libraries
16858 # to runtime path list.
16859 inherit_rpath=$inherit_rpath
16860
16861 # Whether libtool must link a program against all its dependency libraries.
16862 link_all_deplibs=$link_all_deplibs
16863
16864 # Set to "yes" if exported symbols are required.
16865 always_export_symbols=$always_export_symbols
16866
16867 # The commands to list exported symbols.
16868 export_symbols_cmds=$lt_export_symbols_cmds
16869
16870 # Symbols that should not be listed in the preloaded symbols.
16871 exclude_expsyms=$lt_exclude_expsyms
16872
16873 # Symbols that must always be exported.
16874 include_expsyms=$lt_include_expsyms
16875
16876 # Commands necessary for linking programs (against libraries) with templates.
16877 prelink_cmds=$lt_prelink_cmds
16878
16879 # Commands necessary for finishing linking programs.
16880 postlink_cmds=$lt_postlink_cmds
16881
16882 # Specify filename containing input files.
16883 file_list_spec=$lt_file_list_spec
16884
16885 # How to hardcode a shared library path into an executable.
16886 hardcode_action=$hardcode_action
16887
16888 # ### END LIBTOOL CONFIG
16889
16890 _LT_EOF
16891
16892 cat <<'_LT_EOF' >> "$cfgfile"
16893
16894 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16895
16896 # func_munge_path_list VARIABLE PATH
16897 # -----------------------------------
16898 # VARIABLE is name of variable containing _space_ separated list of
16899 # directories to be munged by the contents of PATH, which is string
16900 # having a format:
16901 # "DIR[:DIR]:"
16902 # string "DIR[ DIR]" will be prepended to VARIABLE
16903 # ":DIR[:DIR]"
16904 # string "DIR[ DIR]" will be appended to VARIABLE
16905 # "DIRP[:DIRP]::[DIRA:]DIRA"
16906 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16907 # "DIRA[ DIRA]" will be appended to VARIABLE
16908 # "DIR[:DIR]"
16909 # VARIABLE will be replaced by "DIR[ DIR]"
16910 func_munge_path_list ()
16911 {
16912 case x$2 in
16913 x)
16914 ;;
16915 *:)
16916 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16917 ;;
16918 x:*)
16919 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16920 ;;
16921 *::*)
16922 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16923 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16924 ;;
16925 *)
16926 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16927 ;;
16928 esac
16929 }
16930
16931
16932 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16933 func_cc_basename ()
16934 {
16935 for cc_temp in $*""; do
16936 case $cc_temp in
16937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16939 \-*) ;;
16940 *) break;;
16941 esac
16942 done
16943 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16944 }
16945
16946
16947 # ### END FUNCTIONS SHARED WITH CONFIGURE
16948
16949 _LT_EOF
16950
16951 case $host_os in
16952 aix3*)
16953 cat <<\_LT_EOF >> "$cfgfile"
16954 # AIX sometimes has problems with the GCC collect2 program. For some
16955 # reason, if we set the COLLECT_NAMES environment variable, the problems
16956 # vanish in a puff of smoke.
16957 if test set != "${COLLECT_NAMES+set}"; then
16958 COLLECT_NAMES=
16959 export COLLECT_NAMES
16960 fi
16961 _LT_EOF
16962 ;;
16963 esac
16964
16965
16966
16967 ltmain=$ac_aux_dir/ltmain.sh
16968
16969
16970 # We use sed instead of cat because bash on DJGPP gets confused if
16971 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16972 # text mode, it properly converts lines to CR/LF. This bash problem
16973 # is reportedly fixed, but why not run on old versions too?
16974 sed '$q' "$ltmain" >> "$cfgfile" \
16975 || (rm -f "$cfgfile"; exit 1)
16976
16977 mv -f "$cfgfile" "$ofile" ||
16978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16979 chmod +x "$ofile"
16980
16981 ;;
16982
16983 esac
16984 done # for ac_tag
16985
16986
16987 as_fn_exit 0
16988 _ACEOF
16989 ac_clean_files=$ac_clean_files_save
16990
16991 test $ac_write_fail = 0 ||
16992 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16993
16994
16995 # configure is writing to config.log, and then calls config.status.
16996 # config.status does its own redirection, appending to config.log.
16997 # Unfortunately, on DOS this fails, as config.log is still kept open
16998 # by configure, so config.status won't be able to write to it; its
16999 # output is simply discarded. So we exec the FD to /dev/null,
17000 # effectively closing config.log, so it can be properly (re)opened and
17001 # appended to by config.status. When coming back to configure, we
17002 # need to make the FD available again.
17003 if test "$no_create" != yes; then
17004 ac_cs_success=:
17005 ac_config_status_args=
17006 test "$silent" = yes &&
17007 ac_config_status_args="$ac_config_status_args --quiet"
17008 exec 5>/dev/null
17009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17010 exec 5>>config.log
17011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17012 # would make configure fail if this is the last instruction.
17013 $ac_cs_success || as_fn_exit 1
17014 fi
17015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17017 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17018 fi
17019
17020
17021 if test a"$virus_scan_profiles_support" != a"no"; then
17022 echo -e "\n"\
17023 "******************************************************************\n"\
17024 "* WARNING! Using profiles in virus_scan service may open serious\n"\
17025 "* security hole in your http cache systems.\n"\
17026 "* Do not enable/use profiles in virus_scan service unless you are\n"\
17027 "* sure what you are doing, and read the related documentation.\n"\
17028 "*******************************************************************\n"
17029 fi
17030
17031