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 librelp 1.12.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='librelp'
623 PACKAGE_TARNAME='librelp'
624 PACKAGE_VERSION='1.12.0'
625 PACKAGE_STRING='librelp 1.12.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/relp.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 HAVE_VALGRIND_FALSE
667 HAVE_VALGRIND_TRUE
668 VALGRIND
669 ENABLE_TLS_GENERIC_FALSE
670 ENABLE_TLS_GENERIC_TRUE
671 ENABLE_TLS_FALSE
672 ENABLE_TLS_TRUE
673 GNUTLS_LIBS
674 GNUTLS_CFLAGS
675 ENABLE_TLS_OPENSSL_FALSE
676 ENABLE_TLS_OPENSSL_TRUE
677 OPENSSL_LIBS
678 OPENSSL_CFLAGS
679 rt_libs
680 WARN_SCANNERFLAGS
681 WARN_LDFLAGS
682 WARN_CFLAGS
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 LT_SYS_LIBRARY_PATH
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 ac_ct_AR
695 AR
696 DLLTOOL
697 OBJDUMP
698 FILECMD
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 pkgpyexecdir
734 pyexecdir
735 pkgpythondir
736 pythondir
737 PYTHON_EXEC_PREFIX
738 PYTHON_PREFIX
739 PYTHON_PLATFORM
740 PYTHON_VERSION
741 PYTHON
742 OS_AIX_FALSE
743 OS_AIX_TRUE
744 OS_SOLARIS_FALSE
745 OS_SOLARIS_TRUE
746 OS_LINUX_FALSE
747 OS_LINUX_TRUE
748 xOS_LINUX_FALSE
749 xOS_LINUX_TRUE
750 OS_APPLE_FALSE
751 OS_APPLE_TRUE
752 SOL_LIBS
753 AM_BACKSLASH
754 AM_DEFAULT_VERBOSITY
755 AM_DEFAULT_V
756 AM_V
757 CSCOPE
758 ETAGS
759 CTAGS
760 am__untar
761 am__tar
762 AMTAR
763 am__leading_dot
764 SET_MAKE
765 AWK
766 mkdir_p
767 MKDIR_P
768 INSTALL_STRIP_PROGRAM
769 STRIP
770 install_sh
771 MAKEINFO
772 AUTOHEADER
773 AUTOMAKE
774 AUTOCONF
775 ACLOCAL
776 VERSION
777 PACKAGE
778 CYGPATH_W
779 am__isrc
780 INSTALL_DATA
781 INSTALL_SCRIPT
782 INSTALL_PROGRAM
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 runstatedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL
822 am__quote'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_silent_rules
827 with_python_sys_prefix
828 with_python_prefix
829 with_python_exec_prefix
830 enable_dependency_tracking
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 with_gnu_ld
837 with_sysroot
838 enable_libtool_lock
839 enable_compile_warnings
840 enable_Werror
841 enable_tls
842 enable_tls_openssl
843 enable_debug
844 enable_valgrind
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 PYTHON
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 LT_SYS_LIBRARY_PATH
856 PKG_CONFIG
857 PKG_CONFIG_PATH
858 PKG_CONFIG_LIBDIR
859 OPENSSL_CFLAGS
860 OPENSSL_LIBS
861 GNUTLS_CFLAGS
862 GNUTLS_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: \`$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: \`$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 printf "%s\n" X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures librelp 1.12.0 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/librelp]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of librelp 1.12.0:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-static[=PKGS] build static libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --enable-compile-warnings=[no/yes/error]
1502 Enable compiler warnings and errors
1503 --disable-Werror Unconditionally make all compiler warnings non-fatal
1504 --enable-tls Enable TLS support [default=yes]
1505 --enable-tls-openssl Enable OpenSSL TLS support [default=yes]
1506 --enable-debug Enable debug mode [default=no]
1507 --enable-valgrind Enable valgrind tests[default=yes]
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-python-sys-prefix
1513 use Python's sys.prefix and sys.exec_prefix values
1514 --with-python_prefix override the default PYTHON_PREFIX
1515 --with-python_exec_prefix
1516 override the default PYTHON_EXEC_PREFIX
1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-aix-soname=aix|svr4|both
1520 shared library versioning (aka "SONAME") variant to
1521 provide on AIX, [default=aix].
1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1524 compiler's sysroot if not specified).
1525
1526 Some influential environment variables:
1527 PYTHON the Python interpreter
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 LT_SYS_LIBRARY_PATH
1536 User-defined run-time library search path.
1537 PKG_CONFIG path to pkg-config utility
1538 PKG_CONFIG_PATH
1539 directories to add to pkg-config's search path
1540 PKG_CONFIG_LIBDIR
1541 path overriding pkg-config's built-in search path
1542 OPENSSL_CFLAGS
1543 C compiler flags for OPENSSL, overriding pkg-config
1544 OPENSSL_LIBS
1545 linker flags for OPENSSL, overriding pkg-config
1546 GNUTLS_CFLAGS
1547 C compiler flags for GNUTLS, overriding pkg-config
1548 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to <[email protected]>.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
1564 ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for configure.gnu first; this name is used for a wrapper for
1600 # Metaconfig's "Configure" on case-insensitive file systems.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 librelp configure 1.12.0
1618 generated by GNU Autoconf 2.71
1619
1620 Copyright (C) 2021 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest.beam
1638 if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 printf "%s\n" "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext
1657 then :
1658 ac_retval=0
1659 else $as_nop
1660 printf "%s\n" "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 printf "%s\n" "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }
1699 then :
1700 ac_retval=0
1701 else $as_nop
1702 printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else $as_nop
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"
1736 then :
1737 eval "$3=yes"
1738 else $as_nop
1739 eval "$3=no"
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 printf "%s\n" "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748 } # ac_fn_c_check_header_compile
1749
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 printf %s "checking for $2... " >&6; }
1758 if eval test \${$3+y}
1759 then :
1760 printf %s "(cached) " >&6
1761 else $as_nop
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1767
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below. */
1770
1771 #include <limits.h>
1772 #undef $2
1773
1774 /* Override any GCC internal prototype to avoid an error.
1775 Use char because int might match the return type of a GCC
1776 builtin and then its argument prototype would still apply. */
1777 #ifdef __cplusplus
1778 extern "C"
1779 #endif
1780 char $2 ();
1781 /* The GNU C library defines this for functions which it implements
1782 to always fail with ENOSYS. Some functions are actually named
1783 something starting with __ and the normal name is an alias. */
1784 #if defined __stub_$2 || defined __stub___$2
1785 choke me
1786 #endif
1787
1788 int
1789 main (void)
1790 {
1791 return $2 ();
1792 ;
1793 return 0;
1794 }
1795 _ACEOF
1796 if ac_fn_c_try_link "$LINENO"
1797 then :
1798 eval "$3=yes"
1799 else $as_nop
1800 eval "$3=no"
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1803 conftest$ac_exeext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 printf "%s\n" "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_func
1811
1812 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1813 # -------------------------------------------
1814 # Tests whether TYPE exists after having included INCLUDES, setting cache
1815 # variable VAR accordingly.
1816 ac_fn_c_check_type ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 printf %s "checking for $2... " >&6; }
1821 if eval test \${$3+y}
1822 then :
1823 printf %s "(cached) " >&6
1824 else $as_nop
1825 eval "$3=no"
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 int
1830 main (void)
1831 {
1832 if (sizeof ($2))
1833 return 0;
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"
1839 then :
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main (void)
1845 {
1846 if (sizeof (($2)))
1847 return 0;
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"
1853 then :
1854
1855 else $as_nop
1856 eval "$3=yes"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 printf "%s\n" "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_type
1868
1869 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1870 # ----------------------------------------------------
1871 # Tries to find if the field MEMBER exists in type AGGR, after including
1872 # INCLUDES, setting cache variable VAR accordingly.
1873 ac_fn_c_check_member ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1877 printf %s "checking for $2.$3... " >&6; }
1878 if eval test \${$4+y}
1879 then :
1880 printf %s "(cached) " >&6
1881 else $as_nop
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $5
1885 int
1886 main (void)
1887 {
1888 static $2 ac_aggr;
1889 if (ac_aggr.$3)
1890 return 0;
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"
1896 then :
1897 eval "$4=yes"
1898 else $as_nop
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $5
1902 int
1903 main (void)
1904 {
1905 static $2 ac_aggr;
1906 if (sizeof ac_aggr.$3)
1907 return 0;
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"
1913 then :
1914 eval "$4=yes"
1915 else $as_nop
1916 eval "$4=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$4
1923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 printf "%s\n" "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_member
1928
1929 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1930 # ------------------------------------------------------------------
1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1932 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1933 ac_fn_check_decl ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 as_decl_name=`echo $2|sed 's/ *(.*//'`
1937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1938 printf %s "checking whether $as_decl_name is declared... " >&6; }
1939 if eval test \${$3+y}
1940 then :
1941 printf %s "(cached) " >&6
1942 else $as_nop
1943 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1944 eval ac_save_FLAGS=\$$6
1945 as_fn_append $6 " $5"
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 int
1950 main (void)
1951 {
1952 #ifndef $as_decl_name
1953 #ifdef __cplusplus
1954 (void) $as_decl_use;
1955 #else
1956 (void) $as_decl_name;
1957 #endif
1958 #endif
1959
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"
1965 then :
1966 eval "$3=yes"
1967 else $as_nop
1968 eval "$3=no"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 eval $6=\$ac_save_FLAGS
1972
1973 fi
1974 eval ac_res=\$$3
1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 printf "%s\n" "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_check_decl
1980 ac_configure_args_raw=
1981 for ac_arg
1982 do
1983 case $ac_arg in
1984 *\'*)
1985 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 esac
1987 as_fn_append ac_configure_args_raw " '$ac_arg'"
1988 done
1989
1990 case $ac_configure_args_raw in
1991 *$as_nl*)
1992 ac_safe_unquote= ;;
1993 *)
1994 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1995 ac_unsafe_a="$ac_unsafe_z#~"
1996 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1997 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1998 esac
1999
2000 cat >config.log <<_ACEOF
2001 This file contains any messages produced by compilers while
2002 running configure, to aid debugging if configure makes a mistake.
2003
2004 It was created by librelp $as_me 1.12.0, which was
2005 generated by GNU Autoconf 2.71. Invocation command line was
2006
2007 $ $0$ac_configure_args_raw
2008
2009 _ACEOF
2010 exec 5>>config.log
2011 {
2012 cat <<_ASUNAME
2013 ## --------- ##
2014 ## Platform. ##
2015 ## --------- ##
2016
2017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2022
2023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2025
2026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2029 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2033
2034 _ASUNAME
2035
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039 IFS=$as_save_IFS
2040 case $as_dir in #(((
2041 '') as_dir=./ ;;
2042 */) ;;
2043 *) as_dir=$as_dir/ ;;
2044 esac
2045 printf "%s\n" "PATH: $as_dir"
2046 done
2047 IFS=$as_save_IFS
2048
2049 } >&5
2050
2051 cat >&5 <<_ACEOF
2052
2053
2054 ## ----------- ##
2055 ## Core tests. ##
2056 ## ----------- ##
2057
2058 _ACEOF
2059
2060
2061 # Keep a trace of the command line.
2062 # Strip out --no-create and --no-recursion so they do not pile up.
2063 # Strip out --silent because we don't want to record it for future runs.
2064 # Also quote any args containing shell meta-characters.
2065 # Make two passes to allow for proper duplicate-argument suppression.
2066 ac_configure_args=
2067 ac_configure_args0=
2068 ac_configure_args1=
2069 ac_must_keep_next=false
2070 for ac_pass in 1 2
2071 do
2072 for ac_arg
2073 do
2074 case $ac_arg in
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 continue ;;
2079 *\'*)
2080 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 esac
2082 case $ac_pass in
2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2084 2)
2085 as_fn_append ac_configure_args1 " '$ac_arg'"
2086 if test $ac_must_keep_next = true; then
2087 ac_must_keep_next=false # Got value, back to normal.
2088 else
2089 case $ac_arg in
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096 esac
2097 ;;
2098 -* ) ac_must_keep_next=true ;;
2099 esac
2100 fi
2101 as_fn_append ac_configure_args " '$ac_arg'"
2102 ;;
2103 esac
2104 done
2105 done
2106 { ac_configure_args0=; unset ac_configure_args0;}
2107 { ac_configure_args1=; unset ac_configure_args1;}
2108
2109 # When interrupted or exit'd, cleanup temporary files, and complete
2110 # config.log. We remove comments because anyway the quotes in there
2111 # would cause problems or look ugly.
2112 # WARNING: Use '\'' to represent an apostrophe within the trap.
2113 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114 trap 'exit_status=$?
2115 # Sanitize IFS.
2116 IFS=" "" $as_nl"
2117 # Save into config.log some information that might help in debugging.
2118 {
2119 echo
2120
2121 printf "%s\n" "## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##"
2124 echo
2125 # The following way of writing the cache mishandles newlines in values,
2126 (
2127 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in #(
2130 *${as_nl}*)
2131 case $ac_var in #(
2132 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134 esac
2135 case $ac_var in #(
2136 _ | IFS | as_nl) ;; #(
2137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138 *) { eval $ac_var=; unset $ac_var;} ;;
2139 esac ;;
2140 esac
2141 done
2142 (set) 2>&1 |
2143 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144 *${as_nl}ac_space=\ *)
2145 sed -n \
2146 "s/'\''/'\''\\\\'\'''\''/g;
2147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148 ;; #(
2149 *)
2150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151 ;;
2152 esac |
2153 sort
2154 )
2155 echo
2156
2157 printf "%s\n" "## ----------------- ##
2158 ## Output variables. ##
2159 ## ----------------- ##"
2160 echo
2161 for ac_var in $ac_subst_vars
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 printf "%s\n" "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170
2171 if test -n "$ac_subst_files"; then
2172 printf "%s\n" "## ------------------- ##
2173 ## File substitutions. ##
2174 ## ------------------- ##"
2175 echo
2176 for ac_var in $ac_subst_files
2177 do
2178 eval ac_val=\$$ac_var
2179 case $ac_val in
2180 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 esac
2182 printf "%s\n" "$ac_var='\''$ac_val'\''"
2183 done | sort
2184 echo
2185 fi
2186
2187 if test -s confdefs.h; then
2188 printf "%s\n" "## ----------- ##
2189 ## confdefs.h. ##
2190 ## ----------- ##"
2191 echo
2192 cat confdefs.h
2193 echo
2194 fi
2195 test "$ac_signal" != 0 &&
2196 printf "%s\n" "$as_me: caught signal $ac_signal"
2197 printf "%s\n" "$as_me: exit $exit_status"
2198 } >&5
2199 rm -f core *.core core.conftest.* &&
2200 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201 exit $exit_status
2202 ' 0
2203 for ac_signal in 1 2 13 15; do
2204 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205 done
2206 ac_signal=0
2207
2208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209 rm -f -r conftest* confdefs.h
2210
2211 printf "%s\n" "/* confdefs.h */" > confdefs.h
2212
2213 # Predefined preprocessor variables.
2214
2215 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2216
2217 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2218
2219 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2220
2221 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2222
2223 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2224
2225 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2226
2227
2228 # Let the site file select an alternate cache file if it wants to.
2229 # Prefer an explicitly selected file to automatically selected ones.
2230 if test -n "$CONFIG_SITE"; then
2231 ac_site_files="$CONFIG_SITE"
2232 elif test "x$prefix" != xNONE; then
2233 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2234 else
2235 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2236 fi
2237
2238 for ac_site_file in $ac_site_files
2239 do
2240 case $ac_site_file in #(
2241 */*) :
2242 ;; #(
2243 *) :
2244 ac_site_file=./$ac_site_file ;;
2245 esac
2246 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2249 sed 's/^/| /' "$ac_site_file" >&5
2250 . "$ac_site_file" \
2251 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2253 as_fn_error $? "failed to load site script $ac_site_file
2254 See \`config.log' for more details" "$LINENO" 5; }
2255 fi
2256 done
2257
2258 if test -r "$cache_file"; then
2259 # Some versions of bash will fail to source /dev/null (special files
2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2264 case $cache_file in
2265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266 *) . "./$cache_file";;
2267 esac
2268 fi
2269 else
2270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2272 >$cache_file
2273 fi
2274
2275 # Test code for whether the C compiler supports C89 (global declarations)
2276 ac_c_conftest_c89_globals='
2277 /* Does the compiler advertise C89 conformance?
2278 Do not test the value of __STDC__, because some compilers set it to 0
2279 while being otherwise adequately conformant. */
2280 #if !defined __STDC__
2281 # error "Compiler does not advertise C89 conformance"
2282 #endif
2283
2284 #include <stddef.h>
2285 #include <stdarg.h>
2286 struct stat;
2287 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2288 struct buf { int x; };
2289 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2290 static char *e (p, i)
2291 char **p;
2292 int i;
2293 {
2294 return p[i];
2295 }
2296 static char *f (char * (*g) (char **, int), char **p, ...)
2297 {
2298 char *s;
2299 va_list v;
2300 va_start (v,p);
2301 s = g (p, va_arg (v,int));
2302 va_end (v);
2303 return s;
2304 }
2305
2306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2307 function prototypes and stuff, but not \xHH hex character constants.
2308 These do not provoke an error unfortunately, instead are silently treated
2309 as an "x". The following induces an error, until -std is added to get
2310 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2311 array size at least. It is necessary to write \x00 == 0 to get something
2312 that is true only with -std. */
2313 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2314
2315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2316 inside strings and character constants. */
2317 #define FOO(x) '\''x'\''
2318 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2319
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2324 int, int);'
2325
2326 # Test code for whether the C compiler supports C89 (body of main).
2327 ac_c_conftest_c89_main='
2328 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2329 '
2330
2331 # Test code for whether the C compiler supports C99 (global declarations)
2332 ac_c_conftest_c99_globals='
2333 // Does the compiler advertise C99 conformance?
2334 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2335 # error "Compiler does not advertise C99 conformance"
2336 #endif
2337
2338 #include <stdbool.h>
2339 extern int puts (const char *);
2340 extern int printf (const char *, ...);
2341 extern int dprintf (int, const char *, ...);
2342 extern void *malloc (size_t);
2343
2344 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2345 // dprintf is used instead of fprintf to avoid needing to declare
2346 // FILE and stderr.
2347 #define debug(...) dprintf (2, __VA_ARGS__)
2348 #define showlist(...) puts (#__VA_ARGS__)
2349 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2350 static void
2351 test_varargs_macros (void)
2352 {
2353 int x = 1234;
2354 int y = 5678;
2355 debug ("Flag");
2356 debug ("X = %d\n", x);
2357 showlist (The first, second, and third items.);
2358 report (x>y, "x is %d but y is %d", x, y);
2359 }
2360
2361 // Check long long types.
2362 #define BIG64 18446744073709551615ull
2363 #define BIG32 4294967295ul
2364 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2365 #if !BIG_OK
2366 #error "your preprocessor is broken"
2367 #endif
2368 #if BIG_OK
2369 #else
2370 #error "your preprocessor is broken"
2371 #endif
2372 static long long int bignum = -9223372036854775807LL;
2373 static unsigned long long int ubignum = BIG64;
2374
2375 struct incomplete_array
2376 {
2377 int datasize;
2378 double data[];
2379 };
2380
2381 struct named_init {
2382 int number;
2383 const wchar_t *name;
2384 double average;
2385 };
2386
2387 typedef const char *ccp;
2388
2389 static inline int
2390 test_restrict (ccp restrict text)
2391 {
2392 // See if C++-style comments work.
2393 // Iterate through items via the restricted pointer.
2394 // Also check for declarations in for loops.
2395 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2396 continue;
2397 return 0;
2398 }
2399
2400 // Check varargs and va_copy.
2401 static bool
2402 test_varargs (const char *format, ...)
2403 {
2404 va_list args;
2405 va_start (args, format);
2406 va_list args_copy;
2407 va_copy (args_copy, args);
2408
2409 const char *str = "";
2410 int number = 0;
2411 float fnumber = 0;
2412
2413 while (*format)
2414 {
2415 switch (*format++)
2416 {
2417 case '\''s'\'': // string
2418 str = va_arg (args_copy, const char *);
2419 break;
2420 case '\''d'\'': // int
2421 number = va_arg (args_copy, int);
2422 break;
2423 case '\''f'\'': // float
2424 fnumber = va_arg (args_copy, double);
2425 break;
2426 default:
2427 break;
2428 }
2429 }
2430 va_end (args_copy);
2431 va_end (args);
2432
2433 return *str && number && fnumber;
2434 }
2435 '
2436
2437 # Test code for whether the C compiler supports C99 (body of main).
2438 ac_c_conftest_c99_main='
2439 // Check bool.
2440 _Bool success = false;
2441 success |= (argc != 0);
2442
2443 // Check restrict.
2444 if (test_restrict ("String literal") == 0)
2445 success = true;
2446 char *restrict newvar = "Another string";
2447
2448 // Check varargs.
2449 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2450 test_varargs_macros ();
2451
2452 // Check flexible array members.
2453 struct incomplete_array *ia =
2454 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2455 ia->datasize = 10;
2456 for (int i = 0; i < ia->datasize; ++i)
2457 ia->data[i] = i * 1.234;
2458
2459 // Check named initializers.
2460 struct named_init ni = {
2461 .number = 34,
2462 .name = L"Test wide string",
2463 .average = 543.34343,
2464 };
2465
2466 ni.number = 58;
2467
2468 int dynamic_array[ni.number];
2469 dynamic_array[0] = argv[0][0];
2470 dynamic_array[ni.number - 1] = 543;
2471
2472 // work around unused variable warnings
2473 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2474 || dynamic_array[ni.number - 1] != 543);
2475 '
2476
2477 # Test code for whether the C compiler supports C11 (global declarations)
2478 ac_c_conftest_c11_globals='
2479 // Does the compiler advertise C11 conformance?
2480 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2481 # error "Compiler does not advertise C11 conformance"
2482 #endif
2483
2484 // Check _Alignas.
2485 char _Alignas (double) aligned_as_double;
2486 char _Alignas (0) no_special_alignment;
2487 extern char aligned_as_int;
2488 char _Alignas (0) _Alignas (int) aligned_as_int;
2489
2490 // Check _Alignof.
2491 enum
2492 {
2493 int_alignment = _Alignof (int),
2494 int_array_alignment = _Alignof (int[100]),
2495 char_alignment = _Alignof (char)
2496 };
2497 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2498
2499 // Check _Noreturn.
2500 int _Noreturn does_not_return (void) { for (;;) continue; }
2501
2502 // Check _Static_assert.
2503 struct test_static_assert
2504 {
2505 int x;
2506 _Static_assert (sizeof (int) <= sizeof (long int),
2507 "_Static_assert does not work in struct");
2508 long int y;
2509 };
2510
2511 // Check UTF-8 literals.
2512 #define u8 syntax error!
2513 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2514
2515 // Check duplicate typedefs.
2516 typedef long *long_ptr;
2517 typedef long int *long_ptr;
2518 typedef long_ptr long_ptr;
2519
2520 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2521 struct anonymous
2522 {
2523 union {
2524 struct { int i; int j; };
2525 struct { int k; long int l; } w;
2526 };
2527 int m;
2528 } v1;
2529 '
2530
2531 # Test code for whether the C compiler supports C11 (body of main).
2532 ac_c_conftest_c11_main='
2533 _Static_assert ((offsetof (struct anonymous, i)
2534 == offsetof (struct anonymous, w.k)),
2535 "Anonymous union alignment botch");
2536 v1.i = 2;
2537 v1.w.k = 5;
2538 ok |= v1.i != 5;
2539 '
2540
2541 # Test code for whether the C compiler supports C11 (complete).
2542 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2543 ${ac_c_conftest_c99_globals}
2544 ${ac_c_conftest_c11_globals}
2545
2546 int
2547 main (int argc, char **argv)
2548 {
2549 int ok = 0;
2550 ${ac_c_conftest_c89_main}
2551 ${ac_c_conftest_c99_main}
2552 ${ac_c_conftest_c11_main}
2553 return ok;
2554 }
2555 "
2556
2557 # Test code for whether the C compiler supports C99 (complete).
2558 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2559 ${ac_c_conftest_c99_globals}
2560
2561 int
2562 main (int argc, char **argv)
2563 {
2564 int ok = 0;
2565 ${ac_c_conftest_c89_main}
2566 ${ac_c_conftest_c99_main}
2567 return ok;
2568 }
2569 "
2570
2571 # Test code for whether the C compiler supports C89 (complete).
2572 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2573
2574 int
2575 main (int argc, char **argv)
2576 {
2577 int ok = 0;
2578 ${ac_c_conftest_c89_main}
2579 return ok;
2580 }
2581 "
2582
2583 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2584 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2585 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2586 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2587 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2588 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2589 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2590 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2591 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2592 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2593 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2594
2595 # Auxiliary files required by this configure script.
2596 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2597
2598 # Locations in which to look for auxiliary files.
2599 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2600
2601 # Search for a directory containing all of the required auxiliary files,
2602 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2603 # If we don't find one directory that contains all the files we need,
2604 # we report the set of missing files from the *first* directory in
2605 # $ac_aux_dir_candidates and give up.
2606 ac_missing_aux_files=""
2607 ac_first_candidate=:
2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 as_found=false
2611 for as_dir in $ac_aux_dir_candidates
2612 do
2613 IFS=$as_save_IFS
2614 case $as_dir in #(((
2615 '') as_dir=./ ;;
2616 */) ;;
2617 *) as_dir=$as_dir/ ;;
2618 esac
2619 as_found=:
2620
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2622 ac_aux_dir_found=yes
2623 ac_install_sh=
2624 for ac_aux in $ac_aux_files
2625 do
2626 # As a special case, if "install-sh" is required, that requirement
2627 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2628 # and $ac_install_sh is set appropriately for whichever one is found.
2629 if test x"$ac_aux" = x"install-sh"
2630 then
2631 if test -f "${as_dir}install-sh"; then
2632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2633 ac_install_sh="${as_dir}install-sh -c"
2634 elif test -f "${as_dir}install.sh"; then
2635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2636 ac_install_sh="${as_dir}install.sh -c"
2637 elif test -f "${as_dir}shtool"; then
2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2639 ac_install_sh="${as_dir}shtool install -c"
2640 else
2641 ac_aux_dir_found=no
2642 if $ac_first_candidate; then
2643 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2644 else
2645 break
2646 fi
2647 fi
2648 else
2649 if test -f "${as_dir}${ac_aux}"; then
2650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2651 else
2652 ac_aux_dir_found=no
2653 if $ac_first_candidate; then
2654 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2655 else
2656 break
2657 fi
2658 fi
2659 fi
2660 done
2661 if test "$ac_aux_dir_found" = yes; then
2662 ac_aux_dir="$as_dir"
2663 break
2664 fi
2665 ac_first_candidate=false
2666
2667 as_found=false
2668 done
2669 IFS=$as_save_IFS
2670 if $as_found
2671 then :
2672
2673 else $as_nop
2674 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2675 fi
2676
2677
2678 # These three variables are undocumented and unsupported,
2679 # and are intended to be withdrawn in a future Autoconf release.
2680 # They can cause serious problems if a builder's source tree is in a directory
2681 # whose full name contains unusual characters.
2682 if test -f "${ac_aux_dir}config.guess"; then
2683 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2684 fi
2685 if test -f "${ac_aux_dir}config.sub"; then
2686 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2687 fi
2688 if test -f "$ac_aux_dir/configure"; then
2689 ac_configure="$SHELL ${ac_aux_dir}configure"
2690 fi
2691
2692 # Check that the precious variables saved in the cache have kept the same
2693 # value.
2694 ac_cache_corrupted=false
2695 for ac_var in $ac_precious_vars; do
2696 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2697 eval ac_new_set=\$ac_env_${ac_var}_set
2698 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2699 eval ac_new_val=\$ac_env_${ac_var}_value
2700 case $ac_old_set,$ac_new_set in
2701 set,)
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2703 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2704 ac_cache_corrupted=: ;;
2705 ,set)
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2707 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2709 ,);;
2710 *)
2711 if test "x$ac_old_val" != "x$ac_new_val"; then
2712 # differences in whitespace do not lead to failure.
2713 ac_old_val_w=`echo x $ac_old_val`
2714 ac_new_val_w=`echo x $ac_new_val`
2715 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2717 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2718 ac_cache_corrupted=:
2719 else
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2721 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2722 eval $ac_var=\$ac_old_val
2723 fi
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2725 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2727 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2728 fi;;
2729 esac
2730 # Pass precious variables to config.status.
2731 if test "$ac_new_set" = set; then
2732 case $ac_new_val in
2733 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 *) ac_arg=$ac_var=$ac_new_val ;;
2735 esac
2736 case " $ac_configure_args " in
2737 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2738 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2739 esac
2740 fi
2741 done
2742 if $ac_cache_corrupted; then
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2746 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2747 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2748 and start over" "$LINENO" 5
2749 fi
2750 ## -------------------- ##
2751 ## Main body of script. ##
2752 ## -------------------- ##
2753
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760
2761
2762 # change to the one below if Travis has a timeout
2763 #AM_INIT_AUTOMAKE([subdir-objects serial-tests])
2764 am__api_version='1.16'
2765
2766
2767
2768 # Find a good install program. We prefer a C program (faster),
2769 # so one script is as good as another. But avoid the broken or
2770 # incompatible versions:
2771 # SysV /etc/install, /usr/sbin/install
2772 # SunOS /usr/etc/install
2773 # IRIX /sbin/install
2774 # AIX /bin/install
2775 # AmigaOS /C/install, which installs bootblocks on floppy discs
2776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779 # OS/2's system install, which has a completely different semantic
2780 # ./install, which can be erroneously created by make from ./install.sh.
2781 # Reject install programs that cannot install multiple files.
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783 printf %s "checking for a BSD-compatible install... " >&6; }
2784 if test -z "$INSTALL"; then
2785 if test ${ac_cv_path_install+y}
2786 then :
2787 printf %s "(cached) " >&6
2788 else $as_nop
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 case $as_dir in #(((
2794 '') as_dir=./ ;;
2795 */) ;;
2796 *) as_dir=$as_dir/ ;;
2797 esac
2798 # Account for fact that we put trailing slashes in our PATH walk.
2799 case $as_dir in #((
2800 ./ | /[cC]/* | \
2801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2802 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2803 /usr/ucb/* ) ;;
2804 *)
2805 # OSF1 and SCO ODT 3.0 have their own names for install.
2806 # Don't use installbsd from OSF since it installs stuff as root
2807 # by default.
2808 for ac_prog in ginstall scoinst install; do
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2811 if test $ac_prog = install &&
2812 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # AIX install. It has an incompatible calling convention.
2814 :
2815 elif test $ac_prog = install &&
2816 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817 # program-specific install script used by HP pwplus--don't use.
2818 :
2819 else
2820 rm -rf conftest.one conftest.two conftest.dir
2821 echo one > conftest.one
2822 echo two > conftest.two
2823 mkdir conftest.dir
2824 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2825 test -s conftest.one && test -s conftest.two &&
2826 test -s conftest.dir/conftest.one &&
2827 test -s conftest.dir/conftest.two
2828 then
2829 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2830 break 3
2831 fi
2832 fi
2833 fi
2834 done
2835 done
2836 ;;
2837 esac
2838
2839 done
2840 IFS=$as_save_IFS
2841
2842 rm -rf conftest.one conftest.two conftest.dir
2843
2844 fi
2845 if test ${ac_cv_path_install+y}; then
2846 INSTALL=$ac_cv_path_install
2847 else
2848 # As a last resort, use the slow shell script. Don't cache a
2849 # value for INSTALL within a source directory, because that will
2850 # break other packages using the cache if that directory is
2851 # removed, or if the value is a relative name.
2852 INSTALL=$ac_install_sh
2853 fi
2854 fi
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2856 printf "%s\n" "$INSTALL" >&6; }
2857
2858 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2859 # It thinks the first close brace ends the variable substitution.
2860 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861
2862 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863
2864 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2867 printf %s "checking whether build environment is sane... " >&6; }
2868 # Reject unsafe characters in $srcdir or the absolute working directory
2869 # name. Accept space and tab only in the latter.
2870 am_lf='
2871 '
2872 case `pwd` in
2873 *[\\\"\#\$\&\'\`$am_lf]*)
2874 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2875 esac
2876 case $srcdir in
2877 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2878 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2879 esac
2880
2881 # Do 'set' in a subshell so we don't clobber the current shell's
2882 # arguments. Must try -L first in case configure is actually a
2883 # symlink; some systems play weird games with the mod time of symlinks
2884 # (eg FreeBSD returns the mod time of the symlink's containing
2885 # directory).
2886 if (
2887 am_has_slept=no
2888 for am_try in 1 2; do
2889 echo "timestamp, slept: $am_has_slept" > conftest.file
2890 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2891 if test "$*" = "X"; then
2892 # -L didn't work.
2893 set X `ls -t "$srcdir/configure" conftest.file`
2894 fi
2895 if test "$*" != "X $srcdir/configure conftest.file" \
2896 && test "$*" != "X conftest.file $srcdir/configure"; then
2897
2898 # If neither matched, then we have a broken ls. This can happen
2899 # if, for instance, CONFIG_SHELL is bash and it inherits a
2900 # broken ls alias from the environment. This has actually
2901 # happened. Such a system could not be considered "sane".
2902 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2903 alias in your environment" "$LINENO" 5
2904 fi
2905 if test "$2" = conftest.file || test $am_try -eq 2; then
2906 break
2907 fi
2908 # Just in case.
2909 sleep 1
2910 am_has_slept=yes
2911 done
2912 test "$2" = conftest.file
2913 )
2914 then
2915 # Ok.
2916 :
2917 else
2918 as_fn_error $? "newly created file is older than distributed files!
2919 Check your system clock" "$LINENO" 5
2920 fi
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 printf "%s\n" "yes" >&6; }
2923 # If we didn't sleep, we still need to ensure time stamps of config.status and
2924 # generated files are strictly newer.
2925 am_sleep_pid=
2926 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2927 ( sleep 1 ) &
2928 am_sleep_pid=$!
2929 fi
2930
2931 rm -f conftest.file
2932
2933 test "$program_prefix" != NONE &&
2934 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2935 # Use a double $ so make ignores it.
2936 test "$program_suffix" != NONE &&
2937 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2938 # Double any \ or $.
2939 # By default was `s,x,x', remove it if useless.
2940 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2941 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2942
2943
2944 # Expand $ac_aux_dir to an absolute path.
2945 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2946
2947
2948 if test x"${MISSING+set}" != xset; then
2949 MISSING="\${SHELL} '$am_aux_dir/missing'"
2950 fi
2951 # Use eval to expand $SHELL
2952 if eval "$MISSING --is-lightweight"; then
2953 am_missing_run="$MISSING "
2954 else
2955 am_missing_run=
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2957 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2958 fi
2959
2960 if test x"${install_sh+set}" != xset; then
2961 case $am_aux_dir in
2962 *\ * | *\ *)
2963 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2964 *)
2965 install_sh="\${SHELL} $am_aux_dir/install-sh"
2966 esac
2967 fi
2968
2969 # Installed binaries are usually stripped using 'strip' when the user
2970 # run "make install-strip". However 'strip' might not be the right
2971 # tool to use in cross-compilation environments, therefore Automake
2972 # will honor the 'STRIP' environment variable to overrule this program.
2973 if test "$cross_compiling" != no; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}strip; 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_STRIP+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else $as_nop
2983 if test -n "$STRIP"; then
2984 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
3008 if test -n "$STRIP"; then
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3010 printf "%s\n" "$STRIP" >&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 fi
3018 if test -z "$ac_cv_prog_STRIP"; then
3019 ac_ct_STRIP=$STRIP
3020 # Extract the first word of "strip", so it can be a program name with args.
3021 set dummy strip; ac_word=$2
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 printf %s "checking for $ac_word... " >&6; }
3024 if test ${ac_cv_prog_ac_ct_STRIP+y}
3025 then :
3026 printf %s "(cached) " >&6
3027 else $as_nop
3028 if test -n "$ac_ct_STRIP"; then
3029 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 case $as_dir in #(((
3036 '') as_dir=./ ;;
3037 */) ;;
3038 *) as_dir=$as_dir/ ;;
3039 esac
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_STRIP="strip"
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3053 if test -n "$ac_ct_STRIP"; then
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3055 printf "%s\n" "$ac_ct_STRIP" >&6; }
3056 else
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 printf "%s\n" "no" >&6; }
3059 fi
3060
3061 if test "x$ac_ct_STRIP" = x; then
3062 STRIP=":"
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 STRIP=$ac_ct_STRIP
3071 fi
3072 else
3073 STRIP="$ac_cv_prog_STRIP"
3074 fi
3075
3076 fi
3077 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3078
3079
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3081 printf %s "checking for a race-free mkdir -p... " >&6; }
3082 if test -z "$MKDIR_P"; then
3083 if test ${ac_cv_path_mkdir+y}
3084 then :
3085 printf %s "(cached) " >&6
3086 else $as_nop
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3089 do
3090 IFS=$as_save_IFS
3091 case $as_dir in #(((
3092 '') as_dir=./ ;;
3093 */) ;;
3094 *) as_dir=$as_dir/ ;;
3095 esac
3096 for ac_prog in mkdir gmkdir; do
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3099 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3100 'mkdir ('*'coreutils) '* | \
3101 'BusyBox '* | \
3102 'mkdir (fileutils) '4.1*)
3103 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3104 break 3;;
3105 esac
3106 done
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112
3113 test -d ./--version && rmdir ./--version
3114 if test ${ac_cv_path_mkdir+y}; then
3115 MKDIR_P="$ac_cv_path_mkdir -p"
3116 else
3117 # As a last resort, use the slow shell script. Don't cache a
3118 # value for MKDIR_P within a source directory, because that will
3119 # break other packages using the cache if that directory is
3120 # removed, or if the value is a relative name.
3121 MKDIR_P="$ac_install_sh -d"
3122 fi
3123 fi
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3125 printf "%s\n" "$MKDIR_P" >&6; }
3126
3127 for ac_prog in gawk mawk nawk awk
3128 do
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 printf %s "checking for $ac_word... " >&6; }
3133 if test ${ac_cv_prog_AWK+y}
3134 then :
3135 printf %s "(cached) " >&6
3136 else $as_nop
3137 if test -n "$AWK"; then
3138 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 case $as_dir in #(((
3145 '') as_dir=./ ;;
3146 */) ;;
3147 *) as_dir=$as_dir/ ;;
3148 esac
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_AWK="$ac_prog"
3152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 AWK=$ac_cv_prog_AWK
3162 if test -n "$AWK"; then
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3164 printf "%s\n" "$AWK" >&6; }
3165 else
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 printf "%s\n" "no" >&6; }
3168 fi
3169
3170
3171 test -n "$AWK" && break
3172 done
3173
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3175 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3176 set x ${MAKE-make}
3177 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3178 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3179 then :
3180 printf %s "(cached) " >&6
3181 else $as_nop
3182 cat >conftest.make <<\_ACEOF
3183 SHELL = /bin/sh
3184 all:
3185 @echo '@@@%%%=$(MAKE)=@@@%%%'
3186 _ACEOF
3187 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3189 *@@@%%%=?*=@@@%%%*)
3190 eval ac_cv_prog_make_${ac_make}_set=yes;;
3191 *)
3192 eval ac_cv_prog_make_${ac_make}_set=no;;
3193 esac
3194 rm -f conftest.make
3195 fi
3196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198 printf "%s\n" "yes" >&6; }
3199 SET_MAKE=
3200 else
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 printf "%s\n" "no" >&6; }
3203 SET_MAKE="MAKE=${MAKE-make}"
3204 fi
3205
3206 rm -rf .tst 2>/dev/null
3207 mkdir .tst 2>/dev/null
3208 if test -d .tst; then
3209 am__leading_dot=.
3210 else
3211 am__leading_dot=_
3212 fi
3213 rmdir .tst 2>/dev/null
3214
3215 # Check whether --enable-silent-rules was given.
3216 if test ${enable_silent_rules+y}
3217 then :
3218 enableval=$enable_silent_rules;
3219 fi
3220
3221 case $enable_silent_rules in # (((
3222 yes) AM_DEFAULT_VERBOSITY=0;;
3223 no) AM_DEFAULT_VERBOSITY=1;;
3224 *) AM_DEFAULT_VERBOSITY=1;;
3225 esac
3226 am_make=${MAKE-make}
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3228 printf %s "checking whether $am_make supports nested variables... " >&6; }
3229 if test ${am_cv_make_support_nested_variables+y}
3230 then :
3231 printf %s "(cached) " >&6
3232 else $as_nop
3233 if printf "%s\n" 'TRUE=$(BAR$(V))
3234 BAR0=false
3235 BAR1=true
3236 V=1
3237 am__doit:
3238 @$(TRUE)
3239 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3240 am_cv_make_support_nested_variables=yes
3241 else
3242 am_cv_make_support_nested_variables=no
3243 fi
3244 fi
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3246 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3247 if test $am_cv_make_support_nested_variables = yes; then
3248 AM_V='$(V)'
3249 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3250 else
3251 AM_V=$AM_DEFAULT_VERBOSITY
3252 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3253 fi
3254 AM_BACKSLASH='\'
3255
3256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3258 # is not polluted with repeated "-I."
3259 am__isrc=' -I$(srcdir)'
3260 # test to see if srcdir already configured
3261 if test -f $srcdir/config.status; then
3262 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3263 fi
3264 fi
3265
3266 # test whether we have cygpath
3267 if test -z "$CYGPATH_W"; then
3268 if (cygpath --version) >/dev/null 2>/dev/null; then
3269 CYGPATH_W='cygpath -w'
3270 else
3271 CYGPATH_W=echo
3272 fi
3273 fi
3274
3275
3276 # Define the identity of the package.
3277 PACKAGE='librelp'
3278 VERSION='1.12.0'
3279
3280
3281 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3282
3283
3284 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3285
3286 # Some tools Automake needs.
3287
3288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3289
3290
3291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3292
3293
3294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3295
3296
3297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3298
3299
3300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3301
3302 # For better backward compatibility. To be removed once Automake 1.9.x
3303 # dies out for good. For more background, see:
3304 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3305 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3306 mkdir_p='$(MKDIR_P)'
3307
3308 # We need awk for the "check" target (and possibly the TAP driver). The
3309 # system "awk" is bad on some platforms.
3310 # Always define AMTAR for backward compatibility. Yes, it's still used
3311 # in the wild :-( We should find a proper way to deprecate it ...
3312 AMTAR='$${TAR-tar}'
3313
3314
3315 # We'll loop over all known methods to create a tar archive until one works.
3316 _am_tools='gnutar pax cpio none'
3317
3318 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3319
3320
3321
3322
3323
3324 # Variables for tags utilities; see am/tags.am
3325 if test -z "$CTAGS"; then
3326 CTAGS=ctags
3327 fi
3328
3329 if test -z "$ETAGS"; then
3330 ETAGS=etags
3331 fi
3332
3333 if test -z "$CSCOPE"; then
3334 CSCOPE=cscope
3335 fi
3336
3337
3338
3339 # POSIX will say in a future version that running "rm -f" with no argument
3340 # is OK; and we want to be able to make that assumption in our Makefile
3341 # recipes. So use an aggressive probe to check that the usage we want is
3342 # actually supported "in the wild" to an acceptable degree.
3343 # See automake bug#10828.
3344 # To make any issue more visible, cause the running configure to be aborted
3345 # by default if the 'rm' program in use doesn't match our expectations; the
3346 # user can still override this though.
3347 if rm -f && rm -fr && rm -rf; then : OK; else
3348 cat >&2 <<'END'
3349 Oops!
3350
3351 Your 'rm' program seems unable to run without file operands specified
3352 on the command line, even when the '-f' option is present. This is contrary
3353 to the behaviour of most rm programs out there, and not conforming with
3354 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3355
3356 Please tell [email protected] about your system, including the value
3357 of your $PATH and any error possibly output before this message. This
3358 can help us improve future automake versions.
3359
3360 END
3361 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3362 echo 'Configuration will proceed anyway, since you have set the' >&2
3363 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3364 echo >&2
3365 else
3366 cat >&2 <<'END'
3367 Aborting the configuration process, to ensure you take notice of the issue.
3368
3369 You can download and install GNU coreutils to get an 'rm' implementation
3370 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3371
3372 If you want to complete the configuration process using your problematic
3373 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3374 to "yes", and re-run configure.
3375
3376 END
3377 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3378 fi
3379 fi
3380
3381
3382 # Check whether --enable-silent-rules was given.
3383 if test ${enable_silent_rules+y}
3384 then :
3385 enableval=$enable_silent_rules;
3386 fi
3387
3388 case $enable_silent_rules in # (((
3389 yes) AM_DEFAULT_VERBOSITY=0;;
3390 no) AM_DEFAULT_VERBOSITY=1;;
3391 *) AM_DEFAULT_VERBOSITY=0;;
3392 esac
3393 am_make=${MAKE-make}
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3395 printf %s "checking whether $am_make supports nested variables... " >&6; }
3396 if test ${am_cv_make_support_nested_variables+y}
3397 then :
3398 printf %s "(cached) " >&6
3399 else $as_nop
3400 if printf "%s\n" 'TRUE=$(BAR$(V))
3401 BAR0=false
3402 BAR1=true
3403 V=1
3404 am__doit:
3405 @$(TRUE)
3406 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3407 am_cv_make_support_nested_variables=yes
3408 else
3409 am_cv_make_support_nested_variables=no
3410 fi
3411 fi
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3413 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3414 if test $am_cv_make_support_nested_variables = yes; then
3415 AM_V='$(V)'
3416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3417 else
3418 AM_V=$AM_DEFAULT_VERBOSITY
3419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3420 fi
3421 AM_BACKSLASH='\'
3422
3423
3424 ac_config_headers="$ac_config_headers config.h"
3425
3426
3427
3428 echo HOST: ${host}
3429 case "${host}" in
3430 *-*-linux*)
3431
3432 printf "%s\n" "#define OS_LINUX 1" >>confdefs.h
3433
3434 os_type="linux"
3435 ;;
3436 *-*-*darwin*|*-*-dragonfly*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
3437
3438 printf "%s\n" "#define OS_BSD 1" >>confdefs.h
3439
3440 os_type="bsd"
3441 ;;
3442 *-apple-*)
3443
3444 printf "%s\n" "#define OS_APPLE 1" >>confdefs.h
3445
3446 os_type="apple"
3447 ;;
3448 *-*-kfreebsd*)
3449 # kernel is FreeBSD, but userspace is glibc - i.e. like linux
3450 # do not DEFINE OS_BSD
3451 os_type="bsd"
3452 ;;
3453 *-*-solaris*)
3454 os_type="solaris"
3455
3456 printf "%s\n" "#define OS_SOLARIS 1" >>confdefs.h
3457
3458
3459 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3460
3461
3462 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
3463
3464 CPPFLAGS="-std=c99 $CPPFLAGS"
3465 AM_CFLAGS="-std=c99 $CFLAGS"
3466 SOL_LIBS="-lsocket -lnsl"
3467 # Solaris libuuid does not ship with a pkgconfig file so override the appropriate
3468 # variables (but only if they have not been set by the user).
3469 LIBUUID_CFLAGS=${LIBUUID_CFLAGS:= }
3470 LIBUUID_LIBS=${LIBUUID_LIBS:=-luuid}
3471
3472 ;;
3473 *-*-aix*)
3474 os_type="aix"
3475
3476 printf "%s\n" "#define OS_AIX 1" >>confdefs.h
3477
3478 AM_CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
3479 LDFLAGS="$LDFLAGS -brtl"
3480 ;;
3481 esac
3482 if test x$os_type == xapple; then
3483 OS_APPLE_TRUE=
3484 OS_APPLE_FALSE='#'
3485 else
3486 OS_APPLE_TRUE='#'
3487 OS_APPLE_FALSE=
3488 fi
3489
3490 if test x$os_type == xlinux; then
3491 xOS_LINUX_TRUE=
3492 xOS_LINUX_FALSE='#'
3493 else
3494 xOS_LINUX_TRUE='#'
3495 xOS_LINUX_FALSE=
3496 fi
3497
3498 if test x$os_type == xlinux; then
3499 OS_LINUX_TRUE=
3500 OS_LINUX_FALSE='#'
3501 else
3502 OS_LINUX_TRUE='#'
3503 OS_LINUX_FALSE=
3504 fi
3505
3506 if test x$os_type == xsolaris; then
3507 OS_SOLARIS_TRUE=
3508 OS_SOLARIS_FALSE='#'
3509 else
3510 OS_SOLARIS_TRUE='#'
3511 OS_SOLARIS_FALSE=
3512 fi
3513
3514 if test "x$os_type" = "xaix"; then
3515 OS_AIX_TRUE=
3516 OS_AIX_FALSE='#'
3517 else
3518 OS_AIX_TRUE='#'
3519 OS_AIX_FALSE=
3520 fi
3521
3522
3523
3524
3525
3526
3527
3528
3529 # Find any Python interpreter.
3530 if test -z "$PYTHON"; then
3531 for ac_prog in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
3532 do
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 printf %s "checking for $ac_word... " >&6; }
3537 if test ${ac_cv_path_PYTHON+y}
3538 then :
3539 printf %s "(cached) " >&6
3540 else $as_nop
3541 case $PYTHON in
3542 [\\/]* | ?:[\\/]*)
3543 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3544 ;;
3545 *)
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 case $as_dir in #(((
3551 '') as_dir=./ ;;
3552 */) ;;
3553 *) as_dir=$as_dir/ ;;
3554 esac
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3557 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
3558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561 done
3562 done
3563 IFS=$as_save_IFS
3564
3565 ;;
3566 esac
3567 fi
3568 PYTHON=$ac_cv_path_PYTHON
3569 if test -n "$PYTHON"; then
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3571 printf "%s\n" "$PYTHON" >&6; }
3572 else
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3575 fi
3576
3577
3578 test -n "$PYTHON" && break
3579 done
3580 test -n "$PYTHON" || PYTHON=":"
3581
3582 fi
3583 am_display_PYTHON=python
3584
3585
3586 if test "$PYTHON" = :; then
3587 :
3588 else
3589
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3591 printf %s "checking for $am_display_PYTHON version... " >&6; }
3592 if test ${am_cv_python_version+y}
3593 then :
3594 printf %s "(cached) " >&6
3595 else $as_nop
3596 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
3597 fi
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3599 printf "%s\n" "$am_cv_python_version" >&6; }
3600 PYTHON_VERSION=$am_cv_python_version
3601
3602
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3604 printf %s "checking for $am_display_PYTHON platform... " >&6; }
3605 if test ${am_cv_python_platform+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else $as_nop
3609 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3610 fi
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3612 printf "%s\n" "$am_cv_python_platform" >&6; }
3613 PYTHON_PLATFORM=$am_cv_python_platform
3614
3615
3616 if test "x$prefix" = xNONE; then
3617 am__usable_prefix=$ac_default_prefix
3618 else
3619 am__usable_prefix=$prefix
3620 fi
3621
3622 # Allow user to request using sys.* values from Python,
3623 # instead of the GNU $prefix values.
3624
3625 # Check whether --with-python-sys-prefix was given.
3626 if test ${with_python_sys_prefix+y}
3627 then :
3628 withval=$with_python_sys_prefix; am_use_python_sys=:
3629 else $as_nop
3630 am_use_python_sys=false
3631 fi
3632
3633
3634 # Allow user to override whatever the default Python prefix is.
3635
3636 # Check whether --with-python_prefix was given.
3637 if test ${with_python_prefix+y}
3638 then :
3639 withval=$with_python_prefix; am_python_prefix_subst=$withval
3640 am_cv_python_prefix=$withval
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
3642 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
3644 printf "%s\n" "$am_cv_python_prefix" >&6; }
3645 else $as_nop
3646
3647 if $am_use_python_sys; then
3648 # using python sys.prefix value, not GNU
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
3650 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
3651 if test ${am_cv_python_prefix+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else $as_nop
3655 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
3656 fi
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
3658 printf "%s\n" "$am_cv_python_prefix" >&6; }
3659
3660 case $am_cv_python_prefix in
3661 $am__usable_prefix*)
3662 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
3663 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
3664 ;;
3665 *)
3666 am_python_prefix_subst=$am_cv_python_prefix
3667 ;;
3668 esac
3669 else # using GNU prefix value, not python sys.prefix
3670 am_python_prefix_subst='${prefix}'
3671 am_python_prefix=$am_python_prefix_subst
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
3673 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
3675 printf "%s\n" "$am_python_prefix" >&6; }
3676 fi
3677 fi
3678
3679 # Substituting python_prefix_subst value.
3680 PYTHON_PREFIX=$am_python_prefix_subst
3681
3682
3683 # emacs-page Now do it all over again for Python exec_prefix, but with yet
3684 # another conditional: fall back to regular prefix if that was specified.
3685
3686 # Check whether --with-python_exec_prefix was given.
3687 if test ${with_python_exec_prefix+y}
3688 then :
3689 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
3690 am_cv_python_exec_prefix=$withval
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
3692 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
3694 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
3695 else $as_nop
3696
3697 # no explicit --with-python_exec_prefix, but if
3698 # --with-python_prefix was given, use its value for python_exec_prefix too.
3699 if test -n "$with_python_prefix"
3700 then :
3701 am_python_exec_prefix_subst=$with_python_prefix
3702 am_cv_python_exec_prefix=$with_python_prefix
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
3704 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
3706 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
3707 else $as_nop
3708
3709 # Set am__usable_exec_prefix whether using GNU or Python values,
3710 # since we use that variable for pyexecdir.
3711 if test "x$exec_prefix" = xNONE; then
3712 am__usable_exec_prefix=$am__usable_prefix
3713 else
3714 am__usable_exec_prefix=$exec_prefix
3715 fi
3716 #
3717 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
3719 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
3720 if test ${am_cv_python_exec_prefix+y}
3721 then :
3722 printf %s "(cached) " >&6
3723 else $as_nop
3724 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
3725 fi
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
3727 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
3728 case $am_cv_python_exec_prefix in
3729 $am__usable_exec_prefix*)
3730 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
3731 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
3732 ;;
3733 *)
3734 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
3735 ;;
3736 esac
3737 else # using GNU $exec_prefix, not python sys.exec_prefix
3738 am_python_exec_prefix_subst='${exec_prefix}'
3739 am_python_exec_prefix=$am_python_exec_prefix_subst
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
3741 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
3743 printf "%s\n" "$am_python_exec_prefix" >&6; }
3744 fi
3745 fi
3746 fi
3747
3748 # Substituting python_exec_prefix_subst.
3749 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
3750
3751
3752 # Factor out some code duplication into this shell variable.
3753 am_python_setup_sysconfig="\
3754 import sys
3755 # Prefer sysconfig over distutils.sysconfig, for better compatibility
3756 # with python 3.x. See automake bug#10227.
3757 try:
3758 import sysconfig
3759 except ImportError:
3760 can_use_sysconfig = 0
3761 else:
3762 can_use_sysconfig = 1
3763 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3764 # <https://github.com/pypa/virtualenv/issues/118>
3765 try:
3766 from platform import python_implementation
3767 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3768 can_use_sysconfig = 0
3769 except ImportError:
3770 pass"
3771
3772
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
3774 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
3775 if test ${am_cv_python_pythondir+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else $as_nop
3779 if test "x$am_cv_python_prefix" = x; then
3780 am_py_prefix=$am__usable_prefix
3781 else
3782 am_py_prefix=$am_cv_python_prefix
3783 fi
3784 am_cv_python_pythondir=`$PYTHON -c "
3785 $am_python_setup_sysconfig
3786 if can_use_sysconfig:
3787 if hasattr(sysconfig, 'get_default_scheme'):
3788 scheme = sysconfig.get_default_scheme()
3789 else:
3790 scheme = sysconfig._get_default_scheme()
3791 if scheme == 'posix_local':
3792 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
3793 scheme = 'posix_prefix'
3794 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
3795 else:
3796 from distutils import sysconfig
3797 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3798 sys.stdout.write(sitedir)"`
3799 #
3800 case $am_cv_python_pythondir in
3801 $am_py_prefix*)
3802 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3803 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
3804 ;;
3805 *)
3806 case $am_py_prefix in
3807 /usr|/System*) ;;
3808 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
3809 ;;
3810 esac
3811 ;;
3812 esac
3813
3814 fi
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3816 printf "%s\n" "$am_cv_python_pythondir" >&6; }
3817 pythondir=$am_cv_python_pythondir
3818
3819
3820 pkgpythondir=\${pythondir}/$PACKAGE
3821
3822
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
3824 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
3825 if test ${am_cv_python_pyexecdir+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else $as_nop
3829 if test "x$am_cv_python_exec_prefix" = x; then
3830 am_py_exec_prefix=$am__usable_exec_prefix
3831 else
3832 am_py_exec_prefix=$am_cv_python_exec_prefix
3833 fi
3834 am_cv_python_pyexecdir=`$PYTHON -c "
3835 $am_python_setup_sysconfig
3836 if can_use_sysconfig:
3837 if hasattr(sysconfig, 'get_default_scheme'):
3838 scheme = sysconfig.get_default_scheme()
3839 else:
3840 scheme = sysconfig._get_default_scheme()
3841 if scheme == 'posix_local':
3842 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
3843 scheme = 'posix_prefix'
3844 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
3845 else:
3846 from distutils import sysconfig
3847 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
3848 sys.stdout.write(sitedir)"`
3849 #
3850 case $am_cv_python_pyexecdir in
3851 $am_py_exec_prefix*)
3852 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3853 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
3854 ;;
3855 *)
3856 case $am_py_exec_prefix in
3857 /usr|/System*) ;;
3858 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
3859 ;;
3860 esac
3861 ;;
3862 esac
3863
3864 fi
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3866 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
3867 pyexecdir=$am_cv_python_pyexecdir
3868
3869
3870 pkgpyexecdir=\${pyexecdir}/$PACKAGE
3871
3872
3873
3874 fi
3875
3876
3877 # Checks for programs.
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 if test -n "$ac_tool_prefix"; then
3893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 printf %s "checking for $ac_word... " >&6; }
3897 if test ${ac_cv_prog_CC+y}
3898 then :
3899 printf %s "(cached) " >&6
3900 else $as_nop
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 case $as_dir in #(((
3909 '') as_dir=./ ;;
3910 */) ;;
3911 *) as_dir=$as_dir/ ;;
3912 esac
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 CC=$ac_cv_prog_CC
3926 if test -n "$CC"; then
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 printf "%s\n" "$CC" >&6; }
3929 else
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 printf "%s\n" "no" >&6; }
3932 fi
3933
3934
3935 fi
3936 if test -z "$ac_cv_prog_CC"; then
3937 ac_ct_CC=$CC
3938 # Extract the first word of "gcc", so it can be a program name with args.
3939 set dummy gcc; ac_word=$2
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 printf %s "checking for $ac_word... " >&6; }
3942 if test ${ac_cv_prog_ac_ct_CC+y}
3943 then :
3944 printf %s "(cached) " >&6
3945 else $as_nop
3946 if test -n "$ac_ct_CC"; then
3947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 case $as_dir in #(((
3954 '') as_dir=./ ;;
3955 */) ;;
3956 *) as_dir=$as_dir/ ;;
3957 esac
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_ac_ct_CC="gcc"
3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973 printf "%s\n" "$ac_ct_CC" >&6; }
3974 else
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 printf "%s\n" "no" >&6; }
3977 fi
3978
3979 if test "x$ac_ct_CC" = x; then
3980 CC=""
3981 else
3982 case $cross_compiling:$ac_tool_warned in
3983 yes:)
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3987 esac
3988 CC=$ac_ct_CC
3989 fi
3990 else
3991 CC="$ac_cv_prog_CC"
3992 fi
3993
3994 if test -z "$CC"; then
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}cc; ac_word=$2
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 printf %s "checking for $ac_word... " >&6; }
4000 if test ${ac_cv_prog_CC+y}
4001 then :
4002 printf %s "(cached) " >&6
4003 else $as_nop
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 case $as_dir in #(((
4012 '') as_dir=./ ;;
4013 */) ;;
4014 *) as_dir=$as_dir/ ;;
4015 esac
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4018 ac_cv_prog_CC="${ac_tool_prefix}cc"
4019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4020 break 2
4021 fi
4022 done
4023 done
4024 IFS=$as_save_IFS
4025
4026 fi
4027 fi
4028 CC=$ac_cv_prog_CC
4029 if test -n "$CC"; then
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4031 printf "%s\n" "$CC" >&6; }
4032 else
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 printf "%s\n" "no" >&6; }
4035 fi
4036
4037
4038 fi
4039 fi
4040 if test -z "$CC"; then
4041 # Extract the first word of "cc", so it can be a program name with args.
4042 set dummy cc; ac_word=$2
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 printf %s "checking for $ac_word... " >&6; }
4045 if test ${ac_cv_prog_CC+y}
4046 then :
4047 printf %s "(cached) " >&6
4048 else $as_nop
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 ac_prog_rejected=no
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056 IFS=$as_save_IFS
4057 case $as_dir in #(((
4058 '') as_dir=./ ;;
4059 */) ;;
4060 *) as_dir=$as_dir/ ;;
4061 esac
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4064 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4065 ac_prog_rejected=yes
4066 continue
4067 fi
4068 ac_cv_prog_CC="cc"
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072 done
4073 done
4074 IFS=$as_save_IFS
4075
4076 if test $ac_prog_rejected = yes; then
4077 # We found a bogon in the path, so make sure we never use it.
4078 set dummy $ac_cv_prog_CC
4079 shift
4080 if test $# != 0; then
4081 # We chose a different compiler from the bogus one.
4082 # However, it has the same basename, so the bogon will be chosen
4083 # first if we set CC to just the basename; use the full file name.
4084 shift
4085 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4086 fi
4087 fi
4088 fi
4089 fi
4090 CC=$ac_cv_prog_CC
4091 if test -n "$CC"; then
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093 printf "%s\n" "$CC" >&6; }
4094 else
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 printf "%s\n" "no" >&6; }
4097 fi
4098
4099
4100 fi
4101 if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
4103 for ac_prog in cl.exe
4104 do
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 printf %s "checking for $ac_word... " >&6; }
4109 if test ${ac_cv_prog_CC+y}
4110 then :
4111 printf %s "(cached) " >&6
4112 else $as_nop
4113 if test -n "$CC"; then
4114 ac_cv_prog_CC="$CC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 case $as_dir in #(((
4121 '') as_dir=./ ;;
4122 */) ;;
4123 *) as_dir=$as_dir/ ;;
4124 esac
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 CC=$ac_cv_prog_CC
4138 if test -n "$CC"; then
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 printf "%s\n" "$CC" >&6; }
4141 else
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 printf "%s\n" "no" >&6; }
4144 fi
4145
4146
4147 test -n "$CC" && break
4148 done
4149 fi
4150 if test -z "$CC"; then
4151 ac_ct_CC=$CC
4152 for ac_prog in cl.exe
4153 do
4154 # Extract the first word of "$ac_prog", so it can be a program name with args.
4155 set dummy $ac_prog; ac_word=$2
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 printf %s "checking for $ac_word... " >&6; }
4158 if test ${ac_cv_prog_ac_ct_CC+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else $as_nop
4162 if test -n "$ac_ct_CC"; then
4163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 case $as_dir in #(((
4170 '') as_dir=./ ;;
4171 */) ;;
4172 *) as_dir=$as_dir/ ;;
4173 esac
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_ac_ct_CC="$ac_prog"
4177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180 done
4181 done
4182 IFS=$as_save_IFS
4183
4184 fi
4185 fi
4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4187 if test -n "$ac_ct_CC"; then
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4189 printf "%s\n" "$ac_ct_CC" >&6; }
4190 else
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 printf "%s\n" "no" >&6; }
4193 fi
4194
4195
4196 test -n "$ac_ct_CC" && break
4197 done
4198
4199 if test "x$ac_ct_CC" = x; then
4200 CC=""
4201 else
4202 case $cross_compiling:$ac_tool_warned in
4203 yes:)
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4206 ac_tool_warned=yes ;;
4207 esac
4208 CC=$ac_ct_CC
4209 fi
4210 fi
4211
4212 fi
4213 if test -z "$CC"; then
4214 if test -n "$ac_tool_prefix"; then
4215 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4216 set dummy ${ac_tool_prefix}clang; ac_word=$2
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 printf %s "checking for $ac_word... " >&6; }
4219 if test ${ac_cv_prog_CC+y}
4220 then :
4221 printf %s "(cached) " >&6
4222 else $as_nop
4223 if test -n "$CC"; then
4224 ac_cv_prog_CC="$CC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 case $as_dir in #(((
4231 '') as_dir=./ ;;
4232 */) ;;
4233 *) as_dir=$as_dir/ ;;
4234 esac
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC="${ac_tool_prefix}clang"
4238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 printf "%s\n" "$CC" >&6; }
4251 else
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 printf "%s\n" "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$ac_cv_prog_CC"; then
4259 ac_ct_CC=$CC
4260 # Extract the first word of "clang", so it can be a program name with args.
4261 set dummy clang; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_ac_ct_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else $as_nop
4268 if test -n "$ac_ct_CC"; then
4269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_CC="clang"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4293 if test -n "$ac_ct_CC"; then
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4295 printf "%s\n" "$ac_ct_CC" >&6; }
4296 else
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 printf "%s\n" "no" >&6; }
4299 fi
4300
4301 if test "x$ac_ct_CC" = x; then
4302 CC=""
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4309 esac
4310 CC=$ac_ct_CC
4311 fi
4312 else
4313 CC="$ac_cv_prog_CC"
4314 fi
4315
4316 fi
4317
4318
4319 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error $? "no acceptable C compiler found in \$PATH
4322 See \`config.log' for more details" "$LINENO" 5; }
4323
4324 # Provide some information about the compiler.
4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4326 set X $ac_compile
4327 ac_compiler=$2
4328 for ac_option in --version -v -V -qversion -version; do
4329 { { ac_try="$ac_compiler $ac_option >&5"
4330 case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 printf "%s\n" "$ac_try_echo"; } >&5
4336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4337 ac_status=$?
4338 if test -s conftest.err; then
4339 sed '10a\
4340 ... rest of stderr output deleted ...
4341 10q' conftest.err >conftest.er1
4342 cat conftest.er1 >&5
4343 fi
4344 rm -f conftest.er1 conftest.err
4345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }
4347 done
4348
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351
4352 int
4353 main (void)
4354 {
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 ac_clean_files_save=$ac_clean_files
4361 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4362 # Try to create an executable without -o first, disregard a.out.
4363 # It will help us diagnose broken compilers, and finding out an intuition
4364 # of exeext.
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4366 printf %s "checking whether the C compiler works... " >&6; }
4367 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4368
4369 # The possible output files:
4370 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4371
4372 ac_rmfiles=
4373 for ac_file in $ac_files
4374 do
4375 case $ac_file in
4376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4378 esac
4379 done
4380 rm -f $ac_rmfiles
4381
4382 if { { ac_try="$ac_link_default"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 printf "%s\n" "$ac_try_echo"; } >&5
4389 (eval "$ac_link_default") 2>&5
4390 ac_status=$?
4391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }
4393 then :
4394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4395 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4396 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4397 # so that the user can short-circuit this test for compilers unknown to
4398 # Autoconf.
4399 for ac_file in $ac_files ''
4400 do
4401 test -f "$ac_file" || continue
4402 case $ac_file in
4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4404 ;;
4405 [ab].out )
4406 # We found the default executable, but exeext='' is most
4407 # certainly right.
4408 break;;
4409 *.* )
4410 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4411 then :; else
4412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413 fi
4414 # We set ac_cv_exeext here because the later test for it is not
4415 # safe: cross compilers may not add the suffix if given an `-o'
4416 # argument, so we may need to know it at that point already.
4417 # Even if this section looks crufty: it has the advantage of
4418 # actually working.
4419 break;;
4420 * )
4421 break;;
4422 esac
4423 done
4424 test "$ac_cv_exeext" = no && ac_cv_exeext=
4425
4426 else $as_nop
4427 ac_file=''
4428 fi
4429 if test -z "$ac_file"
4430 then :
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 printf "%s\n" "no" >&6; }
4433 printf "%s\n" "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error 77 "C compiler cannot create executables
4439 See \`config.log' for more details" "$LINENO" 5; }
4440 else $as_nop
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 printf "%s\n" "yes" >&6; }
4443 fi
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4445 printf %s "checking for C compiler default output file name... " >&6; }
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4447 printf "%s\n" "$ac_file" >&6; }
4448 ac_exeext=$ac_cv_exeext
4449
4450 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4451 ac_clean_files=$ac_clean_files_save
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4453 printf %s "checking for suffix of executables... " >&6; }
4454 if { { ac_try="$ac_link"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 printf "%s\n" "$ac_try_echo"; } >&5
4461 (eval "$ac_link") 2>&5
4462 ac_status=$?
4463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464 test $ac_status = 0; }
4465 then :
4466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4467 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4468 # work properly (i.e., refer to `conftest.exe'), while it won't with
4469 # `rm'.
4470 for ac_file in conftest.exe conftest conftest.*; do
4471 test -f "$ac_file" || continue
4472 case $ac_file in
4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4475 break;;
4476 * ) break;;
4477 esac
4478 done
4479 else $as_nop
4480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4482 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4483 See \`config.log' for more details" "$LINENO" 5; }
4484 fi
4485 rm -f conftest conftest$ac_cv_exeext
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4487 printf "%s\n" "$ac_cv_exeext" >&6; }
4488
4489 rm -f conftest.$ac_ext
4490 EXEEXT=$ac_cv_exeext
4491 ac_exeext=$EXEEXT
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <stdio.h>
4495 int
4496 main (void)
4497 {
4498 FILE *f = fopen ("conftest.out", "w");
4499 return ferror (f) || fclose (f) != 0;
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 ac_clean_files="$ac_clean_files conftest.out"
4506 # Check that the compiler produces executables we can run. If not, either
4507 # the compiler is broken, or we cross compile.
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4509 printf %s "checking whether we are cross compiling... " >&6; }
4510 if test "$cross_compiling" != yes; then
4511 { { ac_try="$ac_link"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 printf "%s\n" "$ac_try_echo"; } >&5
4518 (eval "$ac_link") 2>&5
4519 ac_status=$?
4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4522 if { ac_try='./conftest$ac_cv_exeext'
4523 { { case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 printf "%s\n" "$ac_try_echo"; } >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; }; then
4533 cross_compiling=no
4534 else
4535 if test "$cross_compiling" = maybe; then
4536 cross_compiling=yes
4537 else
4538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4540 as_fn_error 77 "cannot run C compiled programs.
4541 If you meant to cross compile, use \`--host'.
4542 See \`config.log' for more details" "$LINENO" 5; }
4543 fi
4544 fi
4545 fi
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4547 printf "%s\n" "$cross_compiling" >&6; }
4548
4549 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4550 ac_clean_files=$ac_clean_files_save
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4552 printf %s "checking for suffix of object files... " >&6; }
4553 if test ${ac_cv_objext+y}
4554 then :
4555 printf %s "(cached) " >&6
4556 else $as_nop
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559
4560 int
4561 main (void)
4562 {
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.o conftest.obj
4569 if { { ac_try="$ac_compile"
4570 case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573 esac
4574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4575 printf "%s\n" "$ac_try_echo"; } >&5
4576 (eval "$ac_compile") 2>&5
4577 ac_status=$?
4578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579 test $ac_status = 0; }
4580 then :
4581 for ac_file in conftest.o conftest.obj conftest.*; do
4582 test -f "$ac_file" || continue;
4583 case $ac_file in
4584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4586 break;;
4587 esac
4588 done
4589 else $as_nop
4590 printf "%s\n" "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error $? "cannot compute suffix of object files: cannot compile
4596 See \`config.log' for more details" "$LINENO" 5; }
4597 fi
4598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4599 fi
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4601 printf "%s\n" "$ac_cv_objext" >&6; }
4602 OBJEXT=$ac_cv_objext
4603 ac_objext=$OBJEXT
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4605 printf %s "checking whether the compiler supports GNU C... " >&6; }
4606 if test ${ac_cv_c_compiler_gnu+y}
4607 then :
4608 printf %s "(cached) " >&6
4609 else $as_nop
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612
4613 int
4614 main (void)
4615 {
4616 #ifndef __GNUC__
4617 choke me
4618 #endif
4619
4620 ;
4621 return 0;
4622 }
4623 _ACEOF
4624 if ac_fn_c_try_compile "$LINENO"
4625 then :
4626 ac_compiler_gnu=yes
4627 else $as_nop
4628 ac_compiler_gnu=no
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4632
4633 fi
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4635 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638 if test $ac_compiler_gnu = yes; then
4639 GCC=yes
4640 else
4641 GCC=
4642 fi
4643 ac_test_CFLAGS=${CFLAGS+y}
4644 ac_save_CFLAGS=$CFLAGS
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4646 printf %s "checking whether $CC accepts -g... " >&6; }
4647 if test ${ac_cv_prog_cc_g+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else $as_nop
4651 ac_save_c_werror_flag=$ac_c_werror_flag
4652 ac_c_werror_flag=yes
4653 ac_cv_prog_cc_g=no
4654 CFLAGS="-g"
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657
4658 int
4659 main (void)
4660 {
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"
4667 then :
4668 ac_cv_prog_cc_g=yes
4669 else $as_nop
4670 CFLAGS=""
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673
4674 int
4675 main (void)
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"
4683 then :
4684
4685 else $as_nop
4686 ac_c_werror_flag=$ac_save_c_werror_flag
4687 CFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main (void)
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"
4700 then :
4701 ac_cv_prog_cc_g=yes
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4708 ac_c_werror_flag=$ac_save_c_werror_flag
4709 fi
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4711 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4712 if test $ac_test_CFLAGS; then
4713 CFLAGS=$ac_save_CFLAGS
4714 elif test $ac_cv_prog_cc_g = yes; then
4715 if test "$GCC" = yes; then
4716 CFLAGS="-g -O2"
4717 else
4718 CFLAGS="-g"
4719 fi
4720 else
4721 if test "$GCC" = yes; then
4722 CFLAGS="-O2"
4723 else
4724 CFLAGS=
4725 fi
4726 fi
4727 ac_prog_cc_stdc=no
4728 if test x$ac_prog_cc_stdc = xno
4729 then :
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4731 printf %s "checking for $CC option to enable C11 features... " >&6; }
4732 if test ${ac_cv_prog_cc_c11+y}
4733 then :
4734 printf %s "(cached) " >&6
4735 else $as_nop
4736 ac_cv_prog_cc_c11=no
4737 ac_save_CC=$CC
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 $ac_c_conftest_c11_program
4741 _ACEOF
4742 for ac_arg in '' -std=gnu11
4743 do
4744 CC="$ac_save_CC $ac_arg"
4745 if ac_fn_c_try_compile "$LINENO"
4746 then :
4747 ac_cv_prog_cc_c11=$ac_arg
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam
4750 test "x$ac_cv_prog_cc_c11" != "xno" && break
4751 done
4752 rm -f conftest.$ac_ext
4753 CC=$ac_save_CC
4754 fi
4755
4756 if test "x$ac_cv_prog_cc_c11" = xno
4757 then :
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759 printf "%s\n" "unsupported" >&6; }
4760 else $as_nop
4761 if test "x$ac_cv_prog_cc_c11" = x
4762 then :
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4764 printf "%s\n" "none needed" >&6; }
4765 else $as_nop
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4767 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4768 CC="$CC $ac_cv_prog_cc_c11"
4769 fi
4770 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4771 ac_prog_cc_stdc=c11
4772 fi
4773 fi
4774 if test x$ac_prog_cc_stdc = xno
4775 then :
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4777 printf %s "checking for $CC option to enable C99 features... " >&6; }
4778 if test ${ac_cv_prog_cc_c99+y}
4779 then :
4780 printf %s "(cached) " >&6
4781 else $as_nop
4782 ac_cv_prog_cc_c99=no
4783 ac_save_CC=$CC
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 $ac_c_conftest_c99_program
4787 _ACEOF
4788 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4789 do
4790 CC="$ac_save_CC $ac_arg"
4791 if ac_fn_c_try_compile "$LINENO"
4792 then :
4793 ac_cv_prog_cc_c99=$ac_arg
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.beam
4796 test "x$ac_cv_prog_cc_c99" != "xno" && break
4797 done
4798 rm -f conftest.$ac_ext
4799 CC=$ac_save_CC
4800 fi
4801
4802 if test "x$ac_cv_prog_cc_c99" = xno
4803 then :
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4805 printf "%s\n" "unsupported" >&6; }
4806 else $as_nop
4807 if test "x$ac_cv_prog_cc_c99" = x
4808 then :
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 printf "%s\n" "none needed" >&6; }
4811 else $as_nop
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4813 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4814 CC="$CC $ac_cv_prog_cc_c99"
4815 fi
4816 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4817 ac_prog_cc_stdc=c99
4818 fi
4819 fi
4820 if test x$ac_prog_cc_stdc = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4823 printf %s "checking for $CC option to enable C89 features... " >&6; }
4824 if test ${ac_cv_prog_cc_c89+y}
4825 then :
4826 printf %s "(cached) " >&6
4827 else $as_nop
4828 ac_cv_prog_cc_c89=no
4829 ac_save_CC=$CC
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 $ac_c_conftest_c89_program
4833 _ACEOF
4834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835 do
4836 CC="$ac_save_CC $ac_arg"
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839 ac_cv_prog_cc_c89=$ac_arg
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.beam
4842 test "x$ac_cv_prog_cc_c89" != "xno" && break
4843 done
4844 rm -f conftest.$ac_ext
4845 CC=$ac_save_CC
4846 fi
4847
4848 if test "x$ac_cv_prog_cc_c89" = xno
4849 then :
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4851 printf "%s\n" "unsupported" >&6; }
4852 else $as_nop
4853 if test "x$ac_cv_prog_cc_c89" = x
4854 then :
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4856 printf "%s\n" "none needed" >&6; }
4857 else $as_nop
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4859 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4860 CC="$CC $ac_cv_prog_cc_c89"
4861 fi
4862 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4863 ac_prog_cc_stdc=c89
4864 fi
4865 fi
4866
4867 ac_ext=c
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872
4873
4874 ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4880 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4881 if test ${am_cv_prog_cc_c_o+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else $as_nop
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 int
4889 main (void)
4890 {
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 # Make sure it works both with $CC and with simple cc.
4897 # Following AC_PROG_CC_C_O, we do the test twice because some
4898 # compilers refuse to overwrite an existing .o file with -o,
4899 # though they will create one.
4900 am_cv_prog_cc_c_o=yes
4901 for am_i in 1 2; do
4902 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4903 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } \
4907 && test -f conftest2.$ac_objext; then
4908 : OK
4909 else
4910 am_cv_prog_cc_c_o=no
4911 break
4912 fi
4913 done
4914 rm -f core conftest*
4915 unset am_i
4916 fi
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4918 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4919 if test "$am_cv_prog_cc_c_o" != yes; then
4920 # Losing compiler, so override with the script.
4921 # FIXME: It is wrong to rewrite CC.
4922 # But if we don't then we get into trouble of one sort or another.
4923 # A longer-term fix would be to have automake use am__CC in this case,
4924 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4925 CC="$am_aux_dir/compile $CC"
4926 fi
4927 ac_ext=c
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932
4933 DEPDIR="${am__leading_dot}deps"
4934
4935 ac_config_commands="$ac_config_commands depfiles"
4936
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4938 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4939 cat > confinc.mk << 'END'
4940 am__doit:
4941 @echo this is the am__doit target >confinc.out
4942 .PHONY: am__doit
4943 END
4944 am__include="#"
4945 am__quote=
4946 # BSD make does it like this.
4947 echo '.include "confinc.mk" # ignored' > confmf.BSD
4948 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4949 echo 'include confinc.mk # ignored' > confmf.GNU
4950 _am_result=no
4951 for s in GNU BSD; do
4952 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4953 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }
4957 case $?:`cat confinc.out 2>/dev/null` in #(
4958 '0:this is the am__doit target') :
4959 case $s in #(
4960 BSD) :
4961 am__include='.include' am__quote='"' ;; #(
4962 *) :
4963 am__include='include' am__quote='' ;;
4964 esac ;; #(
4965 *) :
4966 ;;
4967 esac
4968 if test "$am__include" != "#"; then
4969 _am_result="yes ($s style)"
4970 break
4971 fi
4972 done
4973 rm -f confinc.* confmf.*
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4975 printf "%s\n" "${_am_result}" >&6; }
4976
4977 # Check whether --enable-dependency-tracking was given.
4978 if test ${enable_dependency_tracking+y}
4979 then :
4980 enableval=$enable_dependency_tracking;
4981 fi
4982
4983 if test "x$enable_dependency_tracking" != xno; then
4984 am_depcomp="$ac_aux_dir/depcomp"
4985 AMDEPBACKSLASH='\'
4986 am__nodep='_no'
4987 fi
4988 if test "x$enable_dependency_tracking" != xno; then
4989 AMDEP_TRUE=
4990 AMDEP_FALSE='#'
4991 else
4992 AMDEP_TRUE='#'
4993 AMDEP_FALSE=
4994 fi
4995
4996
4997
4998 depcc="$CC" am_compiler_list=
4999
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5001 printf %s "checking dependency style of $depcc... " >&6; }
5002 if test ${am_cv_CC_dependencies_compiler_type+y}
5003 then :
5004 printf %s "(cached) " >&6
5005 else $as_nop
5006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5007 # We make a subdir and do the tests there. Otherwise we can end up
5008 # making bogus files that we don't know about and never remove. For
5009 # instance it was reported that on HP-UX the gcc test will end up
5010 # making a dummy file named 'D' -- because '-MD' means "put the output
5011 # in D".
5012 rm -rf conftest.dir
5013 mkdir conftest.dir
5014 # Copy depcomp to subdir because otherwise we won't find it if we're
5015 # using a relative directory.
5016 cp "$am_depcomp" conftest.dir
5017 cd conftest.dir
5018 # We will build objects and dependencies in a subdirectory because
5019 # it helps to detect inapplicable dependency modes. For instance
5020 # both Tru64's cc and ICC support -MD to output dependencies as a
5021 # side effect of compilation, but ICC will put the dependencies in
5022 # the current directory while Tru64 will put them in the object
5023 # directory.
5024 mkdir sub
5025
5026 am_cv_CC_dependencies_compiler_type=none
5027 if test "$am_compiler_list" = ""; then
5028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5029 fi
5030 am__universal=false
5031 case " $depcc " in #(
5032 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5033 esac
5034
5035 for depmode in $am_compiler_list; do
5036 # Setup a source with many dependencies, because some compilers
5037 # like to wrap large dependency lists on column 80 (with \), and
5038 # we should not choose a depcomp mode which is confused by this.
5039 #
5040 # We need to recreate these files for each test, as the compiler may
5041 # overwrite some of them when testing with obscure command lines.
5042 # This happens at least with the AIX C compiler.
5043 : > sub/conftest.c
5044 for i in 1 2 3 4 5 6; do
5045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5046 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5047 # Solaris 10 /bin/sh.
5048 echo '/* dummy */' > sub/conftst$i.h
5049 done
5050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5051
5052 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5053 # mode. It turns out that the SunPro C++ compiler does not properly
5054 # handle '-M -o', and we need to detect this. Also, some Intel
5055 # versions had trouble with output in subdirs.
5056 am__obj=sub/conftest.${OBJEXT-o}
5057 am__minus_obj="-o $am__obj"
5058 case $depmode in
5059 gcc)
5060 # This depmode causes a compiler race in universal mode.
5061 test "$am__universal" = false || continue
5062 ;;
5063 nosideeffect)
5064 # After this tag, mechanisms are not by side-effect, so they'll
5065 # only be used when explicitly requested.
5066 if test "x$enable_dependency_tracking" = xyes; then
5067 continue
5068 else
5069 break
5070 fi
5071 ;;
5072 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5073 # This compiler won't grok '-c -o', but also, the minuso test has
5074 # not run yet. These depmodes are late enough in the game, and
5075 # so weak that their functioning should not be impacted.
5076 am__obj=conftest.${OBJEXT-o}
5077 am__minus_obj=
5078 ;;
5079 none) break ;;
5080 esac
5081 if depmode=$depmode \
5082 source=sub/conftest.c object=$am__obj \
5083 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5084 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5085 >/dev/null 2>conftest.err &&
5086 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5087 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5088 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5089 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5090 # icc doesn't choke on unknown options, it will just issue warnings
5091 # or remarks (even with -Werror). So we grep stderr for any message
5092 # that says an option was ignored or not supported.
5093 # When given -MP, icc 7.0 and 7.1 complain thusly:
5094 # icc: Command line warning: ignoring option '-M'; no argument required
5095 # The diagnosis changed in icc 8.0:
5096 # icc: Command line remark: option '-MP' not supported
5097 if (grep 'ignoring option' conftest.err ||
5098 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5099 am_cv_CC_dependencies_compiler_type=$depmode
5100 break
5101 fi
5102 fi
5103 done
5104
5105 cd ..
5106 rm -rf conftest.dir
5107 else
5108 am_cv_CC_dependencies_compiler_type=none
5109 fi
5110
5111 fi
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5113 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5114 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5115
5116 if
5117 test "x$enable_dependency_tracking" != xno \
5118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5119 am__fastdepCC_TRUE=
5120 am__fastdepCC_FALSE='#'
5121 else
5122 am__fastdepCC_TRUE='#'
5123 am__fastdepCC_FALSE=
5124 fi
5125
5126
5127
5128
5129 if test "$GCC" = "yes"
5130 then AM_CFLAGS="$CFLAGS -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g"
5131 fi
5132
5133 case `pwd` in
5134 *\ * | *\ *)
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5136 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5137 esac
5138
5139
5140
5141 macro_version='2.4.7'
5142 macro_revision='2.4.7'
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 ltmain=$ac_aux_dir/ltmain.sh
5158
5159
5160
5161 # Make sure we can run config.sub.
5162 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5163 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5164
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5166 printf %s "checking build system type... " >&6; }
5167 if test ${ac_cv_build+y}
5168 then :
5169 printf %s "(cached) " >&6
5170 else $as_nop
5171 ac_build_alias=$build_alias
5172 test "x$ac_build_alias" = x &&
5173 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5174 test "x$ac_build_alias" = x &&
5175 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5176 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5177 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5178
5179 fi
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5181 printf "%s\n" "$ac_cv_build" >&6; }
5182 case $ac_cv_build in
5183 *-*-*) ;;
5184 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5185 esac
5186 build=$ac_cv_build
5187 ac_save_IFS=$IFS; IFS='-'
5188 set x $ac_cv_build
5189 shift
5190 build_cpu=$1
5191 build_vendor=$2
5192 shift; shift
5193 # Remember, the first character of IFS is used to create $*,
5194 # except with old shells:
5195 build_os=$*
5196 IFS=$ac_save_IFS
5197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5198
5199
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5201 printf %s "checking host system type... " >&6; }
5202 if test ${ac_cv_host+y}
5203 then :
5204 printf %s "(cached) " >&6
5205 else $as_nop
5206 if test "x$host_alias" = x; then
5207 ac_cv_host=$ac_cv_build
5208 else
5209 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5210 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5211 fi
5212
5213 fi
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5215 printf "%s\n" "$ac_cv_host" >&6; }
5216 case $ac_cv_host in
5217 *-*-*) ;;
5218 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5219 esac
5220 host=$ac_cv_host
5221 ac_save_IFS=$IFS; IFS='-'
5222 set x $ac_cv_host
5223 shift
5224 host_cpu=$1
5225 host_vendor=$2
5226 shift; shift
5227 # Remember, the first character of IFS is used to create $*,
5228 # except with old shells:
5229 host_os=$*
5230 IFS=$ac_save_IFS
5231 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5232
5233
5234 # Backslashify metacharacters that are still active within
5235 # double-quoted strings.
5236 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5237
5238 # Same as above, but do not quote variable references.
5239 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5240
5241 # Sed substitution to delay expansion of an escaped shell variable in a
5242 # double_quote_subst'ed string.
5243 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5244
5245 # Sed substitution to delay expansion of an escaped single quote.
5246 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5247
5248 # Sed substitution to avoid accidental globbing in evaled expressions
5249 no_glob_subst='s/\*/\\\*/g'
5250
5251 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5252 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5253 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5254
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5256 printf %s "checking how to print strings... " >&6; }
5257 # Test print first, because it will be a builtin if present.
5258 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5259 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5260 ECHO='print -r --'
5261 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5262 ECHO='printf %s\n'
5263 else
5264 # Use this function as a fallback that always works.
5265 func_fallback_echo ()
5266 {
5267 eval 'cat <<_LTECHO_EOF
5268 $1
5269 _LTECHO_EOF'
5270 }
5271 ECHO='func_fallback_echo'
5272 fi
5273
5274 # func_echo_all arg...
5275 # Invoke $ECHO with all args, space-separated.
5276 func_echo_all ()
5277 {
5278 $ECHO ""
5279 }
5280
5281 case $ECHO in
5282 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5283 printf "%s\n" "printf" >&6; } ;;
5284 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5285 printf "%s\n" "print -r" >&6; } ;;
5286 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5287 printf "%s\n" "cat" >&6; } ;;
5288 esac
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5304 printf %s "checking for a sed that does not truncate output... " >&6; }
5305 if test ${ac_cv_path_SED+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else $as_nop
5309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5310 for ac_i in 1 2 3 4 5 6 7; do
5311 ac_script="$ac_script$as_nl$ac_script"
5312 done
5313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5314 { ac_script=; unset ac_script;}
5315 if test -z "$SED"; then
5316 ac_path_SED_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 case $as_dir in #(((
5323 '') as_dir=./ ;;
5324 */) ;;
5325 *) as_dir=$as_dir/ ;;
5326 esac
5327 for ac_prog in sed gsed
5328 do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5331 as_fn_executable_p "$ac_path_SED" || continue
5332 # Check for GNU ac_path_SED and select it if it is found.
5333 # Check for GNU $ac_path_SED
5334 case `"$ac_path_SED" --version 2>&1` in
5335 *GNU*)
5336 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5337 *)
5338 ac_count=0
5339 printf %s 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 printf "%s\n" '' >> "conftest.nl"
5346 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_SED_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_SED="$ac_path_SED"
5352 ac_path_SED_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360 $ac_path_SED_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_SED"; then
5366 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5367 fi
5368 else
5369 ac_cv_path_SED=$SED
5370 fi
5371
5372 fi
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5374 printf "%s\n" "$ac_cv_path_SED" >&6; }
5375 SED="$ac_cv_path_SED"
5376 rm -f conftest.sed
5377
5378 test -z "$SED" && SED=sed
5379 Xsed="$SED -e 1s/^X//"
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5392 printf %s "checking for grep that handles long lines and -e... " >&6; }
5393 if test ${ac_cv_path_GREP+y}
5394 then :
5395 printf %s "(cached) " >&6
5396 else $as_nop
5397 if test -z "$GREP"; then
5398 ac_path_GREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 do
5403 IFS=$as_save_IFS
5404 case $as_dir in #(((
5405 '') as_dir=./ ;;
5406 */) ;;
5407 *) as_dir=$as_dir/ ;;
5408 esac
5409 for ac_prog in grep ggrep
5410 do
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5413 as_fn_executable_p "$ac_path_GREP" || continue
5414 # Check for GNU ac_path_GREP and select it if it is found.
5415 # Check for GNU $ac_path_GREP
5416 case `"$ac_path_GREP" --version 2>&1` in
5417 *GNU*)
5418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5419 *)
5420 ac_count=0
5421 printf %s 0123456789 >"conftest.in"
5422 while :
5423 do
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 printf "%s\n" 'GREP' >> "conftest.nl"
5428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5430 as_fn_arith $ac_count + 1 && ac_count=$as_val
5431 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_GREP="$ac_path_GREP"
5434 ac_path_GREP_max=$ac_count
5435 fi
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5438 done
5439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440 esac
5441
5442 $ac_path_GREP_found && break 3
5443 done
5444 done
5445 done
5446 IFS=$as_save_IFS
5447 if test -z "$ac_cv_path_GREP"; then
5448 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5449 fi
5450 else
5451 ac_cv_path_GREP=$GREP
5452 fi
5453
5454 fi
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5456 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5457 GREP="$ac_cv_path_GREP"
5458
5459
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5461 printf %s "checking for egrep... " >&6; }
5462 if test ${ac_cv_path_EGREP+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else $as_nop
5466 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5467 then ac_cv_path_EGREP="$GREP -E"
5468 else
5469 if test -z "$EGREP"; then
5470 ac_path_EGREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 do
5475 IFS=$as_save_IFS
5476 case $as_dir in #(((
5477 '') as_dir=./ ;;
5478 */) ;;
5479 *) as_dir=$as_dir/ ;;
5480 esac
5481 for ac_prog in egrep
5482 do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5485 as_fn_executable_p "$ac_path_EGREP" || continue
5486 # Check for GNU ac_path_EGREP and select it if it is found.
5487 # Check for GNU $ac_path_EGREP
5488 case `"$ac_path_EGREP" --version 2>&1` in
5489 *GNU*)
5490 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5491 *)
5492 ac_count=0
5493 printf %s 0123456789 >"conftest.in"
5494 while :
5495 do
5496 cat "conftest.in" "conftest.in" >"conftest.tmp"
5497 mv "conftest.tmp" "conftest.in"
5498 cp "conftest.in" "conftest.nl"
5499 printf "%s\n" 'EGREP' >> "conftest.nl"
5500 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5502 as_fn_arith $ac_count + 1 && ac_count=$as_val
5503 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5504 # Best one so far, save it but keep looking for a better one
5505 ac_cv_path_EGREP="$ac_path_EGREP"
5506 ac_path_EGREP_max=$ac_count
5507 fi
5508 # 10*(2^10) chars as input seems more than enough
5509 test $ac_count -gt 10 && break
5510 done
5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 esac
5513
5514 $ac_path_EGREP_found && break 3
5515 done
5516 done
5517 done
5518 IFS=$as_save_IFS
5519 if test -z "$ac_cv_path_EGREP"; then
5520 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5521 fi
5522 else
5523 ac_cv_path_EGREP=$EGREP
5524 fi
5525
5526 fi
5527 fi
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5529 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5530 EGREP="$ac_cv_path_EGREP"
5531
5532
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5534 printf %s "checking for fgrep... " >&6; }
5535 if test ${ac_cv_path_FGREP+y}
5536 then :
5537 printf %s "(cached) " >&6
5538 else $as_nop
5539 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5540 then ac_cv_path_FGREP="$GREP -F"
5541 else
5542 if test -z "$FGREP"; then
5543 ac_path_FGREP_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547 do
5548 IFS=$as_save_IFS
5549 case $as_dir in #(((
5550 '') as_dir=./ ;;
5551 */) ;;
5552 *) as_dir=$as_dir/ ;;
5553 esac
5554 for ac_prog in fgrep
5555 do
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5558 as_fn_executable_p "$ac_path_FGREP" || continue
5559 # Check for GNU ac_path_FGREP and select it if it is found.
5560 # Check for GNU $ac_path_FGREP
5561 case `"$ac_path_FGREP" --version 2>&1` in
5562 *GNU*)
5563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5564 *)
5565 ac_count=0
5566 printf %s 0123456789 >"conftest.in"
5567 while :
5568 do
5569 cat "conftest.in" "conftest.in" >"conftest.tmp"
5570 mv "conftest.tmp" "conftest.in"
5571 cp "conftest.in" "conftest.nl"
5572 printf "%s\n" 'FGREP' >> "conftest.nl"
5573 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575 as_fn_arith $ac_count + 1 && ac_count=$as_val
5576 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5577 # Best one so far, save it but keep looking for a better one
5578 ac_cv_path_FGREP="$ac_path_FGREP"
5579 ac_path_FGREP_max=$ac_count
5580 fi
5581 # 10*(2^10) chars as input seems more than enough
5582 test $ac_count -gt 10 && break
5583 done
5584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585 esac
5586
5587 $ac_path_FGREP_found && break 3
5588 done
5589 done
5590 done
5591 IFS=$as_save_IFS
5592 if test -z "$ac_cv_path_FGREP"; then
5593 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5594 fi
5595 else
5596 ac_cv_path_FGREP=$FGREP
5597 fi
5598
5599 fi
5600 fi
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5602 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5603 FGREP="$ac_cv_path_FGREP"
5604
5605
5606 test -z "$GREP" && GREP=grep
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 # Check whether --with-gnu-ld was given.
5627 if test ${with_gnu_ld+y}
5628 then :
5629 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5630 else $as_nop
5631 with_gnu_ld=no
5632 fi
5633
5634 ac_prog=ld
5635 if test yes = "$GCC"; then
5636 # Check if gcc -print-prog-name=ld gives a path.
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5638 printf %s "checking for ld used by $CC... " >&6; }
5639 case $host in
5640 *-*-mingw*)
5641 # gcc leaves a trailing carriage return, which upsets mingw
5642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5643 *)
5644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5645 esac
5646 case $ac_prog in
5647 # Accept absolute paths.
5648 [\\/]* | ?:[\\/]*)
5649 re_direlt='/[^/][^/]*/\.\./'
5650 # Canonicalize the pathname of ld
5651 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5652 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5653 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5654 done
5655 test -z "$LD" && LD=$ac_prog
5656 ;;
5657 "")
5658 # If it fails, then pretend we aren't using GCC.
5659 ac_prog=ld
5660 ;;
5661 *)
5662 # If it is relative, then search for the first ld in PATH.
5663 with_gnu_ld=unknown
5664 ;;
5665 esac
5666 elif test yes = "$with_gnu_ld"; then
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5668 printf %s "checking for GNU ld... " >&6; }
5669 else
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5671 printf %s "checking for non-GNU ld... " >&6; }
5672 fi
5673 if test ${lt_cv_path_LD+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else $as_nop
5677 if test -z "$LD"; then
5678 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5679 for ac_dir in $PATH; do
5680 IFS=$lt_save_ifs
5681 test -z "$ac_dir" && ac_dir=.
5682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5683 lt_cv_path_LD=$ac_dir/$ac_prog
5684 # Check to see if the program is GNU ld. I'd rather use --version,
5685 # but apparently some variants of GNU ld only accept -v.
5686 # Break only if it was the GNU/non-GNU ld that we prefer.
5687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5688 *GNU* | *'with BFD'*)
5689 test no != "$with_gnu_ld" && break
5690 ;;
5691 *)
5692 test yes != "$with_gnu_ld" && break
5693 ;;
5694 esac
5695 fi
5696 done
5697 IFS=$lt_save_ifs
5698 else
5699 lt_cv_path_LD=$LD # Let the user override the test with a path.
5700 fi
5701 fi
5702
5703 LD=$lt_cv_path_LD
5704 if test -n "$LD"; then
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5706 printf "%s\n" "$LD" >&6; }
5707 else
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 printf "%s\n" "no" >&6; }
5710 fi
5711 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5713 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5714 if test ${lt_cv_prog_gnu_ld+y}
5715 then :
5716 printf %s "(cached) " >&6
5717 else $as_nop
5718 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5719 case `$LD -v 2>&1 </dev/null` in
5720 *GNU* | *'with BFD'*)
5721 lt_cv_prog_gnu_ld=yes
5722 ;;
5723 *)
5724 lt_cv_prog_gnu_ld=no
5725 ;;
5726 esac
5727 fi
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5729 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5730 with_gnu_ld=$lt_cv_prog_gnu_ld
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5741 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5742 if test ${lt_cv_path_NM+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 if test -n "$NM"; then
5747 # Let the user override the test.
5748 lt_cv_path_NM=$NM
5749 else
5750 lt_nm_to_check=${ac_tool_prefix}nm
5751 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5752 lt_nm_to_check="$lt_nm_to_check nm"
5753 fi
5754 for lt_tmp_nm in $lt_nm_to_check; do
5755 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5756 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5757 IFS=$lt_save_ifs
5758 test -z "$ac_dir" && ac_dir=.
5759 tmp_nm=$ac_dir/$lt_tmp_nm
5760 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5761 # Check to see if the nm accepts a BSD-compat flag.
5762 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5763 # nm: unknown option "B" ignored
5764 # Tru64's nm complains that /dev/null is an invalid object file
5765 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5766 case $build_os in
5767 mingw*) lt_bad_file=conftest.nm/nofile ;;
5768 *) lt_bad_file=/dev/null ;;
5769 esac
5770 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5771 *$lt_bad_file* | *'Invalid file or object type'*)
5772 lt_cv_path_NM="$tmp_nm -B"
5773 break 2
5774 ;;
5775 *)
5776 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5777 */dev/null*)
5778 lt_cv_path_NM="$tmp_nm -p"
5779 break 2
5780 ;;
5781 *)
5782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5783 continue # so that we can try to find one that supports BSD flags
5784 ;;
5785 esac
5786 ;;
5787 esac
5788 fi
5789 done
5790 IFS=$lt_save_ifs
5791 done
5792 : ${lt_cv_path_NM=no}
5793 fi
5794 fi
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5796 printf "%s\n" "$lt_cv_path_NM" >&6; }
5797 if test no != "$lt_cv_path_NM"; then
5798 NM=$lt_cv_path_NM
5799 else
5800 # Didn't find any BSD compatible name lister, look for dumpbin.
5801 if test -n "$DUMPBIN"; then :
5802 # Let the user override the test.
5803 else
5804 if test -n "$ac_tool_prefix"; then
5805 for ac_prog in dumpbin "link -dump"
5806 do
5807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 printf %s "checking for $ac_word... " >&6; }
5811 if test ${ac_cv_prog_DUMPBIN+y}
5812 then :
5813 printf %s "(cached) " >&6
5814 else $as_nop
5815 if test -n "$DUMPBIN"; then
5816 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 case $as_dir in #(((
5823 '') as_dir=./ ;;
5824 */) ;;
5825 *) as_dir=$as_dir/ ;;
5826 esac
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 DUMPBIN=$ac_cv_prog_DUMPBIN
5840 if test -n "$DUMPBIN"; then
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5842 printf "%s\n" "$DUMPBIN" >&6; }
5843 else
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 printf "%s\n" "no" >&6; }
5846 fi
5847
5848
5849 test -n "$DUMPBIN" && break
5850 done
5851 fi
5852 if test -z "$DUMPBIN"; then
5853 ac_ct_DUMPBIN=$DUMPBIN
5854 for ac_prog in dumpbin "link -dump"
5855 do
5856 # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 printf %s "checking for $ac_word... " >&6; }
5860 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5861 then :
5862 printf %s "(cached) " >&6
5863 else $as_nop
5864 if test -n "$ac_ct_DUMPBIN"; then
5865 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870 IFS=$as_save_IFS
5871 case $as_dir in #(((
5872 '') as_dir=./ ;;
5873 */) ;;
5874 *) as_dir=$as_dir/ ;;
5875 esac
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5889 if test -n "$ac_ct_DUMPBIN"; then
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5891 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5892 else
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 printf "%s\n" "no" >&6; }
5895 fi
5896
5897
5898 test -n "$ac_ct_DUMPBIN" && break
5899 done
5900
5901 if test "x$ac_ct_DUMPBIN" = x; then
5902 DUMPBIN=":"
5903 else
5904 case $cross_compiling:$ac_tool_warned in
5905 yes:)
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 ac_tool_warned=yes ;;
5909 esac
5910 DUMPBIN=$ac_ct_DUMPBIN
5911 fi
5912 fi
5913
5914 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5915 *COFF*)
5916 DUMPBIN="$DUMPBIN -symbols -headers"
5917 ;;
5918 *)
5919 DUMPBIN=:
5920 ;;
5921 esac
5922 fi
5923
5924 if test : != "$DUMPBIN"; then
5925 NM=$DUMPBIN
5926 fi
5927 fi
5928 test -z "$NM" && NM=nm
5929
5930
5931
5932
5933
5934
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5936 printf %s "checking the name lister ($NM) interface... " >&6; }
5937 if test ${lt_cv_nm_interface+y}
5938 then :
5939 printf %s "(cached) " >&6
5940 else $as_nop
5941 lt_cv_nm_interface="BSD nm"
5942 echo "int some_variable = 0;" > conftest.$ac_ext
5943 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5944 (eval "$ac_compile" 2>conftest.err)
5945 cat conftest.err >&5
5946 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5947 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5948 cat conftest.err >&5
5949 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5950 cat conftest.out >&5
5951 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5952 lt_cv_nm_interface="MS dumpbin"
5953 fi
5954 rm -f conftest*
5955 fi
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5957 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5958
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5960 printf %s "checking whether ln -s works... " >&6; }
5961 LN_S=$as_ln_s
5962 if test "$LN_S" = "ln -s"; then
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5964 printf "%s\n" "yes" >&6; }
5965 else
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5967 printf "%s\n" "no, using $LN_S" >&6; }
5968 fi
5969
5970 # find the maximum length of command line arguments
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5972 printf %s "checking the maximum length of command line arguments... " >&6; }
5973 if test ${lt_cv_sys_max_cmd_len+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else $as_nop
5977 i=0
5978 teststring=ABCD
5979
5980 case $build_os in
5981 msdosdjgpp*)
5982 # On DJGPP, this test can blow up pretty badly due to problems in libc
5983 # (any single argument exceeding 2000 bytes causes a buffer overrun
5984 # during glob expansion). Even if it were fixed, the result of this
5985 # check would be larger than it should be.
5986 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5987 ;;
5988
5989 gnu*)
5990 # Under GNU Hurd, this test is not required because there is
5991 # no limit to the length of command line arguments.
5992 # Libtool will interpret -1 as no limit whatsoever
5993 lt_cv_sys_max_cmd_len=-1;
5994 ;;
5995
5996 cygwin* | mingw* | cegcc*)
5997 # On Win9x/ME, this test blows up -- it succeeds, but takes
5998 # about 5 minutes as the teststring grows exponentially.
5999 # Worse, since 9x/ME are not pre-emptively multitasking,
6000 # you end up with a "frozen" computer, even though with patience
6001 # the test eventually succeeds (with a max line length of 256k).
6002 # Instead, let's just punt: use the minimum linelength reported by
6003 # all of the supported platforms: 8192 (on NT/2K/XP).
6004 lt_cv_sys_max_cmd_len=8192;
6005 ;;
6006
6007 mint*)
6008 # On MiNT this can take a long time and run out of memory.
6009 lt_cv_sys_max_cmd_len=8192;
6010 ;;
6011
6012 amigaos*)
6013 # On AmigaOS with pdksh, this test takes hours, literally.
6014 # So we just punt and use a minimum line length of 8192.
6015 lt_cv_sys_max_cmd_len=8192;
6016 ;;
6017
6018 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6019 # This has been around since 386BSD, at least. Likely further.
6020 if test -x /sbin/sysctl; then
6021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6022 elif test -x /usr/sbin/sysctl; then
6023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6024 else
6025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6026 fi
6027 # And add a safety zone
6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6030 ;;
6031
6032 interix*)
6033 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6034 lt_cv_sys_max_cmd_len=196608
6035 ;;
6036
6037 os2*)
6038 # The test takes a long time on OS/2.
6039 lt_cv_sys_max_cmd_len=8192
6040 ;;
6041
6042 osf*)
6043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6045 # nice to cause kernel panics so lets avoid the loop below.
6046 # First set a reasonable default.
6047 lt_cv_sys_max_cmd_len=16384
6048 #
6049 if test -x /sbin/sysconfig; then
6050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6052 esac
6053 fi
6054 ;;
6055 sco3.2v5*)
6056 lt_cv_sys_max_cmd_len=102400
6057 ;;
6058 sysv5* | sco5v6* | sysv4.2uw2*)
6059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6060 if test -n "$kargmax"; then
6061 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6062 else
6063 lt_cv_sys_max_cmd_len=32768
6064 fi
6065 ;;
6066 *)
6067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6068 if test -n "$lt_cv_sys_max_cmd_len" && \
6069 test undefined != "$lt_cv_sys_max_cmd_len"; then
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072 else
6073 # Make teststring a little bigger before we do anything with it.
6074 # a 1K string should be a reasonable start.
6075 for i in 1 2 3 4 5 6 7 8; do
6076 teststring=$teststring$teststring
6077 done
6078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6079 # If test is not a shell built-in, we'll probably end up computing a
6080 # maximum length that is only half of the actual maximum length, but
6081 # we can't tell.
6082 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6083 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6084 test 17 != "$i" # 1/2 MB should be enough
6085 do
6086 i=`expr $i + 1`
6087 teststring=$teststring$teststring
6088 done
6089 # Only check the string length outside the loop.
6090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6091 teststring=
6092 # Add a significant safety factor because C++ compilers can tack on
6093 # massive amounts of additional arguments before passing them to the
6094 # linker. It appears as though 1/2 is a usable value.
6095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6096 fi
6097 ;;
6098 esac
6099
6100 fi
6101
6102 if test -n "$lt_cv_sys_max_cmd_len"; then
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6104 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6105 else
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6107 printf "%s\n" "none" >&6; }
6108 fi
6109 max_cmd_len=$lt_cv_sys_max_cmd_len
6110
6111
6112
6113
6114
6115
6116 : ${CP="cp -f"}
6117 : ${MV="mv -f"}
6118 : ${RM="rm -f"}
6119
6120 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6121 lt_unset=unset
6122 else
6123 lt_unset=false
6124 fi
6125
6126
6127
6128
6129
6130 # test EBCDIC or ASCII
6131 case `echo X|tr X '\101'` in
6132 A) # ASCII based system
6133 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6134 lt_SP2NL='tr \040 \012'
6135 lt_NL2SP='tr \015\012 \040\040'
6136 ;;
6137 *) # EBCDIC based system
6138 lt_SP2NL='tr \100 \n'
6139 lt_NL2SP='tr \r\n \100\100'
6140 ;;
6141 esac
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6152 printf %s "checking how to convert $build file names to $host format... " >&6; }
6153 if test ${lt_cv_to_host_file_cmd+y}
6154 then :
6155 printf %s "(cached) " >&6
6156 else $as_nop
6157 case $host in
6158 *-*-mingw* )
6159 case $build in
6160 *-*-mingw* ) # actually msys
6161 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6162 ;;
6163 *-*-cygwin* )
6164 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6165 ;;
6166 * ) # otherwise, assume *nix
6167 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6168 ;;
6169 esac
6170 ;;
6171 *-*-cygwin* )
6172 case $build in
6173 *-*-mingw* ) # actually msys
6174 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6175 ;;
6176 *-*-cygwin* )
6177 lt_cv_to_host_file_cmd=func_convert_file_noop
6178 ;;
6179 * ) # otherwise, assume *nix
6180 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6181 ;;
6182 esac
6183 ;;
6184 * ) # unhandled hosts (and "normal" native builds)
6185 lt_cv_to_host_file_cmd=func_convert_file_noop
6186 ;;
6187 esac
6188
6189 fi
6190
6191 to_host_file_cmd=$lt_cv_to_host_file_cmd
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6193 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6194
6195
6196
6197
6198
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6200 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6201 if test ${lt_cv_to_tool_file_cmd+y}
6202 then :
6203 printf %s "(cached) " >&6
6204 else $as_nop
6205 #assume ordinary cross tools, or native build.
6206 lt_cv_to_tool_file_cmd=func_convert_file_noop
6207 case $host in
6208 *-*-mingw* )
6209 case $build in
6210 *-*-mingw* ) # actually msys
6211 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6212 ;;
6213 esac
6214 ;;
6215 esac
6216
6217 fi
6218
6219 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6221 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6222
6223
6224
6225
6226
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6228 printf %s "checking for $LD option to reload object files... " >&6; }
6229 if test ${lt_cv_ld_reload_flag+y}
6230 then :
6231 printf %s "(cached) " >&6
6232 else $as_nop
6233 lt_cv_ld_reload_flag='-r'
6234 fi
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6236 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6237 reload_flag=$lt_cv_ld_reload_flag
6238 case $reload_flag in
6239 "" | " "*) ;;
6240 *) reload_flag=" $reload_flag" ;;
6241 esac
6242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243 case $host_os in
6244 cygwin* | mingw* | pw32* | cegcc*)
6245 if test yes != "$GCC"; then
6246 reload_cmds=false
6247 fi
6248 ;;
6249 darwin*)
6250 if test yes = "$GCC"; then
6251 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6252 else
6253 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254 fi
6255 ;;
6256 esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}file; ac_word=$2
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 printf %s "checking for $ac_word... " >&6; }
6271 if test ${ac_cv_prog_FILECMD+y}
6272 then :
6273 printf %s "(cached) " >&6
6274 else $as_nop
6275 if test -n "$FILECMD"; then
6276 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281 IFS=$as_save_IFS
6282 case $as_dir in #(((
6283 '') as_dir=./ ;;
6284 */) ;;
6285 *) as_dir=$as_dir/ ;;
6286 esac
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6289 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 FILECMD=$ac_cv_prog_FILECMD
6300 if test -n "$FILECMD"; then
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6302 printf "%s\n" "$FILECMD" >&6; }
6303 else
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 printf "%s\n" "no" >&6; }
6306 fi
6307
6308
6309 fi
6310 if test -z "$ac_cv_prog_FILECMD"; then
6311 ac_ct_FILECMD=$FILECMD
6312 # Extract the first word of "file", so it can be a program name with args.
6313 set dummy file; ac_word=$2
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 printf %s "checking for $ac_word... " >&6; }
6316 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6317 then :
6318 printf %s "(cached) " >&6
6319 else $as_nop
6320 if test -n "$ac_ct_FILECMD"; then
6321 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326 IFS=$as_save_IFS
6327 case $as_dir in #(((
6328 '') as_dir=./ ;;
6329 */) ;;
6330 *) as_dir=$as_dir/ ;;
6331 esac
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_FILECMD="file"
6335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6345 if test -n "$ac_ct_FILECMD"; then
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6347 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6348 else
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 printf "%s\n" "no" >&6; }
6351 fi
6352
6353 if test "x$ac_ct_FILECMD" = x; then
6354 FILECMD=":"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362 FILECMD=$ac_ct_FILECMD
6363 fi
6364 else
6365 FILECMD="$ac_cv_prog_FILECMD"
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 printf %s "checking for $ac_word... " >&6; }
6379 if test ${ac_cv_prog_OBJDUMP+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else $as_nop
6383 if test -n "$OBJDUMP"; then
6384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 case $as_dir in #(((
6391 '') as_dir=./ ;;
6392 */) ;;
6393 *) as_dir=$as_dir/ ;;
6394 esac
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 OBJDUMP=$ac_cv_prog_OBJDUMP
6408 if test -n "$OBJDUMP"; then
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6410 printf "%s\n" "$OBJDUMP" >&6; }
6411 else
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 printf "%s\n" "no" >&6; }
6414 fi
6415
6416
6417 fi
6418 if test -z "$ac_cv_prog_OBJDUMP"; then
6419 ac_ct_OBJDUMP=$OBJDUMP
6420 # Extract the first word of "objdump", so it can be a program name with args.
6421 set dummy objdump; ac_word=$2
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 printf %s "checking for $ac_word... " >&6; }
6424 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6425 then :
6426 printf %s "(cached) " >&6
6427 else $as_nop
6428 if test -n "$ac_ct_OBJDUMP"; then
6429 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 case $as_dir in #(((
6436 '') as_dir=./ ;;
6437 */) ;;
6438 *) as_dir=$as_dir/ ;;
6439 esac
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6453 if test -n "$ac_ct_OBJDUMP"; then
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6455 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6456 else
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 printf "%s\n" "no" >&6; }
6459 fi
6460
6461 if test "x$ac_ct_OBJDUMP" = x; then
6462 OBJDUMP="false"
6463 else
6464 case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470 OBJDUMP=$ac_ct_OBJDUMP
6471 fi
6472 else
6473 OBJDUMP="$ac_cv_prog_OBJDUMP"
6474 fi
6475
6476 test -z "$OBJDUMP" && OBJDUMP=objdump
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6487 printf %s "checking how to recognize dependent libraries... " >&6; }
6488 if test ${lt_cv_deplibs_check_method+y}
6489 then :
6490 printf %s "(cached) " >&6
6491 else $as_nop
6492 lt_cv_file_magic_cmd='$MAGIC_CMD'
6493 lt_cv_file_magic_test_file=
6494 lt_cv_deplibs_check_method='unknown'
6495 # Need to set the preceding variable on all platforms that support
6496 # interlibrary dependencies.
6497 # 'none' -- dependencies not supported.
6498 # 'unknown' -- same as none, but documents that we really don't know.
6499 # 'pass_all' -- all dependencies passed with no checks.
6500 # 'test_compile' -- check by making test program.
6501 # 'file_magic [[regex]]' -- check by looking for files in library path
6502 # that responds to the $file_magic_cmd with a given extended regex.
6503 # If you have 'file' or equivalent on your system and you're not sure
6504 # whether 'pass_all' will *always* work, you probably want this one.
6505
6506 case $host_os in
6507 aix[4-9]*)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510
6511 beos*)
6512 lt_cv_deplibs_check_method=pass_all
6513 ;;
6514
6515 bsdi[45]*)
6516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6517 lt_cv_file_magic_cmd='$FILECMD -L'
6518 lt_cv_file_magic_test_file=/shlib/libc.so
6519 ;;
6520
6521 cygwin*)
6522 # func_win32_libid is a shell function defined in ltmain.sh
6523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524 lt_cv_file_magic_cmd='func_win32_libid'
6525 ;;
6526
6527 mingw* | pw32*)
6528 # Base MSYS/MinGW do not provide the 'file' command needed by
6529 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6530 # unless we find 'file', for example because we are cross-compiling.
6531 if ( file / ) >/dev/null 2>&1; then
6532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6533 lt_cv_file_magic_cmd='func_win32_libid'
6534 else
6535 # Keep this pattern in sync with the one in func_win32_libid.
6536 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6537 lt_cv_file_magic_cmd='$OBJDUMP -f'
6538 fi
6539 ;;
6540
6541 cegcc*)
6542 # use the weaker test based on 'objdump'. See mingw*.
6543 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6544 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 ;;
6546
6547 darwin* | rhapsody*)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550
6551 freebsd* | dragonfly* | midnightbsd*)
6552 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6553 case $host_cpu in
6554 i*86 )
6555 # Not sure whether the presence of OpenBSD here was a mistake.
6556 # Let's accept both of them until this is cleared up.
6557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6558 lt_cv_file_magic_cmd=$FILECMD
6559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6560 ;;
6561 esac
6562 else
6563 lt_cv_deplibs_check_method=pass_all
6564 fi
6565 ;;
6566
6567 haiku*)
6568 lt_cv_deplibs_check_method=pass_all
6569 ;;
6570
6571 hpux10.20* | hpux11*)
6572 lt_cv_file_magic_cmd=$FILECMD
6573 case $host_cpu in
6574 ia64*)
6575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6576 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6577 ;;
6578 hppa*64*)
6579 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]'
6580 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6581 ;;
6582 *)
6583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6584 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6585 ;;
6586 esac
6587 ;;
6588
6589 interix[3-9]*)
6590 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6592 ;;
6593
6594 irix5* | irix6* | nonstopux*)
6595 case $LD in
6596 *-32|*"-32 ") libmagic=32-bit;;
6597 *-n32|*"-n32 ") libmagic=N32;;
6598 *-64|*"-64 ") libmagic=64-bit;;
6599 *) libmagic=never-match;;
6600 esac
6601 lt_cv_deplibs_check_method=pass_all
6602 ;;
6603
6604 # This must be glibc/ELF.
6605 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6606 lt_cv_deplibs_check_method=pass_all
6607 ;;
6608
6609 netbsd* | netbsdelf*-gnu)
6610 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6612 else
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6614 fi
6615 ;;
6616
6617 newos6*)
6618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6619 lt_cv_file_magic_cmd=$FILECMD
6620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6621 ;;
6622
6623 *nto* | *qnx*)
6624 lt_cv_deplibs_check_method=pass_all
6625 ;;
6626
6627 openbsd* | bitrig*)
6628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6630 else
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6632 fi
6633 ;;
6634
6635 osf3* | osf4* | osf5*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639 rdos*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642
6643 solaris*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651 sysv4 | sysv4.3*)
6652 case $host_vendor in
6653 motorola)
6654 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]'
6655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6656 ;;
6657 ncr)
6658 lt_cv_deplibs_check_method=pass_all
6659 ;;
6660 sequent)
6661 lt_cv_file_magic_cmd='/bin/file'
6662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6663 ;;
6664 sni)
6665 lt_cv_file_magic_cmd='/bin/file'
6666 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6667 lt_cv_file_magic_test_file=/lib/libc.so
6668 ;;
6669 siemens)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672 pc)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6675 esac
6676 ;;
6677
6678 tpf*)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681 os2*)
6682 lt_cv_deplibs_check_method=pass_all
6683 ;;
6684 esac
6685
6686 fi
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6688 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6689
6690 file_magic_glob=
6691 want_nocaseglob=no
6692 if test "$build" = "$host"; then
6693 case $host_os in
6694 mingw* | pw32*)
6695 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6696 want_nocaseglob=yes
6697 else
6698 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6699 fi
6700 ;;
6701 esac
6702 fi
6703
6704 file_magic_cmd=$lt_cv_file_magic_cmd
6705 deplibs_check_method=$lt_cv_deplibs_check_method
6706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 printf %s "checking for $ac_word... " >&6; }
6734 if test ${ac_cv_prog_DLLTOOL+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else $as_nop
6738 if test -n "$DLLTOOL"; then
6739 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 case $as_dir in #(((
6746 '') as_dir=./ ;;
6747 */) ;;
6748 *) as_dir=$as_dir/ ;;
6749 esac
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 DLLTOOL=$ac_cv_prog_DLLTOOL
6763 if test -n "$DLLTOOL"; then
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6765 printf "%s\n" "$DLLTOOL" >&6; }
6766 else
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 printf "%s\n" "no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_DLLTOOL"; then
6774 ac_ct_DLLTOOL=$DLLTOOL
6775 # Extract the first word of "dlltool", so it can be a program name with args.
6776 set dummy dlltool; ac_word=$2
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 printf %s "checking for $ac_word... " >&6; }
6779 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6780 then :
6781 printf %s "(cached) " >&6
6782 else $as_nop
6783 if test -n "$ac_ct_DLLTOOL"; then
6784 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789 IFS=$as_save_IFS
6790 case $as_dir in #(((
6791 '') as_dir=./ ;;
6792 */) ;;
6793 *) as_dir=$as_dir/ ;;
6794 esac
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6808 if test -n "$ac_ct_DLLTOOL"; then
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6810 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6811 else
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 printf "%s\n" "no" >&6; }
6814 fi
6815
6816 if test "x$ac_ct_DLLTOOL" = x; then
6817 DLLTOOL="false"
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825 DLLTOOL=$ac_ct_DLLTOOL
6826 fi
6827 else
6828 DLLTOOL="$ac_cv_prog_DLLTOOL"
6829 fi
6830
6831 test -z "$DLLTOOL" && DLLTOOL=dlltool
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6843 printf %s "checking how to associate runtime and link libraries... " >&6; }
6844 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else $as_nop
6848 lt_cv_sharedlib_from_linklib_cmd='unknown'
6849
6850 case $host_os in
6851 cygwin* | mingw* | pw32* | cegcc*)
6852 # two different shell functions defined in ltmain.sh;
6853 # decide which one to use based on capabilities of $DLLTOOL
6854 case `$DLLTOOL --help 2>&1` in
6855 *--identify-strict*)
6856 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6857 ;;
6858 *)
6859 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6860 ;;
6861 esac
6862 ;;
6863 *)
6864 # fallback: assume linklib IS sharedlib
6865 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6866 ;;
6867 esac
6868
6869 fi
6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6871 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6872 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6873 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6874
6875
6876
6877
6878
6879
6880
6881
6882 if test -n "$ac_tool_prefix"; then
6883 for ac_prog in ar
6884 do
6885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 printf %s "checking for $ac_word... " >&6; }
6889 if test ${ac_cv_prog_AR+y}
6890 then :
6891 printf %s "(cached) " >&6
6892 else $as_nop
6893 if test -n "$AR"; then
6894 ac_cv_prog_AR="$AR" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 case $as_dir in #(((
6901 '') as_dir=./ ;;
6902 */) ;;
6903 *) as_dir=$as_dir/ ;;
6904 esac
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 AR=$ac_cv_prog_AR
6918 if test -n "$AR"; then
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6920 printf "%s\n" "$AR" >&6; }
6921 else
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 printf "%s\n" "no" >&6; }
6924 fi
6925
6926
6927 test -n "$AR" && break
6928 done
6929 fi
6930 if test -z "$AR"; then
6931 ac_ct_AR=$AR
6932 for ac_prog in ar
6933 do
6934 # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 printf %s "checking for $ac_word... " >&6; }
6938 if test ${ac_cv_prog_ac_ct_AR+y}
6939 then :
6940 printf %s "(cached) " >&6
6941 else $as_nop
6942 if test -n "$ac_ct_AR"; then
6943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 case $as_dir in #(((
6950 '') as_dir=./ ;;
6951 */) ;;
6952 *) as_dir=$as_dir/ ;;
6953 esac
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_ac_ct_AR="$ac_prog"
6957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6967 if test -n "$ac_ct_AR"; then
6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6969 printf "%s\n" "$ac_ct_AR" >&6; }
6970 else
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 printf "%s\n" "no" >&6; }
6973 fi
6974
6975
6976 test -n "$ac_ct_AR" && break
6977 done
6978
6979 if test "x$ac_ct_AR" = x; then
6980 AR="false"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988 AR=$ac_ct_AR
6989 fi
6990 fi
6991
6992 : ${AR=ar}
6993
6994
6995
6996
6997
6998
6999 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7000 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7001 # higher priority because thats what people were doing historically (setting
7002 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7003 # variable obsoleted/removed.
7004
7005 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7006 lt_ar_flags=$AR_FLAGS
7007
7008
7009
7010
7011
7012
7013 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7014 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7015
7016
7017
7018
7019
7020
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7022 printf %s "checking for archiver @FILE support... " >&6; }
7023 if test ${lt_cv_ar_at_file+y}
7024 then :
7025 printf %s "(cached) " >&6
7026 else $as_nop
7027 lt_cv_ar_at_file=no
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030
7031 int
7032 main (void)
7033 {
7034
7035 ;
7036 return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_c_try_compile "$LINENO"
7040 then :
7041 echo conftest.$ac_objext > conftest.lst
7042 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7044 (eval $lt_ar_try) 2>&5
7045 ac_status=$?
7046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047 test $ac_status = 0; }
7048 if test 0 -eq "$ac_status"; then
7049 # Ensure the archiver fails upon bogus file names.
7050 rm -f conftest.$ac_objext libconftest.a
7051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7052 (eval $lt_ar_try) 2>&5
7053 ac_status=$?
7054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }
7056 if test 0 -ne "$ac_status"; then
7057 lt_cv_ar_at_file=@
7058 fi
7059 fi
7060 rm -f conftest.* libconftest.a
7061
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7064
7065 fi
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7067 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7068
7069 if test no = "$lt_cv_ar_at_file"; then
7070 archiver_list_spec=
7071 else
7072 archiver_list_spec=$lt_cv_ar_at_file
7073 fi
7074
7075
7076
7077
7078
7079
7080
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}strip; ac_word=$2
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 printf %s "checking for $ac_word... " >&6; }
7086 if test ${ac_cv_prog_STRIP+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else $as_nop
7090 if test -n "$STRIP"; then
7091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 case $as_dir in #(((
7098 '') as_dir=./ ;;
7099 */) ;;
7100 *) as_dir=$as_dir/ ;;
7101 esac
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 STRIP=$ac_cv_prog_STRIP
7115 if test -n "$STRIP"; then
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7117 printf "%s\n" "$STRIP" >&6; }
7118 else
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 printf "%s\n" "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_STRIP"; then
7126 ac_ct_STRIP=$STRIP
7127 # Extract the first word of "strip", so it can be a program name with args.
7128 set dummy strip; ac_word=$2
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 printf %s "checking for $ac_word... " >&6; }
7131 if test ${ac_cv_prog_ac_ct_STRIP+y}
7132 then :
7133 printf %s "(cached) " >&6
7134 else $as_nop
7135 if test -n "$ac_ct_STRIP"; then
7136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 case $as_dir in #(((
7143 '') as_dir=./ ;;
7144 */) ;;
7145 *) as_dir=$as_dir/ ;;
7146 esac
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_ac_ct_STRIP="strip"
7150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7160 if test -n "$ac_ct_STRIP"; then
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7162 printf "%s\n" "$ac_ct_STRIP" >&6; }
7163 else
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 printf "%s\n" "no" >&6; }
7166 fi
7167
7168 if test "x$ac_ct_STRIP" = x; then
7169 STRIP=":"
7170 else
7171 case $cross_compiling:$ac_tool_warned in
7172 yes:)
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177 STRIP=$ac_ct_STRIP
7178 fi
7179 else
7180 STRIP="$ac_cv_prog_STRIP"
7181 fi
7182
7183 test -z "$STRIP" && STRIP=:
7184
7185
7186
7187
7188
7189
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 printf %s "checking for $ac_word... " >&6; }
7195 if test ${ac_cv_prog_RANLIB+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else $as_nop
7199 if test -n "$RANLIB"; then
7200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 case $as_dir in #(((
7207 '') as_dir=./ ;;
7208 */) ;;
7209 *) as_dir=$as_dir/ ;;
7210 esac
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 RANLIB=$ac_cv_prog_RANLIB
7224 if test -n "$RANLIB"; then
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7226 printf "%s\n" "$RANLIB" >&6; }
7227 else
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 printf "%s\n" "no" >&6; }
7230 fi
7231
7232
7233 fi
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235 ac_ct_RANLIB=$RANLIB
7236 # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 printf %s "checking for $ac_word... " >&6; }
7240 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7241 then :
7242 printf %s "(cached) " >&6
7243 else $as_nop
7244 if test -n "$ac_ct_RANLIB"; then
7245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 case $as_dir in #(((
7252 '') as_dir=./ ;;
7253 */) ;;
7254 *) as_dir=$as_dir/ ;;
7255 esac
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_ac_ct_RANLIB="ranlib"
7259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7269 if test -n "$ac_ct_RANLIB"; then
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7271 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7272 else
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 printf "%s\n" "no" >&6; }
7275 fi
7276
7277 if test "x$ac_ct_RANLIB" = x; then
7278 RANLIB=":"
7279 else
7280 case $cross_compiling:$ac_tool_warned in
7281 yes:)
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286 RANLIB=$ac_ct_RANLIB
7287 fi
7288 else
7289 RANLIB="$ac_cv_prog_RANLIB"
7290 fi
7291
7292 test -z "$RANLIB" && RANLIB=:
7293
7294
7295
7296
7297
7298
7299 # Determine commands to create old-style static archives.
7300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7301 old_postinstall_cmds='chmod 644 $oldlib'
7302 old_postuninstall_cmds=
7303
7304 if test -n "$RANLIB"; then
7305 case $host_os in
7306 bitrig* | openbsd*)
7307 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7308 ;;
7309 *)
7310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7311 ;;
7312 esac
7313 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7314 fi
7315
7316 case $host_os in
7317 darwin*)
7318 lock_old_archive_extraction=yes ;;
7319 *)
7320 lock_old_archive_extraction=no ;;
7321 esac
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361 # If no C compiler was specified, use CC.
7362 LTCC=${LTCC-"$CC"}
7363
7364 # If no C compiler flags were specified, use CFLAGS.
7365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7366
7367 # Allow CC to be a program name with arguments.
7368 compiler=$CC
7369
7370
7371 # Check for command to grab the raw symbol name followed by C symbol from nm.
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7373 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7374 if test ${lt_cv_sys_global_symbol_pipe+y}
7375 then :
7376 printf %s "(cached) " >&6
7377 else $as_nop
7378
7379 # These are sane defaults that work on at least a few old systems.
7380 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7381
7382 # Character class describing NM global symbol codes.
7383 symcode='[BCDEGRST]'
7384
7385 # Regexp to match symbols that can be accessed directly from C.
7386 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7387
7388 # Define system-specific variables.
7389 case $host_os in
7390 aix*)
7391 symcode='[BCDT]'
7392 ;;
7393 cygwin* | mingw* | pw32* | cegcc*)
7394 symcode='[ABCDGISTW]'
7395 ;;
7396 hpux*)
7397 if test ia64 = "$host_cpu"; then
7398 symcode='[ABCDEGRST]'
7399 fi
7400 ;;
7401 irix* | nonstopux*)
7402 symcode='[BCDEGRST]'
7403 ;;
7404 osf*)
7405 symcode='[BCDEGQRST]'
7406 ;;
7407 solaris*)
7408 symcode='[BDRT]'
7409 ;;
7410 sco3.2v5*)
7411 symcode='[DT]'
7412 ;;
7413 sysv4.2uw2*)
7414 symcode='[DT]'
7415 ;;
7416 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7417 symcode='[ABDT]'
7418 ;;
7419 sysv4)
7420 symcode='[DFNSTU]'
7421 ;;
7422 esac
7423
7424 # If we're using GNU nm, then use its standard symbol codes.
7425 case `$NM -V 2>&1` in
7426 *GNU* | *'with BFD'*)
7427 symcode='[ABCDGIRSTW]' ;;
7428 esac
7429
7430 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7431 # Gets list of data symbols to import.
7432 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7433 # Adjust the below global symbol transforms to fixup imported variables.
7434 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7435 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7436 lt_c_name_lib_hook="\
7437 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7438 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7439 else
7440 # Disable hooks by default.
7441 lt_cv_sys_global_symbol_to_import=
7442 lt_cdecl_hook=
7443 lt_c_name_hook=
7444 lt_c_name_lib_hook=
7445 fi
7446
7447 # Transform an extracted symbol line into a proper C declaration.
7448 # Some systems (esp. on ia64) link data and code symbols differently,
7449 # so use this general approach.
7450 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7451 $lt_cdecl_hook\
7452 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7453 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7454
7455 # Transform an extracted symbol line into symbol name and symbol address
7456 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7457 $lt_c_name_hook\
7458 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7459 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7460
7461 # Transform an extracted symbol line into symbol name with lib prefix and
7462 # symbol address.
7463 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7464 $lt_c_name_lib_hook\
7465 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7466 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7467 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7468
7469 # Handle CRLF in mingw tool chain
7470 opt_cr=
7471 case $build_os in
7472 mingw*)
7473 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7474 ;;
7475 esac
7476
7477 # Try without a prefix underscore, then with it.
7478 for ac_symprfx in "" "_"; do
7479
7480 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7481 symxfrm="\\1 $ac_symprfx\\2 \\2"
7482
7483 # Write the raw and C identifiers.
7484 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7485 # Fake it for dumpbin and say T for any non-static function,
7486 # D for any global variable and I for any imported variable.
7487 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7488 # which start with @ or ?.
7489 lt_cv_sys_global_symbol_pipe="$AWK '"\
7490 " {last_section=section; section=\$ 3};"\
7491 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7492 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7493 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7494 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7495 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7496 " \$ 0!~/External *\|/{next};"\
7497 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7498 " {if(hide[section]) next};"\
7499 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7500 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7501 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7502 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7503 " ' prfx=^$ac_symprfx"
7504 else
7505 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7506 fi
7507 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7508
7509 # Check to see that the pipe works correctly.
7510 pipe_works=no
7511
7512 rm -f conftest*
7513 cat > conftest.$ac_ext <<_LT_EOF
7514 #ifdef __cplusplus
7515 extern "C" {
7516 #endif
7517 char nm_test_var;
7518 void nm_test_func(void);
7519 void nm_test_func(void){}
7520 #ifdef __cplusplus
7521 }
7522 #endif
7523 int main(){nm_test_var='a';nm_test_func();return(0);}
7524 _LT_EOF
7525
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7528 ac_status=$?
7529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 # Now try to grab the symbols.
7532 nlist=conftest.nm
7533 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7534 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7535 # Try sorting and uniquifying the output.
7536 if sort "$nlist" | uniq > "$nlist"T; then
7537 mv -f "$nlist"T "$nlist"
7538 else
7539 rm -f "$nlist"T
7540 fi
7541
7542 # Make sure that we snagged all the symbols we need.
7543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7545 cat <<_LT_EOF > conftest.$ac_ext
7546 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7547 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7548 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7549 relocations are performed -- see ld's documentation on pseudo-relocs. */
7550 # define LT_DLSYM_CONST
7551 #elif defined __osf__
7552 /* This system does not cope well with relocations in const data. */
7553 # define LT_DLSYM_CONST
7554 #else
7555 # define LT_DLSYM_CONST const
7556 #endif
7557
7558 #ifdef __cplusplus
7559 extern "C" {
7560 #endif
7561
7562 _LT_EOF
7563 # Now generate the symbol file.
7564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7565
7566 cat <<_LT_EOF >> conftest.$ac_ext
7567
7568 /* The mapping between symbol names and symbols. */
7569 LT_DLSYM_CONST struct {
7570 const char *name;
7571 void *address;
7572 }
7573 lt__PROGRAM__LTX_preloaded_symbols[] =
7574 {
7575 { "@PROGRAM@", (void *) 0 },
7576 _LT_EOF
7577 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7578 cat <<\_LT_EOF >> conftest.$ac_ext
7579 {0, (void *) 0}
7580 };
7581
7582 /* This works around a problem in FreeBSD linker */
7583 #ifdef FREEBSD_WORKAROUND
7584 static const void *lt_preloaded_setup() {
7585 return lt__PROGRAM__LTX_preloaded_symbols;
7586 }
7587 #endif
7588
7589 #ifdef __cplusplus
7590 }
7591 #endif
7592 _LT_EOF
7593 # Now try linking the two files.
7594 mv conftest.$ac_objext conftstm.$ac_objext
7595 lt_globsym_save_LIBS=$LIBS
7596 lt_globsym_save_CFLAGS=$CFLAGS
7597 LIBS=conftstm.$ac_objext
7598 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7600 (eval $ac_link) 2>&5
7601 ac_status=$?
7602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7604 pipe_works=yes
7605 fi
7606 LIBS=$lt_globsym_save_LIBS
7607 CFLAGS=$lt_globsym_save_CFLAGS
7608 else
7609 echo "cannot find nm_test_func in $nlist" >&5
7610 fi
7611 else
7612 echo "cannot find nm_test_var in $nlist" >&5
7613 fi
7614 else
7615 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7616 fi
7617 else
7618 echo "$progname: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 fi
7621 rm -rf conftest* conftst*
7622
7623 # Do not use the global_symbol_pipe unless it works.
7624 if test yes = "$pipe_works"; then
7625 break
7626 else
7627 lt_cv_sys_global_symbol_pipe=
7628 fi
7629 done
7630
7631 fi
7632
7633 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7634 lt_cv_sys_global_symbol_to_cdecl=
7635 fi
7636 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7638 printf "%s\n" "failed" >&6; }
7639 else
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7641 printf "%s\n" "ok" >&6; }
7642 fi
7643
7644 # Response file support.
7645 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7646 nm_file_list_spec='@'
7647 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7648 nm_file_list_spec='@'
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7688 printf %s "checking for sysroot... " >&6; }
7689
7690 # Check whether --with-sysroot was given.
7691 if test ${with_sysroot+y}
7692 then :
7693 withval=$with_sysroot;
7694 else $as_nop
7695 with_sysroot=no
7696 fi
7697
7698
7699 lt_sysroot=
7700 case $with_sysroot in #(
7701 yes)
7702 if test yes = "$GCC"; then
7703 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7704 fi
7705 ;; #(
7706 /*)
7707 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7708 ;; #(
7709 no|'')
7710 ;; #(
7711 *)
7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7713 printf "%s\n" "$with_sysroot" >&6; }
7714 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7715 ;;
7716 esac
7717
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7719 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7720
7721
7722
7723
7724
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7726 printf %s "checking for a working dd... " >&6; }
7727 if test ${ac_cv_path_lt_DD+y}
7728 then :
7729 printf %s "(cached) " >&6
7730 else $as_nop
7731 printf 0123456789abcdef0123456789abcdef >conftest.i
7732 cat conftest.i conftest.i >conftest2.i
7733 : ${lt_DD:=$DD}
7734 if test -z "$lt_DD"; then
7735 ac_path_lt_DD_found=false
7736 # Loop through the user's path and test for each of PROGNAME-LIST
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740 IFS=$as_save_IFS
7741 case $as_dir in #(((
7742 '') as_dir=./ ;;
7743 */) ;;
7744 *) as_dir=$as_dir/ ;;
7745 esac
7746 for ac_prog in dd
7747 do
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7750 as_fn_executable_p "$ac_path_lt_DD" || continue
7751 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7752 cmp -s conftest.i conftest.out \
7753 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7754 fi
7755 $ac_path_lt_DD_found && break 3
7756 done
7757 done
7758 done
7759 IFS=$as_save_IFS
7760 if test -z "$ac_cv_path_lt_DD"; then
7761 :
7762 fi
7763 else
7764 ac_cv_path_lt_DD=$lt_DD
7765 fi
7766
7767 rm -f conftest.i conftest2.i conftest.out
7768 fi
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7770 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7771
7772
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7774 printf %s "checking how to truncate binary pipes... " >&6; }
7775 if test ${lt_cv_truncate_bin+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
7779 printf 0123456789abcdef0123456789abcdef >conftest.i
7780 cat conftest.i conftest.i >conftest2.i
7781 lt_cv_truncate_bin=
7782 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7783 cmp -s conftest.i conftest.out \
7784 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7785 fi
7786 rm -f conftest.i conftest2.i conftest.out
7787 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7788 fi
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7790 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7791
7792
7793
7794
7795
7796
7797
7798 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7799 func_cc_basename ()
7800 {
7801 for cc_temp in $*""; do
7802 case $cc_temp in
7803 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7804 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7805 \-*) ;;
7806 *) break;;
7807 esac
7808 done
7809 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7810 }
7811
7812 # Check whether --enable-libtool-lock was given.
7813 if test ${enable_libtool_lock+y}
7814 then :
7815 enableval=$enable_libtool_lock;
7816 fi
7817
7818 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7819
7820 # Some flags need to be propagated to the compiler or linker for good
7821 # libtool support.
7822 case $host in
7823 ia64-*-hpux*)
7824 # Find out what ABI is being produced by ac_compile, and set mode
7825 # options accordingly.
7826 echo 'int i;' > conftest.$ac_ext
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828 (eval $ac_compile) 2>&5
7829 ac_status=$?
7830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 case `$FILECMD conftest.$ac_objext` in
7833 *ELF-32*)
7834 HPUX_IA64_MODE=32
7835 ;;
7836 *ELF-64*)
7837 HPUX_IA64_MODE=64
7838 ;;
7839 esac
7840 fi
7841 rm -rf conftest*
7842 ;;
7843 *-*-irix6*)
7844 # Find out what ABI is being produced by ac_compile, and set linker
7845 # options accordingly.
7846 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7848 (eval $ac_compile) 2>&5
7849 ac_status=$?
7850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7851 test $ac_status = 0; }; then
7852 if test yes = "$lt_cv_prog_gnu_ld"; then
7853 case `$FILECMD conftest.$ac_objext` in
7854 *32-bit*)
7855 LD="${LD-ld} -melf32bsmip"
7856 ;;
7857 *N32*)
7858 LD="${LD-ld} -melf32bmipn32"
7859 ;;
7860 *64-bit*)
7861 LD="${LD-ld} -melf64bmip"
7862 ;;
7863 esac
7864 else
7865 case `$FILECMD conftest.$ac_objext` in
7866 *32-bit*)
7867 LD="${LD-ld} -32"
7868 ;;
7869 *N32*)
7870 LD="${LD-ld} -n32"
7871 ;;
7872 *64-bit*)
7873 LD="${LD-ld} -64"
7874 ;;
7875 esac
7876 fi
7877 fi
7878 rm -rf conftest*
7879 ;;
7880
7881 mips64*-*linux*)
7882 # Find out what ABI is being produced by ac_compile, and set linker
7883 # options accordingly.
7884 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7886 (eval $ac_compile) 2>&5
7887 ac_status=$?
7888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7889 test $ac_status = 0; }; then
7890 emul=elf
7891 case `$FILECMD conftest.$ac_objext` in
7892 *32-bit*)
7893 emul="${emul}32"
7894 ;;
7895 *64-bit*)
7896 emul="${emul}64"
7897 ;;
7898 esac
7899 case `$FILECMD conftest.$ac_objext` in
7900 *MSB*)
7901 emul="${emul}btsmip"
7902 ;;
7903 *LSB*)
7904 emul="${emul}ltsmip"
7905 ;;
7906 esac
7907 case `$FILECMD conftest.$ac_objext` in
7908 *N32*)
7909 emul="${emul}n32"
7910 ;;
7911 esac
7912 LD="${LD-ld} -m $emul"
7913 fi
7914 rm -rf conftest*
7915 ;;
7916
7917 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7918 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7919 # Find out what ABI is being produced by ac_compile, and set linker
7920 # options accordingly. Note that the listed cases only cover the
7921 # situations where additional linker options are needed (such as when
7922 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7923 # vice versa); the common cases where no linker options are needed do
7924 # not appear in the list.
7925 echo 'int i;' > conftest.$ac_ext
7926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7927 (eval $ac_compile) 2>&5
7928 ac_status=$?
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930 test $ac_status = 0; }; then
7931 case `$FILECMD conftest.o` in
7932 *32-bit*)
7933 case $host in
7934 x86_64-*kfreebsd*-gnu)
7935 LD="${LD-ld} -m elf_i386_fbsd"
7936 ;;
7937 x86_64-*linux*)
7938 case `$FILECMD conftest.o` in
7939 *x86-64*)
7940 LD="${LD-ld} -m elf32_x86_64"
7941 ;;
7942 *)
7943 LD="${LD-ld} -m elf_i386"
7944 ;;
7945 esac
7946 ;;
7947 powerpc64le-*linux*)
7948 LD="${LD-ld} -m elf32lppclinux"
7949 ;;
7950 powerpc64-*linux*)
7951 LD="${LD-ld} -m elf32ppclinux"
7952 ;;
7953 s390x-*linux*)
7954 LD="${LD-ld} -m elf_s390"
7955 ;;
7956 sparc64-*linux*)
7957 LD="${LD-ld} -m elf32_sparc"
7958 ;;
7959 esac
7960 ;;
7961 *64-bit*)
7962 case $host in
7963 x86_64-*kfreebsd*-gnu)
7964 LD="${LD-ld} -m elf_x86_64_fbsd"
7965 ;;
7966 x86_64-*linux*)
7967 LD="${LD-ld} -m elf_x86_64"
7968 ;;
7969 powerpcle-*linux*)
7970 LD="${LD-ld} -m elf64lppc"
7971 ;;
7972 powerpc-*linux*)
7973 LD="${LD-ld} -m elf64ppc"
7974 ;;
7975 s390*-*linux*|s390*-*tpf*)
7976 LD="${LD-ld} -m elf64_s390"
7977 ;;
7978 sparc*-*linux*)
7979 LD="${LD-ld} -m elf64_sparc"
7980 ;;
7981 esac
7982 ;;
7983 esac
7984 fi
7985 rm -rf conftest*
7986 ;;
7987
7988 *-*-sco3.2v5*)
7989 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7990 SAVE_CFLAGS=$CFLAGS
7991 CFLAGS="$CFLAGS -belf"
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7993 printf %s "checking whether the C compiler needs -belf... " >&6; }
7994 if test ${lt_cv_cc_needs_belf+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else $as_nop
7998 ac_ext=c
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006
8007 int
8008 main (void)
8009 {
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_link "$LINENO"
8016 then :
8017 lt_cv_cc_needs_belf=yes
8018 else $as_nop
8019 lt_cv_cc_needs_belf=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8022 conftest$ac_exeext conftest.$ac_ext
8023 ac_ext=c
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029 fi
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8031 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8032 if test yes != "$lt_cv_cc_needs_belf"; then
8033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8034 CFLAGS=$SAVE_CFLAGS
8035 fi
8036 ;;
8037 *-*solaris*)
8038 # Find out what ABI is being produced by ac_compile, and set linker
8039 # options accordingly.
8040 echo 'int i;' > conftest.$ac_ext
8041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8042 (eval $ac_compile) 2>&5
8043 ac_status=$?
8044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045 test $ac_status = 0; }; then
8046 case `$FILECMD conftest.o` in
8047 *64-bit*)
8048 case $lt_cv_prog_gnu_ld in
8049 yes*)
8050 case $host in
8051 i?86-*-solaris*|x86_64-*-solaris*)
8052 LD="${LD-ld} -m elf_x86_64"
8053 ;;
8054 sparc*-*-solaris*)
8055 LD="${LD-ld} -m elf64_sparc"
8056 ;;
8057 esac
8058 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8059 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8060 LD=${LD-ld}_sol2
8061 fi
8062 ;;
8063 *)
8064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8065 LD="${LD-ld} -64"
8066 fi
8067 ;;
8068 esac
8069 ;;
8070 esac
8071 fi
8072 rm -rf conftest*
8073 ;;
8074 esac
8075
8076 need_locks=$enable_libtool_lock
8077
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}mt; ac_word=$2
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 printf %s "checking for $ac_word... " >&6; }
8083 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8084 then :
8085 printf %s "(cached) " >&6
8086 else $as_nop
8087 if test -n "$MANIFEST_TOOL"; then
8088 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 case $as_dir in #(((
8095 '') as_dir=./ ;;
8096 */) ;;
8097 *) as_dir=$as_dir/ ;;
8098 esac
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8112 if test -n "$MANIFEST_TOOL"; then
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8114 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8115 else
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 printf "%s\n" "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8123 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8124 # Extract the first word of "mt", so it can be a program name with args.
8125 set dummy mt; ac_word=$2
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 printf %s "checking for $ac_word... " >&6; }
8128 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else $as_nop
8132 if test -n "$ac_ct_MANIFEST_TOOL"; then
8133 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8157 if test -n "$ac_ct_MANIFEST_TOOL"; then
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8159 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8160 else
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 printf "%s\n" "no" >&6; }
8163 fi
8164
8165 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8166 MANIFEST_TOOL=":"
8167 else
8168 case $cross_compiling:$ac_tool_warned in
8169 yes:)
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8175 fi
8176 else
8177 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8178 fi
8179
8180 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8182 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8183 if test ${lt_cv_path_mainfest_tool+y}
8184 then :
8185 printf %s "(cached) " >&6
8186 else $as_nop
8187 lt_cv_path_mainfest_tool=no
8188 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8189 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8190 cat conftest.err >&5
8191 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8192 lt_cv_path_mainfest_tool=yes
8193 fi
8194 rm -f conftest*
8195 fi
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8197 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8198 if test yes != "$lt_cv_path_mainfest_tool"; then
8199 MANIFEST_TOOL=:
8200 fi
8201
8202
8203
8204
8205
8206
8207 case $host_os in
8208 rhapsody* | darwin*)
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 printf %s "checking for $ac_word... " >&6; }
8214 if test ${ac_cv_prog_DSYMUTIL+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else $as_nop
8218 if test -n "$DSYMUTIL"; then
8219 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 case $as_dir in #(((
8226 '') as_dir=./ ;;
8227 */) ;;
8228 *) as_dir=$as_dir/ ;;
8229 esac
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8243 if test -n "$DSYMUTIL"; then
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8245 printf "%s\n" "$DSYMUTIL" >&6; }
8246 else
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 printf "%s\n" "no" >&6; }
8249 fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_DSYMUTIL"; then
8254 ac_ct_DSYMUTIL=$DSYMUTIL
8255 # Extract the first word of "dsymutil", so it can be a program name with args.
8256 set dummy dsymutil; ac_word=$2
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 printf %s "checking for $ac_word... " >&6; }
8259 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8260 then :
8261 printf %s "(cached) " >&6
8262 else $as_nop
8263 if test -n "$ac_ct_DSYMUTIL"; then
8264 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 case $as_dir in #(((
8271 '') as_dir=./ ;;
8272 */) ;;
8273 *) as_dir=$as_dir/ ;;
8274 esac
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8288 if test -n "$ac_ct_DSYMUTIL"; then
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8290 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8291 else
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 printf "%s\n" "no" >&6; }
8294 fi
8295
8296 if test "x$ac_ct_DSYMUTIL" = x; then
8297 DSYMUTIL=":"
8298 else
8299 case $cross_compiling:$ac_tool_warned in
8300 yes:)
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8304 esac
8305 DSYMUTIL=$ac_ct_DSYMUTIL
8306 fi
8307 else
8308 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8309 fi
8310
8311 if test -n "$ac_tool_prefix"; then
8312 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8313 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 printf %s "checking for $ac_word... " >&6; }
8316 if test ${ac_cv_prog_NMEDIT+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else $as_nop
8320 if test -n "$NMEDIT"; then
8321 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326 IFS=$as_save_IFS
8327 case $as_dir in #(((
8328 '') as_dir=./ ;;
8329 */) ;;
8330 *) as_dir=$as_dir/ ;;
8331 esac
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338 done
8339 done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 NMEDIT=$ac_cv_prog_NMEDIT
8345 if test -n "$NMEDIT"; then
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8347 printf "%s\n" "$NMEDIT" >&6; }
8348 else
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8351 fi
8352
8353
8354 fi
8355 if test -z "$ac_cv_prog_NMEDIT"; then
8356 ac_ct_NMEDIT=$NMEDIT
8357 # Extract the first word of "nmedit", so it can be a program name with args.
8358 set dummy nmedit; ac_word=$2
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 printf %s "checking for $ac_word... " >&6; }
8361 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8362 then :
8363 printf %s "(cached) " >&6
8364 else $as_nop
8365 if test -n "$ac_ct_NMEDIT"; then
8366 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371 IFS=$as_save_IFS
8372 case $as_dir in #(((
8373 '') as_dir=./ ;;
8374 */) ;;
8375 *) as_dir=$as_dir/ ;;
8376 esac
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8379 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8390 if test -n "$ac_ct_NMEDIT"; then
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8392 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8393 else
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 printf "%s\n" "no" >&6; }
8396 fi
8397
8398 if test "x$ac_ct_NMEDIT" = x; then
8399 NMEDIT=":"
8400 else
8401 case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407 NMEDIT=$ac_ct_NMEDIT
8408 fi
8409 else
8410 NMEDIT="$ac_cv_prog_NMEDIT"
8411 fi
8412
8413 if test -n "$ac_tool_prefix"; then
8414 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8415 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 printf %s "checking for $ac_word... " >&6; }
8418 if test ${ac_cv_prog_LIPO+y}
8419 then :
8420 printf %s "(cached) " >&6
8421 else $as_nop
8422 if test -n "$LIPO"; then
8423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428 IFS=$as_save_IFS
8429 case $as_dir in #(((
8430 '') as_dir=./ ;;
8431 */) ;;
8432 *) as_dir=$as_dir/ ;;
8433 esac
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444 fi
8445 fi
8446 LIPO=$ac_cv_prog_LIPO
8447 if test -n "$LIPO"; then
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8449 printf "%s\n" "$LIPO" >&6; }
8450 else
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 printf "%s\n" "no" >&6; }
8453 fi
8454
8455
8456 fi
8457 if test -z "$ac_cv_prog_LIPO"; then
8458 ac_ct_LIPO=$LIPO
8459 # Extract the first word of "lipo", so it can be a program name with args.
8460 set dummy lipo; ac_word=$2
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 printf %s "checking for $ac_word... " >&6; }
8463 if test ${ac_cv_prog_ac_ct_LIPO+y}
8464 then :
8465 printf %s "(cached) " >&6
8466 else $as_nop
8467 if test -n "$ac_ct_LIPO"; then
8468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473 IFS=$as_save_IFS
8474 case $as_dir in #(((
8475 '') as_dir=./ ;;
8476 */) ;;
8477 *) as_dir=$as_dir/ ;;
8478 esac
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_ac_ct_LIPO="lipo"
8482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8483 break 2
8484 fi
8485 done
8486 done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8492 if test -n "$ac_ct_LIPO"; then
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8494 printf "%s\n" "$ac_ct_LIPO" >&6; }
8495 else
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 printf "%s\n" "no" >&6; }
8498 fi
8499
8500 if test "x$ac_ct_LIPO" = x; then
8501 LIPO=":"
8502 else
8503 case $cross_compiling:$ac_tool_warned in
8504 yes:)
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8506 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8507 ac_tool_warned=yes ;;
8508 esac
8509 LIPO=$ac_ct_LIPO
8510 fi
8511 else
8512 LIPO="$ac_cv_prog_LIPO"
8513 fi
8514
8515 if test -n "$ac_tool_prefix"; then
8516 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8517 set dummy ${ac_tool_prefix}otool; ac_word=$2
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 printf %s "checking for $ac_word... " >&6; }
8520 if test ${ac_cv_prog_OTOOL+y}
8521 then :
8522 printf %s "(cached) " >&6
8523 else $as_nop
8524 if test -n "$OTOOL"; then
8525 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530 IFS=$as_save_IFS
8531 case $as_dir in #(((
8532 '') as_dir=./ ;;
8533 */) ;;
8534 *) as_dir=$as_dir/ ;;
8535 esac
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8538 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 OTOOL=$ac_cv_prog_OTOOL
8549 if test -n "$OTOOL"; then
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8551 printf "%s\n" "$OTOOL" >&6; }
8552 else
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 printf "%s\n" "no" >&6; }
8555 fi
8556
8557
8558 fi
8559 if test -z "$ac_cv_prog_OTOOL"; then
8560 ac_ct_OTOOL=$OTOOL
8561 # Extract the first word of "otool", so it can be a program name with args.
8562 set dummy otool; ac_word=$2
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 printf %s "checking for $ac_word... " >&6; }
8565 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
8569 if test -n "$ac_ct_OTOOL"; then
8570 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575 IFS=$as_save_IFS
8576 case $as_dir in #(((
8577 '') as_dir=./ ;;
8578 */) ;;
8579 *) as_dir=$as_dir/ ;;
8580 esac
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8583 ac_cv_prog_ac_ct_OTOOL="otool"
8584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8585 break 2
8586 fi
8587 done
8588 done
8589 IFS=$as_save_IFS
8590
8591 fi
8592 fi
8593 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8594 if test -n "$ac_ct_OTOOL"; then
8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8596 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8597 else
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 printf "%s\n" "no" >&6; }
8600 fi
8601
8602 if test "x$ac_ct_OTOOL" = x; then
8603 OTOOL=":"
8604 else
8605 case $cross_compiling:$ac_tool_warned in
8606 yes:)
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609 ac_tool_warned=yes ;;
8610 esac
8611 OTOOL=$ac_ct_OTOOL
8612 fi
8613 else
8614 OTOOL="$ac_cv_prog_OTOOL"
8615 fi
8616
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8619 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 printf %s "checking for $ac_word... " >&6; }
8622 if test ${ac_cv_prog_OTOOL64+y}
8623 then :
8624 printf %s "(cached) " >&6
8625 else $as_nop
8626 if test -n "$OTOOL64"; then
8627 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632 IFS=$as_save_IFS
8633 case $as_dir in #(((
8634 '') as_dir=./ ;;
8635 */) ;;
8636 *) as_dir=$as_dir/ ;;
8637 esac
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 OTOOL64=$ac_cv_prog_OTOOL64
8651 if test -n "$OTOOL64"; then
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8653 printf "%s\n" "$OTOOL64" >&6; }
8654 else
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 printf "%s\n" "no" >&6; }
8657 fi
8658
8659
8660 fi
8661 if test -z "$ac_cv_prog_OTOOL64"; then
8662 ac_ct_OTOOL64=$OTOOL64
8663 # Extract the first word of "otool64", so it can be a program name with args.
8664 set dummy otool64; ac_word=$2
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 printf %s "checking for $ac_word... " >&6; }
8667 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else $as_nop
8671 if test -n "$ac_ct_OTOOL64"; then
8672 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677 IFS=$as_save_IFS
8678 case $as_dir in #(((
8679 '') as_dir=./ ;;
8680 */) ;;
8681 *) as_dir=$as_dir/ ;;
8682 esac
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_ac_ct_OTOOL64="otool64"
8686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 fi
8694 fi
8695 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8696 if test -n "$ac_ct_OTOOL64"; then
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8698 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8699 else
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 printf "%s\n" "no" >&6; }
8702 fi
8703
8704 if test "x$ac_ct_OTOOL64" = x; then
8705 OTOOL64=":"
8706 else
8707 case $cross_compiling:$ac_tool_warned in
8708 yes:)
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8711 ac_tool_warned=yes ;;
8712 esac
8713 OTOOL64=$ac_ct_OTOOL64
8714 fi
8715 else
8716 OTOOL64="$ac_cv_prog_OTOOL64"
8717 fi
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8746 printf %s "checking for -single_module linker flag... " >&6; }
8747 if test ${lt_cv_apple_cc_single_mod+y}
8748 then :
8749 printf %s "(cached) " >&6
8750 else $as_nop
8751 lt_cv_apple_cc_single_mod=no
8752 if test -z "$LT_MULTI_MODULE"; then
8753 # By default we will add the -single_module flag. You can override
8754 # by either setting the environment variable LT_MULTI_MODULE
8755 # non-empty at configure time, or by adding -multi_module to the
8756 # link flags.
8757 rm -rf libconftest.dylib*
8758 echo "int foo(void){return 1;}" > conftest.c
8759 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8760 -dynamiclib -Wl,-single_module conftest.c" >&5
8761 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8762 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8763 _lt_result=$?
8764 # If there is a non-empty error log, and "single_module"
8765 # appears in it, assume the flag caused a linker warning
8766 if test -s conftest.err && $GREP single_module conftest.err; then
8767 cat conftest.err >&5
8768 # Otherwise, if the output was created with a 0 exit code from
8769 # the compiler, it worked.
8770 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8771 lt_cv_apple_cc_single_mod=yes
8772 else
8773 cat conftest.err >&5
8774 fi
8775 rm -rf libconftest.dylib*
8776 rm -f conftest.*
8777 fi
8778 fi
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8780 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8781
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8783 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8784 if test ${lt_cv_ld_exported_symbols_list+y}
8785 then :
8786 printf %s "(cached) " >&6
8787 else $as_nop
8788 lt_cv_ld_exported_symbols_list=no
8789 save_LDFLAGS=$LDFLAGS
8790 echo "_main" > conftest.sym
8791 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794
8795 int
8796 main (void)
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"
8804 then :
8805 lt_cv_ld_exported_symbols_list=yes
8806 else $as_nop
8807 lt_cv_ld_exported_symbols_list=no
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8810 conftest$ac_exeext conftest.$ac_ext
8811 LDFLAGS=$save_LDFLAGS
8812
8813 fi
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8815 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8816
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8818 printf %s "checking for -force_load linker flag... " >&6; }
8819 if test ${lt_cv_ld_force_load+y}
8820 then :
8821 printf %s "(cached) " >&6
8822 else $as_nop
8823 lt_cv_ld_force_load=no
8824 cat > conftest.c << _LT_EOF
8825 int forced_loaded() { return 2;}
8826 _LT_EOF
8827 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8828 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8829 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8830 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8831 echo "$RANLIB libconftest.a" >&5
8832 $RANLIB libconftest.a 2>&5
8833 cat > conftest.c << _LT_EOF
8834 int main() { return 0;}
8835 _LT_EOF
8836 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8837 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8838 _lt_result=$?
8839 if test -s conftest.err && $GREP force_load conftest.err; then
8840 cat conftest.err >&5
8841 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8842 lt_cv_ld_force_load=yes
8843 else
8844 cat conftest.err >&5
8845 fi
8846 rm -f conftest.err libconftest.a conftest conftest.c
8847 rm -rf conftest.dSYM
8848
8849 fi
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8851 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8852 case $host_os in
8853 rhapsody* | darwin1.[012])
8854 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8855 darwin1.*)
8856 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8857 darwin*)
8858 case $MACOSX_DEPLOYMENT_TARGET,$host in
8859 10.[012],*|,*powerpc*-darwin[5-8]*)
8860 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8861 *)
8862 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8863 esac
8864 ;;
8865 esac
8866 if test yes = "$lt_cv_apple_cc_single_mod"; then
8867 _lt_dar_single_mod='$single_module'
8868 fi
8869 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8870 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8871 else
8872 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8873 fi
8874 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8875 _lt_dsymutil='~$DSYMUTIL $lib || :'
8876 else
8877 _lt_dsymutil=
8878 fi
8879 ;;
8880 esac
8881
8882 # func_munge_path_list VARIABLE PATH
8883 # -----------------------------------
8884 # VARIABLE is name of variable containing _space_ separated list of
8885 # directories to be munged by the contents of PATH, which is string
8886 # having a format:
8887 # "DIR[:DIR]:"
8888 # string "DIR[ DIR]" will be prepended to VARIABLE
8889 # ":DIR[:DIR]"
8890 # string "DIR[ DIR]" will be appended to VARIABLE
8891 # "DIRP[:DIRP]::[DIRA:]DIRA"
8892 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8893 # "DIRA[ DIRA]" will be appended to VARIABLE
8894 # "DIR[:DIR]"
8895 # VARIABLE will be replaced by "DIR[ DIR]"
8896 func_munge_path_list ()
8897 {
8898 case x$2 in
8899 x)
8900 ;;
8901 *:)
8902 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8903 ;;
8904 x:*)
8905 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8906 ;;
8907 *::*)
8908 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8909 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8910 ;;
8911 *)
8912 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8913 ;;
8914 esac
8915 }
8916
8917 ac_header= ac_cache=
8918 for ac_item in $ac_header_c_list
8919 do
8920 if test $ac_cache; then
8921 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8922 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8923 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8924 fi
8925 ac_header= ac_cache=
8926 elif test $ac_header; then
8927 ac_cache=$ac_item
8928 else
8929 ac_header=$ac_item
8930 fi
8931 done
8932
8933
8934
8935
8936
8937
8938
8939
8940 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8941 then :
8942
8943 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8944
8945 fi
8946 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8947 "
8948 if test "x$ac_cv_header_dlfcn_h" = xyes
8949 then :
8950 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8951
8952 fi
8953
8954
8955
8956
8957
8958 # Set options
8959
8960
8961
8962 enable_dlopen=no
8963
8964
8965 enable_win32_dll=no
8966
8967
8968 # Check whether --enable-shared was given.
8969 if test ${enable_shared+y}
8970 then :
8971 enableval=$enable_shared; p=${PACKAGE-default}
8972 case $enableval in
8973 yes) enable_shared=yes ;;
8974 no) enable_shared=no ;;
8975 *)
8976 enable_shared=no
8977 # Look at the argument we got. We use all the common list separators.
8978 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8979 for pkg in $enableval; do
8980 IFS=$lt_save_ifs
8981 if test "X$pkg" = "X$p"; then
8982 enable_shared=yes
8983 fi
8984 done
8985 IFS=$lt_save_ifs
8986 ;;
8987 esac
8988 else $as_nop
8989 enable_shared=yes
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000 # Check whether --enable-static was given.
9001 if test ${enable_static+y}
9002 then :
9003 enableval=$enable_static; p=${PACKAGE-default}
9004 case $enableval in
9005 yes) enable_static=yes ;;
9006 no) enable_static=no ;;
9007 *)
9008 enable_static=no
9009 # Look at the argument we got. We use all the common list separators.
9010 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9011 for pkg in $enableval; do
9012 IFS=$lt_save_ifs
9013 if test "X$pkg" = "X$p"; then
9014 enable_static=yes
9015 fi
9016 done
9017 IFS=$lt_save_ifs
9018 ;;
9019 esac
9020 else $as_nop
9021 enable_static=yes
9022 fi
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033 # Check whether --with-pic was given.
9034 if test ${with_pic+y}
9035 then :
9036 withval=$with_pic; lt_p=${PACKAGE-default}
9037 case $withval in
9038 yes|no) pic_mode=$withval ;;
9039 *)
9040 pic_mode=default
9041 # Look at the argument we got. We use all the common list separators.
9042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9043 for lt_pkg in $withval; do
9044 IFS=$lt_save_ifs
9045 if test "X$lt_pkg" = "X$lt_p"; then
9046 pic_mode=yes
9047 fi
9048 done
9049 IFS=$lt_save_ifs
9050 ;;
9051 esac
9052 else $as_nop
9053 pic_mode=default
9054 fi
9055
9056
9057
9058
9059
9060
9061
9062
9063 # Check whether --enable-fast-install was given.
9064 if test ${enable_fast_install+y}
9065 then :
9066 enableval=$enable_fast_install; p=${PACKAGE-default}
9067 case $enableval in
9068 yes) enable_fast_install=yes ;;
9069 no) enable_fast_install=no ;;
9070 *)
9071 enable_fast_install=no
9072 # Look at the argument we got. We use all the common list separators.
9073 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9074 for pkg in $enableval; do
9075 IFS=$lt_save_ifs
9076 if test "X$pkg" = "X$p"; then
9077 enable_fast_install=yes
9078 fi
9079 done
9080 IFS=$lt_save_ifs
9081 ;;
9082 esac
9083 else $as_nop
9084 enable_fast_install=yes
9085 fi
9086
9087
9088
9089
9090
9091
9092
9093
9094 shared_archive_member_spec=
9095 case $host,$enable_shared in
9096 power*-*-aix[5-9]*,yes)
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9098 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9099
9100 # Check whether --with-aix-soname was given.
9101 if test ${with_aix_soname+y}
9102 then :
9103 withval=$with_aix_soname; case $withval in
9104 aix|svr4|both)
9105 ;;
9106 *)
9107 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9108 ;;
9109 esac
9110 lt_cv_with_aix_soname=$with_aix_soname
9111 else $as_nop
9112 if test ${lt_cv_with_aix_soname+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else $as_nop
9116 lt_cv_with_aix_soname=aix
9117 fi
9118
9119 with_aix_soname=$lt_cv_with_aix_soname
9120 fi
9121
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9123 printf "%s\n" "$with_aix_soname" >&6; }
9124 if test aix != "$with_aix_soname"; then
9125 # For the AIX way of multilib, we name the shared archive member
9126 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9127 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9128 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9129 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9130 if test 64 = "${OBJECT_MODE-32}"; then
9131 shared_archive_member_spec=shr_64
9132 else
9133 shared_archive_member_spec=shr
9134 fi
9135 fi
9136 ;;
9137 *)
9138 with_aix_soname=aix
9139 ;;
9140 esac
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151 # This can be used to rebuild libtool when needed
9152 LIBTOOL_DEPS=$ltmain
9153
9154 # Always use our own libtool.
9155 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186 test -z "$LN_S" && LN_S="ln -s"
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201 if test -n "${ZSH_VERSION+set}"; then
9202 setopt NO_GLOB_SUBST
9203 fi
9204
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9206 printf %s "checking for objdir... " >&6; }
9207 if test ${lt_cv_objdir+y}
9208 then :
9209 printf %s "(cached) " >&6
9210 else $as_nop
9211 rm -f .libs 2>/dev/null
9212 mkdir .libs 2>/dev/null
9213 if test -d .libs; then
9214 lt_cv_objdir=.libs
9215 else
9216 # MS-DOS does not allow filenames that begin with a dot.
9217 lt_cv_objdir=_libs
9218 fi
9219 rmdir .libs 2>/dev/null
9220 fi
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9222 printf "%s\n" "$lt_cv_objdir" >&6; }
9223 objdir=$lt_cv_objdir
9224
9225
9226
9227
9228
9229 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9230
9231
9232
9233
9234 case $host_os in
9235 aix3*)
9236 # AIX sometimes has problems with the GCC collect2 program. For some
9237 # reason, if we set the COLLECT_NAMES environment variable, the problems
9238 # vanish in a puff of smoke.
9239 if test set != "${COLLECT_NAMES+set}"; then
9240 COLLECT_NAMES=
9241 export COLLECT_NAMES
9242 fi
9243 ;;
9244 esac
9245
9246 # Global variables:
9247 ofile=libtool
9248 can_build_shared=yes
9249
9250 # All known linkers require a '.a' archive for static linking (except MSVC and
9251 # ICC, which need '.lib').
9252 libext=a
9253
9254 with_gnu_ld=$lt_cv_prog_gnu_ld
9255
9256 old_CC=$CC
9257 old_CFLAGS=$CFLAGS
9258
9259 # Set sane defaults for various variables
9260 test -z "$CC" && CC=cc
9261 test -z "$LTCC" && LTCC=$CC
9262 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9263 test -z "$LD" && LD=ld
9264 test -z "$ac_objext" && ac_objext=o
9265
9266 func_cc_basename $compiler
9267 cc_basename=$func_cc_basename_result
9268
9269
9270 # Only perform the check for file, if the check method requires it
9271 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9272 case $deplibs_check_method in
9273 file_magic*)
9274 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9276 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9277 if test ${lt_cv_path_MAGIC_CMD+y}
9278 then :
9279 printf %s "(cached) " >&6
9280 else $as_nop
9281 case $MAGIC_CMD in
9282 [\\/*] | ?:[\\/]*)
9283 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9284 ;;
9285 *)
9286 lt_save_MAGIC_CMD=$MAGIC_CMD
9287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9289 for ac_dir in $ac_dummy; do
9290 IFS=$lt_save_ifs
9291 test -z "$ac_dir" && ac_dir=.
9292 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9293 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9294 if test -n "$file_magic_test_file"; then
9295 case $deplibs_check_method in
9296 "file_magic "*)
9297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9298 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9300 $EGREP "$file_magic_regex" > /dev/null; then
9301 :
9302 else
9303 cat <<_LT_EOF 1>&2
9304
9305 *** Warning: the command libtool uses to detect shared libraries,
9306 *** $file_magic_cmd, produces output that libtool cannot recognize.
9307 *** The result is that libtool may fail to recognize shared libraries
9308 *** as such. This will affect the creation of libtool libraries that
9309 *** depend on shared libraries, but programs linked with such libtool
9310 *** libraries will work regardless of this problem. Nevertheless, you
9311 *** may want to report the problem to your system manager and/or to
9312 *** [email protected]
9313
9314 _LT_EOF
9315 fi ;;
9316 esac
9317 fi
9318 break
9319 fi
9320 done
9321 IFS=$lt_save_ifs
9322 MAGIC_CMD=$lt_save_MAGIC_CMD
9323 ;;
9324 esac
9325 fi
9326
9327 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9328 if test -n "$MAGIC_CMD"; then
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9330 printf "%s\n" "$MAGIC_CMD" >&6; }
9331 else
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 printf "%s\n" "no" >&6; }
9334 fi
9335
9336
9337
9338
9339
9340 if test -z "$lt_cv_path_MAGIC_CMD"; then
9341 if test -n "$ac_tool_prefix"; then
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9343 printf %s "checking for file... " >&6; }
9344 if test ${lt_cv_path_MAGIC_CMD+y}
9345 then :
9346 printf %s "(cached) " >&6
9347 else $as_nop
9348 case $MAGIC_CMD in
9349 [\\/*] | ?:[\\/]*)
9350 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9351 ;;
9352 *)
9353 lt_save_MAGIC_CMD=$MAGIC_CMD
9354 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9356 for ac_dir in $ac_dummy; do
9357 IFS=$lt_save_ifs
9358 test -z "$ac_dir" && ac_dir=.
9359 if test -f "$ac_dir/file"; then
9360 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9361 if test -n "$file_magic_test_file"; then
9362 case $deplibs_check_method in
9363 "file_magic "*)
9364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9365 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9367 $EGREP "$file_magic_regex" > /dev/null; then
9368 :
9369 else
9370 cat <<_LT_EOF 1>&2
9371
9372 *** Warning: the command libtool uses to detect shared libraries,
9373 *** $file_magic_cmd, produces output that libtool cannot recognize.
9374 *** The result is that libtool may fail to recognize shared libraries
9375 *** as such. This will affect the creation of libtool libraries that
9376 *** depend on shared libraries, but programs linked with such libtool
9377 *** libraries will work regardless of this problem. Nevertheless, you
9378 *** may want to report the problem to your system manager and/or to
9379 *** [email protected]
9380
9381 _LT_EOF
9382 fi ;;
9383 esac
9384 fi
9385 break
9386 fi
9387 done
9388 IFS=$lt_save_ifs
9389 MAGIC_CMD=$lt_save_MAGIC_CMD
9390 ;;
9391 esac
9392 fi
9393
9394 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9395 if test -n "$MAGIC_CMD"; then
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9397 printf "%s\n" "$MAGIC_CMD" >&6; }
9398 else
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 printf "%s\n" "no" >&6; }
9401 fi
9402
9403
9404 else
9405 MAGIC_CMD=:
9406 fi
9407 fi
9408
9409 fi
9410 ;;
9411 esac
9412
9413 # Use C for the default configuration in the libtool script
9414
9415 lt_save_CC=$CC
9416 ac_ext=c
9417 ac_cpp='$CPP $CPPFLAGS'
9418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9421
9422
9423 # Source file extension for C test sources.
9424 ac_ext=c
9425
9426 # Object file extension for compiled C test sources.
9427 objext=o
9428 objext=$objext
9429
9430 # Code to be used in simple compile tests
9431 lt_simple_compile_test_code="int some_variable = 0;"
9432
9433 # Code to be used in simple link tests
9434 lt_simple_link_test_code='int main(){return(0);}'
9435
9436
9437
9438
9439
9440
9441
9442 # If no C compiler was specified, use CC.
9443 LTCC=${LTCC-"$CC"}
9444
9445 # If no C compiler flags were specified, use CFLAGS.
9446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9447
9448 # Allow CC to be a program name with arguments.
9449 compiler=$CC
9450
9451 # Save the default compiler, since it gets overwritten when the other
9452 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9453 compiler_DEFAULT=$CC
9454
9455 # save warnings/boilerplate of simple test code
9456 ac_outfile=conftest.$ac_objext
9457 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9458 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9459 _lt_compiler_boilerplate=`cat conftest.err`
9460 $RM conftest*
9461
9462 ac_outfile=conftest.$ac_objext
9463 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9464 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9465 _lt_linker_boilerplate=`cat conftest.err`
9466 $RM -r conftest*
9467
9468
9469 ## CAVEAT EMPTOR:
9470 ## There is no encapsulation within the following macros, do not change
9471 ## the running order or otherwise move them around unless you know exactly
9472 ## what you are doing...
9473 if test -n "$compiler"; then
9474
9475 lt_prog_compiler_no_builtin_flag=
9476
9477 if test yes = "$GCC"; then
9478 case $cc_basename in
9479 nvcc*)
9480 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9481 *)
9482 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9483 esac
9484
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9486 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9487 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9488 then :
9489 printf %s "(cached) " >&6
9490 else $as_nop
9491 lt_cv_prog_compiler_rtti_exceptions=no
9492 ac_outfile=conftest.$ac_objext
9493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9495 # Insert the option either (1) after the last *FLAGS variable, or
9496 # (2) before a word containing "conftest.", or (3) at the end.
9497 # Note that $ac_compile itself does not contain backslashes and begins
9498 # with a dollar sign (not a hyphen), so the echo should work correctly.
9499 # The option is referenced via a variable to avoid confusing sed.
9500 lt_compile=`echo "$ac_compile" | $SED \
9501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9503 -e 's:$: $lt_compiler_flag:'`
9504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9505 (eval "$lt_compile" 2>conftest.err)
9506 ac_status=$?
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 if (exit $ac_status) && test -s "$ac_outfile"; then
9510 # The compiler can only warn and ignore the option if not recognized
9511 # So say no if there are warnings other than the usual output.
9512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9515 lt_cv_prog_compiler_rtti_exceptions=yes
9516 fi
9517 fi
9518 $RM conftest*
9519
9520 fi
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9522 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9523
9524 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9526 else
9527 :
9528 fi
9529
9530 fi
9531
9532
9533
9534
9535
9536
9537 lt_prog_compiler_wl=
9538 lt_prog_compiler_pic=
9539 lt_prog_compiler_static=
9540
9541
9542 if test yes = "$GCC"; then
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_static='-static'
9545
9546 case $host_os in
9547 aix*)
9548 # All AIX code is PIC.
9549 if test ia64 = "$host_cpu"; then
9550 # AIX 5 now supports IA64 processor
9551 lt_prog_compiler_static='-Bstatic'
9552 fi
9553 lt_prog_compiler_pic='-fPIC'
9554 ;;
9555
9556 amigaos*)
9557 case $host_cpu in
9558 powerpc)
9559 # see comment about AmigaOS4 .so support
9560 lt_prog_compiler_pic='-fPIC'
9561 ;;
9562 m68k)
9563 # FIXME: we need at least 68020 code to build shared libraries, but
9564 # adding the '-m68020' flag to GCC prevents building anything better,
9565 # like '-m68040'.
9566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9567 ;;
9568 esac
9569 ;;
9570
9571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9572 # PIC is the default for these OSes.
9573 ;;
9574
9575 mingw* | cygwin* | pw32* | os2* | cegcc*)
9576 # This hack is so that the source file can tell whether it is being
9577 # built for inclusion in a dll (and should export symbols for example).
9578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9579 # (--disable-auto-import) libraries
9580 lt_prog_compiler_pic='-DDLL_EXPORT'
9581 case $host_os in
9582 os2*)
9583 lt_prog_compiler_static='$wl-static'
9584 ;;
9585 esac
9586 ;;
9587
9588 darwin* | rhapsody*)
9589 # PIC is the default on this platform
9590 # Common symbols not allowed in MH_DYLIB files
9591 lt_prog_compiler_pic='-fno-common'
9592 ;;
9593
9594 haiku*)
9595 # PIC is the default for Haiku.
9596 # The "-static" flag exists, but is broken.
9597 lt_prog_compiler_static=
9598 ;;
9599
9600 hpux*)
9601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9603 # sets the default TLS model and affects inlining.
9604 case $host_cpu in
9605 hppa*64*)
9606 # +Z the default
9607 ;;
9608 *)
9609 lt_prog_compiler_pic='-fPIC'
9610 ;;
9611 esac
9612 ;;
9613
9614 interix[3-9]*)
9615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9616 # Instead, we relocate shared libraries at runtime.
9617 ;;
9618
9619 msdosdjgpp*)
9620 # Just because we use GCC doesn't mean we suddenly get shared libraries
9621 # on systems that don't support them.
9622 lt_prog_compiler_can_build_shared=no
9623 enable_shared=no
9624 ;;
9625
9626 *nto* | *qnx*)
9627 # QNX uses GNU C++, but need to define -shared option too, otherwise
9628 # it will coredump.
9629 lt_prog_compiler_pic='-fPIC -shared'
9630 ;;
9631
9632 sysv4*MP*)
9633 if test -d /usr/nec; then
9634 lt_prog_compiler_pic=-Kconform_pic
9635 fi
9636 ;;
9637
9638 *)
9639 lt_prog_compiler_pic='-fPIC'
9640 ;;
9641 esac
9642
9643 case $cc_basename in
9644 nvcc*) # Cuda Compiler Driver 2.2
9645 lt_prog_compiler_wl='-Xlinker '
9646 if test -n "$lt_prog_compiler_pic"; then
9647 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9648 fi
9649 ;;
9650 esac
9651 else
9652 # PORTME Check for flag to pass linker flags through the system compiler.
9653 case $host_os in
9654 aix*)
9655 lt_prog_compiler_wl='-Wl,'
9656 if test ia64 = "$host_cpu"; then
9657 # AIX 5 now supports IA64 processor
9658 lt_prog_compiler_static='-Bstatic'
9659 else
9660 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9661 fi
9662 ;;
9663
9664 darwin* | rhapsody*)
9665 # PIC is the default on this platform
9666 # Common symbols not allowed in MH_DYLIB files
9667 lt_prog_compiler_pic='-fno-common'
9668 case $cc_basename in
9669 nagfor*)
9670 # NAG Fortran compiler
9671 lt_prog_compiler_wl='-Wl,-Wl,,'
9672 lt_prog_compiler_pic='-PIC'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675 esac
9676 ;;
9677
9678 mingw* | cygwin* | pw32* | os2* | cegcc*)
9679 # This hack is so that the source file can tell whether it is being
9680 # built for inclusion in a dll (and should export symbols for example).
9681 lt_prog_compiler_pic='-DDLL_EXPORT'
9682 case $host_os in
9683 os2*)
9684 lt_prog_compiler_static='$wl-static'
9685 ;;
9686 esac
9687 ;;
9688
9689 hpux9* | hpux10* | hpux11*)
9690 lt_prog_compiler_wl='-Wl,'
9691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9692 # not for PA HP-UX.
9693 case $host_cpu in
9694 hppa*64*|ia64*)
9695 # +Z the default
9696 ;;
9697 *)
9698 lt_prog_compiler_pic='+Z'
9699 ;;
9700 esac
9701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9702 lt_prog_compiler_static='$wl-a ${wl}archive'
9703 ;;
9704
9705 irix5* | irix6* | nonstopux*)
9706 lt_prog_compiler_wl='-Wl,'
9707 # PIC (with -KPIC) is the default.
9708 lt_prog_compiler_static='-non_shared'
9709 ;;
9710
9711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9712 case $cc_basename in
9713 # old Intel for x86_64, which still supported -KPIC.
9714 ecc*)
9715 lt_prog_compiler_wl='-Wl,'
9716 lt_prog_compiler_pic='-KPIC'
9717 lt_prog_compiler_static='-static'
9718 ;;
9719 # flang / f18. f95 an alias for gfortran or flang on Debian
9720 flang* | f18* | f95*)
9721 lt_prog_compiler_wl='-Wl,'
9722 lt_prog_compiler_pic='-fPIC'
9723 lt_prog_compiler_static='-static'
9724 ;;
9725 # icc used to be incompatible with GCC.
9726 # ICC 10 doesn't accept -KPIC any more.
9727 icc* | ifort*)
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_pic='-fPIC'
9730 lt_prog_compiler_static='-static'
9731 ;;
9732 # Lahey Fortran 8.1.
9733 lf95*)
9734 lt_prog_compiler_wl='-Wl,'
9735 lt_prog_compiler_pic='--shared'
9736 lt_prog_compiler_static='--static'
9737 ;;
9738 nagfor*)
9739 # NAG Fortran compiler
9740 lt_prog_compiler_wl='-Wl,-Wl,,'
9741 lt_prog_compiler_pic='-PIC'
9742 lt_prog_compiler_static='-Bstatic'
9743 ;;
9744 tcc*)
9745 # Fabrice Bellard et al's Tiny C Compiler
9746 lt_prog_compiler_wl='-Wl,'
9747 lt_prog_compiler_pic='-fPIC'
9748 lt_prog_compiler_static='-static'
9749 ;;
9750 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9751 # Portland Group compilers (*not* the Pentium gcc compiler,
9752 # which looks to be a dead project)
9753 lt_prog_compiler_wl='-Wl,'
9754 lt_prog_compiler_pic='-fpic'
9755 lt_prog_compiler_static='-Bstatic'
9756 ;;
9757 ccc*)
9758 lt_prog_compiler_wl='-Wl,'
9759 # All Alpha code is PIC.
9760 lt_prog_compiler_static='-non_shared'
9761 ;;
9762 xl* | bgxl* | bgf* | mpixl*)
9763 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9764 lt_prog_compiler_wl='-Wl,'
9765 lt_prog_compiler_pic='-qpic'
9766 lt_prog_compiler_static='-qstaticlink'
9767 ;;
9768 *)
9769 case `$CC -V 2>&1 | $SED 5q` in
9770 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9772 lt_prog_compiler_pic='-KPIC'
9773 lt_prog_compiler_static='-Bstatic'
9774 lt_prog_compiler_wl=''
9775 ;;
9776 *Sun\ F* | *Sun*Fortran*)
9777 lt_prog_compiler_pic='-KPIC'
9778 lt_prog_compiler_static='-Bstatic'
9779 lt_prog_compiler_wl='-Qoption ld '
9780 ;;
9781 *Sun\ C*)
9782 # Sun C 5.9
9783 lt_prog_compiler_pic='-KPIC'
9784 lt_prog_compiler_static='-Bstatic'
9785 lt_prog_compiler_wl='-Wl,'
9786 ;;
9787 *Intel*\ [CF]*Compiler*)
9788 lt_prog_compiler_wl='-Wl,'
9789 lt_prog_compiler_pic='-fPIC'
9790 lt_prog_compiler_static='-static'
9791 ;;
9792 *Portland\ Group*)
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_pic='-fpic'
9795 lt_prog_compiler_static='-Bstatic'
9796 ;;
9797 esac
9798 ;;
9799 esac
9800 ;;
9801
9802 newsos6)
9803 lt_prog_compiler_pic='-KPIC'
9804 lt_prog_compiler_static='-Bstatic'
9805 ;;
9806
9807 *nto* | *qnx*)
9808 # QNX uses GNU C++, but need to define -shared option too, otherwise
9809 # it will coredump.
9810 lt_prog_compiler_pic='-fPIC -shared'
9811 ;;
9812
9813 osf3* | osf4* | osf5*)
9814 lt_prog_compiler_wl='-Wl,'
9815 # All OSF/1 code is PIC.
9816 lt_prog_compiler_static='-non_shared'
9817 ;;
9818
9819 rdos*)
9820 lt_prog_compiler_static='-non_shared'
9821 ;;
9822
9823 solaris*)
9824 lt_prog_compiler_pic='-KPIC'
9825 lt_prog_compiler_static='-Bstatic'
9826 case $cc_basename in
9827 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9828 lt_prog_compiler_wl='-Qoption ld ';;
9829 *)
9830 lt_prog_compiler_wl='-Wl,';;
9831 esac
9832 ;;
9833
9834 sunos4*)
9835 lt_prog_compiler_wl='-Qoption ld '
9836 lt_prog_compiler_pic='-PIC'
9837 lt_prog_compiler_static='-Bstatic'
9838 ;;
9839
9840 sysv4 | sysv4.2uw2* | sysv4.3*)
9841 lt_prog_compiler_wl='-Wl,'
9842 lt_prog_compiler_pic='-KPIC'
9843 lt_prog_compiler_static='-Bstatic'
9844 ;;
9845
9846 sysv4*MP*)
9847 if test -d /usr/nec; then
9848 lt_prog_compiler_pic='-Kconform_pic'
9849 lt_prog_compiler_static='-Bstatic'
9850 fi
9851 ;;
9852
9853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9854 lt_prog_compiler_wl='-Wl,'
9855 lt_prog_compiler_pic='-KPIC'
9856 lt_prog_compiler_static='-Bstatic'
9857 ;;
9858
9859 unicos*)
9860 lt_prog_compiler_wl='-Wl,'
9861 lt_prog_compiler_can_build_shared=no
9862 ;;
9863
9864 uts4*)
9865 lt_prog_compiler_pic='-pic'
9866 lt_prog_compiler_static='-Bstatic'
9867 ;;
9868
9869 *)
9870 lt_prog_compiler_can_build_shared=no
9871 ;;
9872 esac
9873 fi
9874
9875 case $host_os in
9876 # For platforms that do not support PIC, -DPIC is meaningless:
9877 *djgpp*)
9878 lt_prog_compiler_pic=
9879 ;;
9880 *)
9881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9882 ;;
9883 esac
9884
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9886 printf %s "checking for $compiler option to produce PIC... " >&6; }
9887 if test ${lt_cv_prog_compiler_pic+y}
9888 then :
9889 printf %s "(cached) " >&6
9890 else $as_nop
9891 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9892 fi
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9894 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9895 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9896
9897 #
9898 # Check to make sure the PIC flag actually works.
9899 #
9900 if test -n "$lt_prog_compiler_pic"; then
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9902 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9903 if test ${lt_cv_prog_compiler_pic_works+y}
9904 then :
9905 printf %s "(cached) " >&6
9906 else $as_nop
9907 lt_cv_prog_compiler_pic_works=no
9908 ac_outfile=conftest.$ac_objext
9909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9910 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9911 # Insert the option either (1) after the last *FLAGS variable, or
9912 # (2) before a word containing "conftest.", or (3) at the end.
9913 # Note that $ac_compile itself does not contain backslashes and begins
9914 # with a dollar sign (not a hyphen), so the echo should work correctly.
9915 # The option is referenced via a variable to avoid confusing sed.
9916 lt_compile=`echo "$ac_compile" | $SED \
9917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9919 -e 's:$: $lt_compiler_flag:'`
9920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9921 (eval "$lt_compile" 2>conftest.err)
9922 ac_status=$?
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 if (exit $ac_status) && test -s "$ac_outfile"; then
9926 # The compiler can only warn and ignore the option if not recognized
9927 # So say no if there are warnings other than the usual output.
9928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9931 lt_cv_prog_compiler_pic_works=yes
9932 fi
9933 fi
9934 $RM conftest*
9935
9936 fi
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9938 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9939
9940 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9941 case $lt_prog_compiler_pic in
9942 "" | " "*) ;;
9943 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9944 esac
9945 else
9946 lt_prog_compiler_pic=
9947 lt_prog_compiler_can_build_shared=no
9948 fi
9949
9950 fi
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962 #
9963 # Check to make sure the static flag actually works.
9964 #
9965 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9967 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9968 if test ${lt_cv_prog_compiler_static_works+y}
9969 then :
9970 printf %s "(cached) " >&6
9971 else $as_nop
9972 lt_cv_prog_compiler_static_works=no
9973 save_LDFLAGS=$LDFLAGS
9974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9975 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9977 # The linker can only warn and ignore the option if not recognized
9978 # So say no if there are warnings
9979 if test -s conftest.err; then
9980 # Append any errors to the config.log.
9981 cat conftest.err 1>&5
9982 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9984 if diff conftest.exp conftest.er2 >/dev/null; then
9985 lt_cv_prog_compiler_static_works=yes
9986 fi
9987 else
9988 lt_cv_prog_compiler_static_works=yes
9989 fi
9990 fi
9991 $RM -r conftest*
9992 LDFLAGS=$save_LDFLAGS
9993
9994 fi
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9996 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9997
9998 if test yes = "$lt_cv_prog_compiler_static_works"; then
9999 :
10000 else
10001 lt_prog_compiler_static=
10002 fi
10003
10004
10005
10006
10007
10008
10009
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10011 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10012 if test ${lt_cv_prog_compiler_c_o+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else $as_nop
10016 lt_cv_prog_compiler_c_o=no
10017 $RM -r conftest 2>/dev/null
10018 mkdir conftest
10019 cd conftest
10020 mkdir out
10021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10022
10023 lt_compiler_flag="-o out/conftest2.$ac_objext"
10024 # Insert the option either (1) after the last *FLAGS variable, or
10025 # (2) before a word containing "conftest.", or (3) at the end.
10026 # Note that $ac_compile itself does not contain backslashes and begins
10027 # with a dollar sign (not a hyphen), so the echo should work correctly.
10028 lt_compile=`echo "$ac_compile" | $SED \
10029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10031 -e 's:$: $lt_compiler_flag:'`
10032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10033 (eval "$lt_compile" 2>out/conftest.err)
10034 ac_status=$?
10035 cat out/conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10038 then
10039 # The compiler can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10044 lt_cv_prog_compiler_c_o=yes
10045 fi
10046 fi
10047 chmod u+w . 2>&5
10048 $RM conftest*
10049 # SGI C++ compiler will create directory out/ii_files/ for
10050 # template instantiation
10051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10052 $RM out/* && rmdir out
10053 cd ..
10054 $RM -r conftest
10055 $RM conftest*
10056
10057 fi
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10059 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10060
10061
10062
10063
10064
10065
10066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10067 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10068 if test ${lt_cv_prog_compiler_c_o+y}
10069 then :
10070 printf %s "(cached) " >&6
10071 else $as_nop
10072 lt_cv_prog_compiler_c_o=no
10073 $RM -r conftest 2>/dev/null
10074 mkdir conftest
10075 cd conftest
10076 mkdir out
10077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10078
10079 lt_compiler_flag="-o out/conftest2.$ac_objext"
10080 # Insert the option either (1) after the last *FLAGS variable, or
10081 # (2) before a word containing "conftest.", or (3) at the end.
10082 # Note that $ac_compile itself does not contain backslashes and begins
10083 # with a dollar sign (not a hyphen), so the echo should work correctly.
10084 lt_compile=`echo "$ac_compile" | $SED \
10085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10087 -e 's:$: $lt_compiler_flag:'`
10088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10089 (eval "$lt_compile" 2>out/conftest.err)
10090 ac_status=$?
10091 cat out/conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10094 then
10095 # The compiler can only warn and ignore the option if not recognized
10096 # So say no if there are warnings
10097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10100 lt_cv_prog_compiler_c_o=yes
10101 fi
10102 fi
10103 chmod u+w . 2>&5
10104 $RM conftest*
10105 # SGI C++ compiler will create directory out/ii_files/ for
10106 # template instantiation
10107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10108 $RM out/* && rmdir out
10109 cd ..
10110 $RM -r conftest
10111 $RM conftest*
10112
10113 fi
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10115 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10116
10117
10118
10119
10120 hard_links=nottested
10121 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10122 # do not overwrite the value of need_locks provided by the user
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10124 printf %s "checking if we can lock with hard links... " >&6; }
10125 hard_links=yes
10126 $RM conftest*
10127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10128 touch conftest.a
10129 ln conftest.a conftest.b 2>&5 || hard_links=no
10130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10132 printf "%s\n" "$hard_links" >&6; }
10133 if test no = "$hard_links"; then
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10135 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10136 need_locks=warn
10137 fi
10138 else
10139 need_locks=no
10140 fi
10141
10142
10143
10144
10145
10146
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10148 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10149
10150 runpath_var=
10151 allow_undefined_flag=
10152 always_export_symbols=no
10153 archive_cmds=
10154 archive_expsym_cmds=
10155 compiler_needs_object=no
10156 enable_shared_with_static_runtimes=no
10157 export_dynamic_flag_spec=
10158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10159 hardcode_automatic=no
10160 hardcode_direct=no
10161 hardcode_direct_absolute=no
10162 hardcode_libdir_flag_spec=
10163 hardcode_libdir_separator=
10164 hardcode_minus_L=no
10165 hardcode_shlibpath_var=unsupported
10166 inherit_rpath=no
10167 link_all_deplibs=unknown
10168 module_cmds=
10169 module_expsym_cmds=
10170 old_archive_from_new_cmds=
10171 old_archive_from_expsyms_cmds=
10172 thread_safe_flag_spec=
10173 whole_archive_flag_spec=
10174 # include_expsyms should be a list of space-separated symbols to be *always*
10175 # included in the symbol list
10176 include_expsyms=
10177 # exclude_expsyms can be an extended regexp of symbols to exclude
10178 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10179 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10180 # as well as any symbol that contains 'd'.
10181 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10183 # platforms (ab)use it in PIC code, but their linkers get confused if
10184 # the symbol is explicitly referenced. Since portable code cannot
10185 # rely on this symbol name, it's probably fine to never include it in
10186 # preloaded symbol tables.
10187 # Exclude shared library initialization/finalization symbols.
10188 extract_expsyms_cmds=
10189
10190 case $host_os in
10191 cygwin* | mingw* | pw32* | cegcc*)
10192 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10193 # When not using gcc, we currently assume that we are using
10194 # Microsoft Visual C++ or Intel C++ Compiler.
10195 if test yes != "$GCC"; then
10196 with_gnu_ld=no
10197 fi
10198 ;;
10199 interix*)
10200 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10201 with_gnu_ld=yes
10202 ;;
10203 openbsd* | bitrig*)
10204 with_gnu_ld=no
10205 ;;
10206 linux* | k*bsd*-gnu | gnu*)
10207 link_all_deplibs=no
10208 ;;
10209 esac
10210
10211 ld_shlibs=yes
10212
10213 # On some targets, GNU ld is compatible enough with the native linker
10214 # that we're better off using the native interface for both.
10215 lt_use_gnu_ld_interface=no
10216 if test yes = "$with_gnu_ld"; then
10217 case $host_os in
10218 aix*)
10219 # The AIX port of GNU ld has always aspired to compatibility
10220 # with the native linker. However, as the warning in the GNU ld
10221 # block says, versions before 2.19.5* couldn't really create working
10222 # shared libraries, regardless of the interface used.
10223 case `$LD -v 2>&1` in
10224 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10225 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10226 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10227 *)
10228 lt_use_gnu_ld_interface=yes
10229 ;;
10230 esac
10231 ;;
10232 *)
10233 lt_use_gnu_ld_interface=yes
10234 ;;
10235 esac
10236 fi
10237
10238 if test yes = "$lt_use_gnu_ld_interface"; then
10239 # If archive_cmds runs LD, not CC, wlarc should be empty
10240 wlarc='$wl'
10241
10242 # Set some defaults for GNU ld with shared library support. These
10243 # are reset later if shared libraries are not supported. Putting them
10244 # here allows them to be overridden if necessary.
10245 runpath_var=LD_RUN_PATH
10246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10247 export_dynamic_flag_spec='$wl--export-dynamic'
10248 # ancient GNU ld didn't support --whole-archive et. al.
10249 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10250 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10251 else
10252 whole_archive_flag_spec=
10253 fi
10254 supports_anon_versioning=no
10255 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10256 *GNU\ gold*) supports_anon_versioning=yes ;;
10257 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10258 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10259 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10260 *\ 2.11.*) ;; # other 2.11 versions
10261 *) supports_anon_versioning=yes ;;
10262 esac
10263
10264 # See if GNU ld supports shared libraries.
10265 case $host_os in
10266 aix[3-9]*)
10267 # On AIX/PPC, the GNU linker is very broken
10268 if test ia64 != "$host_cpu"; then
10269 ld_shlibs=no
10270 cat <<_LT_EOF 1>&2
10271
10272 *** Warning: the GNU linker, at least up to release 2.19, is reported
10273 *** to be unable to reliably create shared libraries on AIX.
10274 *** Therefore, libtool is disabling shared libraries support. If you
10275 *** really care for shared libraries, you may want to install binutils
10276 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10277 *** You will then need to restart the configuration process.
10278
10279 _LT_EOF
10280 fi
10281 ;;
10282
10283 amigaos*)
10284 case $host_cpu in
10285 powerpc)
10286 # see comment about AmigaOS4 .so support
10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10288 archive_expsym_cmds=''
10289 ;;
10290 m68k)
10291 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)'
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_minus_L=yes
10294 ;;
10295 esac
10296 ;;
10297
10298 beos*)
10299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300 allow_undefined_flag=unsupported
10301 # Joseph Beckenbach <[email protected]> says some releases of gcc
10302 # support --undefined. This deserves some investigation. FIXME
10303 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10304 else
10305 ld_shlibs=no
10306 fi
10307 ;;
10308
10309 cygwin* | mingw* | pw32* | cegcc*)
10310 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10311 # as there is no search path for DLLs.
10312 hardcode_libdir_flag_spec='-L$libdir'
10313 export_dynamic_flag_spec='$wl--export-all-symbols'
10314 allow_undefined_flag=unsupported
10315 always_export_symbols=no
10316 enable_shared_with_static_runtimes=yes
10317 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'
10318 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10319
10320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10322 # If the export-symbols file already is a .def file, use it as
10323 # is; otherwise, prepend EXPORTS...
10324 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10325 cp $export_symbols $output_objdir/$soname.def;
10326 else
10327 echo EXPORTS > $output_objdir/$soname.def;
10328 cat $export_symbols >> $output_objdir/$soname.def;
10329 fi~
10330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10331 else
10332 ld_shlibs=no
10333 fi
10334 ;;
10335
10336 haiku*)
10337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10338 link_all_deplibs=yes
10339 ;;
10340
10341 os2*)
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_minus_L=yes
10344 allow_undefined_flag=unsupported
10345 shrext_cmds=.dll
10346 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10349 $ECHO EXPORTS >> $output_objdir/$libname.def~
10350 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10351 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10352 emximp -o $lib $output_objdir/$libname.def'
10353 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10354 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10355 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10356 $ECHO EXPORTS >> $output_objdir/$libname.def~
10357 prefix_cmds="$SED"~
10358 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10359 prefix_cmds="$prefix_cmds -e 1d";
10360 fi~
10361 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10362 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10364 emximp -o $lib $output_objdir/$libname.def'
10365 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10366 enable_shared_with_static_runtimes=yes
10367 file_list_spec='@'
10368 ;;
10369
10370 interix[3-9]*)
10371 hardcode_direct=no
10372 hardcode_shlibpath_var=no
10373 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10374 export_dynamic_flag_spec='$wl-E'
10375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10376 # Instead, shared libraries are loaded at an image base (0x10000000 by
10377 # default) and relocated if they conflict, which is a slow very memory
10378 # consuming and fragmenting process. To avoid this, we pick a random,
10379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10382 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'
10383 ;;
10384
10385 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10386 tmp_diet=no
10387 if test linux-dietlibc = "$host_os"; then
10388 case $cc_basename in
10389 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10390 esac
10391 fi
10392 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10393 && test no = "$tmp_diet"
10394 then
10395 tmp_addflag=' $pic_flag'
10396 tmp_sharedflag='-shared'
10397 case $cc_basename,$host_cpu in
10398 pgcc*) # Portland Group C compiler
10399 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'
10400 tmp_addflag=' $pic_flag'
10401 ;;
10402 pgf77* | pgf90* | pgf95* | pgfortran*)
10403 # Portland Group f77 and f90 compilers
10404 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'
10405 tmp_addflag=' $pic_flag -Mnomain' ;;
10406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10407 tmp_addflag=' -i_dynamic' ;;
10408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10409 tmp_addflag=' -i_dynamic -nofor_main' ;;
10410 ifc* | ifort*) # Intel Fortran compiler
10411 tmp_addflag=' -nofor_main' ;;
10412 lf95*) # Lahey Fortran 8.1
10413 whole_archive_flag_spec=
10414 tmp_sharedflag='--shared' ;;
10415 nagfor*) # NAGFOR 5.3
10416 tmp_sharedflag='-Wl,-shared' ;;
10417 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10418 tmp_sharedflag='-qmkshrobj'
10419 tmp_addflag= ;;
10420 nvcc*) # Cuda Compiler Driver 2.2
10421 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10422 compiler_needs_object=yes
10423 ;;
10424 esac
10425 case `$CC -V 2>&1 | $SED 5q` in
10426 *Sun\ C*) # Sun C 5.9
10427 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'
10428 compiler_needs_object=yes
10429 tmp_sharedflag='-G' ;;
10430 *Sun\ F*) # Sun Fortran 8.3
10431 tmp_sharedflag='-G' ;;
10432 esac
10433 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10434
10435 if test yes = "$supports_anon_versioning"; then
10436 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10437 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10438 echo "local: *; };" >> $output_objdir/$libname.ver~
10439 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10440 fi
10441
10442 case $cc_basename in
10443 tcc*)
10444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10445 export_dynamic_flag_spec='-rdynamic'
10446 ;;
10447 xlf* | bgf* | bgxlf* | mpixlf*)
10448 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10449 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10451 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10452 if test yes = "$supports_anon_versioning"; then
10453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10454 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10455 echo "local: *; };" >> $output_objdir/$libname.ver~
10456 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10457 fi
10458 ;;
10459 esac
10460 else
10461 ld_shlibs=no
10462 fi
10463 ;;
10464
10465 netbsd* | netbsdelf*-gnu)
10466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10467 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10468 wlarc=
10469 else
10470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10472 fi
10473 ;;
10474
10475 solaris*)
10476 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10477 ld_shlibs=no
10478 cat <<_LT_EOF 1>&2
10479
10480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10481 *** create shared libraries on Solaris systems. Therefore, libtool
10482 *** is disabling shared libraries support. We urge you to upgrade GNU
10483 *** binutils to release 2.9.1 or newer. Another option is to modify
10484 *** your PATH or compiler configuration so that the native linker is
10485 *** used, and then restart.
10486
10487 _LT_EOF
10488 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10491 else
10492 ld_shlibs=no
10493 fi
10494 ;;
10495
10496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10497 case `$LD -v 2>&1` in
10498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10499 ld_shlibs=no
10500 cat <<_LT_EOF 1>&2
10501
10502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10503 *** reliably create shared libraries on SCO systems. Therefore, libtool
10504 *** is disabling shared libraries support. We urge you to upgrade GNU
10505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10506 *** your PATH or compiler configuration so that the native linker is
10507 *** used, and then restart.
10508
10509 _LT_EOF
10510 ;;
10511 *)
10512 # For security reasons, it is highly recommended that you always
10513 # use absolute paths for naming shared libraries, and exclude the
10514 # DT_RUNPATH tag from executables and libraries. But doing so
10515 # requires that you compile everything twice, which is a pain.
10516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10520 else
10521 ld_shlibs=no
10522 fi
10523 ;;
10524 esac
10525 ;;
10526
10527 sunos4*)
10528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10529 wlarc=
10530 hardcode_direct=yes
10531 hardcode_shlibpath_var=no
10532 ;;
10533
10534 *)
10535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10538 else
10539 ld_shlibs=no
10540 fi
10541 ;;
10542 esac
10543
10544 if test no = "$ld_shlibs"; then
10545 runpath_var=
10546 hardcode_libdir_flag_spec=
10547 export_dynamic_flag_spec=
10548 whole_archive_flag_spec=
10549 fi
10550 else
10551 # PORTME fill in a description of your system's linker (not GNU ld)
10552 case $host_os in
10553 aix3*)
10554 allow_undefined_flag=unsupported
10555 always_export_symbols=yes
10556 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'
10557 # Note: this linker hardcodes the directories in LIBPATH if there
10558 # are no directories specified by -L.
10559 hardcode_minus_L=yes
10560 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10561 # Neither direct hardcoding nor static linking is supported with a
10562 # broken collect2.
10563 hardcode_direct=unsupported
10564 fi
10565 ;;
10566
10567 aix[4-9]*)
10568 if test ia64 = "$host_cpu"; then
10569 # On IA64, the linker does run time linking by default, so we don't
10570 # have to do anything special.
10571 aix_use_runtimelinking=no
10572 exp_sym_flag='-Bexport'
10573 no_entry_flag=
10574 else
10575 # If we're using GNU nm, then we don't want the "-C" option.
10576 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10577 # Without the "-l" option, or with the "-B" option, AIX nm treats
10578 # weak defined symbols like other global defined symbols, whereas
10579 # GNU nm marks them as "W".
10580 # While the 'weak' keyword is ignored in the Export File, we need
10581 # it in the Import File for the 'aix-soname' feature, so we have
10582 # to replace the "-B" option with "-P" for AIX nm.
10583 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10584 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'
10585 else
10586 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10587 fi
10588 aix_use_runtimelinking=no
10589
10590 # Test if we are trying to use run time linking or normal
10591 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10592 # have runtime linking enabled, and use it for executables.
10593 # For shared libraries, we enable/disable runtime linking
10594 # depending on the kind of the shared library created -
10595 # when "with_aix_soname,aix_use_runtimelinking" is:
10596 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10597 # "aix,yes" lib.so shared, rtl:yes, for executables
10598 # lib.a static archive
10599 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10600 # lib.a(lib.so.V) shared, rtl:no, for executables
10601 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10602 # lib.a(lib.so.V) shared, rtl:no
10603 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10604 # lib.a static archive
10605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10606 for ld_flag in $LDFLAGS; do
10607 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10608 aix_use_runtimelinking=yes
10609 break
10610 fi
10611 done
10612 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10613 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10614 # so we don't have lib.a shared libs to link our executables.
10615 # We have to force runtime linking in this case.
10616 aix_use_runtimelinking=yes
10617 LDFLAGS="$LDFLAGS -Wl,-brtl"
10618 fi
10619 ;;
10620 esac
10621
10622 exp_sym_flag='-bexport'
10623 no_entry_flag='-bnoentry'
10624 fi
10625
10626 # When large executables or shared objects are built, AIX ld can
10627 # have problems creating the table of contents. If linking a library
10628 # or program results in "error TOC overflow" add -mminimal-toc to
10629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10631
10632 archive_cmds=''
10633 hardcode_direct=yes
10634 hardcode_direct_absolute=yes
10635 hardcode_libdir_separator=':'
10636 link_all_deplibs=yes
10637 file_list_spec='$wl-f,'
10638 case $with_aix_soname,$aix_use_runtimelinking in
10639 aix,*) ;; # traditional, no import file
10640 svr4,* | *,yes) # use import file
10641 # The Import File defines what to hardcode.
10642 hardcode_direct=no
10643 hardcode_direct_absolute=no
10644 ;;
10645 esac
10646
10647 if test yes = "$GCC"; then
10648 case $host_os in aix4.[012]|aix4.[012].*)
10649 # We only want to do this on AIX 4.2 and lower, the check
10650 # below for broken collect2 doesn't work under 4.3+
10651 collect2name=`$CC -print-prog-name=collect2`
10652 if test -f "$collect2name" &&
10653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10654 then
10655 # We have reworked collect2
10656 :
10657 else
10658 # We have old collect2
10659 hardcode_direct=unsupported
10660 # It fails to find uninstalled libraries when the uninstalled
10661 # path is not listed in the libpath. Setting hardcode_minus_L
10662 # to unsupported forces relinking
10663 hardcode_minus_L=yes
10664 hardcode_libdir_flag_spec='-L$libdir'
10665 hardcode_libdir_separator=
10666 fi
10667 ;;
10668 esac
10669 shared_flag='-shared'
10670 if test yes = "$aix_use_runtimelinking"; then
10671 shared_flag="$shared_flag "'$wl-G'
10672 fi
10673 # Need to ensure runtime linking is disabled for the traditional
10674 # shared library, or the linker may eventually find shared libraries
10675 # /with/ Import File - we do not want to mix them.
10676 shared_flag_aix='-shared'
10677 shared_flag_svr4='-shared $wl-G'
10678 else
10679 # not using gcc
10680 if test ia64 = "$host_cpu"; then
10681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10682 # chokes on -Wl,-G. The following line is correct:
10683 shared_flag='-G'
10684 else
10685 if test yes = "$aix_use_runtimelinking"; then
10686 shared_flag='$wl-G'
10687 else
10688 shared_flag='$wl-bM:SRE'
10689 fi
10690 shared_flag_aix='$wl-bM:SRE'
10691 shared_flag_svr4='$wl-G'
10692 fi
10693 fi
10694
10695 export_dynamic_flag_spec='$wl-bexpall'
10696 # It seems that -bexpall does not export symbols beginning with
10697 # underscore (_), so it is better to generate a list of symbols to export.
10698 always_export_symbols=yes
10699 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10700 # Warning - without using the other runtime loading flags (-brtl),
10701 # -berok will link without error, but may produce a broken library.
10702 allow_undefined_flag='-berok'
10703 # Determine the default libpath from the value encoded in an
10704 # empty executable.
10705 if test set = "${lt_cv_aix_libpath+set}"; then
10706 aix_libpath=$lt_cv_aix_libpath
10707 else
10708 if test ${lt_cv_aix_libpath_+y}
10709 then :
10710 printf %s "(cached) " >&6
10711 else $as_nop
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714
10715 int
10716 main (void)
10717 {
10718
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"
10724 then :
10725
10726 lt_aix_libpath_sed='
10727 /Import File Strings/,/^$/ {
10728 /^0/ {
10729 s/^0 *\([^ ]*\) *$/\1/
10730 p
10731 }
10732 }'
10733 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734 # Check for a 64-bit object if we didn't find anything.
10735 if test -z "$lt_cv_aix_libpath_"; then
10736 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737 fi
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10740 conftest$ac_exeext conftest.$ac_ext
10741 if test -z "$lt_cv_aix_libpath_"; then
10742 lt_cv_aix_libpath_=/usr/lib:/lib
10743 fi
10744
10745 fi
10746
10747 aix_libpath=$lt_cv_aix_libpath_
10748 fi
10749
10750 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10751 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
10752 else
10753 if test ia64 = "$host_cpu"; then
10754 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10755 allow_undefined_flag="-z nodefs"
10756 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"
10757 else
10758 # Determine the default libpath from the value encoded in an
10759 # empty executable.
10760 if test set = "${lt_cv_aix_libpath+set}"; then
10761 aix_libpath=$lt_cv_aix_libpath
10762 else
10763 if test ${lt_cv_aix_libpath_+y}
10764 then :
10765 printf %s "(cached) " >&6
10766 else $as_nop
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769
10770 int
10771 main (void)
10772 {
10773
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"
10779 then :
10780
10781 lt_aix_libpath_sed='
10782 /Import File Strings/,/^$/ {
10783 /^0/ {
10784 s/^0 *\([^ ]*\) *$/\1/
10785 p
10786 }
10787 }'
10788 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 # Check for a 64-bit object if we didn't find anything.
10790 if test -z "$lt_cv_aix_libpath_"; then
10791 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 fi
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10795 conftest$ac_exeext conftest.$ac_ext
10796 if test -z "$lt_cv_aix_libpath_"; then
10797 lt_cv_aix_libpath_=/usr/lib:/lib
10798 fi
10799
10800 fi
10801
10802 aix_libpath=$lt_cv_aix_libpath_
10803 fi
10804
10805 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10806 # Warning - without using the other run time loading flags,
10807 # -berok will link without error, but may produce a broken library.
10808 no_undefined_flag=' $wl-bernotok'
10809 allow_undefined_flag=' $wl-berok'
10810 if test yes = "$with_gnu_ld"; then
10811 # We only use this code for GNU lds that support --whole-archive.
10812 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10813 else
10814 # Exported symbols can be pulled into shared objects from archives
10815 whole_archive_flag_spec='$convenience'
10816 fi
10817 archive_cmds_need_lc=yes
10818 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10819 # -brtl affects multiple linker settings, -berok does not and is overridden later
10820 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10821 if test svr4 != "$with_aix_soname"; then
10822 # This is similar to how AIX traditionally builds its shared libraries.
10823 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'
10824 fi
10825 if test aix != "$with_aix_soname"; then
10826 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'
10827 else
10828 # used by -dlpreopen to get the symbols
10829 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10830 fi
10831 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10832 fi
10833 fi
10834 ;;
10835
10836 amigaos*)
10837 case $host_cpu in
10838 powerpc)
10839 # see comment about AmigaOS4 .so support
10840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10841 archive_expsym_cmds=''
10842 ;;
10843 m68k)
10844 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)'
10845 hardcode_libdir_flag_spec='-L$libdir'
10846 hardcode_minus_L=yes
10847 ;;
10848 esac
10849 ;;
10850
10851 bsdi[45]*)
10852 export_dynamic_flag_spec=-rdynamic
10853 ;;
10854
10855 cygwin* | mingw* | pw32* | cegcc*)
10856 # When not using gcc, we currently assume that we are using
10857 # Microsoft Visual C++ or Intel C++ Compiler.
10858 # hardcode_libdir_flag_spec is actually meaningless, as there is
10859 # no search path for DLLs.
10860 case $cc_basename in
10861 cl* | icl*)
10862 # Native MSVC or ICC
10863 hardcode_libdir_flag_spec=' '
10864 allow_undefined_flag=unsupported
10865 always_export_symbols=yes
10866 file_list_spec='@'
10867 # Tell ltmain to make .lib files, not .a files.
10868 libext=lib
10869 # Tell ltmain to make .dll files, not .so files.
10870 shrext_cmds=.dll
10871 # FIXME: Setting linknames here is a bad hack.
10872 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10873 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10874 cp "$export_symbols" "$output_objdir/$soname.def";
10875 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10876 else
10877 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10878 fi~
10879 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10880 linknames='
10881 # The linker will not automatically build a static lib if we build a DLL.
10882 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10883 enable_shared_with_static_runtimes=yes
10884 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10886 # Don't use ranlib
10887 old_postinstall_cmds='chmod 644 $oldlib'
10888 postlink_cmds='lt_outputfile="@OUTPUT@"~
10889 lt_tool_outputfile="@TOOL_OUTPUT@"~
10890 case $lt_outputfile in
10891 *.exe|*.EXE) ;;
10892 *)
10893 lt_outputfile=$lt_outputfile.exe
10894 lt_tool_outputfile=$lt_tool_outputfile.exe
10895 ;;
10896 esac~
10897 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10898 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10899 $RM "$lt_outputfile.manifest";
10900 fi'
10901 ;;
10902 *)
10903 # Assume MSVC and ICC wrapper
10904 hardcode_libdir_flag_spec=' '
10905 allow_undefined_flag=unsupported
10906 # Tell ltmain to make .lib files, not .a files.
10907 libext=lib
10908 # Tell ltmain to make .dll files, not .so files.
10909 shrext_cmds=.dll
10910 # FIXME: Setting linknames here is a bad hack.
10911 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10912 # The linker will automatically build a .lib file if we build a DLL.
10913 old_archive_from_new_cmds='true'
10914 # FIXME: Should let the user specify the lib program.
10915 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10916 enable_shared_with_static_runtimes=yes
10917 ;;
10918 esac
10919 ;;
10920
10921 darwin* | rhapsody*)
10922
10923
10924 archive_cmds_need_lc=no
10925 hardcode_direct=no
10926 hardcode_automatic=yes
10927 hardcode_shlibpath_var=unsupported
10928 if test yes = "$lt_cv_ld_force_load"; then
10929 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\"`'
10930
10931 else
10932 whole_archive_flag_spec=''
10933 fi
10934 link_all_deplibs=yes
10935 allow_undefined_flag=$_lt_dar_allow_undefined
10936 case $cc_basename in
10937 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10938 *) _lt_dar_can_shared=$GCC ;;
10939 esac
10940 if test yes = "$_lt_dar_can_shared"; then
10941 output_verbose_link_cmd=func_echo_all
10942 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10943 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10944 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"
10945 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"
10946
10947 else
10948 ld_shlibs=no
10949 fi
10950
10951 ;;
10952
10953 dgux*)
10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_libdir_flag_spec='-L$libdir'
10956 hardcode_shlibpath_var=no
10957 ;;
10958
10959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10960 # support. Future versions do this automatically, but an explicit c++rt0.o
10961 # does not break anything, and helps significantly (at the cost of a little
10962 # extra space).
10963 freebsd2.2*)
10964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10965 hardcode_libdir_flag_spec='-R$libdir'
10966 hardcode_direct=yes
10967 hardcode_shlibpath_var=no
10968 ;;
10969
10970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10971 freebsd2.*)
10972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_direct=yes
10974 hardcode_minus_L=yes
10975 hardcode_shlibpath_var=no
10976 ;;
10977
10978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10979 freebsd* | dragonfly* | midnightbsd*)
10980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10981 hardcode_libdir_flag_spec='-R$libdir'
10982 hardcode_direct=yes
10983 hardcode_shlibpath_var=no
10984 ;;
10985
10986 hpux9*)
10987 if test yes = "$GCC"; then
10988 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'
10989 else
10990 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'
10991 fi
10992 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10993 hardcode_libdir_separator=:
10994 hardcode_direct=yes
10995
10996 # hardcode_minus_L: Not really in the search PATH,
10997 # but as the default location of the library.
10998 hardcode_minus_L=yes
10999 export_dynamic_flag_spec='$wl-E'
11000 ;;
11001
11002 hpux10*)
11003 if test yes,no = "$GCC,$with_gnu_ld"; then
11004 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11005 else
11006 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11007 fi
11008 if test no = "$with_gnu_ld"; then
11009 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11010 hardcode_libdir_separator=:
11011 hardcode_direct=yes
11012 hardcode_direct_absolute=yes
11013 export_dynamic_flag_spec='$wl-E'
11014 # hardcode_minus_L: Not really in the search PATH,
11015 # but as the default location of the library.
11016 hardcode_minus_L=yes
11017 fi
11018 ;;
11019
11020 hpux11*)
11021 if test yes,no = "$GCC,$with_gnu_ld"; then
11022 case $host_cpu in
11023 hppa*64*)
11024 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 ;;
11026 ia64*)
11027 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11028 ;;
11029 *)
11030 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11031 ;;
11032 esac
11033 else
11034 case $host_cpu in
11035 hppa*64*)
11036 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 ;;
11038 ia64*)
11039 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11040 ;;
11041 *)
11042
11043 # Older versions of the 11.00 compiler do not understand -b yet
11044 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11046 printf %s "checking if $CC understands -b... " >&6; }
11047 if test ${lt_cv_prog_compiler__b+y}
11048 then :
11049 printf %s "(cached) " >&6
11050 else $as_nop
11051 lt_cv_prog_compiler__b=no
11052 save_LDFLAGS=$LDFLAGS
11053 LDFLAGS="$LDFLAGS -b"
11054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11056 # The linker can only warn and ignore the option if not recognized
11057 # So say no if there are warnings
11058 if test -s conftest.err; then
11059 # Append any errors to the config.log.
11060 cat conftest.err 1>&5
11061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11063 if diff conftest.exp conftest.er2 >/dev/null; then
11064 lt_cv_prog_compiler__b=yes
11065 fi
11066 else
11067 lt_cv_prog_compiler__b=yes
11068 fi
11069 fi
11070 $RM -r conftest*
11071 LDFLAGS=$save_LDFLAGS
11072
11073 fi
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11075 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11076
11077 if test yes = "$lt_cv_prog_compiler__b"; then
11078 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11079 else
11080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11081 fi
11082
11083 ;;
11084 esac
11085 fi
11086 if test no = "$with_gnu_ld"; then
11087 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11088 hardcode_libdir_separator=:
11089
11090 case $host_cpu in
11091 hppa*64*|ia64*)
11092 hardcode_direct=no
11093 hardcode_shlibpath_var=no
11094 ;;
11095 *)
11096 hardcode_direct=yes
11097 hardcode_direct_absolute=yes
11098 export_dynamic_flag_spec='$wl-E'
11099
11100 # hardcode_minus_L: Not really in the search PATH,
11101 # but as the default location of the library.
11102 hardcode_minus_L=yes
11103 ;;
11104 esac
11105 fi
11106 ;;
11107
11108 irix5* | irix6* | nonstopux*)
11109 if test yes = "$GCC"; then
11110 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'
11111 # Try to use the -exported_symbol ld option, if it does not
11112 # work, assume that -exports_file does not work either and
11113 # implicitly export all symbols.
11114 # This should be the same for all languages, so no per-tag cache variable.
11115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11116 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11117 if test ${lt_cv_irix_exported_symbol+y}
11118 then :
11119 printf %s "(cached) " >&6
11120 else $as_nop
11121 save_LDFLAGS=$LDFLAGS
11122 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11125 int foo (void) { return 0; }
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"
11128 then :
11129 lt_cv_irix_exported_symbol=yes
11130 else $as_nop
11131 lt_cv_irix_exported_symbol=no
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LDFLAGS=$save_LDFLAGS
11136 fi
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11138 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11139 if test yes = "$lt_cv_irix_exported_symbol"; then
11140 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'
11141 fi
11142 link_all_deplibs=no
11143 else
11144 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'
11145 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'
11146 fi
11147 archive_cmds_need_lc='no'
11148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11149 hardcode_libdir_separator=:
11150 inherit_rpath=yes
11151 link_all_deplibs=yes
11152 ;;
11153
11154 linux*)
11155 case $cc_basename in
11156 tcc*)
11157 # Fabrice Bellard et al's Tiny C Compiler
11158 ld_shlibs=yes
11159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11161 ;;
11162 esac
11163 ;;
11164
11165 netbsd* | netbsdelf*-gnu)
11166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11168 else
11169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11170 fi
11171 hardcode_libdir_flag_spec='-R$libdir'
11172 hardcode_direct=yes
11173 hardcode_shlibpath_var=no
11174 ;;
11175
11176 newsos6)
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_direct=yes
11179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11180 hardcode_libdir_separator=:
11181 hardcode_shlibpath_var=no
11182 ;;
11183
11184 *nto* | *qnx*)
11185 ;;
11186
11187 openbsd* | bitrig*)
11188 if test -f /usr/libexec/ld.so; then
11189 hardcode_direct=yes
11190 hardcode_shlibpath_var=no
11191 hardcode_direct_absolute=yes
11192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11193 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11194 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11195 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11196 export_dynamic_flag_spec='$wl-E'
11197 else
11198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11199 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11200 fi
11201 else
11202 ld_shlibs=no
11203 fi
11204 ;;
11205
11206 os2*)
11207 hardcode_libdir_flag_spec='-L$libdir'
11208 hardcode_minus_L=yes
11209 allow_undefined_flag=unsupported
11210 shrext_cmds=.dll
11211 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11212 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11213 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11214 $ECHO EXPORTS >> $output_objdir/$libname.def~
11215 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11217 emximp -o $lib $output_objdir/$libname.def'
11218 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11219 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11220 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11221 $ECHO EXPORTS >> $output_objdir/$libname.def~
11222 prefix_cmds="$SED"~
11223 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11224 prefix_cmds="$prefix_cmds -e 1d";
11225 fi~
11226 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11227 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11228 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11229 emximp -o $lib $output_objdir/$libname.def'
11230 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11231 enable_shared_with_static_runtimes=yes
11232 file_list_spec='@'
11233 ;;
11234
11235 osf3*)
11236 if test yes = "$GCC"; then
11237 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11238 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'
11239 else
11240 allow_undefined_flag=' -expect_unresolved \*'
11241 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'
11242 fi
11243 archive_cmds_need_lc='no'
11244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11245 hardcode_libdir_separator=:
11246 ;;
11247
11248 osf4* | osf5*) # as osf3* with the addition of -msym flag
11249 if test yes = "$GCC"; then
11250 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11251 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'
11252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11253 else
11254 allow_undefined_flag=' -expect_unresolved \*'
11255 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'
11256 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~
11257 $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'
11258
11259 # Both c and cxx compiler support -rpath directly
11260 hardcode_libdir_flag_spec='-rpath $libdir'
11261 fi
11262 archive_cmds_need_lc='no'
11263 hardcode_libdir_separator=:
11264 ;;
11265
11266 solaris*)
11267 no_undefined_flag=' -z defs'
11268 if test yes = "$GCC"; then
11269 wlarc='$wl'
11270 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11272 $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'
11273 else
11274 case `$CC -V 2>&1` in
11275 *"Compilers 5.0"*)
11276 wlarc=''
11277 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11279 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11280 ;;
11281 *)
11282 wlarc='$wl'
11283 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11285 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11286 ;;
11287 esac
11288 fi
11289 hardcode_libdir_flag_spec='-R$libdir'
11290 hardcode_shlibpath_var=no
11291 case $host_os in
11292 solaris2.[0-5] | solaris2.[0-5].*) ;;
11293 *)
11294 # The compiler driver will combine and reorder linker options,
11295 # but understands '-z linker_flag'. GCC discards it without '$wl',
11296 # but is careful enough not to reorder.
11297 # Supported since Solaris 2.6 (maybe 2.5.1?)
11298 if test yes = "$GCC"; then
11299 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11300 else
11301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11302 fi
11303 ;;
11304 esac
11305 link_all_deplibs=yes
11306 ;;
11307
11308 sunos4*)
11309 if test sequent = "$host_vendor"; then
11310 # Use $CC to link under sequent, because it throws in some extra .o
11311 # files that make .init and .fini sections work.
11312 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11313 else
11314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11315 fi
11316 hardcode_libdir_flag_spec='-L$libdir'
11317 hardcode_direct=yes
11318 hardcode_minus_L=yes
11319 hardcode_shlibpath_var=no
11320 ;;
11321
11322 sysv4)
11323 case $host_vendor in
11324 sni)
11325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11326 hardcode_direct=yes # is this really true???
11327 ;;
11328 siemens)
11329 ## LD is ld it makes a PLAMLIB
11330 ## CC just makes a GrossModule.
11331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11332 reload_cmds='$CC -r -o $output$reload_objs'
11333 hardcode_direct=no
11334 ;;
11335 motorola)
11336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11338 ;;
11339 esac
11340 runpath_var='LD_RUN_PATH'
11341 hardcode_shlibpath_var=no
11342 ;;
11343
11344 sysv4.3*)
11345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346 hardcode_shlibpath_var=no
11347 export_dynamic_flag_spec='-Bexport'
11348 ;;
11349
11350 sysv4*MP*)
11351 if test -d /usr/nec; then
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_shlibpath_var=no
11354 runpath_var=LD_RUN_PATH
11355 hardcode_runpath_var=yes
11356 ld_shlibs=yes
11357 fi
11358 ;;
11359
11360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11361 no_undefined_flag='$wl-z,text'
11362 archive_cmds_need_lc=no
11363 hardcode_shlibpath_var=no
11364 runpath_var='LD_RUN_PATH'
11365
11366 if test yes = "$GCC"; then
11367 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11369 else
11370 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 fi
11373 ;;
11374
11375 sysv5* | sco3.2v5* | sco5v6*)
11376 # Note: We CANNOT use -z defs as we might desire, because we do not
11377 # link with -lc, and that would cause any symbols used from libc to
11378 # always be unresolved, which means just about no library would
11379 # ever link correctly. If we're not using GNU ld we use -z text
11380 # though, which does catch some bad symbols but isn't as heavy-handed
11381 # as -z defs.
11382 no_undefined_flag='$wl-z,text'
11383 allow_undefined_flag='$wl-z,nodefs'
11384 archive_cmds_need_lc=no
11385 hardcode_shlibpath_var=no
11386 hardcode_libdir_flag_spec='$wl-R,$libdir'
11387 hardcode_libdir_separator=':'
11388 link_all_deplibs=yes
11389 export_dynamic_flag_spec='$wl-Bexport'
11390 runpath_var='LD_RUN_PATH'
11391
11392 if test yes = "$GCC"; then
11393 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395 else
11396 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 fi
11399 ;;
11400
11401 uts4*)
11402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11403 hardcode_libdir_flag_spec='-L$libdir'
11404 hardcode_shlibpath_var=no
11405 ;;
11406
11407 *)
11408 ld_shlibs=no
11409 ;;
11410 esac
11411
11412 if test sni = "$host_vendor"; then
11413 case $host in
11414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11415 export_dynamic_flag_spec='$wl-Blargedynsym'
11416 ;;
11417 esac
11418 fi
11419 fi
11420
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11422 printf "%s\n" "$ld_shlibs" >&6; }
11423 test no = "$ld_shlibs" && can_build_shared=no
11424
11425 with_gnu_ld=$with_gnu_ld
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441 #
11442 # Do we need to explicitly link libc?
11443 #
11444 case "x$archive_cmds_need_lc" in
11445 x|xyes)
11446 # Assume -lc should be added
11447 archive_cmds_need_lc=yes
11448
11449 if test yes,yes = "$GCC,$enable_shared"; then
11450 case $archive_cmds in
11451 *'~'*)
11452 # FIXME: we may have to deal with multi-command sequences.
11453 ;;
11454 '$CC '*)
11455 # Test whether the compiler implicitly links with -lc since on some
11456 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11457 # to ld, don't add -lc before -lgcc.
11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11459 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11460 if test ${lt_cv_archive_cmds_need_lc+y}
11461 then :
11462 printf %s "(cached) " >&6
11463 else $as_nop
11464 $RM conftest*
11465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11466
11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11468 (eval $ac_compile) 2>&5
11469 ac_status=$?
11470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; } 2>conftest.err; then
11472 soname=conftest
11473 lib=conftest
11474 libobjs=conftest.$ac_objext
11475 deplibs=
11476 wl=$lt_prog_compiler_wl
11477 pic_flag=$lt_prog_compiler_pic
11478 compiler_flags=-v
11479 linker_flags=-v
11480 verstring=
11481 output_objdir=.
11482 libname=conftest
11483 lt_save_allow_undefined_flag=$allow_undefined_flag
11484 allow_undefined_flag=
11485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11487 ac_status=$?
11488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489 test $ac_status = 0; }
11490 then
11491 lt_cv_archive_cmds_need_lc=no
11492 else
11493 lt_cv_archive_cmds_need_lc=yes
11494 fi
11495 allow_undefined_flag=$lt_save_allow_undefined_flag
11496 else
11497 cat conftest.err 1>&5
11498 fi
11499 $RM conftest*
11500
11501 fi
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11503 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11505 ;;
11506 esac
11507 fi
11508 ;;
11509 esac
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11663 printf %s "checking dynamic linker characteristics... " >&6; }
11664
11665 if test yes = "$GCC"; then
11666 case $host_os in
11667 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11668 *) lt_awk_arg='/^libraries:/' ;;
11669 esac
11670 case $host_os in
11671 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11672 *) lt_sed_strip_eq='s|=/|/|g' ;;
11673 esac
11674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11675 case $lt_search_path_spec in
11676 *\;*)
11677 # if the path contains ";" then we assume it to be the separator
11678 # otherwise default to the standard path separator (i.e. ":") - it is
11679 # assumed that no part of a normal pathname contains ";" but that should
11680 # okay in the real world where ";" in dirpaths is itself problematic.
11681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11682 ;;
11683 *)
11684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11685 ;;
11686 esac
11687 # Ok, now we have the path, separated by spaces, we can step through it
11688 # and add multilib dir if necessary...
11689 lt_tmp_lt_search_path_spec=
11690 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11691 # ...but if some path component already ends with the multilib dir we assume
11692 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11693 case "$lt_multi_os_dir; $lt_search_path_spec " in
11694 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11695 lt_multi_os_dir=
11696 ;;
11697 esac
11698 for lt_sys_path in $lt_search_path_spec; do
11699 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11701 elif test -n "$lt_multi_os_dir"; then
11702 test -d "$lt_sys_path" && \
11703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11704 fi
11705 done
11706 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11707 BEGIN {RS = " "; FS = "/|\n";} {
11708 lt_foo = "";
11709 lt_count = 0;
11710 for (lt_i = NF; lt_i > 0; lt_i--) {
11711 if ($lt_i != "" && $lt_i != ".") {
11712 if ($lt_i == "..") {
11713 lt_count++;
11714 } else {
11715 if (lt_count == 0) {
11716 lt_foo = "/" $lt_i lt_foo;
11717 } else {
11718 lt_count--;
11719 }
11720 }
11721 }
11722 }
11723 if (lt_foo != "") { lt_freq[lt_foo]++; }
11724 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11725 }'`
11726 # AWK program above erroneously prepends '/' to C:/dos/paths
11727 # for these hosts.
11728 case $host_os in
11729 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11730 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11731 esac
11732 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11733 else
11734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735 fi
11736 library_names_spec=
11737 libname_spec='lib$name'
11738 soname_spec=
11739 shrext_cmds=.so
11740 postinstall_cmds=
11741 postuninstall_cmds=
11742 finish_cmds=
11743 finish_eval=
11744 shlibpath_var=
11745 shlibpath_overrides_runpath=unknown
11746 version_type=none
11747 dynamic_linker="$host_os ld.so"
11748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11749 need_lib_prefix=unknown
11750 hardcode_into_libs=no
11751
11752 # when you set need_version to no, make sure it does not cause -set_version
11753 # flags to be left without arguments
11754 need_version=unknown
11755
11756
11757
11758 case $host_os in
11759 aix3*)
11760 version_type=linux # correct to gnu/linux during the next big refactor
11761 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11762 shlibpath_var=LIBPATH
11763
11764 # AIX 3 has no versioning support, so we append a major version to the name.
11765 soname_spec='$libname$release$shared_ext$major'
11766 ;;
11767
11768 aix[4-9]*)
11769 version_type=linux # correct to gnu/linux during the next big refactor
11770 need_lib_prefix=no
11771 need_version=no
11772 hardcode_into_libs=yes
11773 if test ia64 = "$host_cpu"; then
11774 # AIX 5 supports IA64
11775 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 else
11778 # With GCC up to 2.95.x, collect2 would create an import file
11779 # for dependence libraries. The import file would start with
11780 # the line '#! .'. This would cause the generated library to
11781 # depend on '.', always an invalid library. This was fixed in
11782 # development snapshots of GCC prior to 3.0.
11783 case $host_os in
11784 aix4 | aix4.[01] | aix4.[01].*)
11785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11786 echo ' yes '
11787 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11788 :
11789 else
11790 can_build_shared=no
11791 fi
11792 ;;
11793 esac
11794 # Using Import Files as archive members, it is possible to support
11795 # filename-based versioning of shared library archives on AIX. While
11796 # this would work for both with and without runtime linking, it will
11797 # prevent static linking of such archives. So we do filename-based
11798 # shared library versioning with .so extension only, which is used
11799 # when both runtime linking and shared linking is enabled.
11800 # Unfortunately, runtime linking may impact performance, so we do
11801 # not want this to be the default eventually. Also, we use the
11802 # versioned .so libs for executables only if there is the -brtl
11803 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11804 # To allow for filename-based versioning support, we need to create
11805 # libNAME.so.V as an archive file, containing:
11806 # *) an Import File, referring to the versioned filename of the
11807 # archive as well as the shared archive member, telling the
11808 # bitwidth (32 or 64) of that shared object, and providing the
11809 # list of exported symbols of that shared object, eventually
11810 # decorated with the 'weak' keyword
11811 # *) the shared object with the F_LOADONLY flag set, to really avoid
11812 # it being seen by the linker.
11813 # At run time we better use the real file rather than another symlink,
11814 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11815
11816 case $with_aix_soname,$aix_use_runtimelinking in
11817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11818 # soname into executable. Probably we can add versioning support to
11819 # collect2, so additional links can be useful in future.
11820 aix,yes) # traditional libtool
11821 dynamic_linker='AIX unversionable lib.so'
11822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11823 # instead of lib<name>.a to let people know that these are not
11824 # typical AIX shared libraries.
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11826 ;;
11827 aix,no) # traditional AIX only
11828 dynamic_linker='AIX lib.a(lib.so.V)'
11829 # We preserve .a as extension for shared libraries through AIX4.2
11830 # and later when we are not doing run time linking.
11831 library_names_spec='$libname$release.a $libname.a'
11832 soname_spec='$libname$release$shared_ext$major'
11833 ;;
11834 svr4,*) # full svr4 only
11835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11837 # We do not specify a path in Import Files, so LIBPATH fires.
11838 shlibpath_overrides_runpath=yes
11839 ;;
11840 *,yes) # both, prefer svr4
11841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11843 # unpreferred sharedlib libNAME.a needs extra handling
11844 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"'
11845 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"'
11846 # We do not specify a path in Import Files, so LIBPATH fires.
11847 shlibpath_overrides_runpath=yes
11848 ;;
11849 *,no) # both, prefer aix
11850 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11851 library_names_spec='$libname$release.a $libname.a'
11852 soname_spec='$libname$release$shared_ext$major'
11853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11854 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)'
11855 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"'
11856 ;;
11857 esac
11858 shlibpath_var=LIBPATH
11859 fi
11860 ;;
11861
11862 amigaos*)
11863 case $host_cpu in
11864 powerpc)
11865 # Since July 2007 AmigaOS4 officially supports .so libraries.
11866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868 ;;
11869 m68k)
11870 library_names_spec='$libname.ixlibrary $libname.a'
11871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11872 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'
11873 ;;
11874 esac
11875 ;;
11876
11877 beos*)
11878 library_names_spec='$libname$shared_ext'
11879 dynamic_linker="$host_os ld.so"
11880 shlibpath_var=LIBRARY_PATH
11881 ;;
11882
11883 bsdi[45]*)
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 need_version=no
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 soname_spec='$libname$release$shared_ext$major'
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11892 # the default ld.so.conf also contains /usr/contrib/lib and
11893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11894 # libtool to hard-code these into programs
11895 ;;
11896
11897 cygwin* | mingw* | pw32* | cegcc*)
11898 version_type=windows
11899 shrext_cmds=.dll
11900 need_version=no
11901 need_lib_prefix=no
11902
11903 case $GCC,$cc_basename in
11904 yes,*)
11905 # gcc
11906 library_names_spec='$libname.dll.a'
11907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11908 postinstall_cmds='base_file=`basename \$file`~
11909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11910 dldir=$destdir/`dirname \$dlpath`~
11911 test -d \$dldir || mkdir -p \$dldir~
11912 $install_prog $dir/$dlname \$dldir/$dlname~
11913 chmod a+x \$dldir/$dlname~
11914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11916 fi'
11917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11918 dlpath=$dir/\$dldll~
11919 $RM \$dlpath'
11920 shlibpath_overrides_runpath=yes
11921
11922 case $host_os in
11923 cygwin*)
11924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11925 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11926
11927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11928 ;;
11929 mingw* | cegcc*)
11930 # MinGW DLLs use traditional 'lib' prefix
11931 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11932 ;;
11933 pw32*)
11934 # pw32 DLLs use 'pw' prefix rather than 'lib'
11935 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11936 ;;
11937 esac
11938 dynamic_linker='Win32 ld.exe'
11939 ;;
11940
11941 *,cl* | *,icl*)
11942 # Native MSVC or ICC
11943 libname_spec='$name'
11944 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11945 library_names_spec='$libname.dll.lib'
11946
11947 case $build_os in
11948 mingw*)
11949 sys_lib_search_path_spec=
11950 lt_save_ifs=$IFS
11951 IFS=';'
11952 for lt_path in $LIB
11953 do
11954 IFS=$lt_save_ifs
11955 # Let DOS variable expansion print the short 8.3 style file name.
11956 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11957 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11958 done
11959 IFS=$lt_save_ifs
11960 # Convert to MSYS style.
11961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11962 ;;
11963 cygwin*)
11964 # Convert to unix form, then to dos form, then back to unix form
11965 # but this time dos style (no spaces!) so that the unix form looks
11966 # like /cygdrive/c/PROGRA~1:/cygdr...
11967 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11968 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11969 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11970 ;;
11971 *)
11972 sys_lib_search_path_spec=$LIB
11973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11974 # It is most probably a Windows format PATH.
11975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11976 else
11977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11978 fi
11979 # FIXME: find the short name or the path components, as spaces are
11980 # common. (e.g. "Program Files" -> "PROGRA~1")
11981 ;;
11982 esac
11983
11984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11985 postinstall_cmds='base_file=`basename \$file`~
11986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11987 dldir=$destdir/`dirname \$dlpath`~
11988 test -d \$dldir || mkdir -p \$dldir~
11989 $install_prog $dir/$dlname \$dldir/$dlname'
11990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11991 dlpath=$dir/\$dldll~
11992 $RM \$dlpath'
11993 shlibpath_overrides_runpath=yes
11994 dynamic_linker='Win32 link.exe'
11995 ;;
11996
11997 *)
11998 # Assume MSVC and ICC wrapper
11999 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12000 dynamic_linker='Win32 ld.exe'
12001 ;;
12002 esac
12003 # FIXME: first we should search . and the directory the executable is in
12004 shlibpath_var=PATH
12005 ;;
12006
12007 darwin* | rhapsody*)
12008 dynamic_linker="$host_os dyld"
12009 version_type=darwin
12010 need_lib_prefix=no
12011 need_version=no
12012 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12013 soname_spec='$libname$release$major$shared_ext'
12014 shlibpath_overrides_runpath=yes
12015 shlibpath_var=DYLD_LIBRARY_PATH
12016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12017
12018 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12020 ;;
12021
12022 dgux*)
12023 version_type=linux # correct to gnu/linux during the next big refactor
12024 need_lib_prefix=no
12025 need_version=no
12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12027 soname_spec='$libname$release$shared_ext$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 ;;
12030
12031 freebsd* | dragonfly* | midnightbsd*)
12032 # DragonFly does not have aout. When/if they implement a new
12033 # versioning mechanism, adjust this.
12034 if test -x /usr/bin/objformat; then
12035 objformat=`/usr/bin/objformat`
12036 else
12037 case $host_os in
12038 freebsd[23].*) objformat=aout ;;
12039 *) objformat=elf ;;
12040 esac
12041 fi
12042 version_type=freebsd-$objformat
12043 case $version_type in
12044 freebsd-elf*)
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 need_version=no
12048 need_lib_prefix=no
12049 ;;
12050 freebsd-*)
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12052 need_version=yes
12053 ;;
12054 esac
12055 shlibpath_var=LD_LIBRARY_PATH
12056 case $host_os in
12057 freebsd2.*)
12058 shlibpath_overrides_runpath=yes
12059 ;;
12060 freebsd3.[01]* | freebsdelf3.[01]*)
12061 shlibpath_overrides_runpath=yes
12062 hardcode_into_libs=yes
12063 ;;
12064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12066 shlibpath_overrides_runpath=no
12067 hardcode_into_libs=yes
12068 ;;
12069 *) # from 4.6 on, and DragonFly
12070 shlibpath_overrides_runpath=yes
12071 hardcode_into_libs=yes
12072 ;;
12073 esac
12074 ;;
12075
12076 haiku*)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 need_lib_prefix=no
12079 need_version=no
12080 dynamic_linker="$host_os runtime_loader"
12081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12082 soname_spec='$libname$release$shared_ext$major'
12083 shlibpath_var=LIBRARY_PATH
12084 shlibpath_overrides_runpath=no
12085 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12086 hardcode_into_libs=yes
12087 ;;
12088
12089 hpux9* | hpux10* | hpux11*)
12090 # Give a soname corresponding to the major version so that dld.sl refuses to
12091 # link against other versions.
12092 version_type=sunos
12093 need_lib_prefix=no
12094 need_version=no
12095 case $host_cpu in
12096 ia64*)
12097 shrext_cmds='.so'
12098 hardcode_into_libs=yes
12099 dynamic_linker="$host_os dld.so"
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12103 soname_spec='$libname$release$shared_ext$major'
12104 if test 32 = "$HPUX_IA64_MODE"; then
12105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12106 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12107 else
12108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12109 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12110 fi
12111 ;;
12112 hppa*64*)
12113 shrext_cmds='.sl'
12114 hardcode_into_libs=yes
12115 dynamic_linker="$host_os dld.sl"
12116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119 soname_spec='$libname$release$shared_ext$major'
12120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12122 ;;
12123 *)
12124 shrext_cmds='.sl'
12125 dynamic_linker="$host_os dld.sl"
12126 shlibpath_var=SHLIB_PATH
12127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129 soname_spec='$libname$release$shared_ext$major'
12130 ;;
12131 esac
12132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12133 postinstall_cmds='chmod 555 $lib'
12134 # or fails outright, so override atomically:
12135 install_override_mode=555
12136 ;;
12137
12138 interix[3-9]*)
12139 version_type=linux # correct to gnu/linux during the next big refactor
12140 need_lib_prefix=no
12141 need_version=no
12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12143 soname_spec='$libname$release$shared_ext$major'
12144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12147 hardcode_into_libs=yes
12148 ;;
12149
12150 irix5* | irix6* | nonstopux*)
12151 case $host_os in
12152 nonstopux*) version_type=nonstopux ;;
12153 *)
12154 if test yes = "$lt_cv_prog_gnu_ld"; then
12155 version_type=linux # correct to gnu/linux during the next big refactor
12156 else
12157 version_type=irix
12158 fi ;;
12159 esac
12160 need_lib_prefix=no
12161 need_version=no
12162 soname_spec='$libname$release$shared_ext$major'
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12164 case $host_os in
12165 irix5* | nonstopux*)
12166 libsuff= shlibsuff=
12167 ;;
12168 *)
12169 case $LD in # libtool.m4 will add one of these switches to LD
12170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12171 libsuff= shlibsuff= libmagic=32-bit;;
12172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12173 libsuff=32 shlibsuff=N32 libmagic=N32;;
12174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12176 *) libsuff= shlibsuff= libmagic=never-match;;
12177 esac
12178 ;;
12179 esac
12180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12181 shlibpath_overrides_runpath=no
12182 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12183 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12184 hardcode_into_libs=yes
12185 ;;
12186
12187 # No shared lib support for Linux oldld, aout, or coff.
12188 linux*oldld* | linux*aout* | linux*coff*)
12189 dynamic_linker=no
12190 ;;
12191
12192 linux*android*)
12193 version_type=none # Android doesn't support versioned libraries.
12194 need_lib_prefix=no
12195 need_version=no
12196 library_names_spec='$libname$release$shared_ext'
12197 soname_spec='$libname$release$shared_ext'
12198 finish_cmds=
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes
12201
12202 # This implies no fast_install, which is unacceptable.
12203 # Some rework will be needed to allow for fast_install
12204 # before this can be enabled.
12205 hardcode_into_libs=yes
12206
12207 dynamic_linker='Android linker'
12208 # Don't embed -rpath directories since the linker doesn't support them.
12209 hardcode_libdir_flag_spec='-L$libdir'
12210 ;;
12211
12212 # This must be glibc/ELF.
12213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12214 version_type=linux # correct to gnu/linux during the next big refactor
12215 need_lib_prefix=no
12216 need_version=no
12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218 soname_spec='$libname$release$shared_ext$major'
12219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12220 shlibpath_var=LD_LIBRARY_PATH
12221 shlibpath_overrides_runpath=no
12222
12223 # Some binutils ld are patched to set DT_RUNPATH
12224 if test ${lt_cv_shlibpath_overrides_runpath+y}
12225 then :
12226 printf %s "(cached) " >&6
12227 else $as_nop
12228 lt_cv_shlibpath_overrides_runpath=no
12229 save_LDFLAGS=$LDFLAGS
12230 save_libdir=$libdir
12231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12235
12236 int
12237 main (void)
12238 {
12239
12240 ;
12241 return 0;
12242 }
12243 _ACEOF
12244 if ac_fn_c_try_link "$LINENO"
12245 then :
12246 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12247 then :
12248 lt_cv_shlibpath_overrides_runpath=yes
12249 fi
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12252 conftest$ac_exeext conftest.$ac_ext
12253 LDFLAGS=$save_LDFLAGS
12254 libdir=$save_libdir
12255
12256 fi
12257
12258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12259
12260 # This implies no fast_install, which is unacceptable.
12261 # Some rework will be needed to allow for fast_install
12262 # before this can be enabled.
12263 hardcode_into_libs=yes
12264
12265 # Ideally, we could use ldconfig to report *all* directores which are
12266 # searched for libraries, however this is still not possible. Aside from not
12267 # being certain /sbin/ldconfig is available, command
12268 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12269 # even though it is searched at run-time. Try to do the best guess by
12270 # appending ld.so.conf contents (and includes) to the search path.
12271 if test -f /etc/ld.so.conf; then
12272 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' ' '`
12273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12274 fi
12275
12276 # We used to test for /lib/ld.so.1 and disable shared libraries on
12277 # powerpc, because MkLinux only supported shared libraries with the
12278 # GNU dynamic linker. Since this was broken with cross compilers,
12279 # most powerpc-linux boxes support dynamic linking these days and
12280 # people can always --disable-shared, the test was removed, and we
12281 # assume the GNU/Linux dynamic linker is in use.
12282 dynamic_linker='GNU/Linux ld.so'
12283 ;;
12284
12285 netbsdelf*-gnu)
12286 version_type=linux
12287 need_lib_prefix=no
12288 need_version=no
12289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12290 soname_spec='${libname}${release}${shared_ext}$major'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 shlibpath_overrides_runpath=no
12293 hardcode_into_libs=yes
12294 dynamic_linker='NetBSD ld.elf_so'
12295 ;;
12296
12297 netbsd*)
12298 version_type=sunos
12299 need_lib_prefix=no
12300 need_version=no
12301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12304 dynamic_linker='NetBSD (a.out) ld.so'
12305 else
12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12307 soname_spec='$libname$release$shared_ext$major'
12308 dynamic_linker='NetBSD ld.elf_so'
12309 fi
12310 shlibpath_var=LD_LIBRARY_PATH
12311 shlibpath_overrides_runpath=yes
12312 hardcode_into_libs=yes
12313 ;;
12314
12315 newsos6)
12316 version_type=linux # correct to gnu/linux during the next big refactor
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes
12320 ;;
12321
12322 *nto* | *qnx*)
12323 version_type=qnx
12324 need_lib_prefix=no
12325 need_version=no
12326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12327 soname_spec='$libname$release$shared_ext$major'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=no
12330 hardcode_into_libs=yes
12331 dynamic_linker='ldqnx.so'
12332 ;;
12333
12334 openbsd* | bitrig*)
12335 version_type=sunos
12336 sys_lib_dlsearch_path_spec=/usr/lib
12337 need_lib_prefix=no
12338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12339 need_version=no
12340 else
12341 need_version=yes
12342 fi
12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 shlibpath_overrides_runpath=yes
12347 ;;
12348
12349 os2*)
12350 libname_spec='$name'
12351 version_type=windows
12352 shrext_cmds=.dll
12353 need_version=no
12354 need_lib_prefix=no
12355 # OS/2 can only load a DLL with a base name of 8 characters or less.
12356 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12357 v=$($ECHO $release$versuffix | tr -d .-);
12358 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12359 $ECHO $n$v`$shared_ext'
12360 library_names_spec='${libname}_dll.$libext'
12361 dynamic_linker='OS/2 ld.exe'
12362 shlibpath_var=BEGINLIBPATH
12363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12365 postinstall_cmds='base_file=`basename \$file`~
12366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12367 dldir=$destdir/`dirname \$dlpath`~
12368 test -d \$dldir || mkdir -p \$dldir~
12369 $install_prog $dir/$dlname \$dldir/$dlname~
12370 chmod a+x \$dldir/$dlname~
12371 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12372 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12373 fi'
12374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12375 dlpath=$dir/\$dldll~
12376 $RM \$dlpath'
12377 ;;
12378
12379 osf3* | osf4* | osf5*)
12380 version_type=osf
12381 need_lib_prefix=no
12382 need_version=no
12383 soname_spec='$libname$release$shared_ext$major'
12384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12388 ;;
12389
12390 rdos*)
12391 dynamic_linker=no
12392 ;;
12393
12394 solaris*)
12395 version_type=linux # correct to gnu/linux during the next big refactor
12396 need_lib_prefix=no
12397 need_version=no
12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12399 soname_spec='$libname$release$shared_ext$major'
12400 shlibpath_var=LD_LIBRARY_PATH
12401 shlibpath_overrides_runpath=yes
12402 hardcode_into_libs=yes
12403 # ldd complains unless libraries are executable
12404 postinstall_cmds='chmod +x $lib'
12405 ;;
12406
12407 sunos4*)
12408 version_type=sunos
12409 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12411 shlibpath_var=LD_LIBRARY_PATH
12412 shlibpath_overrides_runpath=yes
12413 if test yes = "$with_gnu_ld"; then
12414 need_lib_prefix=no
12415 fi
12416 need_version=yes
12417 ;;
12418
12419 sysv4 | sysv4.3*)
12420 version_type=linux # correct to gnu/linux during the next big refactor
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422 soname_spec='$libname$release$shared_ext$major'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 case $host_vendor in
12425 sni)
12426 shlibpath_overrides_runpath=no
12427 need_lib_prefix=no
12428 runpath_var=LD_RUN_PATH
12429 ;;
12430 siemens)
12431 need_lib_prefix=no
12432 ;;
12433 motorola)
12434 need_lib_prefix=no
12435 need_version=no
12436 shlibpath_overrides_runpath=no
12437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12438 ;;
12439 esac
12440 ;;
12441
12442 sysv4*MP*)
12443 if test -d /usr/nec; then
12444 version_type=linux # correct to gnu/linux during the next big refactor
12445 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12446 soname_spec='$libname$shared_ext.$major'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 fi
12449 ;;
12450
12451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12452 version_type=sco
12453 need_lib_prefix=no
12454 need_version=no
12455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12456 soname_spec='$libname$release$shared_ext$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 shlibpath_overrides_runpath=yes
12459 hardcode_into_libs=yes
12460 if test yes = "$with_gnu_ld"; then
12461 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12462 else
12463 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12464 case $host_os in
12465 sco3.2v5*)
12466 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12467 ;;
12468 esac
12469 fi
12470 sys_lib_dlsearch_path_spec='/usr/lib'
12471 ;;
12472
12473 tpf*)
12474 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12475 version_type=linux # correct to gnu/linux during the next big refactor
12476 need_lib_prefix=no
12477 need_version=no
12478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12479 shlibpath_var=LD_LIBRARY_PATH
12480 shlibpath_overrides_runpath=no
12481 hardcode_into_libs=yes
12482 ;;
12483
12484 uts4*)
12485 version_type=linux # correct to gnu/linux during the next big refactor
12486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12487 soname_spec='$libname$release$shared_ext$major'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 ;;
12490
12491 *)
12492 dynamic_linker=no
12493 ;;
12494 esac
12495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12496 printf "%s\n" "$dynamic_linker" >&6; }
12497 test no = "$dynamic_linker" && can_build_shared=no
12498
12499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12500 if test yes = "$GCC"; then
12501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12502 fi
12503
12504 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12505 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12506 fi
12507
12508 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12509 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12510 fi
12511
12512 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12513 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12514
12515 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12516 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12517
12518 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12519 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12618 printf %s "checking how to hardcode library paths into programs... " >&6; }
12619 hardcode_action=
12620 if test -n "$hardcode_libdir_flag_spec" ||
12621 test -n "$runpath_var" ||
12622 test yes = "$hardcode_automatic"; then
12623
12624 # We can hardcode non-existent directories.
12625 if test no != "$hardcode_direct" &&
12626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12627 # have to relink, otherwise we might link with an installed library
12628 # when we should be linking with a yet-to-be-installed one
12629 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12630 test no != "$hardcode_minus_L"; then
12631 # Linking always hardcodes the temporary library directory.
12632 hardcode_action=relink
12633 else
12634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12635 hardcode_action=immediate
12636 fi
12637 else
12638 # We cannot hardcode anything, or else we can only hardcode existing
12639 # directories.
12640 hardcode_action=unsupported
12641 fi
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12643 printf "%s\n" "$hardcode_action" >&6; }
12644
12645 if test relink = "$hardcode_action" ||
12646 test yes = "$inherit_rpath"; then
12647 # Fast installation is not supported
12648 enable_fast_install=no
12649 elif test yes = "$shlibpath_overrides_runpath" ||
12650 test no = "$enable_shared"; then
12651 # Fast installation is not necessary
12652 enable_fast_install=needless
12653 fi
12654
12655
12656
12657
12658
12659
12660 if test yes != "$enable_dlopen"; then
12661 enable_dlopen=unknown
12662 enable_dlopen_self=unknown
12663 enable_dlopen_self_static=unknown
12664 else
12665 lt_cv_dlopen=no
12666 lt_cv_dlopen_libs=
12667
12668 case $host_os in
12669 beos*)
12670 lt_cv_dlopen=load_add_on
12671 lt_cv_dlopen_libs=
12672 lt_cv_dlopen_self=yes
12673 ;;
12674
12675 mingw* | pw32* | cegcc*)
12676 lt_cv_dlopen=LoadLibrary
12677 lt_cv_dlopen_libs=
12678 ;;
12679
12680 cygwin*)
12681 lt_cv_dlopen=dlopen
12682 lt_cv_dlopen_libs=
12683 ;;
12684
12685 darwin*)
12686 # if libdl is installed we need to link against it
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12688 printf %s "checking for dlopen in -ldl... " >&6; }
12689 if test ${ac_cv_lib_dl_dlopen+y}
12690 then :
12691 printf %s "(cached) " >&6
12692 else $as_nop
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-ldl $LIBS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 char dlopen ();
12702 int
12703 main (void)
12704 {
12705 return dlopen ();
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_link "$LINENO"
12711 then :
12712 ac_cv_lib_dl_dlopen=yes
12713 else $as_nop
12714 ac_cv_lib_dl_dlopen=no
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12717 conftest$ac_exeext conftest.$ac_ext
12718 LIBS=$ac_check_lib_save_LIBS
12719 fi
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12721 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12722 if test "x$ac_cv_lib_dl_dlopen" = xyes
12723 then :
12724 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12725 else $as_nop
12726
12727 lt_cv_dlopen=dyld
12728 lt_cv_dlopen_libs=
12729 lt_cv_dlopen_self=yes
12730
12731 fi
12732
12733 ;;
12734
12735 tpf*)
12736 # Don't try to run any link tests for TPF. We know it's impossible
12737 # because TPF is a cross-compiler, and we know how we open DSOs.
12738 lt_cv_dlopen=dlopen
12739 lt_cv_dlopen_libs=
12740 lt_cv_dlopen_self=no
12741 ;;
12742
12743 *)
12744 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12745 if test "x$ac_cv_func_shl_load" = xyes
12746 then :
12747 lt_cv_dlopen=shl_load
12748 else $as_nop
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12750 printf %s "checking for shl_load in -ldld... " >&6; }
12751 if test ${ac_cv_lib_dld_shl_load+y}
12752 then :
12753 printf %s "(cached) " >&6
12754 else $as_nop
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-ldld $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 char shl_load ();
12764 int
12765 main (void)
12766 {
12767 return shl_load ();
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"
12773 then :
12774 ac_cv_lib_dld_shl_load=yes
12775 else $as_nop
12776 ac_cv_lib_dld_shl_load=no
12777 fi
12778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12779 conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12781 fi
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12783 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12784 if test "x$ac_cv_lib_dld_shl_load" = xyes
12785 then :
12786 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12787 else $as_nop
12788 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12789 if test "x$ac_cv_func_dlopen" = xyes
12790 then :
12791 lt_cv_dlopen=dlopen
12792 else $as_nop
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12794 printf %s "checking for dlopen in -ldl... " >&6; }
12795 if test ${ac_cv_lib_dl_dlopen+y}
12796 then :
12797 printf %s "(cached) " >&6
12798 else $as_nop
12799 ac_check_lib_save_LIBS=$LIBS
12800 LIBS="-ldl $LIBS"
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807 char dlopen ();
12808 int
12809 main (void)
12810 {
12811 return dlopen ();
12812 ;
12813 return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"
12817 then :
12818 ac_cv_lib_dl_dlopen=yes
12819 else $as_nop
12820 ac_cv_lib_dl_dlopen=no
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12827 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12828 if test "x$ac_cv_lib_dl_dlopen" = xyes
12829 then :
12830 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12831 else $as_nop
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12833 printf %s "checking for dlopen in -lsvld... " >&6; }
12834 if test ${ac_cv_lib_svld_dlopen+y}
12835 then :
12836 printf %s "(cached) " >&6
12837 else $as_nop
12838 ac_check_lib_save_LIBS=$LIBS
12839 LIBS="-lsvld $LIBS"
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842
12843 /* Override any GCC internal prototype to avoid an error.
12844 Use char because int might match the return type of a GCC
12845 builtin and then its argument prototype would still apply. */
12846 char dlopen ();
12847 int
12848 main (void)
12849 {
12850 return dlopen ();
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"
12856 then :
12857 ac_cv_lib_svld_dlopen=yes
12858 else $as_nop
12859 ac_cv_lib_svld_dlopen=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12862 conftest$ac_exeext conftest.$ac_ext
12863 LIBS=$ac_check_lib_save_LIBS
12864 fi
12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12866 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12867 if test "x$ac_cv_lib_svld_dlopen" = xyes
12868 then :
12869 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12870 else $as_nop
12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12872 printf %s "checking for dld_link in -ldld... " >&6; }
12873 if test ${ac_cv_lib_dld_dld_link+y}
12874 then :
12875 printf %s "(cached) " >&6
12876 else $as_nop
12877 ac_check_lib_save_LIBS=$LIBS
12878 LIBS="-ldld $LIBS"
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885 char dld_link ();
12886 int
12887 main (void)
12888 {
12889 return dld_link ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"
12895 then :
12896 ac_cv_lib_dld_dld_link=yes
12897 else $as_nop
12898 ac_cv_lib_dld_dld_link=no
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12901 conftest$ac_exeext conftest.$ac_ext
12902 LIBS=$ac_check_lib_save_LIBS
12903 fi
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12905 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12906 if test "x$ac_cv_lib_dld_dld_link" = xyes
12907 then :
12908 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12909 fi
12910
12911
12912 fi
12913
12914
12915 fi
12916
12917
12918 fi
12919
12920
12921 fi
12922
12923
12924 fi
12925
12926 ;;
12927 esac
12928
12929 if test no = "$lt_cv_dlopen"; then
12930 enable_dlopen=no
12931 else
12932 enable_dlopen=yes
12933 fi
12934
12935 case $lt_cv_dlopen in
12936 dlopen)
12937 save_CPPFLAGS=$CPPFLAGS
12938 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12939
12940 save_LDFLAGS=$LDFLAGS
12941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12942
12943 save_LIBS=$LIBS
12944 LIBS="$lt_cv_dlopen_libs $LIBS"
12945
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12947 printf %s "checking whether a program can dlopen itself... " >&6; }
12948 if test ${lt_cv_dlopen_self+y}
12949 then :
12950 printf %s "(cached) " >&6
12951 else $as_nop
12952 if test yes = "$cross_compiling"; then :
12953 lt_cv_dlopen_self=cross
12954 else
12955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12956 lt_status=$lt_dlunknown
12957 cat > conftest.$ac_ext <<_LT_EOF
12958 #line $LINENO "configure"
12959 #include "confdefs.h"
12960
12961 #if HAVE_DLFCN_H
12962 #include <dlfcn.h>
12963 #endif
12964
12965 #include <stdio.h>
12966
12967 #ifdef RTLD_GLOBAL
12968 # define LT_DLGLOBAL RTLD_GLOBAL
12969 #else
12970 # ifdef DL_GLOBAL
12971 # define LT_DLGLOBAL DL_GLOBAL
12972 # else
12973 # define LT_DLGLOBAL 0
12974 # endif
12975 #endif
12976
12977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12978 find out it does not work in some platform. */
12979 #ifndef LT_DLLAZY_OR_NOW
12980 # ifdef RTLD_LAZY
12981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12982 # else
12983 # ifdef DL_LAZY
12984 # define LT_DLLAZY_OR_NOW DL_LAZY
12985 # else
12986 # ifdef RTLD_NOW
12987 # define LT_DLLAZY_OR_NOW RTLD_NOW
12988 # else
12989 # ifdef DL_NOW
12990 # define LT_DLLAZY_OR_NOW DL_NOW
12991 # else
12992 # define LT_DLLAZY_OR_NOW 0
12993 # endif
12994 # endif
12995 # endif
12996 # endif
12997 #endif
12998
12999 /* When -fvisibility=hidden is used, assume the code has been annotated
13000 correspondingly for the symbols needed. */
13001 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13002 int fnord () __attribute__((visibility("default")));
13003 #endif
13004
13005 int fnord () { return 42; }
13006 int main ()
13007 {
13008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13009 int status = $lt_dlunknown;
13010
13011 if (self)
13012 {
13013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13014 else
13015 {
13016 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13017 else puts (dlerror ());
13018 }
13019 /* dlclose (self); */
13020 }
13021 else
13022 puts (dlerror ());
13023
13024 return status;
13025 }
13026 _LT_EOF
13027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13032 (./conftest; exit; ) >&5 2>/dev/null
13033 lt_status=$?
13034 case x$lt_status in
13035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13037 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13038 esac
13039 else :
13040 # compilation failed
13041 lt_cv_dlopen_self=no
13042 fi
13043 fi
13044 rm -fr conftest*
13045
13046
13047 fi
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13049 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13050
13051 if test yes = "$lt_cv_dlopen_self"; then
13052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13054 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13055 if test ${lt_cv_dlopen_self_static+y}
13056 then :
13057 printf %s "(cached) " >&6
13058 else $as_nop
13059 if test yes = "$cross_compiling"; then :
13060 lt_cv_dlopen_self_static=cross
13061 else
13062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13063 lt_status=$lt_dlunknown
13064 cat > conftest.$ac_ext <<_LT_EOF
13065 #line $LINENO "configure"
13066 #include "confdefs.h"
13067
13068 #if HAVE_DLFCN_H
13069 #include <dlfcn.h>
13070 #endif
13071
13072 #include <stdio.h>
13073
13074 #ifdef RTLD_GLOBAL
13075 # define LT_DLGLOBAL RTLD_GLOBAL
13076 #else
13077 # ifdef DL_GLOBAL
13078 # define LT_DLGLOBAL DL_GLOBAL
13079 # else
13080 # define LT_DLGLOBAL 0
13081 # endif
13082 #endif
13083
13084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13085 find out it does not work in some platform. */
13086 #ifndef LT_DLLAZY_OR_NOW
13087 # ifdef RTLD_LAZY
13088 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13089 # else
13090 # ifdef DL_LAZY
13091 # define LT_DLLAZY_OR_NOW DL_LAZY
13092 # else
13093 # ifdef RTLD_NOW
13094 # define LT_DLLAZY_OR_NOW RTLD_NOW
13095 # else
13096 # ifdef DL_NOW
13097 # define LT_DLLAZY_OR_NOW DL_NOW
13098 # else
13099 # define LT_DLLAZY_OR_NOW 0
13100 # endif
13101 # endif
13102 # endif
13103 # endif
13104 #endif
13105
13106 /* When -fvisibility=hidden is used, assume the code has been annotated
13107 correspondingly for the symbols needed. */
13108 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13109 int fnord () __attribute__((visibility("default")));
13110 #endif
13111
13112 int fnord () { return 42; }
13113 int main ()
13114 {
13115 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13116 int status = $lt_dlunknown;
13117
13118 if (self)
13119 {
13120 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13121 else
13122 {
13123 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13124 else puts (dlerror ());
13125 }
13126 /* dlclose (self); */
13127 }
13128 else
13129 puts (dlerror ());
13130
13131 return status;
13132 }
13133 _LT_EOF
13134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13135 (eval $ac_link) 2>&5
13136 ac_status=$?
13137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13139 (./conftest; exit; ) >&5 2>/dev/null
13140 lt_status=$?
13141 case x$lt_status in
13142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13144 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13145 esac
13146 else :
13147 # compilation failed
13148 lt_cv_dlopen_self_static=no
13149 fi
13150 fi
13151 rm -fr conftest*
13152
13153
13154 fi
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13156 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13157 fi
13158
13159 CPPFLAGS=$save_CPPFLAGS
13160 LDFLAGS=$save_LDFLAGS
13161 LIBS=$save_LIBS
13162 ;;
13163 esac
13164
13165 case $lt_cv_dlopen_self in
13166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13167 *) enable_dlopen_self=unknown ;;
13168 esac
13169
13170 case $lt_cv_dlopen_self_static in
13171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13172 *) enable_dlopen_self_static=unknown ;;
13173 esac
13174 fi
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192 striplib=
13193 old_striplib=
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13195 printf %s "checking whether stripping libraries is possible... " >&6; }
13196 if test -z "$STRIP"; then
13197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 printf "%s\n" "no" >&6; }
13199 else
13200 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13201 old_striplib="$STRIP --strip-debug"
13202 striplib="$STRIP --strip-unneeded"
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13204 printf "%s\n" "yes" >&6; }
13205 else
13206 case $host_os in
13207 darwin*)
13208 # FIXME - insert some real tests, host_os isn't really good enough
13209 striplib="$STRIP -x"
13210 old_striplib="$STRIP -S"
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212 printf "%s\n" "yes" >&6; }
13213 ;;
13214 freebsd*)
13215 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13216 old_striplib="$STRIP --strip-debug"
13217 striplib="$STRIP --strip-unneeded"
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13219 printf "%s\n" "yes" >&6; }
13220 else
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 printf "%s\n" "no" >&6; }
13223 fi
13224 ;;
13225 *)
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 printf "%s\n" "no" >&6; }
13228 ;;
13229 esac
13230 fi
13231 fi
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244 # Report what library types will actually be built
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13246 printf %s "checking if libtool supports shared libraries... " >&6; }
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13248 printf "%s\n" "$can_build_shared" >&6; }
13249
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13251 printf %s "checking whether to build shared libraries... " >&6; }
13252 test no = "$can_build_shared" && enable_shared=no
13253
13254 # On AIX, shared libraries and static libraries use the same namespace, and
13255 # are all built from PIC.
13256 case $host_os in
13257 aix3*)
13258 test yes = "$enable_shared" && enable_static=no
13259 if test -n "$RANLIB"; then
13260 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13261 postinstall_cmds='$RANLIB $lib'
13262 fi
13263 ;;
13264
13265 aix[4-9]*)
13266 if test ia64 != "$host_cpu"; then
13267 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13268 yes,aix,yes) ;; # shared object as lib.so file only
13269 yes,svr4,*) ;; # shared object as lib.so archive member only
13270 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13271 esac
13272 fi
13273 ;;
13274 esac
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13276 printf "%s\n" "$enable_shared" >&6; }
13277
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13279 printf %s "checking whether to build static libraries... " >&6; }
13280 # Make sure either enable_shared or enable_static is yes.
13281 test yes = "$enable_shared" || enable_static=yes
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13283 printf "%s\n" "$enable_static" >&6; }
13284
13285
13286
13287
13288 fi
13289 ac_ext=c
13290 ac_cpp='$CPP $CPPFLAGS'
13291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13294
13295 CC=$lt_save_CC
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311 ac_config_commands="$ac_config_commands libtool"
13312
13313
13314
13315
13316 # Only expand once:
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13328 if test -n "$ac_tool_prefix"; then
13329 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13330 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332 printf %s "checking for $ac_word... " >&6; }
13333 if test ${ac_cv_path_PKG_CONFIG+y}
13334 then :
13335 printf %s "(cached) " >&6
13336 else $as_nop
13337 case $PKG_CONFIG in
13338 [\\/]* | ?:[\\/]*)
13339 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13340 ;;
13341 *)
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345 IFS=$as_save_IFS
13346 case $as_dir in #(((
13347 '') as_dir=./ ;;
13348 */) ;;
13349 *) as_dir=$as_dir/ ;;
13350 esac
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13353 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357 done
13358 done
13359 IFS=$as_save_IFS
13360
13361 ;;
13362 esac
13363 fi
13364 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13365 if test -n "$PKG_CONFIG"; then
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13367 printf "%s\n" "$PKG_CONFIG" >&6; }
13368 else
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 printf "%s\n" "no" >&6; }
13371 fi
13372
13373
13374 fi
13375 if test -z "$ac_cv_path_PKG_CONFIG"; then
13376 ac_pt_PKG_CONFIG=$PKG_CONFIG
13377 # Extract the first word of "pkg-config", so it can be a program name with args.
13378 set dummy pkg-config; ac_word=$2
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 printf %s "checking for $ac_word... " >&6; }
13381 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13382 then :
13383 printf %s "(cached) " >&6
13384 else $as_nop
13385 case $ac_pt_PKG_CONFIG in
13386 [\\/]* | ?:[\\/]*)
13387 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13388 ;;
13389 *)
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13392 do
13393 IFS=$as_save_IFS
13394 case $as_dir in #(((
13395 '') as_dir=./ ;;
13396 */) ;;
13397 *) as_dir=$as_dir/ ;;
13398 esac
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13401 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13403 break 2
13404 fi
13405 done
13406 done
13407 IFS=$as_save_IFS
13408
13409 ;;
13410 esac
13411 fi
13412 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13413 if test -n "$ac_pt_PKG_CONFIG"; then
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13415 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13416 else
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 printf "%s\n" "no" >&6; }
13419 fi
13420
13421 if test "x$ac_pt_PKG_CONFIG" = x; then
13422 PKG_CONFIG=""
13423 else
13424 case $cross_compiling:$ac_tool_warned in
13425 yes:)
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13428 ac_tool_warned=yes ;;
13429 esac
13430 PKG_CONFIG=$ac_pt_PKG_CONFIG
13431 fi
13432 else
13433 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13434 fi
13435
13436 fi
13437 if test -n "$PKG_CONFIG"; then
13438 _pkg_min_version=0.9.0
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13440 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13441 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443 printf "%s\n" "yes" >&6; }
13444 else
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 printf "%s\n" "no" >&6; }
13447 PKG_CONFIG=""
13448 fi
13449 fi
13450
13451 if test "$GCC" = "yes"
13452 then
13453
13454
13455
13456
13457
13458 # $is_release = (.git directory does not exist)
13459 if test -d ${srcdir}/.git || (test -f ${srcdir}/.git && grep \.git/worktrees ${srcdir}/.git)
13460 then :
13461 ax_is_release=no
13462 else $as_nop
13463 ax_is_release=yes
13464 fi
13465
13466
13467
13468
13469 # C support is enabled by default.
13470
13471
13472 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
13473 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
13474 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
13475 # checked.
13476
13477
13478
13479
13480 # Default value for IS-RELEASE is $ax_is_release
13481 ax_compiler_flags_is_release=$ax_is_release
13482
13483 # Check whether --enable-compile-warnings was given.
13484 if test ${enable_compile_warnings+y}
13485 then :
13486 enableval=$enable_compile_warnings;
13487 else $as_nop
13488 if test "$ax_compiler_flags_is_release" = "yes"
13489 then :
13490 enable_compile_warnings="yes"
13491 else $as_nop
13492 enable_compile_warnings="error"
13493 fi
13494 fi
13495
13496 # Check whether --enable-Werror was given.
13497 if test ${enable_Werror+y}
13498 then :
13499 enableval=$enable_Werror;
13500 else $as_nop
13501 enable_Werror=maybe
13502 fi
13503
13504
13505 # Return the user's chosen warning level
13506 if test "$enable_Werror" = "no" -a \
13507 "$enable_compile_warnings" = "error"
13508 then :
13509
13510 enable_compile_warnings="yes"
13511
13512 fi
13513
13514 ax_enable_compile_warnings=$enable_compile_warnings
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525 # Variable names
13526
13527
13528 ac_ext=c
13529 ac_cpp='$CPP $CPPFLAGS'
13530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533
13534
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537
13538 #ifndef __cplusplus
13539 #error "no C++"
13540 #endif
13541 int
13542 main (void)
13543 {
13544
13545 ;
13546 return 0;
13547 }
13548 _ACEOF
13549 if ac_fn_c_try_compile "$LINENO"
13550 then :
13551 ax_compiler_cxx=yes;
13552 else $as_nop
13553 ax_compiler_cxx=no;
13554 fi
13555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13556
13557 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
13558 # flags, otherwise they are always appended to the warn_cflags variable, and
13559 # Clang warns on them for every compilation unit.
13560 # If this is passed to GCC, it will explode, so the flag must be enabled
13561 # conditionally.
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
13563 printf %s "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
13564 if test ${ax_cv_check_cflags___Werror_unknown_warning_option+y}
13565 then :
13566 printf %s "(cached) " >&6
13567 else $as_nop
13568
13569 ax_check_save_flags=$CFLAGS
13570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573
13574 int
13575 main (void)
13576 {
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_compile "$LINENO"
13583 then :
13584 ax_cv_check_cflags___Werror_unknown_warning_option=yes
13585 else $as_nop
13586 ax_cv_check_cflags___Werror_unknown_warning_option=no
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13589 CFLAGS=$ax_check_save_flags
13590 fi
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
13592 printf "%s\n" "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
13593 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes
13594 then :
13595
13596 ax_compiler_flags_test="-Werror=unknown-warning-option"
13597
13598 else $as_nop
13599
13600 ax_compiler_flags_test=""
13601
13602 fi
13603
13604
13605 # Check that -Wno-suggest-attribute=format is supported
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
13607 printf %s "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
13608 if test ${ax_cv_check_cflags___Wno_suggest_attribute_format+y}
13609 then :
13610 printf %s "(cached) " >&6
13611 else $as_nop
13612
13613 ax_check_save_flags=$CFLAGS
13614 CFLAGS="$CFLAGS -Wno-suggest-attribute=format"
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617
13618 int
13619 main (void)
13620 {
13621
13622 ;
13623 return 0;
13624 }
13625 _ACEOF
13626 if ac_fn_c_try_compile "$LINENO"
13627 then :
13628 ax_cv_check_cflags___Wno_suggest_attribute_format=yes
13629 else $as_nop
13630 ax_cv_check_cflags___Wno_suggest_attribute_format=no
13631 fi
13632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13633 CFLAGS=$ax_check_save_flags
13634 fi
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
13636 printf "%s\n" "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
13637 if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes
13638 then :
13639
13640 ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
13641
13642 else $as_nop
13643
13644 ax_compiler_no_suggest_attribute_flags=""
13645
13646 fi
13647
13648
13649 # Base flags
13650
13651
13652
13653
13654 for flag in -fno-strict-aliasing ; do
13655 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13657 printf %s "checking whether C compiler accepts $flag... " >&6; }
13658 if eval test \${$as_CACHEVAR+y}
13659 then :
13660 printf %s "(cached) " >&6
13661 else $as_nop
13662
13663 ax_check_save_flags=$CFLAGS
13664 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667
13668 int
13669 main (void)
13670 {
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"
13677 then :
13678 eval "$as_CACHEVAR=yes"
13679 else $as_nop
13680 eval "$as_CACHEVAR=no"
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13683 CFLAGS=$ax_check_save_flags
13684 fi
13685 eval ac_res=\$$as_CACHEVAR
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13687 printf "%s\n" "$ac_res" >&6; }
13688 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13689 then :
13690
13691 if test ${WARN_CFLAGS+y}
13692 then :
13693
13694 case " $WARN_CFLAGS " in #(
13695 *" $flag "*) :
13696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13697 (: WARN_CFLAGS already contains $flag) 2>&5
13698 ac_status=$?
13699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; } ;; #(
13701 *) :
13702
13703 as_fn_append WARN_CFLAGS " $flag"
13704 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13705 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13706 ac_status=$?
13707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13708 test $ac_status = 0; }
13709 ;;
13710 esac
13711
13712 else $as_nop
13713
13714 WARN_CFLAGS=$flag
13715 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13716 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13717 ac_status=$?
13718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719 test $ac_status = 0; }
13720
13721 fi
13722
13723 else $as_nop
13724 :
13725 fi
13726
13727 done
13728
13729
13730 if test "$ax_enable_compile_warnings" != "no"
13731 then :
13732
13733 if test "$ax_compiler_cxx" = "no" ; then
13734 # C-only flags. Warn in C++
13735
13736
13737
13738
13739 for flag in -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init ; do
13740 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13742 printf %s "checking whether C compiler accepts $flag... " >&6; }
13743 if eval test \${$as_CACHEVAR+y}
13744 then :
13745 printf %s "(cached) " >&6
13746 else $as_nop
13747
13748 ax_check_save_flags=$CFLAGS
13749 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752
13753 int
13754 main (void)
13755 {
13756
13757 ;
13758 return 0;
13759 }
13760 _ACEOF
13761 if ac_fn_c_try_compile "$LINENO"
13762 then :
13763 eval "$as_CACHEVAR=yes"
13764 else $as_nop
13765 eval "$as_CACHEVAR=no"
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13768 CFLAGS=$ax_check_save_flags
13769 fi
13770 eval ac_res=\$$as_CACHEVAR
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13772 printf "%s\n" "$ac_res" >&6; }
13773 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13774 then :
13775
13776 if test ${WARN_CFLAGS+y}
13777 then :
13778
13779 case " $WARN_CFLAGS " in #(
13780 *" $flag "*) :
13781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13782 (: WARN_CFLAGS already contains $flag) 2>&5
13783 ac_status=$?
13784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13785 test $ac_status = 0; } ;; #(
13786 *) :
13787
13788 as_fn_append WARN_CFLAGS " $flag"
13789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13790 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13791 ac_status=$?
13792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; }
13794 ;;
13795 esac
13796
13797 else $as_nop
13798
13799 WARN_CFLAGS=$flag
13800 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13801 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13802 ac_status=$?
13803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13804 test $ac_status = 0; }
13805
13806 fi
13807
13808 else $as_nop
13809 :
13810 fi
13811
13812 done
13813
13814 fi
13815
13816 # "yes" flags
13817
13818
13819
13820
13821 for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -pedantic -Wunused-parameter -Wmissing-field-initializers ; do
13822 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13824 printf %s "checking whether C compiler accepts $flag... " >&6; }
13825 if eval test \${$as_CACHEVAR+y}
13826 then :
13827 printf %s "(cached) " >&6
13828 else $as_nop
13829
13830 ax_check_save_flags=$CFLAGS
13831 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13834
13835 int
13836 main (void)
13837 {
13838
13839 ;
13840 return 0;
13841 }
13842 _ACEOF
13843 if ac_fn_c_try_compile "$LINENO"
13844 then :
13845 eval "$as_CACHEVAR=yes"
13846 else $as_nop
13847 eval "$as_CACHEVAR=no"
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13850 CFLAGS=$ax_check_save_flags
13851 fi
13852 eval ac_res=\$$as_CACHEVAR
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13854 printf "%s\n" "$ac_res" >&6; }
13855 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13856 then :
13857
13858 if test ${WARN_CFLAGS+y}
13859 then :
13860
13861 case " $WARN_CFLAGS " in #(
13862 *" $flag "*) :
13863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13864 (: WARN_CFLAGS already contains $flag) 2>&5
13865 ac_status=$?
13866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13867 test $ac_status = 0; } ;; #(
13868 *) :
13869
13870 as_fn_append WARN_CFLAGS " $flag"
13871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13872 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13873 ac_status=$?
13874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13875 test $ac_status = 0; }
13876 ;;
13877 esac
13878
13879 else $as_nop
13880
13881 WARN_CFLAGS=$flag
13882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13883 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13884 ac_status=$?
13885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886 test $ac_status = 0; }
13887
13888 fi
13889
13890 else $as_nop
13891 :
13892 fi
13893
13894 done
13895
13896
13897 fi
13898 if test "$ax_enable_compile_warnings" = "error"
13899 then :
13900
13901 # "error" flags; -Werror has to be appended unconditionally because
13902 # it's not possible to test for
13903 #
13904 # suggest-attribute=format is disabled because it gives too many false
13905 # positives
13906
13907 if test ${WARN_CFLAGS+y}
13908 then :
13909
13910 case " $WARN_CFLAGS " in #(
13911 *" -Werror "*) :
13912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
13913 (: WARN_CFLAGS already contains -Werror) 2>&5
13914 ac_status=$?
13915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13916 test $ac_status = 0; } ;; #(
13917 *) :
13918
13919 as_fn_append WARN_CFLAGS " -Werror"
13920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13921 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13922 ac_status=$?
13923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }
13925 ;;
13926 esac
13927
13928 else $as_nop
13929
13930 WARN_CFLAGS=-Werror
13931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13932 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13933 ac_status=$?
13934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13935 test $ac_status = 0; }
13936
13937 fi
13938
13939
13940
13941
13942
13943
13944 for flag in $ax_compiler_no_suggest_attribute_flags ; do
13945 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13947 printf %s "checking whether C compiler accepts $flag... " >&6; }
13948 if eval test \${$as_CACHEVAR+y}
13949 then :
13950 printf %s "(cached) " >&6
13951 else $as_nop
13952
13953 ax_check_save_flags=$CFLAGS
13954 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957
13958 int
13959 main (void)
13960 {
13961
13962 ;
13963 return 0;
13964 }
13965 _ACEOF
13966 if ac_fn_c_try_compile "$LINENO"
13967 then :
13968 eval "$as_CACHEVAR=yes"
13969 else $as_nop
13970 eval "$as_CACHEVAR=no"
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13973 CFLAGS=$ax_check_save_flags
13974 fi
13975 eval ac_res=\$$as_CACHEVAR
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13977 printf "%s\n" "$ac_res" >&6; }
13978 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13979 then :
13980
13981 if test ${WARN_CFLAGS+y}
13982 then :
13983
13984 case " $WARN_CFLAGS " in #(
13985 *" $flag "*) :
13986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
13987 (: WARN_CFLAGS already contains $flag) 2>&5
13988 ac_status=$?
13989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13990 test $ac_status = 0; } ;; #(
13991 *) :
13992
13993 as_fn_append WARN_CFLAGS " $flag"
13994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13995 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13996 ac_status=$?
13997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13998 test $ac_status = 0; }
13999 ;;
14000 esac
14001
14002 else $as_nop
14003
14004 WARN_CFLAGS=$flag
14005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14006 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14007 ac_status=$?
14008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; }
14010
14011 fi
14012
14013 else $as_nop
14014 :
14015 fi
14016
14017 done
14018
14019
14020 fi
14021
14022 # In the flags below, when disabling specific flags, always add *both*
14023 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
14024 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
14025 # which effectively turns that flag back on again as an error.
14026 for flag in $WARN_CFLAGS; do
14027 case $flag in #(
14028 -Wno-*=*) :
14029 ;; #(
14030 -Wno-*) :
14031
14032
14033
14034
14035
14036 for flag in -Wno-error=$(printf "%s\n" $flag | $SED 's/^-Wno-//'); do
14037 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14039 printf %s "checking whether C compiler accepts $flag... " >&6; }
14040 if eval test \${$as_CACHEVAR+y}
14041 then :
14042 printf %s "(cached) " >&6
14043 else $as_nop
14044
14045 ax_check_save_flags=$CFLAGS
14046 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049
14050 int
14051 main (void)
14052 {
14053
14054 ;
14055 return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"
14059 then :
14060 eval "$as_CACHEVAR=yes"
14061 else $as_nop
14062 eval "$as_CACHEVAR=no"
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14065 CFLAGS=$ax_check_save_flags
14066 fi
14067 eval ac_res=\$$as_CACHEVAR
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14069 printf "%s\n" "$ac_res" >&6; }
14070 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14071 then :
14072
14073 if test ${WARN_CFLAGS+y}
14074 then :
14075
14076 case " $WARN_CFLAGS " in #(
14077 *" $flag "*) :
14078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14079 (: WARN_CFLAGS already contains $flag) 2>&5
14080 ac_status=$?
14081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14082 test $ac_status = 0; } ;; #(
14083 *) :
14084
14085 as_fn_append WARN_CFLAGS " $flag"
14086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14087 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14088 ac_status=$?
14089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14090 test $ac_status = 0; }
14091 ;;
14092 esac
14093
14094 else $as_nop
14095
14096 WARN_CFLAGS=$flag
14097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14098 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14099 ac_status=$?
14100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }
14102
14103 fi
14104
14105 else $as_nop
14106 :
14107 fi
14108
14109 done
14110
14111 ;; #(
14112 *) :
14113 ;;
14114 esac
14115 done
14116
14117 ac_ext=c
14118 ac_cpp='$CPP $CPPFLAGS'
14119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14122
14123
14124 # Substitute the variables
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138 # Variable names
14139
14140
14141 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
14142 # flags, otherwise they are always appended to the warn_ldflags variable,
14143 # and Clang warns on them for every compilation unit.
14144 # If this is passed to GCC, it will explode, so the flag must be enabled
14145 # conditionally.
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
14147 printf %s "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
14148 if test ${ax_cv_check_cflags___Werror_unknown_warning_option+y}
14149 then :
14150 printf %s "(cached) " >&6
14151 else $as_nop
14152
14153 ax_check_save_flags=$CFLAGS
14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157
14158 int
14159 main (void)
14160 {
14161
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_compile "$LINENO"
14167 then :
14168 ax_cv_check_cflags___Werror_unknown_warning_option=yes
14169 else $as_nop
14170 ax_cv_check_cflags___Werror_unknown_warning_option=no
14171 fi
14172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14173 CFLAGS=$ax_check_save_flags
14174 fi
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
14176 printf "%s\n" "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
14177 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes
14178 then :
14179
14180 ax_compiler_flags_test="-Werror=unknown-warning-option"
14181
14182 else $as_nop
14183
14184 ax_compiler_flags_test=""
14185
14186 fi
14187
14188
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5
14190 printf %s "checking whether the linker accepts -Wl,--as-needed... " >&6; }
14191 if test ${ax_cv_check_ldflags___Wl___as_needed+y}
14192 then :
14193 printf %s "(cached) " >&6
14194 else $as_nop
14195
14196 ax_check_save_flags=$LDFLAGS
14197 LDFLAGS="$LDFLAGS -Wl,--as-needed"
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200
14201 int
14202 main (void)
14203 {
14204
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"
14210 then :
14211 ax_cv_check_ldflags___Wl___as_needed=yes
14212 else $as_nop
14213 ax_cv_check_ldflags___Wl___as_needed=no
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14216 conftest$ac_exeext conftest.$ac_ext
14217 LDFLAGS=$ax_check_save_flags
14218 fi
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5
14220 printf "%s\n" "$ax_cv_check_ldflags___Wl___as_needed" >&6; }
14221 if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes
14222 then :
14223
14224
14225
14226
14227
14228 for flag in -Wl,--as-needed; do
14229 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14231 printf %s "checking whether the linker accepts $flag... " >&6; }
14232 if eval test \${$as_CACHEVAR+y}
14233 then :
14234 printf %s "(cached) " >&6
14235 else $as_nop
14236
14237 ax_check_save_flags=$LDFLAGS
14238 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241
14242 int
14243 main (void)
14244 {
14245
14246 ;
14247 return 0;
14248 }
14249 _ACEOF
14250 if ac_fn_c_try_link "$LINENO"
14251 then :
14252 eval "$as_CACHEVAR=yes"
14253 else $as_nop
14254 eval "$as_CACHEVAR=no"
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14257 conftest$ac_exeext conftest.$ac_ext
14258 LDFLAGS=$ax_check_save_flags
14259 fi
14260 eval ac_res=\$$as_CACHEVAR
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14262 printf "%s\n" "$ac_res" >&6; }
14263 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14264 then :
14265
14266 if test ${AM_LDFLAGS+y}
14267 then :
14268
14269 case " $AM_LDFLAGS " in #(
14270 *" $flag "*) :
14271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
14272 (: AM_LDFLAGS already contains $flag) 2>&5
14273 ac_status=$?
14274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275 test $ac_status = 0; } ;; #(
14276 *) :
14277
14278 as_fn_append AM_LDFLAGS " $flag"
14279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14280 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14281 ac_status=$?
14282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14283 test $ac_status = 0; }
14284 ;;
14285 esac
14286
14287 else $as_nop
14288
14289 AM_LDFLAGS=$flag
14290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14291 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14292 ac_status=$?
14293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14294 test $ac_status = 0; }
14295
14296 fi
14297
14298 else $as_nop
14299 :
14300 fi
14301
14302 done
14303
14304
14305 else $as_nop
14306 :
14307 fi
14308
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
14310 printf %s "checking whether the linker accepts -Wl,-z,relro... " >&6; }
14311 if test ${ax_cv_check_ldflags___Wl__z_relro+y}
14312 then :
14313 printf %s "(cached) " >&6
14314 else $as_nop
14315
14316 ax_check_save_flags=$LDFLAGS
14317 LDFLAGS="$LDFLAGS -Wl,-z,relro"
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320
14321 int
14322 main (void)
14323 {
14324
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"
14330 then :
14331 ax_cv_check_ldflags___Wl__z_relro=yes
14332 else $as_nop
14333 ax_cv_check_ldflags___Wl__z_relro=no
14334 fi
14335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LDFLAGS=$ax_check_save_flags
14338 fi
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
14340 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
14341 if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes
14342 then :
14343
14344
14345
14346
14347
14348 for flag in -Wl,-z,relro; do
14349 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14351 printf %s "checking whether the linker accepts $flag... " >&6; }
14352 if eval test \${$as_CACHEVAR+y}
14353 then :
14354 printf %s "(cached) " >&6
14355 else $as_nop
14356
14357 ax_check_save_flags=$LDFLAGS
14358 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361
14362 int
14363 main (void)
14364 {
14365
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"
14371 then :
14372 eval "$as_CACHEVAR=yes"
14373 else $as_nop
14374 eval "$as_CACHEVAR=no"
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14377 conftest$ac_exeext conftest.$ac_ext
14378 LDFLAGS=$ax_check_save_flags
14379 fi
14380 eval ac_res=\$$as_CACHEVAR
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14382 printf "%s\n" "$ac_res" >&6; }
14383 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14384 then :
14385
14386 if test ${AM_LDFLAGS+y}
14387 then :
14388
14389 case " $AM_LDFLAGS " in #(
14390 *" $flag "*) :
14391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
14392 (: AM_LDFLAGS already contains $flag) 2>&5
14393 ac_status=$?
14394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14395 test $ac_status = 0; } ;; #(
14396 *) :
14397
14398 as_fn_append AM_LDFLAGS " $flag"
14399 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14400 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14401 ac_status=$?
14402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14403 test $ac_status = 0; }
14404 ;;
14405 esac
14406
14407 else $as_nop
14408
14409 AM_LDFLAGS=$flag
14410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14411 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14412 ac_status=$?
14413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414 test $ac_status = 0; }
14415
14416 fi
14417
14418 else $as_nop
14419 :
14420 fi
14421
14422 done
14423
14424
14425 else $as_nop
14426 :
14427 fi
14428
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
14430 printf %s "checking whether the linker accepts -Wl,-z,now... " >&6; }
14431 if test ${ax_cv_check_ldflags___Wl__z_now+y}
14432 then :
14433 printf %s "(cached) " >&6
14434 else $as_nop
14435
14436 ax_check_save_flags=$LDFLAGS
14437 LDFLAGS="$LDFLAGS -Wl,-z,now"
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440
14441 int
14442 main (void)
14443 {
14444
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 if ac_fn_c_try_link "$LINENO"
14450 then :
14451 ax_cv_check_ldflags___Wl__z_now=yes
14452 else $as_nop
14453 ax_cv_check_ldflags___Wl__z_now=no
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14456 conftest$ac_exeext conftest.$ac_ext
14457 LDFLAGS=$ax_check_save_flags
14458 fi
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
14460 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_now" >&6; }
14461 if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes
14462 then :
14463
14464
14465
14466
14467
14468 for flag in -Wl,-z,now; do
14469 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14471 printf %s "checking whether the linker accepts $flag... " >&6; }
14472 if eval test \${$as_CACHEVAR+y}
14473 then :
14474 printf %s "(cached) " >&6
14475 else $as_nop
14476
14477 ax_check_save_flags=$LDFLAGS
14478 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481
14482 int
14483 main (void)
14484 {
14485
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_c_try_link "$LINENO"
14491 then :
14492 eval "$as_CACHEVAR=yes"
14493 else $as_nop
14494 eval "$as_CACHEVAR=no"
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14497 conftest$ac_exeext conftest.$ac_ext
14498 LDFLAGS=$ax_check_save_flags
14499 fi
14500 eval ac_res=\$$as_CACHEVAR
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14502 printf "%s\n" "$ac_res" >&6; }
14503 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14504 then :
14505
14506 if test ${AM_LDFLAGS+y}
14507 then :
14508
14509 case " $AM_LDFLAGS " in #(
14510 *" $flag "*) :
14511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
14512 (: AM_LDFLAGS already contains $flag) 2>&5
14513 ac_status=$?
14514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515 test $ac_status = 0; } ;; #(
14516 *) :
14517
14518 as_fn_append AM_LDFLAGS " $flag"
14519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14520 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14521 ac_status=$?
14522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14523 test $ac_status = 0; }
14524 ;;
14525 esac
14526
14527 else $as_nop
14528
14529 AM_LDFLAGS=$flag
14530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14531 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14532 ac_status=$?
14533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14534 test $ac_status = 0; }
14535
14536 fi
14537
14538 else $as_nop
14539 :
14540 fi
14541
14542 done
14543
14544
14545 else $as_nop
14546 :
14547 fi
14548
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
14550 printf %s "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
14551 if test ${ax_cv_check_ldflags___Wl__z_noexecstack+y}
14552 then :
14553 printf %s "(cached) " >&6
14554 else $as_nop
14555
14556 ax_check_save_flags=$LDFLAGS
14557 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560
14561 int
14562 main (void)
14563 {
14564
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"
14570 then :
14571 ax_cv_check_ldflags___Wl__z_noexecstack=yes
14572 else $as_nop
14573 ax_cv_check_ldflags___Wl__z_noexecstack=no
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LDFLAGS=$ax_check_save_flags
14578 fi
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
14580 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
14581 if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes
14582 then :
14583
14584
14585
14586
14587
14588 for flag in -Wl,-z,noexecstack; do
14589 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14591 printf %s "checking whether the linker accepts $flag... " >&6; }
14592 if eval test \${$as_CACHEVAR+y}
14593 then :
14594 printf %s "(cached) " >&6
14595 else $as_nop
14596
14597 ax_check_save_flags=$LDFLAGS
14598 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601
14602 int
14603 main (void)
14604 {
14605
14606 ;
14607 return 0;
14608 }
14609 _ACEOF
14610 if ac_fn_c_try_link "$LINENO"
14611 then :
14612 eval "$as_CACHEVAR=yes"
14613 else $as_nop
14614 eval "$as_CACHEVAR=no"
14615 fi
14616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14617 conftest$ac_exeext conftest.$ac_ext
14618 LDFLAGS=$ax_check_save_flags
14619 fi
14620 eval ac_res=\$$as_CACHEVAR
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14622 printf "%s\n" "$ac_res" >&6; }
14623 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14624 then :
14625
14626 if test ${AM_LDFLAGS+y}
14627 then :
14628
14629 case " $AM_LDFLAGS " in #(
14630 *" $flag "*) :
14631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
14632 (: AM_LDFLAGS already contains $flag) 2>&5
14633 ac_status=$?
14634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14635 test $ac_status = 0; } ;; #(
14636 *) :
14637
14638 as_fn_append AM_LDFLAGS " $flag"
14639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14640 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14641 ac_status=$?
14642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }
14644 ;;
14645 esac
14646
14647 else $as_nop
14648
14649 AM_LDFLAGS=$flag
14650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
14651 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
14652 ac_status=$?
14653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654 test $ac_status = 0; }
14655
14656 fi
14657
14658 else $as_nop
14659 :
14660 fi
14661
14662 done
14663
14664
14665 else $as_nop
14666 :
14667 fi
14668
14669 # textonly, retpolineplt not yet
14670
14671 # macOS and cygwin linker do not have --as-needed
14672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
14673 printf %s "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
14674 if test ${ax_cv_check_ldflags___Wl___no_as_needed+y}
14675 then :
14676 printf %s "(cached) " >&6
14677 else $as_nop
14678
14679 ax_check_save_flags=$LDFLAGS
14680 LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14683
14684 int
14685 main (void)
14686 {
14687
14688 ;
14689 return 0;
14690 }
14691 _ACEOF
14692 if ac_fn_c_try_link "$LINENO"
14693 then :
14694 ax_cv_check_ldflags___Wl___no_as_needed=yes
14695 else $as_nop
14696 ax_cv_check_ldflags___Wl___no_as_needed=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14699 conftest$ac_exeext conftest.$ac_ext
14700 LDFLAGS=$ax_check_save_flags
14701 fi
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
14703 printf "%s\n" "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
14704 if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes
14705 then :
14706
14707 ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
14708
14709 else $as_nop
14710
14711 ax_compiler_flags_as_needed_option=""
14712
14713 fi
14714
14715
14716 # macOS linker speaks with a different accent
14717 ax_compiler_flags_fatal_warnings_option=""
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
14719 printf %s "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
14720 if test ${ax_cv_check_ldflags___Wl___fatal_warnings+y}
14721 then :
14722 printf %s "(cached) " >&6
14723 else $as_nop
14724
14725 ax_check_save_flags=$LDFLAGS
14726 LDFLAGS="$LDFLAGS -Wl,--fatal-warnings"
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729
14730 int
14731 main (void)
14732 {
14733
14734 ;
14735 return 0;
14736 }
14737 _ACEOF
14738 if ac_fn_c_try_link "$LINENO"
14739 then :
14740 ax_cv_check_ldflags___Wl___fatal_warnings=yes
14741 else $as_nop
14742 ax_cv_check_ldflags___Wl___fatal_warnings=no
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14745 conftest$ac_exeext conftest.$ac_ext
14746 LDFLAGS=$ax_check_save_flags
14747 fi
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
14749 printf "%s\n" "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
14750 if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes
14751 then :
14752
14753 ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
14754
14755 else $as_nop
14756 :
14757 fi
14758
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
14760 printf %s "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
14761 if test ${ax_cv_check_ldflags___Wl__fatal_warnings+y}
14762 then :
14763 printf %s "(cached) " >&6
14764 else $as_nop
14765
14766 ax_check_save_flags=$LDFLAGS
14767 LDFLAGS="$LDFLAGS -Wl,-fatal_warnings"
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770
14771 int
14772 main (void)
14773 {
14774
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_link "$LINENO"
14780 then :
14781 ax_cv_check_ldflags___Wl__fatal_warnings=yes
14782 else $as_nop
14783 ax_cv_check_ldflags___Wl__fatal_warnings=no
14784 fi
14785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LDFLAGS=$ax_check_save_flags
14788 fi
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
14790 printf "%s\n" "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
14791 if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes
14792 then :
14793
14794 ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
14795
14796 else $as_nop
14797 :
14798 fi
14799
14800
14801 # Base flags
14802
14803
14804
14805
14806 for flag in $ax_compiler_flags_as_needed_option ; do
14807 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14809 printf %s "checking whether the linker accepts $flag... " >&6; }
14810 if eval test \${$as_CACHEVAR+y}
14811 then :
14812 printf %s "(cached) " >&6
14813 else $as_nop
14814
14815 ax_check_save_flags=$LDFLAGS
14816 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819
14820 int
14821 main (void)
14822 {
14823
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 if ac_fn_c_try_link "$LINENO"
14829 then :
14830 eval "$as_CACHEVAR=yes"
14831 else $as_nop
14832 eval "$as_CACHEVAR=no"
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LDFLAGS=$ax_check_save_flags
14837 fi
14838 eval ac_res=\$$as_CACHEVAR
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14840 printf "%s\n" "$ac_res" >&6; }
14841 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14842 then :
14843
14844 if test ${WARN_LDFLAGS+y}
14845 then :
14846
14847 case " $WARN_LDFLAGS " in #(
14848 *" $flag "*) :
14849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
14850 (: WARN_LDFLAGS already contains $flag) 2>&5
14851 ac_status=$?
14852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14853 test $ac_status = 0; } ;; #(
14854 *) :
14855
14856 as_fn_append WARN_LDFLAGS " $flag"
14857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14858 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14859 ac_status=$?
14860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14861 test $ac_status = 0; }
14862 ;;
14863 esac
14864
14865 else $as_nop
14866
14867 WARN_LDFLAGS=$flag
14868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14869 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14870 ac_status=$?
14871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; }
14873
14874 fi
14875
14876 else $as_nop
14877 :
14878 fi
14879
14880 done
14881
14882
14883 if test "$ax_enable_compile_warnings" != "no"
14884 then :
14885
14886 # "yes" flags
14887
14888
14889
14890
14891 for flag in ; do
14892 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14894 printf %s "checking whether the linker accepts $flag... " >&6; }
14895 if eval test \${$as_CACHEVAR+y}
14896 then :
14897 printf %s "(cached) " >&6
14898 else $as_nop
14899
14900 ax_check_save_flags=$LDFLAGS
14901 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904
14905 int
14906 main (void)
14907 {
14908
14909 ;
14910 return 0;
14911 }
14912 _ACEOF
14913 if ac_fn_c_try_link "$LINENO"
14914 then :
14915 eval "$as_CACHEVAR=yes"
14916 else $as_nop
14917 eval "$as_CACHEVAR=no"
14918 fi
14919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14920 conftest$ac_exeext conftest.$ac_ext
14921 LDFLAGS=$ax_check_save_flags
14922 fi
14923 eval ac_res=\$$as_CACHEVAR
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14925 printf "%s\n" "$ac_res" >&6; }
14926 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14927 then :
14928
14929 if test ${WARN_LDFLAGS+y}
14930 then :
14931
14932 case " $WARN_LDFLAGS " in #(
14933 *" $flag "*) :
14934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
14935 (: WARN_LDFLAGS already contains $flag) 2>&5
14936 ac_status=$?
14937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938 test $ac_status = 0; } ;; #(
14939 *) :
14940
14941 as_fn_append WARN_LDFLAGS " $flag"
14942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14943 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14944 ac_status=$?
14945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14946 test $ac_status = 0; }
14947 ;;
14948 esac
14949
14950 else $as_nop
14951
14952 WARN_LDFLAGS=$flag
14953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
14954 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
14955 ac_status=$?
14956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14957 test $ac_status = 0; }
14958
14959 fi
14960
14961 else $as_nop
14962 :
14963 fi
14964
14965 done
14966
14967
14968 fi
14969 if test "$ax_enable_compile_warnings" = "error"
14970 then :
14971
14972 # "error" flags; -Werror has to be appended unconditionally because
14973 # it's not possible to test for
14974 #
14975 # suggest-attribute=format is disabled because it gives too many false
14976 # positives
14977
14978
14979
14980
14981 for flag in $ax_compiler_flags_fatal_warnings_option ; do
14982 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14984 printf %s "checking whether the linker accepts $flag... " >&6; }
14985 if eval test \${$as_CACHEVAR+y}
14986 then :
14987 printf %s "(cached) " >&6
14988 else $as_nop
14989
14990 ax_check_save_flags=$LDFLAGS
14991 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994
14995 int
14996 main (void)
14997 {
14998
14999 ;
15000 return 0;
15001 }
15002 _ACEOF
15003 if ac_fn_c_try_link "$LINENO"
15004 then :
15005 eval "$as_CACHEVAR=yes"
15006 else $as_nop
15007 eval "$as_CACHEVAR=no"
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15010 conftest$ac_exeext conftest.$ac_ext
15011 LDFLAGS=$ax_check_save_flags
15012 fi
15013 eval ac_res=\$$as_CACHEVAR
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15015 printf "%s\n" "$ac_res" >&6; }
15016 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15017 then :
15018
15019 if test ${WARN_LDFLAGS+y}
15020 then :
15021
15022 case " $WARN_LDFLAGS " in #(
15023 *" $flag "*) :
15024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15025 (: WARN_LDFLAGS already contains $flag) 2>&5
15026 ac_status=$?
15027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; } ;; #(
15029 *) :
15030
15031 as_fn_append WARN_LDFLAGS " $flag"
15032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15033 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15034 ac_status=$?
15035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15036 test $ac_status = 0; }
15037 ;;
15038 esac
15039
15040 else $as_nop
15041
15042 WARN_LDFLAGS=$flag
15043 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15044 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15045 ac_status=$?
15046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15047 test $ac_status = 0; }
15048
15049 fi
15050
15051 else $as_nop
15052 :
15053 fi
15054
15055 done
15056
15057
15058 fi
15059
15060 # Substitute the variables
15061
15062
15063
15064
15065
15066
15067 # Variable names
15068
15069
15070 # Base flags
15071
15072 if test ${WARN_SCANNERFLAGS+y}
15073 then :
15074
15075 case " $WARN_SCANNERFLAGS " in #(
15076 *" "*) :
15077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
15078 (: WARN_SCANNERFLAGS already contains ) 2>&5
15079 ac_status=$?
15080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15081 test $ac_status = 0; } ;; #(
15082 *) :
15083
15084 as_fn_append WARN_SCANNERFLAGS " "
15085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15086 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15087 ac_status=$?
15088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15089 test $ac_status = 0; }
15090 ;;
15091 esac
15092
15093 else $as_nop
15094
15095 WARN_SCANNERFLAGS=
15096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15097 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15098 ac_status=$?
15099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }
15101
15102 fi
15103
15104
15105 if test "$ax_enable_compile_warnings" != "no"
15106 then :
15107
15108 # "yes" flags
15109
15110 if test ${WARN_SCANNERFLAGS+y}
15111 then :
15112
15113 case " $WARN_SCANNERFLAGS " in #(
15114 *" --warn-all "*) :
15115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5
15116 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5
15117 ac_status=$?
15118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119 test $ac_status = 0; } ;; #(
15120 *) :
15121
15122 as_fn_append WARN_SCANNERFLAGS " --warn-all "
15123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15124 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15125 ac_status=$?
15126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15127 test $ac_status = 0; }
15128 ;;
15129 esac
15130
15131 else $as_nop
15132
15133 WARN_SCANNERFLAGS= --warn-all
15134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15135 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15136 ac_status=$?
15137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15138 test $ac_status = 0; }
15139
15140 fi
15141
15142
15143 fi
15144 if test "$ax_enable_compile_warnings" = "error"
15145 then :
15146
15147 # "error" flags
15148
15149 if test ${WARN_SCANNERFLAGS+y}
15150 then :
15151
15152 case " $WARN_SCANNERFLAGS " in #(
15153 *" --warn-error "*) :
15154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5
15155 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5
15156 ac_status=$?
15157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15158 test $ac_status = 0; } ;; #(
15159 *) :
15160
15161 as_fn_append WARN_SCANNERFLAGS " --warn-error "
15162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15163 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15164 ac_status=$?
15165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15166 test $ac_status = 0; }
15167 ;;
15168 esac
15169
15170 else $as_nop
15171
15172 WARN_SCANNERFLAGS= --warn-error
15173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15174 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15175 ac_status=$?
15176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15177 test $ac_status = 0; }
15178
15179 fi
15180
15181
15182 fi
15183
15184 # Substitute the variables
15185
15186
15187
15188 # unfortunately, AX_COMPILER_FLAGS does not provide a way to override
15189 # the default -Wno-error=warning" flags. So we do this via sed below.
15190 # Note: we *really* want to have this error out during CI testing!
15191 # -Wdeclaration-after-statement in gcc always generates a warning,
15192 # even in c99 mode. So we need to unset it.
15193 # rgerhards, 2018-05-09
15194 WARN_CFLAGS="$(echo "$WARN_CFLAGS" | sed -e 's/-Wno-error=/-W/g' -e 's/ -Wdeclaration-after-statement//')"
15195
15196
15197 else
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&5
15199 printf "%s\n" "$as_me: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&2;}
15200 fi
15201
15202 # Checks for libraries.
15203 save_LIBS=$LIBS
15204 LIBS=
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15206 printf %s "checking for library containing clock_gettime... " >&6; }
15207 if test ${ac_cv_search_clock_gettime+y}
15208 then :
15209 printf %s "(cached) " >&6
15210 else $as_nop
15211 ac_func_search_save_LIBS=$LIBS
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15218 char clock_gettime ();
15219 int
15220 main (void)
15221 {
15222 return clock_gettime ();
15223 ;
15224 return 0;
15225 }
15226 _ACEOF
15227 for ac_lib in '' rt
15228 do
15229 if test -z "$ac_lib"; then
15230 ac_res="none required"
15231 else
15232 ac_res=-l$ac_lib
15233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15234 fi
15235 if ac_fn_c_try_link "$LINENO"
15236 then :
15237 ac_cv_search_clock_gettime=$ac_res
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15240 conftest$ac_exeext
15241 if test ${ac_cv_search_clock_gettime+y}
15242 then :
15243 break
15244 fi
15245 done
15246 if test ${ac_cv_search_clock_gettime+y}
15247 then :
15248
15249 else $as_nop
15250 ac_cv_search_clock_gettime=no
15251 fi
15252 rm conftest.$ac_ext
15253 LIBS=$ac_func_search_save_LIBS
15254 fi
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15256 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
15257 ac_res=$ac_cv_search_clock_gettime
15258 if test "$ac_res" != no
15259 then :
15260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15261
15262 fi
15263
15264 rt_libs=$LIBS
15265 LIBS=$save_LIBS
15266
15267
15268
15269 # Checks for header files.
15270 # Autoupdate added the next two lines to ensure that your configure
15271 # script's behavior did not change. They are probably safe to remove.
15272
15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
15274 printf %s "checking for egrep... " >&6; }
15275 if test ${ac_cv_path_EGREP+y}
15276 then :
15277 printf %s "(cached) " >&6
15278 else $as_nop
15279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15280 then ac_cv_path_EGREP="$GREP -E"
15281 else
15282 if test -z "$EGREP"; then
15283 ac_path_EGREP_found=false
15284 # Loop through the user's path and test for each of PROGNAME-LIST
15285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15287 do
15288 IFS=$as_save_IFS
15289 case $as_dir in #(((
15290 '') as_dir=./ ;;
15291 */) ;;
15292 *) as_dir=$as_dir/ ;;
15293 esac
15294 for ac_prog in egrep
15295 do
15296 for ac_exec_ext in '' $ac_executable_extensions; do
15297 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
15298 as_fn_executable_p "$ac_path_EGREP" || continue
15299 # Check for GNU ac_path_EGREP and select it if it is found.
15300 # Check for GNU $ac_path_EGREP
15301 case `"$ac_path_EGREP" --version 2>&1` in
15302 *GNU*)
15303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15304 *)
15305 ac_count=0
15306 printf %s 0123456789 >"conftest.in"
15307 while :
15308 do
15309 cat "conftest.in" "conftest.in" >"conftest.tmp"
15310 mv "conftest.tmp" "conftest.in"
15311 cp "conftest.in" "conftest.nl"
15312 printf "%s\n" 'EGREP' >> "conftest.nl"
15313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15315 as_fn_arith $ac_count + 1 && ac_count=$as_val
15316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15317 # Best one so far, save it but keep looking for a better one
15318 ac_cv_path_EGREP="$ac_path_EGREP"
15319 ac_path_EGREP_max=$ac_count
15320 fi
15321 # 10*(2^10) chars as input seems more than enough
15322 test $ac_count -gt 10 && break
15323 done
15324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15325 esac
15326
15327 $ac_path_EGREP_found && break 3
15328 done
15329 done
15330 done
15331 IFS=$as_save_IFS
15332 if test -z "$ac_cv_path_EGREP"; then
15333 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15334 fi
15335 else
15336 ac_cv_path_EGREP=$EGREP
15337 fi
15338
15339 fi
15340 fi
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
15342 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
15343 EGREP="$ac_cv_path_EGREP"
15344
15345
15346
15347 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
15348 if test "x$ac_cv_header_sys_epoll_h" = xyes
15349 then :
15350 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
15351
15352 fi
15353
15354
15355 # Checks for typedefs, structures, and compiler characteristics.
15356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15357 printf %s "checking for an ANSI C-conforming const... " >&6; }
15358 if test ${ac_cv_c_const+y}
15359 then :
15360 printf %s "(cached) " >&6
15361 else $as_nop
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364
15365 int
15366 main (void)
15367 {
15368
15369 #ifndef __cplusplus
15370 /* Ultrix mips cc rejects this sort of thing. */
15371 typedef int charset[2];
15372 const charset cs = { 0, 0 };
15373 /* SunOS 4.1.1 cc rejects this. */
15374 char const *const *pcpcc;
15375 char **ppc;
15376 /* NEC SVR4.0.2 mips cc rejects this. */
15377 struct point {int x, y;};
15378 static struct point const zero = {0,0};
15379 /* IBM XL C 1.02.0.0 rejects this.
15380 It does not let you subtract one const X* pointer from another in
15381 an arm of an if-expression whose if-part is not a constant
15382 expression */
15383 const char *g = "string";
15384 pcpcc = &g + (g ? g-g : 0);
15385 /* HPUX 7.0 cc rejects these. */
15386 ++pcpcc;
15387 ppc = (char**) pcpcc;
15388 pcpcc = (char const *const *) ppc;
15389 { /* SCO 3.2v4 cc rejects this sort of thing. */
15390 char tx;
15391 char *t = &tx;
15392 char const *s = 0 ? (char *) 0 : (char const *) 0;
15393
15394 *t++ = 0;
15395 if (s) return 0;
15396 }
15397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15398 int x[] = {25, 17};
15399 const int *foo = &x[0];
15400 ++foo;
15401 }
15402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15403 typedef const int *iptr;
15404 iptr p = 0;
15405 ++p;
15406 }
15407 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15409 struct s { int j; const int *ap[3]; } bx;
15410 struct s *b = &bx; b->j = 5;
15411 }
15412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15413 const int foo = 10;
15414 if (!foo) return 0;
15415 }
15416 return !cs[0] && !zero.x;
15417 #endif
15418
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_compile "$LINENO"
15424 then :
15425 ac_cv_c_const=yes
15426 else $as_nop
15427 ac_cv_c_const=no
15428 fi
15429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15430 fi
15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15432 printf "%s\n" "$ac_cv_c_const" >&6; }
15433 if test $ac_cv_c_const = no; then
15434
15435 printf "%s\n" "#define const /**/" >>confdefs.h
15436
15437 fi
15438
15439 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15440 if test "x$ac_cv_type_size_t" = xyes
15441 then :
15442
15443 else $as_nop
15444
15445 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15446
15447 fi
15448
15449 #AC_HEADER_TIME
15450 #AC_STRUCT_TM
15451
15452 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "$sa_includes
15453 "
15454 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
15455 then :
15456
15457 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
15458
15459
15460 fi
15461
15462
15463 # Checks for library functions.
15464
15465
15466
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
15468 printf %s "checking types of arguments for select... " >&6; }
15469 if test ${ac_cv_func_select_args+y}
15470 then :
15471 printf %s "(cached) " >&6
15472 else $as_nop
15473 ac_cv_func_select_args='int,int *,struct timeval *'
15474 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15475 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15476 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 $ac_includes_default
15480 #ifdef HAVE_SYS_SELECT_H
15481 # include <sys/select.h>
15482 #endif
15483 #ifdef HAVE_SYS_SOCKET_H
15484 # include <sys/socket.h>
15485 #endif
15486
15487 int
15488 main (void)
15489 {
15490 extern int select ($ac_arg1,
15491 $ac_arg234, $ac_arg234, $ac_arg234,
15492 $ac_arg5);
15493 ;
15494 return 0;
15495 }
15496 _ACEOF
15497 if ac_fn_c_try_compile "$LINENO"
15498 then :
15499 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15500 fi
15501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15502 done
15503 done
15504 done
15505
15506 fi
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
15508 printf "%s\n" "$ac_cv_func_select_args" >&6; }
15509 ac_save_IFS=$IFS; IFS=','
15510 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15511 IFS=$ac_save_IFS
15512 shift
15513
15514 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
15515
15516
15517 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
15518
15519
15520 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
15521
15522 rm -rf conftest*
15523
15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
15525 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
15526 if test ${ac_cv_c_undeclared_builtin_options+y}
15527 then :
15528 printf %s "(cached) " >&6
15529 else $as_nop
15530 ac_save_CFLAGS=$CFLAGS
15531 ac_cv_c_undeclared_builtin_options='cannot detect'
15532 for ac_arg in '' -fno-builtin; do
15533 CFLAGS="$ac_save_CFLAGS $ac_arg"
15534 # This test program should *not* compile successfully.
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537
15538 int
15539 main (void)
15540 {
15541 (void) strchr;
15542 ;
15543 return 0;
15544 }
15545 _ACEOF
15546 if ac_fn_c_try_compile "$LINENO"
15547 then :
15548
15549 else $as_nop
15550 # This test program should compile successfully.
15551 # No library function is consistently available on
15552 # freestanding implementations, so test against a dummy
15553 # declaration. Include always-available headers on the
15554 # off chance that they somehow elicit warnings.
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #include <float.h>
15558 #include <limits.h>
15559 #include <stdarg.h>
15560 #include <stddef.h>
15561 extern void ac_decl (int, char *);
15562
15563 int
15564 main (void)
15565 {
15566 (void) ac_decl (0, (char *) 0);
15567 (void) ac_decl;
15568
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_compile "$LINENO"
15574 then :
15575 if test x"$ac_arg" = x
15576 then :
15577 ac_cv_c_undeclared_builtin_options='none needed'
15578 else $as_nop
15579 ac_cv_c_undeclared_builtin_options=$ac_arg
15580 fi
15581 break
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15584 fi
15585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15586 done
15587 CFLAGS=$ac_save_CFLAGS
15588
15589 fi
15590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15591 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15592 case $ac_cv_c_undeclared_builtin_options in #(
15593 'cannot detect') :
15594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15595 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15596 as_fn_error $? "cannot make $CC report undeclared builtins
15597 See \`config.log' for more details" "$LINENO" 5; } ;; #(
15598 'none needed') :
15599 ac_c_undeclared_builtin_options='' ;; #(
15600 *) :
15601 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15602 esac
15603
15604 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15605 if test "x$ac_cv_have_decl_strerror_r" = xyes
15606 then :
15607 ac_have_decl=1
15608 else $as_nop
15609 ac_have_decl=0
15610 fi
15611 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
15612
15613
15614 if test $ac_cv_have_decl_strerror_r = yes; then
15615 # For backward compatibility's sake, define HAVE_STRERROR_R.
15616 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
15617 # as AC_CHECK_DECLS_ONCE.)
15618
15619 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
15620
15621 fi
15622
15623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15624 printf %s "checking whether strerror_r returns char *... " >&6; }
15625 if test ${ac_cv_func_strerror_r_char_p+y}
15626 then :
15627 printf %s "(cached) " >&6
15628 else $as_nop
15629
15630 ac_cv_func_strerror_r_char_p=no
15631 if test $ac_cv_have_decl_strerror_r = yes; then
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <string.h>
15635 int
15636 main (void)
15637 {
15638
15639 char buf[100];
15640 char x = *strerror_r (0, buf, sizeof buf);
15641 char *p = strerror_r (0, buf, sizeof buf);
15642 return !p || x;
15643
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_compile "$LINENO"
15649 then :
15650 ac_cv_func_strerror_r_char_p=yes
15651 fi
15652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15653
15654 fi
15655
15656 fi
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15658 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
15659 if test $ac_cv_func_strerror_r_char_p = yes; then
15660
15661 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15662
15663 fi
15664
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15666 printf %s "checking return type of signal handlers... " >&6; }
15667 if test ${ac_cv_type_signal+y}
15668 then :
15669 printf %s "(cached) " >&6
15670 else $as_nop
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 #include <sys/types.h>
15674 #include <signal.h>
15675
15676 int
15677 main (void)
15678 {
15679 return *(signal (0, 0)) (0) == 1;
15680 ;
15681 return 0;
15682 }
15683 _ACEOF
15684 if ac_fn_c_try_compile "$LINENO"
15685 then :
15686 ac_cv_type_signal=int
15687 else $as_nop
15688 ac_cv_type_signal=void
15689 fi
15690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15691 fi
15692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15693 printf "%s\n" "$ac_cv_type_signal" >&6; }
15694
15695 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
15696
15697
15698 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15699 if test "x$ac_cv_func_strerror_r" = xyes
15700 then :
15701 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
15702
15703 fi
15704 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
15705 if test "x$ac_cv_func_strdup" = xyes
15706 then :
15707 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
15708
15709 fi
15710 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
15711 if test "x$ac_cv_func_strndup" = xyes
15712 then :
15713 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
15714
15715 fi
15716 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
15717 if test "x$ac_cv_func_epoll_create" = xyes
15718 then :
15719 printf "%s\n" "#define HAVE_EPOLL_CREATE 1" >>confdefs.h
15720
15721 fi
15722 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
15723 if test "x$ac_cv_func_epoll_create1" = xyes
15724 then :
15725 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
15726
15727 fi
15728
15729
15730 # enable TLS (may not be possible on platforms with too-old GnuTLS)
15731 # Check whether --enable-tls was given.
15732 if test ${enable_tls+y}
15733 then :
15734 enableval=$enable_tls; case "${enableval}" in
15735 yes) enable_tls="yes" ;;
15736 no) enable_tls="no" ;;
15737 *) as_fn_error $? "bad value ${enableval} for --enable-tls" "$LINENO" 5 ;;
15738 esac
15739 else $as_nop
15740 enable_tls="yes"
15741
15742 fi
15743
15744 # enable Openssl TLS
15745 # Check whether --enable-tls-openssl was given.
15746 if test ${enable_tls_openssl+y}
15747 then :
15748 enableval=$enable_tls_openssl; case "${enableval}" in
15749 yes) enable_tls_openssl="yes" ;;
15750 no) enable_tls_openssl="no" ;;
15751 *) as_fn_error $? "bad value ${enableval} for --enable-tls-openssl" "$LINENO" 5 ;;
15752 esac
15753 else $as_nop
15754 enable_tls_openssl="yes"
15755
15756 fi
15757
15758
15759 if test "$enable_tls_openssl" = "yes"; then
15760
15761 pkg_failed=no
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
15763 printf %s "checking for openssl... " >&6; }
15764
15765 if test -n "$OPENSSL_CFLAGS"; then
15766 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15767 elif test -n "$PKG_CONFIG"; then
15768 if test -n "$PKG_CONFIG" && \
15769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15770 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15771 ac_status=$?
15772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773 test $ac_status = 0; }; then
15774 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
15775 test "x$?" != "x0" && pkg_failed=yes
15776 else
15777 pkg_failed=yes
15778 fi
15779 else
15780 pkg_failed=untried
15781 fi
15782 if test -n "$OPENSSL_LIBS"; then
15783 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15784 elif test -n "$PKG_CONFIG"; then
15785 if test -n "$PKG_CONFIG" && \
15786 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
15787 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15788 ac_status=$?
15789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15790 test $ac_status = 0; }; then
15791 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
15792 test "x$?" != "x0" && pkg_failed=yes
15793 else
15794 pkg_failed=yes
15795 fi
15796 else
15797 pkg_failed=untried
15798 fi
15799
15800
15801
15802 if test $pkg_failed = yes; then
15803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 printf "%s\n" "no" >&6; }
15805
15806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15807 _pkg_short_errors_supported=yes
15808 else
15809 _pkg_short_errors_supported=no
15810 fi
15811 if test $_pkg_short_errors_supported = yes; then
15812 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
15813 else
15814 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
15815 fi
15816 # Put the nasty error message in config.log where it belongs
15817 echo "$OPENSSL_PKG_ERRORS" >&5
15818
15819 as_fn_error $? "Package requirements (openssl) were not met:
15820
15821 $OPENSSL_PKG_ERRORS
15822
15823 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15824 installed software in a non-standard prefix.
15825
15826 Alternatively, you may set the environment variables OPENSSL_CFLAGS
15827 and OPENSSL_LIBS to avoid the need to call pkg-config.
15828 See the pkg-config man page for more details." "$LINENO" 5
15829 elif test $pkg_failed = untried; then
15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 printf "%s\n" "no" >&6; }
15832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15833 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15834 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15835 is in your PATH or set the PKG_CONFIG environment variable to the full
15836 path to pkg-config.
15837
15838 Alternatively, you may set the environment variables OPENSSL_CFLAGS
15839 and OPENSSL_LIBS to avoid the need to call pkg-config.
15840 See the pkg-config man page for more details.
15841
15842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15843 See \`config.log' for more details" "$LINENO" 5; }
15844 else
15845 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15846 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848 printf "%s\n" "yes" >&6; }
15849
15850 fi
15851
15852 printf "%s\n" "#define ENABLE_TLS_OPENSSL 1" >>confdefs.h
15853
15854 enable_tls_generic="yes"
15855 save_CFLAGS="$CFLAGS"
15856 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
15857 save_LIBS="$LIBS"
15858 LIBS="$LIBS $OPENSSL_LIBS"
15859 fi
15860 if test "$enable_tls_openssl" = "yes"; then
15861 ENABLE_TLS_OPENSSL_TRUE=
15862 ENABLE_TLS_OPENSSL_FALSE='#'
15863 else
15864 ENABLE_TLS_OPENSSL_TRUE='#'
15865 ENABLE_TLS_OPENSSL_FALSE=
15866 fi
15867
15868
15869 if test "$enable_tls" = "yes"; then
15870
15871 pkg_failed=no
15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.0.0" >&5
15873 printf %s "checking for gnutls >= 2.0.0... " >&6; }
15874
15875 if test -n "$GNUTLS_CFLAGS"; then
15876 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15877 elif test -n "$PKG_CONFIG"; then
15878 if test -n "$PKG_CONFIG" && \
15879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.0.0\""; } >&5
15880 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.0.0") 2>&5
15881 ac_status=$?
15882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15883 test $ac_status = 0; }; then
15884 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.0.0" 2>/dev/null`
15885 test "x$?" != "x0" && pkg_failed=yes
15886 else
15887 pkg_failed=yes
15888 fi
15889 else
15890 pkg_failed=untried
15891 fi
15892 if test -n "$GNUTLS_LIBS"; then
15893 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15894 elif test -n "$PKG_CONFIG"; then
15895 if test -n "$PKG_CONFIG" && \
15896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.0.0\""; } >&5
15897 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.0.0") 2>&5
15898 ac_status=$?
15899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15900 test $ac_status = 0; }; then
15901 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.0.0" 2>/dev/null`
15902 test "x$?" != "x0" && pkg_failed=yes
15903 else
15904 pkg_failed=yes
15905 fi
15906 else
15907 pkg_failed=untried
15908 fi
15909
15910
15911
15912 if test $pkg_failed = yes; then
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914 printf "%s\n" "no" >&6; }
15915
15916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15917 _pkg_short_errors_supported=yes
15918 else
15919 _pkg_short_errors_supported=no
15920 fi
15921 if test $_pkg_short_errors_supported = yes; then
15922 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.0.0" 2>&1`
15923 else
15924 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.0.0" 2>&1`
15925 fi
15926 # Put the nasty error message in config.log where it belongs
15927 echo "$GNUTLS_PKG_ERRORS" >&5
15928
15929 as_fn_error $? "Package requirements (gnutls >= 2.0.0) were not met:
15930
15931 $GNUTLS_PKG_ERRORS
15932
15933 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15934 installed software in a non-standard prefix.
15935
15936 Alternatively, you may set the environment variables GNUTLS_CFLAGS
15937 and GNUTLS_LIBS to avoid the need to call pkg-config.
15938 See the pkg-config man page for more details." "$LINENO" 5
15939 elif test $pkg_failed = untried; then
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 printf "%s\n" "no" >&6; }
15942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15943 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15944 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15945 is in your PATH or set the PKG_CONFIG environment variable to the full
15946 path to pkg-config.
15947
15948 Alternatively, you may set the environment variables GNUTLS_CFLAGS
15949 and GNUTLS_LIBS to avoid the need to call pkg-config.
15950 See the pkg-config man page for more details.
15951
15952 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15953 See \`config.log' for more details" "$LINENO" 5; }
15954 else
15955 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15956 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 printf "%s\n" "yes" >&6; }
15959
15960 fi
15961
15962 printf "%s\n" "#define ENABLE_TLS 1" >>confdefs.h
15963
15964 enable_tls_generic="yes"
15965 # Check if we have support for proper cert validation
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have gnutls_certificate_set_verify_function" >&5
15967 printf %s "checking if we have gnutls_certificate_set_verify_function... " >&6; }
15968 save_CFLAGS="$CFLAGS"
15969 CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
15970 save_LIBS="$LIBS"
15971 LIBS="$LIBS $GNUTLS_LIBS"
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974
15975 #include <gnutls/gnutls.h>
15976 #include <gnutls/x509.h>
15977
15978 int
15979 main (void)
15980 {
15981
15982 gnutls_certificate_set_verify_function(NULL, NULL);
15983
15984 ;
15985 return 0;
15986 }
15987 _ACEOF
15988 if ac_fn_c_try_link "$LINENO"
15989 then :
15990
15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15992 printf "%s\n" "yes" >&6; }
15993
15994 printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1" >>confdefs.h
15995
15996 have_gnutls_certificate_set_verify_function=yes
15997
15998 else $as_nop
15999
16000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; authentication disabled" >&5
16001 printf "%s\n" "no; authentication disabled" >&6; }
16002 have_gnutls_certificate_set_verify_function=no
16003
16004
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16007 conftest$ac_exeext conftest.$ac_ext
16008 CFLAGS="$save_CFLAGS"
16009 LIBS="$save_LIBS"
16010 fi
16011 if test "$enable_tls" = "yes"; then
16012 ENABLE_TLS_TRUE=
16013 ENABLE_TLS_FALSE='#'
16014 else
16015 ENABLE_TLS_TRUE='#'
16016 ENABLE_TLS_FALSE=
16017 fi
16018
16019 if test "$enable_tls_generic" = "yes"; then
16020 ENABLE_TLS_GENERIC_TRUE=
16021 ENABLE_TLS_GENERIC_FALSE='#'
16022 else
16023 ENABLE_TLS_GENERIC_TRUE='#'
16024 ENABLE_TLS_GENERIC_FALSE=
16025 fi
16026
16027
16028 if test "$enable_tls_generic" = "yes"; then
16029
16030 printf "%s\n" "#define WITH_TLS 1" >>confdefs.h
16031
16032 fi
16033
16034 # enable Openssl TLS
16035 # Check whether --enable-tls-openssl was given.
16036 if test ${enable_tls_openssl+y}
16037 then :
16038 enableval=$enable_tls_openssl; case "${enableval}" in
16039 yes) enable_tls_openssl="yes" ;;
16040 no) enable_tls_openssl="no" ;;
16041 *) as_fn_error $? "bad value ${enableval} for --enable-tls-openssl" "$LINENO" 5 ;;
16042 esac
16043 else $as_nop
16044 enable_tls_openssl="no"
16045
16046 fi
16047
16048
16049 if test "$enable_tls_openssl" = "yes"; then
16050
16051 pkg_failed=no
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
16053 printf %s "checking for openssl... " >&6; }
16054
16055 if test -n "$OPENSSL_CFLAGS"; then
16056 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16057 elif test -n "$PKG_CONFIG"; then
16058 if test -n "$PKG_CONFIG" && \
16059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16060 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16061 ac_status=$?
16062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16063 test $ac_status = 0; }; then
16064 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
16065 test "x$?" != "x0" && pkg_failed=yes
16066 else
16067 pkg_failed=yes
16068 fi
16069 else
16070 pkg_failed=untried
16071 fi
16072 if test -n "$OPENSSL_LIBS"; then
16073 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16074 elif test -n "$PKG_CONFIG"; then
16075 if test -n "$PKG_CONFIG" && \
16076 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16077 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16078 ac_status=$?
16079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080 test $ac_status = 0; }; then
16081 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
16082 test "x$?" != "x0" && pkg_failed=yes
16083 else
16084 pkg_failed=yes
16085 fi
16086 else
16087 pkg_failed=untried
16088 fi
16089
16090
16091
16092 if test $pkg_failed = yes; then
16093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16094 printf "%s\n" "no" >&6; }
16095
16096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16097 _pkg_short_errors_supported=yes
16098 else
16099 _pkg_short_errors_supported=no
16100 fi
16101 if test $_pkg_short_errors_supported = yes; then
16102 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
16103 else
16104 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
16105 fi
16106 # Put the nasty error message in config.log where it belongs
16107 echo "$OPENSSL_PKG_ERRORS" >&5
16108
16109 as_fn_error $? "Package requirements (openssl) were not met:
16110
16111 $OPENSSL_PKG_ERRORS
16112
16113 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16114 installed software in a non-standard prefix.
16115
16116 Alternatively, you may set the environment variables OPENSSL_CFLAGS
16117 and OPENSSL_LIBS to avoid the need to call pkg-config.
16118 See the pkg-config man page for more details." "$LINENO" 5
16119 elif test $pkg_failed = untried; then
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121 printf "%s\n" "no" >&6; }
16122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16123 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16124 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16125 is in your PATH or set the PKG_CONFIG environment variable to the full
16126 path to pkg-config.
16127
16128 Alternatively, you may set the environment variables OPENSSL_CFLAGS
16129 and OPENSSL_LIBS to avoid the need to call pkg-config.
16130 See the pkg-config man page for more details.
16131
16132 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16133 See \`config.log' for more details" "$LINENO" 5; }
16134 else
16135 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16136 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16138 printf "%s\n" "yes" >&6; }
16139
16140 fi
16141
16142 printf "%s\n" "#define ENABLE_TLS_OPENSSL 1" >>confdefs.h
16143
16144 save_CFLAGS="$CFLAGS"
16145 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
16146 save_LIBS="$LIBS"
16147 LIBS="$LIBS $OPENSSL_LIBS"
16148 fi
16149 if test x$enable_tls_openssl = xyes; then
16150 ENABLE_TLS_OPENSSL_TRUE=
16151 ENABLE_TLS_OPENSSL_FALSE='#'
16152 else
16153 ENABLE_TLS_OPENSSL_TRUE='#'
16154 ENABLE_TLS_OPENSSL_FALSE=
16155 fi
16156
16157
16158 # debug mode settings
16159 # Check whether --enable-debug was given.
16160 if test ${enable_debug+y}
16161 then :
16162 enableval=$enable_debug; case "${enableval}" in
16163 yes) enable_debug="yes" ;;
16164 no) enable_debug="no" ;;
16165 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
16166 esac
16167 else $as_nop
16168 enable_debug="no"
16169
16170 fi
16171
16172 if test "$enable_debug" = "yes"; then
16173
16174 printf "%s\n" "#define DEBUG 1" >>confdefs.h
16175
16176 fi
16177 if test "$enable_debug" = "no"; then
16178
16179 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
16180
16181 fi
16182
16183 #Compiler does not inline any functions when not optimizing(-Og).
16184 #Hence, remove -Winline flag when DEBUG is enabled.
16185 #ifdef DEBUG
16186 WARN_CFLAGS="$(echo "$WARN_CFLAGS" | sed s/-Winline//g)"
16187 #endif
16188
16189 # valgrind
16190 # Check whether --enable-valgrind was given.
16191 if test ${enable_valgrind+y}
16192 then :
16193 enableval=$enable_valgrind; case "${enableval}" in
16194 yes) enable_valgrind="yes" ;;
16195 no) enable_valgrind="no" ;;
16196 *) as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
16197 esac
16198 else $as_nop
16199 enable_valgrind="yes"
16200
16201 fi
16202
16203 if test "$enable_valgrind" = "yes"; then
16204 # Extract the first word of "valgrind", so it can be a program name with args.
16205 set dummy valgrind; ac_word=$2
16206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16207 printf %s "checking for $ac_word... " >&6; }
16208 if test ${ac_cv_prog_VALGRIND+y}
16209 then :
16210 printf %s "(cached) " >&6
16211 else $as_nop
16212 if test -n "$VALGRIND"; then
16213 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
16214 else
16215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16216 for as_dir in $PATH
16217 do
16218 IFS=$as_save_IFS
16219 case $as_dir in #(((
16220 '') as_dir=./ ;;
16221 */) ;;
16222 *) as_dir=$as_dir/ ;;
16223 esac
16224 for ac_exec_ext in '' $ac_executable_extensions; do
16225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16226 ac_cv_prog_VALGRIND="valgrind"
16227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16228 break 2
16229 fi
16230 done
16231 done
16232 IFS=$as_save_IFS
16233
16234 test -z "$ac_cv_prog_VALGRIND" && ac_cv_prog_VALGRIND="no"
16235 fi
16236 fi
16237 VALGRIND=$ac_cv_prog_VALGRIND
16238 if test -n "$VALGRIND"; then
16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
16240 printf "%s\n" "$VALGRIND" >&6; }
16241 else
16242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16243 printf "%s\n" "no" >&6; }
16244 fi
16245
16246
16247 fi
16248 if test "$enable_valgrind" == "yes"; then
16249 HAVE_VALGRIND_TRUE=
16250 HAVE_VALGRIND_FALSE='#'
16251 else
16252 HAVE_VALGRIND_TRUE='#'
16253 HAVE_VALGRIND_FALSE=
16254 fi
16255
16256
16257
16258
16259 ac_config_files="$ac_config_files Makefile relp.pc doc/Makefile tests/set-envvars tests/Makefile src/Makefile"
16260
16261 cat >confcache <<\_ACEOF
16262 # This file is a shell script that caches the results of configure
16263 # tests run on this system so they can be shared between configure
16264 # scripts and configure runs, see configure's option --config-cache.
16265 # It is not useful on other systems. If it contains results you don't
16266 # want to keep, you may remove or edit it.
16267 #
16268 # config.status only pays attention to the cache file if you give it
16269 # the --recheck option to rerun configure.
16270 #
16271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16273 # following values.
16274
16275 _ACEOF
16276
16277 # The following way of writing the cache mishandles newlines in values,
16278 # but we know of no workaround that is simple, portable, and efficient.
16279 # So, we kill variables containing newlines.
16280 # Ultrix sh set writes to stderr and can't be redirected directly,
16281 # and sets the high bit in the cache file unless we assign to the vars.
16282 (
16283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16284 eval ac_val=\$$ac_var
16285 case $ac_val in #(
16286 *${as_nl}*)
16287 case $ac_var in #(
16288 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16289 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16290 esac
16291 case $ac_var in #(
16292 _ | IFS | as_nl) ;; #(
16293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16294 *) { eval $ac_var=; unset $ac_var;} ;;
16295 esac ;;
16296 esac
16297 done
16298
16299 (set) 2>&1 |
16300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16301 *${as_nl}ac_space=\ *)
16302 # `set' does not quote correctly, so add quotes: double-quote
16303 # substitution turns \\\\ into \\, and sed turns \\ into \.
16304 sed -n \
16305 "s/'/'\\\\''/g;
16306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16307 ;; #(
16308 *)
16309 # `set' quotes correctly as required by POSIX, so do not add quotes.
16310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16311 ;;
16312 esac |
16313 sort
16314 ) |
16315 sed '
16316 /^ac_cv_env_/b end
16317 t clear
16318 :clear
16319 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16320 t end
16321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16322 :end' >>confcache
16323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16324 if test -w "$cache_file"; then
16325 if test "x$cache_file" != "x/dev/null"; then
16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16327 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16328 if test ! -f "$cache_file" || test -h "$cache_file"; then
16329 cat confcache >"$cache_file"
16330 else
16331 case $cache_file in #(
16332 */* | ?:*)
16333 mv -f confcache "$cache_file"$$ &&
16334 mv -f "$cache_file"$$ "$cache_file" ;; #(
16335 *)
16336 mv -f confcache "$cache_file" ;;
16337 esac
16338 fi
16339 fi
16340 else
16341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16342 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16343 fi
16344 fi
16345 rm -f confcache
16346
16347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16348 # Let make expand exec_prefix.
16349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16350
16351 DEFS=-DHAVE_CONFIG_H
16352
16353 ac_libobjs=
16354 ac_ltlibobjs=
16355 U=
16356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16357 # 1. Remove the extension, and $U if already installed.
16358 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16359 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16360 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16361 # will be set to the directory where LIBOBJS objects are built.
16362 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16363 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16364 done
16365 LIBOBJS=$ac_libobjs
16366
16367 LTLIBOBJS=$ac_ltlibobjs
16368
16369
16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16371 printf %s "checking that generated files are newer than configure... " >&6; }
16372 if test -n "$am_sleep_pid"; then
16373 # Hide warnings about reused PIDs.
16374 wait $am_sleep_pid 2>/dev/null
16375 fi
16376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16377 printf "%s\n" "done" >&6; }
16378 if test -n "$EXEEXT"; then
16379 am__EXEEXT_TRUE=
16380 am__EXEEXT_FALSE='#'
16381 else
16382 am__EXEEXT_TRUE='#'
16383 am__EXEEXT_FALSE=
16384 fi
16385
16386 if test -z "${OS_APPLE_TRUE}" && test -z "${OS_APPLE_FALSE}"; then
16387 as_fn_error $? "conditional \"OS_APPLE\" was never defined.
16388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16389 fi
16390 if test -z "${xOS_LINUX_TRUE}" && test -z "${xOS_LINUX_FALSE}"; then
16391 as_fn_error $? "conditional \"xOS_LINUX\" was never defined.
16392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16393 fi
16394 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16395 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16397 fi
16398 if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
16399 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
16400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16401 fi
16402 if test -z "${OS_AIX_TRUE}" && test -z "${OS_AIX_FALSE}"; then
16403 as_fn_error $? "conditional \"OS_AIX\" was never defined.
16404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16405 fi
16406 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16407 as_fn_error $? "conditional \"AMDEP\" was never defined.
16408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16409 fi
16410 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16411 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16413 fi
16414 if test -z "${ENABLE_TLS_OPENSSL_TRUE}" && test -z "${ENABLE_TLS_OPENSSL_FALSE}"; then
16415 as_fn_error $? "conditional \"ENABLE_TLS_OPENSSL\" was never defined.
16416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16417 fi
16418 if test -z "${ENABLE_TLS_TRUE}" && test -z "${ENABLE_TLS_FALSE}"; then
16419 as_fn_error $? "conditional \"ENABLE_TLS\" was never defined.
16420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16421 fi
16422 if test -z "${ENABLE_TLS_GENERIC_TRUE}" && test -z "${ENABLE_TLS_GENERIC_FALSE}"; then
16423 as_fn_error $? "conditional \"ENABLE_TLS_GENERIC\" was never defined.
16424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16425 fi
16426 if test -z "${ENABLE_TLS_OPENSSL_TRUE}" && test -z "${ENABLE_TLS_OPENSSL_FALSE}"; then
16427 as_fn_error $? "conditional \"ENABLE_TLS_OPENSSL\" was never defined.
16428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16429 fi
16430 if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
16431 as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
16432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16433 fi
16434
16435 : "${CONFIG_STATUS=./config.status}"
16436 ac_write_fail=0
16437 ac_clean_files_save=$ac_clean_files
16438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16440 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16441 as_write_fail=0
16442 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16443 #! $SHELL
16444 # Generated by $as_me.
16445 # Run this file to recreate the current configuration.
16446 # Compiler output produced by configure, useful for debugging
16447 # configure, is in config.log if it exists.
16448
16449 debug=false
16450 ac_cs_recheck=false
16451 ac_cs_silent=false
16452
16453 SHELL=\${CONFIG_SHELL-$SHELL}
16454 export SHELL
16455 _ASEOF
16456 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16457 ## -------------------- ##
16458 ## M4sh Initialization. ##
16459 ## -------------------- ##
16460
16461 # Be more Bourne compatible
16462 DUALCASE=1; export DUALCASE # for MKS sh
16463 as_nop=:
16464 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16465 then :
16466 emulate sh
16467 NULLCMD=:
16468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16469 # is contrary to our usage. Disable this feature.
16470 alias -g '${1+"$@"}'='"$@"'
16471 setopt NO_GLOB_SUBST
16472 else $as_nop
16473 case `(set -o) 2>/dev/null` in #(
16474 *posix*) :
16475 set -o posix ;; #(
16476 *) :
16477 ;;
16478 esac
16479 fi
16480
16481
16482
16483 # Reset variables that may have inherited troublesome values from
16484 # the environment.
16485
16486 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16487 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16488 # side effect of setting IFS to empty, thus disabling word splitting.)
16489 # Quoting is to prevent editors from complaining about space-tab.
16490 as_nl='
16491 '
16492 export as_nl
16493 IFS=" "" $as_nl"
16494
16495 PS1='$ '
16496 PS2='> '
16497 PS4='+ '
16498
16499 # Ensure predictable behavior from utilities with locale-dependent output.
16500 LC_ALL=C
16501 export LC_ALL
16502 LANGUAGE=C
16503 export LANGUAGE
16504
16505 # We cannot yet rely on "unset" to work, but we need these variables
16506 # to be unset--not just set to an empty or harmless value--now, to
16507 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16508 # also avoids known problems related to "unset" and subshell syntax
16509 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16510 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16511 do eval test \${$as_var+y} \
16512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16513 done
16514
16515 # Ensure that fds 0, 1, and 2 are open.
16516 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16517 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16518 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16519
16520 # The user is always right.
16521 if ${PATH_SEPARATOR+false} :; then
16522 PATH_SEPARATOR=:
16523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16525 PATH_SEPARATOR=';'
16526 }
16527 fi
16528
16529
16530 # Find who we are. Look in the path if we contain no directory separator.
16531 as_myself=
16532 case $0 in #((
16533 *[\\/]* ) as_myself=$0 ;;
16534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16535 for as_dir in $PATH
16536 do
16537 IFS=$as_save_IFS
16538 case $as_dir in #(((
16539 '') as_dir=./ ;;
16540 */) ;;
16541 *) as_dir=$as_dir/ ;;
16542 esac
16543 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16544 done
16545 IFS=$as_save_IFS
16546
16547 ;;
16548 esac
16549 # We did not find ourselves, most probably we were run as `sh COMMAND'
16550 # in which case we are not to be found in the path.
16551 if test "x$as_myself" = x; then
16552 as_myself=$0
16553 fi
16554 if test ! -f "$as_myself"; then
16555 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16556 exit 1
16557 fi
16558
16559
16560
16561 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16562 # ----------------------------------------
16563 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16564 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16565 # script with STATUS, using 1 if that was 0.
16566 as_fn_error ()
16567 {
16568 as_status=$1; test $as_status -eq 0 && as_status=1
16569 if test "$4"; then
16570 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16572 fi
16573 printf "%s\n" "$as_me: error: $2" >&2
16574 as_fn_exit $as_status
16575 } # as_fn_error
16576
16577
16578
16579 # as_fn_set_status STATUS
16580 # -----------------------
16581 # Set $? to STATUS, without forking.
16582 as_fn_set_status ()
16583 {
16584 return $1
16585 } # as_fn_set_status
16586
16587 # as_fn_exit STATUS
16588 # -----------------
16589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16590 as_fn_exit ()
16591 {
16592 set +e
16593 as_fn_set_status $1
16594 exit $1
16595 } # as_fn_exit
16596
16597 # as_fn_unset VAR
16598 # ---------------
16599 # Portably unset VAR.
16600 as_fn_unset ()
16601 {
16602 { eval $1=; unset $1;}
16603 }
16604 as_unset=as_fn_unset
16605
16606 # as_fn_append VAR VALUE
16607 # ----------------------
16608 # Append the text in VALUE to the end of the definition contained in VAR. Take
16609 # advantage of any shell optimizations that allow amortized linear growth over
16610 # repeated appends, instead of the typical quadratic growth present in naive
16611 # implementations.
16612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16613 then :
16614 eval 'as_fn_append ()
16615 {
16616 eval $1+=\$2
16617 }'
16618 else $as_nop
16619 as_fn_append ()
16620 {
16621 eval $1=\$$1\$2
16622 }
16623 fi # as_fn_append
16624
16625 # as_fn_arith ARG...
16626 # ------------------
16627 # Perform arithmetic evaluation on the ARGs, and store the result in the
16628 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16629 # must be portable across $(()) and expr.
16630 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16631 then :
16632 eval 'as_fn_arith ()
16633 {
16634 as_val=$(( $* ))
16635 }'
16636 else $as_nop
16637 as_fn_arith ()
16638 {
16639 as_val=`expr "$@" || test $? -eq 1`
16640 }
16641 fi # as_fn_arith
16642
16643
16644 if expr a : '\(a\)' >/dev/null 2>&1 &&
16645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16646 as_expr=expr
16647 else
16648 as_expr=false
16649 fi
16650
16651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16652 as_basename=basename
16653 else
16654 as_basename=false
16655 fi
16656
16657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16658 as_dirname=dirname
16659 else
16660 as_dirname=false
16661 fi
16662
16663 as_me=`$as_basename -- "$0" ||
16664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16665 X"$0" : 'X\(//\)$' \| \
16666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16667 printf "%s\n" X/"$0" |
16668 sed '/^.*\/\([^/][^/]*\)\/*$/{
16669 s//\1/
16670 q
16671 }
16672 /^X\/\(\/\/\)$/{
16673 s//\1/
16674 q
16675 }
16676 /^X\/\(\/\).*/{
16677 s//\1/
16678 q
16679 }
16680 s/.*/./; q'`
16681
16682 # Avoid depending upon Character Ranges.
16683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16686 as_cr_digits='0123456789'
16687 as_cr_alnum=$as_cr_Letters$as_cr_digits
16688
16689
16690 # Determine whether it's possible to make 'echo' print without a newline.
16691 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16692 # for compatibility with existing Makefiles.
16693 ECHO_C= ECHO_N= ECHO_T=
16694 case `echo -n x` in #(((((
16695 -n*)
16696 case `echo 'xy\c'` in
16697 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16698 xy) ECHO_C='\c';;
16699 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16700 ECHO_T=' ';;
16701 esac;;
16702 *)
16703 ECHO_N='-n';;
16704 esac
16705
16706 # For backward compatibility with old third-party macros, we provide
16707 # the shell variables $as_echo and $as_echo_n. New code should use
16708 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16709 as_echo='printf %s\n'
16710 as_echo_n='printf %s'
16711
16712 rm -f conf$$ conf$$.exe conf$$.file
16713 if test -d conf$$.dir; then
16714 rm -f conf$$.dir/conf$$.file
16715 else
16716 rm -f conf$$.dir
16717 mkdir conf$$.dir 2>/dev/null
16718 fi
16719 if (echo >conf$$.file) 2>/dev/null; then
16720 if ln -s conf$$.file conf$$ 2>/dev/null; then
16721 as_ln_s='ln -s'
16722 # ... but there are two gotchas:
16723 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16724 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16725 # In both cases, we have to default to `cp -pR'.
16726 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16727 as_ln_s='cp -pR'
16728 elif ln conf$$.file conf$$ 2>/dev/null; then
16729 as_ln_s=ln
16730 else
16731 as_ln_s='cp -pR'
16732 fi
16733 else
16734 as_ln_s='cp -pR'
16735 fi
16736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16737 rmdir conf$$.dir 2>/dev/null
16738
16739
16740 # as_fn_mkdir_p
16741 # -------------
16742 # Create "$as_dir" as a directory, including parents if necessary.
16743 as_fn_mkdir_p ()
16744 {
16745
16746 case $as_dir in #(
16747 -*) as_dir=./$as_dir;;
16748 esac
16749 test -d "$as_dir" || eval $as_mkdir_p || {
16750 as_dirs=
16751 while :; do
16752 case $as_dir in #(
16753 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16754 *) as_qdir=$as_dir;;
16755 esac
16756 as_dirs="'$as_qdir' $as_dirs"
16757 as_dir=`$as_dirname -- "$as_dir" ||
16758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16759 X"$as_dir" : 'X\(//\)[^/]' \| \
16760 X"$as_dir" : 'X\(//\)$' \| \
16761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16762 printf "%s\n" X"$as_dir" |
16763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16764 s//\1/
16765 q
16766 }
16767 /^X\(\/\/\)[^/].*/{
16768 s//\1/
16769 q
16770 }
16771 /^X\(\/\/\)$/{
16772 s//\1/
16773 q
16774 }
16775 /^X\(\/\).*/{
16776 s//\1/
16777 q
16778 }
16779 s/.*/./; q'`
16780 test -d "$as_dir" && break
16781 done
16782 test -z "$as_dirs" || eval "mkdir $as_dirs"
16783 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16784
16785
16786 } # as_fn_mkdir_p
16787 if mkdir -p . 2>/dev/null; then
16788 as_mkdir_p='mkdir -p "$as_dir"'
16789 else
16790 test -d ./-p && rmdir ./-p
16791 as_mkdir_p=false
16792 fi
16793
16794
16795 # as_fn_executable_p FILE
16796 # -----------------------
16797 # Test if FILE is an executable regular file.
16798 as_fn_executable_p ()
16799 {
16800 test -f "$1" && test -x "$1"
16801 } # as_fn_executable_p
16802 as_test_x='test -x'
16803 as_executable_p=as_fn_executable_p
16804
16805 # Sed expression to map a string onto a valid CPP name.
16806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16807
16808 # Sed expression to map a string onto a valid variable name.
16809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16810
16811
16812 exec 6>&1
16813 ## ----------------------------------- ##
16814 ## Main body of $CONFIG_STATUS script. ##
16815 ## ----------------------------------- ##
16816 _ASEOF
16817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16818
16819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16820 # Save the log message, to keep $0 and so on meaningful, and to
16821 # report actual input values of CONFIG_FILES etc. instead of their
16822 # values after options handling.
16823 ac_log="
16824 This file was extended by librelp $as_me 1.12.0, which was
16825 generated by GNU Autoconf 2.71. Invocation command line was
16826
16827 CONFIG_FILES = $CONFIG_FILES
16828 CONFIG_HEADERS = $CONFIG_HEADERS
16829 CONFIG_LINKS = $CONFIG_LINKS
16830 CONFIG_COMMANDS = $CONFIG_COMMANDS
16831 $ $0 $@
16832
16833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16834 "
16835
16836 _ACEOF
16837
16838 case $ac_config_files in *"
16839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16840 esac
16841
16842 case $ac_config_headers in *"
16843 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16844 esac
16845
16846
16847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16848 # Files that config.status was made for.
16849 config_files="$ac_config_files"
16850 config_headers="$ac_config_headers"
16851 config_commands="$ac_config_commands"
16852
16853 _ACEOF
16854
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 ac_cs_usage="\
16857 \`$as_me' instantiates files and other configuration actions
16858 from templates according to the current configuration. Unless the files
16859 and actions are specified as TAGs, all are instantiated by default.
16860
16861 Usage: $0 [OPTION]... [TAG]...
16862
16863 -h, --help print this help, then exit
16864 -V, --version print version number and configuration settings, then exit
16865 --config print configuration, then exit
16866 -q, --quiet, --silent
16867 do not print progress messages
16868 -d, --debug don't remove temporary files
16869 --recheck update $as_me by reconfiguring in the same conditions
16870 --file=FILE[:TEMPLATE]
16871 instantiate the configuration file FILE
16872 --header=FILE[:TEMPLATE]
16873 instantiate the configuration header FILE
16874
16875 Configuration files:
16876 $config_files
16877
16878 Configuration headers:
16879 $config_headers
16880
16881 Configuration commands:
16882 $config_commands
16883
16884 Report bugs to <[email protected]>."
16885
16886 _ACEOF
16887 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16888 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 ac_cs_config='$ac_cs_config_escaped'
16891 ac_cs_version="\\
16892 librelp config.status 1.12.0
16893 configured by $0, generated by GNU Autoconf 2.71,
16894 with options \\"\$ac_cs_config\\"
16895
16896 Copyright (C) 2021 Free Software Foundation, Inc.
16897 This config.status script is free software; the Free Software Foundation
16898 gives unlimited permission to copy, distribute and modify it."
16899
16900 ac_pwd='$ac_pwd'
16901 srcdir='$srcdir'
16902 INSTALL='$INSTALL'
16903 MKDIR_P='$MKDIR_P'
16904 AWK='$AWK'
16905 test -n "\$AWK" || AWK=awk
16906 _ACEOF
16907
16908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16909 # The default lists apply if the user does not specify any file.
16910 ac_need_defaults=:
16911 while test $# != 0
16912 do
16913 case $1 in
16914 --*=?*)
16915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16917 ac_shift=:
16918 ;;
16919 --*=)
16920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16921 ac_optarg=
16922 ac_shift=:
16923 ;;
16924 *)
16925 ac_option=$1
16926 ac_optarg=$2
16927 ac_shift=shift
16928 ;;
16929 esac
16930
16931 case $ac_option in
16932 # Handling of the options.
16933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16934 ac_cs_recheck=: ;;
16935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16936 printf "%s\n" "$ac_cs_version"; exit ;;
16937 --config | --confi | --conf | --con | --co | --c )
16938 printf "%s\n" "$ac_cs_config"; exit ;;
16939 --debug | --debu | --deb | --de | --d | -d )
16940 debug=: ;;
16941 --file | --fil | --fi | --f )
16942 $ac_shift
16943 case $ac_optarg in
16944 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16945 '') as_fn_error $? "missing file argument" ;;
16946 esac
16947 as_fn_append CONFIG_FILES " '$ac_optarg'"
16948 ac_need_defaults=false;;
16949 --header | --heade | --head | --hea )
16950 $ac_shift
16951 case $ac_optarg in
16952 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16953 esac
16954 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16955 ac_need_defaults=false;;
16956 --he | --h)
16957 # Conflict between --help and --header
16958 as_fn_error $? "ambiguous option: \`$1'
16959 Try \`$0 --help' for more information.";;
16960 --help | --hel | -h )
16961 printf "%s\n" "$ac_cs_usage"; exit ;;
16962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16964 ac_cs_silent=: ;;
16965
16966 # This is an error.
16967 -*) as_fn_error $? "unrecognized option: \`$1'
16968 Try \`$0 --help' for more information." ;;
16969
16970 *) as_fn_append ac_config_targets " $1"
16971 ac_need_defaults=false ;;
16972
16973 esac
16974 shift
16975 done
16976
16977 ac_configure_extra_args=
16978
16979 if $ac_cs_silent; then
16980 exec 6>/dev/null
16981 ac_configure_extra_args="$ac_configure_extra_args --silent"
16982 fi
16983
16984 _ACEOF
16985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16986 if \$ac_cs_recheck; then
16987 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16988 shift
16989 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16990 CONFIG_SHELL='$SHELL'
16991 export CONFIG_SHELL
16992 exec "\$@"
16993 fi
16994
16995 _ACEOF
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997 exec 5>>config.log
16998 {
16999 echo
17000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17001 ## Running $as_me. ##
17002 _ASBOX
17003 printf "%s\n" "$ac_log"
17004 } >&5
17005
17006 _ACEOF
17007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17008 #
17009 # INIT-COMMANDS
17010 #
17011 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17012
17013
17014 # The HP-UX ksh and POSIX shell print the target directory to stdout
17015 # if CDPATH is set.
17016 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17017
17018 sed_quote_subst='$sed_quote_subst'
17019 double_quote_subst='$double_quote_subst'
17020 delay_variable_subst='$delay_variable_subst'
17021 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17022 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17023 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17024 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17025 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17026 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17027 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17028 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17029 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17030 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17031 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17032 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17033 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17034 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17035 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17036 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17037 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17038 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17039 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17040 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17041 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17042 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17043 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17044 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17045 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17046 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17047 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17048 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17049 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17050 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17051 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17053 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17054 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17055 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17056 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17057 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17058 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17059 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17060 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17061 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17062 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17063 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17064 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17065 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17066 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17067 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17068 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17069 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17070 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17071 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17072 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17073 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17074 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17075 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17076 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17077 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17078 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17079 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17080 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17081 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"`'
17082 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17083 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17084 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17085 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17086 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17087 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17088 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17089 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17090 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17091 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17092 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17093 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17094 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17095 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17096 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17097 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17098 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17099 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17100 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17101 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17102 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17103 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17104 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17105 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17106 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17107 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17108 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17109 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17110 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17111 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17112 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17113 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17114 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17115 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17116 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17117 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17118 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17119 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17120 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17121 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17122 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17123 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17124 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17125 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17126 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17127 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17128 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17129 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17130 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17131 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17132 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17133 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17134 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17135 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17136 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17137 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17138 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17139 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17140 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17141 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17142 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17143 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17144 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17145 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17146 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17147 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17148 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17149 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17150 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17151 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17152 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17153 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17154 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17155 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17156 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17157 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17158
17159 LTCC='$LTCC'
17160 LTCFLAGS='$LTCFLAGS'
17161 compiler='$compiler_DEFAULT'
17162
17163 # A function that is used when there is no print builtin or printf.
17164 func_fallback_echo ()
17165 {
17166 eval 'cat <<_LTECHO_EOF
17167 \$1
17168 _LTECHO_EOF'
17169 }
17170
17171 # Quote evaled strings.
17172 for var in SHELL \
17173 ECHO \
17174 PATH_SEPARATOR \
17175 SED \
17176 GREP \
17177 EGREP \
17178 FGREP \
17179 LD \
17180 NM \
17181 LN_S \
17182 lt_SP2NL \
17183 lt_NL2SP \
17184 reload_flag \
17185 FILECMD \
17186 OBJDUMP \
17187 deplibs_check_method \
17188 file_magic_cmd \
17189 file_magic_glob \
17190 want_nocaseglob \
17191 DLLTOOL \
17192 sharedlib_from_linklib_cmd \
17193 AR \
17194 archiver_list_spec \
17195 STRIP \
17196 RANLIB \
17197 CC \
17198 CFLAGS \
17199 compiler \
17200 lt_cv_sys_global_symbol_pipe \
17201 lt_cv_sys_global_symbol_to_cdecl \
17202 lt_cv_sys_global_symbol_to_import \
17203 lt_cv_sys_global_symbol_to_c_name_address \
17204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17205 lt_cv_nm_interface \
17206 nm_file_list_spec \
17207 lt_cv_truncate_bin \
17208 lt_prog_compiler_no_builtin_flag \
17209 lt_prog_compiler_pic \
17210 lt_prog_compiler_wl \
17211 lt_prog_compiler_static \
17212 lt_cv_prog_compiler_c_o \
17213 need_locks \
17214 MANIFEST_TOOL \
17215 DSYMUTIL \
17216 NMEDIT \
17217 LIPO \
17218 OTOOL \
17219 OTOOL64 \
17220 shrext_cmds \
17221 export_dynamic_flag_spec \
17222 whole_archive_flag_spec \
17223 compiler_needs_object \
17224 with_gnu_ld \
17225 allow_undefined_flag \
17226 no_undefined_flag \
17227 hardcode_libdir_flag_spec \
17228 hardcode_libdir_separator \
17229 exclude_expsyms \
17230 include_expsyms \
17231 file_list_spec \
17232 variables_saved_for_relink \
17233 libname_spec \
17234 library_names_spec \
17235 soname_spec \
17236 install_override_mode \
17237 finish_eval \
17238 old_striplib \
17239 striplib; do
17240 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17241 *[\\\\\\\`\\"\\\$]*)
17242 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17243 ;;
17244 *)
17245 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17246 ;;
17247 esac
17248 done
17249
17250 # Double-quote double-evaled strings.
17251 for var in reload_cmds \
17252 old_postinstall_cmds \
17253 old_postuninstall_cmds \
17254 old_archive_cmds \
17255 extract_expsyms_cmds \
17256 old_archive_from_new_cmds \
17257 old_archive_from_expsyms_cmds \
17258 archive_cmds \
17259 archive_expsym_cmds \
17260 module_cmds \
17261 module_expsym_cmds \
17262 export_symbols_cmds \
17263 prelink_cmds \
17264 postlink_cmds \
17265 postinstall_cmds \
17266 postuninstall_cmds \
17267 finish_cmds \
17268 sys_lib_search_path_spec \
17269 configure_time_dlsearch_path \
17270 configure_time_lt_sys_library_path; do
17271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17272 *[\\\\\\\`\\"\\\$]*)
17273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17274 ;;
17275 *)
17276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17277 ;;
17278 esac
17279 done
17280
17281 ac_aux_dir='$ac_aux_dir'
17282
17283 # See if we are running on zsh, and set the options that allow our
17284 # commands through without removal of \ escapes INIT.
17285 if test -n "\${ZSH_VERSION+set}"; then
17286 setopt NO_GLOB_SUBST
17287 fi
17288
17289
17290 PACKAGE='$PACKAGE'
17291 VERSION='$VERSION'
17292 RM='$RM'
17293 ofile='$ofile'
17294
17295
17296
17297
17298 _ACEOF
17299
17300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17301
17302 # Handling of arguments.
17303 for ac_config_target in $ac_config_targets
17304 do
17305 case $ac_config_target in
17306 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17307 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17308 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17309 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17310 "relp.pc") CONFIG_FILES="$CONFIG_FILES relp.pc" ;;
17311 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17312 "tests/set-envvars") CONFIG_FILES="$CONFIG_FILES tests/set-envvars" ;;
17313 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17314 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17315
17316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17317 esac
17318 done
17319
17320
17321 # If the user did not use the arguments to specify the items to instantiate,
17322 # then the envvar interface is used. Set only those that are not.
17323 # We use the long form for the default assignment because of an extremely
17324 # bizarre bug on SunOS 4.1.3.
17325 if $ac_need_defaults; then
17326 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17327 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17328 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17329 fi
17330
17331 # Have a temporary directory for convenience. Make it in the build tree
17332 # simply because there is no reason against having it here, and in addition,
17333 # creating and moving files from /tmp can sometimes cause problems.
17334 # Hook for its removal unless debugging.
17335 # Note that there is a small window in which the directory will not be cleaned:
17336 # after its creation but before its name has been assigned to `$tmp'.
17337 $debug ||
17338 {
17339 tmp= ac_tmp=
17340 trap 'exit_status=$?
17341 : "${ac_tmp:=$tmp}"
17342 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17343 ' 0
17344 trap 'as_fn_exit 1' 1 2 13 15
17345 }
17346 # Create a (secure) tmp directory for tmp files.
17347
17348 {
17349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17350 test -d "$tmp"
17351 } ||
17352 {
17353 tmp=./conf$$-$RANDOM
17354 (umask 077 && mkdir "$tmp")
17355 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17356 ac_tmp=$tmp
17357
17358 # Set up the scripts for CONFIG_FILES section.
17359 # No need to generate them if there are no CONFIG_FILES.
17360 # This happens for instance with `./config.status config.h'.
17361 if test -n "$CONFIG_FILES"; then
17362
17363
17364 ac_cr=`echo X | tr X '\015'`
17365 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17366 # But we know of no other shell where ac_cr would be empty at this
17367 # point, so we can use a bashism as a fallback.
17368 if test "x$ac_cr" = x; then
17369 eval ac_cr=\$\'\\r\'
17370 fi
17371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17373 ac_cs_awk_cr='\\r'
17374 else
17375 ac_cs_awk_cr=$ac_cr
17376 fi
17377
17378 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17379 _ACEOF
17380
17381
17382 {
17383 echo "cat >conf$$subs.awk <<_ACEOF" &&
17384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17385 echo "_ACEOF"
17386 } >conf$$subs.sh ||
17387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17389 ac_delim='%!_!# '
17390 for ac_last_try in false false false false false :; do
17391 . ./conf$$subs.sh ||
17392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17393
17394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17395 if test $ac_delim_n = $ac_delim_num; then
17396 break
17397 elif $ac_last_try; then
17398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17399 else
17400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17401 fi
17402 done
17403 rm -f conf$$subs.sh
17404
17405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17406 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17407 _ACEOF
17408 sed -n '
17409 h
17410 s/^/S["/; s/!.*/"]=/
17411 p
17412 g
17413 s/^[^!]*!//
17414 :repl
17415 t repl
17416 s/'"$ac_delim"'$//
17417 t delim
17418 :nl
17419 h
17420 s/\(.\{148\}\)..*/\1/
17421 t more1
17422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17423 p
17424 n
17425 b repl
17426 :more1
17427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17428 p
17429 g
17430 s/.\{148\}//
17431 t nl
17432 :delim
17433 h
17434 s/\(.\{148\}\)..*/\1/
17435 t more2
17436 s/["\\]/\\&/g; s/^/"/; s/$/"/
17437 p
17438 b
17439 :more2
17440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17441 p
17442 g
17443 s/.\{148\}//
17444 t delim
17445 ' <conf$$subs.awk | sed '
17446 /^[^""]/{
17447 N
17448 s/\n//
17449 }
17450 ' >>$CONFIG_STATUS || ac_write_fail=1
17451 rm -f conf$$subs.awk
17452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17453 _ACAWK
17454 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17455 for (key in S) S_is_set[key] = 1
17456 FS = ""
17457
17458 }
17459 {
17460 line = $ 0
17461 nfields = split(line, field, "@")
17462 substed = 0
17463 len = length(field[1])
17464 for (i = 2; i < nfields; i++) {
17465 key = field[i]
17466 keylen = length(key)
17467 if (S_is_set[key]) {
17468 value = S[key]
17469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17470 len += length(value) + length(field[++i])
17471 substed = 1
17472 } else
17473 len += 1 + keylen
17474 }
17475
17476 print line
17477 }
17478
17479 _ACAWK
17480 _ACEOF
17481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17484 else
17485 cat
17486 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17488 _ACEOF
17489
17490 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17491 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17492 # trailing colons and then remove the whole line if VPATH becomes empty
17493 # (actually we leave an empty line to preserve line numbers).
17494 if test "x$srcdir" = x.; then
17495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17496 h
17497 s///
17498 s/^/:/
17499 s/[ ]*$/:/
17500 s/:\$(srcdir):/:/g
17501 s/:\${srcdir}:/:/g
17502 s/:@srcdir@:/:/g
17503 s/^:*//
17504 s/:*$//
17505 x
17506 s/\(=[ ]*\).*/\1/
17507 G
17508 s/\n//
17509 s/^[^=]*=[ ]*$//
17510 }'
17511 fi
17512
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 fi # test -n "$CONFIG_FILES"
17515
17516 # Set up the scripts for CONFIG_HEADERS section.
17517 # No need to generate them if there are no CONFIG_HEADERS.
17518 # This happens for instance with `./config.status Makefile'.
17519 if test -n "$CONFIG_HEADERS"; then
17520 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17521 BEGIN {
17522 _ACEOF
17523
17524 # Transform confdefs.h into an awk script `defines.awk', embedded as
17525 # here-document in config.status, that substitutes the proper values into
17526 # config.h.in to produce config.h.
17527
17528 # Create a delimiter string that does not exist in confdefs.h, to ease
17529 # handling of long lines.
17530 ac_delim='%!_!# '
17531 for ac_last_try in false false :; do
17532 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17533 if test -z "$ac_tt"; then
17534 break
17535 elif $ac_last_try; then
17536 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17537 else
17538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17539 fi
17540 done
17541
17542 # For the awk script, D is an array of macro values keyed by name,
17543 # likewise P contains macro parameters if any. Preserve backslash
17544 # newline sequences.
17545
17546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17547 sed -n '
17548 s/.\{148\}/&'"$ac_delim"'/g
17549 t rset
17550 :rset
17551 s/^[ ]*#[ ]*define[ ][ ]*/ /
17552 t def
17553 d
17554 :def
17555 s/\\$//
17556 t bsnl
17557 s/["\\]/\\&/g
17558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17559 D["\1"]=" \3"/p
17560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17561 d
17562 :bsnl
17563 s/["\\]/\\&/g
17564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17565 D["\1"]=" \3\\\\\\n"\\/p
17566 t cont
17567 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17568 t cont
17569 d
17570 :cont
17571 n
17572 s/.\{148\}/&'"$ac_delim"'/g
17573 t clear
17574 :clear
17575 s/\\$//
17576 t bsnlc
17577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17578 d
17579 :bsnlc
17580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17581 b cont
17582 ' <confdefs.h | sed '
17583 s/'"$ac_delim"'/"\\\
17584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17585
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 for (key in D) D_is_set[key] = 1
17588 FS = ""
17589 }
17590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17591 line = \$ 0
17592 split(line, arg, " ")
17593 if (arg[1] == "#") {
17594 defundef = arg[2]
17595 mac1 = arg[3]
17596 } else {
17597 defundef = substr(arg[1], 2)
17598 mac1 = arg[2]
17599 }
17600 split(mac1, mac2, "(") #)
17601 macro = mac2[1]
17602 prefix = substr(line, 1, index(line, defundef) - 1)
17603 if (D_is_set[macro]) {
17604 # Preserve the white space surrounding the "#".
17605 print prefix "define", macro P[macro] D[macro]
17606 next
17607 } else {
17608 # Replace #undef with comments. This is necessary, for example,
17609 # in the case of _POSIX_SOURCE, which is predefined and required
17610 # on some systems where configure will not decide to define it.
17611 if (defundef == "undef") {
17612 print "/*", prefix defundef, macro, "*/"
17613 next
17614 }
17615 }
17616 }
17617 { print }
17618 _ACAWK
17619 _ACEOF
17620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17621 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17622 fi # test -n "$CONFIG_HEADERS"
17623
17624
17625 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17626 shift
17627 for ac_tag
17628 do
17629 case $ac_tag in
17630 :[FHLC]) ac_mode=$ac_tag; continue;;
17631 esac
17632 case $ac_mode$ac_tag in
17633 :[FHL]*:*);;
17634 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17635 :[FH]-) ac_tag=-:-;;
17636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17637 esac
17638 ac_save_IFS=$IFS
17639 IFS=:
17640 set x $ac_tag
17641 IFS=$ac_save_IFS
17642 shift
17643 ac_file=$1
17644 shift
17645
17646 case $ac_mode in
17647 :L) ac_source=$1;;
17648 :[FH])
17649 ac_file_inputs=
17650 for ac_f
17651 do
17652 case $ac_f in
17653 -) ac_f="$ac_tmp/stdin";;
17654 *) # Look for the file first in the build tree, then in the source tree
17655 # (if the path is not absolute). The absolute path cannot be DOS-style,
17656 # because $ac_f cannot contain `:'.
17657 test -f "$ac_f" ||
17658 case $ac_f in
17659 [\\/$]*) false;;
17660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17661 esac ||
17662 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17663 esac
17664 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17665 as_fn_append ac_file_inputs " '$ac_f'"
17666 done
17667
17668 # Let's still pretend it is `configure' which instantiates (i.e., don't
17669 # use $as_me), people would be surprised to read:
17670 # /* config.h. Generated by config.status. */
17671 configure_input='Generated from '`
17672 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17673 `' by configure.'
17674 if test x"$ac_file" != x-; then
17675 configure_input="$ac_file. $configure_input"
17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17677 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17678 fi
17679 # Neutralize special characters interpreted by sed in replacement strings.
17680 case $configure_input in #(
17681 *\&* | *\|* | *\\* )
17682 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17684 *) ac_sed_conf_input=$configure_input;;
17685 esac
17686
17687 case $ac_tag in
17688 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17690 esac
17691 ;;
17692 esac
17693
17694 ac_dir=`$as_dirname -- "$ac_file" ||
17695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17696 X"$ac_file" : 'X\(//\)[^/]' \| \
17697 X"$ac_file" : 'X\(//\)$' \| \
17698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17699 printf "%s\n" X"$ac_file" |
17700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17701 s//\1/
17702 q
17703 }
17704 /^X\(\/\/\)[^/].*/{
17705 s//\1/
17706 q
17707 }
17708 /^X\(\/\/\)$/{
17709 s//\1/
17710 q
17711 }
17712 /^X\(\/\).*/{
17713 s//\1/
17714 q
17715 }
17716 s/.*/./; q'`
17717 as_dir="$ac_dir"; as_fn_mkdir_p
17718 ac_builddir=.
17719
17720 case "$ac_dir" in
17721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17722 *)
17723 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17724 # A ".." for each directory in $ac_dir_suffix.
17725 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17726 case $ac_top_builddir_sub in
17727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17729 esac ;;
17730 esac
17731 ac_abs_top_builddir=$ac_pwd
17732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17733 # for backward compatibility:
17734 ac_top_builddir=$ac_top_build_prefix
17735
17736 case $srcdir in
17737 .) # We are building in place.
17738 ac_srcdir=.
17739 ac_top_srcdir=$ac_top_builddir_sub
17740 ac_abs_top_srcdir=$ac_pwd ;;
17741 [\\/]* | ?:[\\/]* ) # Absolute name.
17742 ac_srcdir=$srcdir$ac_dir_suffix;
17743 ac_top_srcdir=$srcdir
17744 ac_abs_top_srcdir=$srcdir ;;
17745 *) # Relative name.
17746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17747 ac_top_srcdir=$ac_top_build_prefix$srcdir
17748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17749 esac
17750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17751
17752
17753 case $ac_mode in
17754 :F)
17755 #
17756 # CONFIG_FILE
17757 #
17758
17759 case $INSTALL in
17760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17761 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17762 esac
17763 ac_MKDIR_P=$MKDIR_P
17764 case $MKDIR_P in
17765 [\\/$]* | ?:[\\/]* ) ;;
17766 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17767 esac
17768 _ACEOF
17769
17770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 # If the template does not know about datarootdir, expand it.
17772 # FIXME: This hack should be removed a few years after 2.60.
17773 ac_datarootdir_hack=; ac_datarootdir_seen=
17774 ac_sed_dataroot='
17775 /datarootdir/ {
17776 p
17777 q
17778 }
17779 /@datadir@/p
17780 /@docdir@/p
17781 /@infodir@/p
17782 /@localedir@/p
17783 /@mandir@/p'
17784 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17785 *datarootdir*) ac_datarootdir_seen=yes;;
17786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17788 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17789 _ACEOF
17790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17791 ac_datarootdir_hack='
17792 s&@datadir@&$datadir&g
17793 s&@docdir@&$docdir&g
17794 s&@infodir@&$infodir&g
17795 s&@localedir@&$localedir&g
17796 s&@mandir@&$mandir&g
17797 s&\\\${datarootdir}&$datarootdir&g' ;;
17798 esac
17799 _ACEOF
17800
17801 # Neutralize VPATH when `$srcdir' = `.'.
17802 # Shell code in configure.ac might set extrasub.
17803 # FIXME: do we really want to maintain this feature?
17804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17805 ac_sed_extra="$ac_vpsub
17806 $extrasub
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 :t
17810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17811 s|@configure_input@|$ac_sed_conf_input|;t t
17812 s&@top_builddir@&$ac_top_builddir_sub&;t t
17813 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17814 s&@srcdir@&$ac_srcdir&;t t
17815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17816 s&@top_srcdir@&$ac_top_srcdir&;t t
17817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17818 s&@builddir@&$ac_builddir&;t t
17819 s&@abs_builddir@&$ac_abs_builddir&;t t
17820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17821 s&@INSTALL@&$ac_INSTALL&;t t
17822 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17823 $ac_datarootdir_hack
17824 "
17825 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17826 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17827
17828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17829 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17830 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17831 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17833 which seems to be undefined. Please make sure it is defined" >&5
17834 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17835 which seems to be undefined. Please make sure it is defined" >&2;}
17836
17837 rm -f "$ac_tmp/stdin"
17838 case $ac_file in
17839 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17840 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17841 esac \
17842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17843 ;;
17844 :H)
17845 #
17846 # CONFIG_HEADER
17847 #
17848 if test x"$ac_file" != x-; then
17849 {
17850 printf "%s\n" "/* $configure_input */" >&1 \
17851 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17852 } >"$ac_tmp/config.h" \
17853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17854 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17856 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17857 else
17858 rm -f "$ac_file"
17859 mv "$ac_tmp/config.h" "$ac_file" \
17860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17861 fi
17862 else
17863 printf "%s\n" "/* $configure_input */" >&1 \
17864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17865 || as_fn_error $? "could not create -" "$LINENO" 5
17866 fi
17867 # Compute "$ac_file"'s index in $config_headers.
17868 _am_arg="$ac_file"
17869 _am_stamp_count=1
17870 for _am_header in $config_headers :; do
17871 case $_am_header in
17872 $_am_arg | $_am_arg:* )
17873 break ;;
17874 * )
17875 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17876 esac
17877 done
17878 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17879 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880 X"$_am_arg" : 'X\(//\)[^/]' \| \
17881 X"$_am_arg" : 'X\(//\)$' \| \
17882 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17883 printf "%s\n" X"$_am_arg" |
17884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17885 s//\1/
17886 q
17887 }
17888 /^X\(\/\/\)[^/].*/{
17889 s//\1/
17890 q
17891 }
17892 /^X\(\/\/\)$/{
17893 s//\1/
17894 q
17895 }
17896 /^X\(\/\).*/{
17897 s//\1/
17898 q
17899 }
17900 s/.*/./; q'`/stamp-h$_am_stamp_count
17901 ;;
17902
17903 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17904 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17905 ;;
17906 esac
17907
17908
17909 case $ac_file$ac_mode in
17910 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17911 # Older Autoconf quotes --file arguments for eval, but not when files
17912 # are listed without --file. Let's play safe and only enable the eval
17913 # if we detect the quoting.
17914 # TODO: see whether this extra hack can be removed once we start
17915 # requiring Autoconf 2.70 or later.
17916 case $CONFIG_FILES in #(
17917 *\'*) :
17918 eval set x "$CONFIG_FILES" ;; #(
17919 *) :
17920 set x $CONFIG_FILES ;; #(
17921 *) :
17922 ;;
17923 esac
17924 shift
17925 # Used to flag and report bootstrapping failures.
17926 am_rc=0
17927 for am_mf
17928 do
17929 # Strip MF so we end up with the name of the file.
17930 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17931 # Check whether this is an Automake generated Makefile which includes
17932 # dependency-tracking related rules and includes.
17933 # Grep'ing the whole file directly is not great: AIX grep has a line
17934 # limit of 2048, but all sed's we know have understand at least 4000.
17935 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17936 || continue
17937 am_dirpart=`$as_dirname -- "$am_mf" ||
17938 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17939 X"$am_mf" : 'X\(//\)[^/]' \| \
17940 X"$am_mf" : 'X\(//\)$' \| \
17941 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17942 printf "%s\n" X"$am_mf" |
17943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17944 s//\1/
17945 q
17946 }
17947 /^X\(\/\/\)[^/].*/{
17948 s//\1/
17949 q
17950 }
17951 /^X\(\/\/\)$/{
17952 s//\1/
17953 q
17954 }
17955 /^X\(\/\).*/{
17956 s//\1/
17957 q
17958 }
17959 s/.*/./; q'`
17960 am_filepart=`$as_basename -- "$am_mf" ||
17961 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17962 X"$am_mf" : 'X\(//\)$' \| \
17963 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17964 printf "%s\n" X/"$am_mf" |
17965 sed '/^.*\/\([^/][^/]*\)\/*$/{
17966 s//\1/
17967 q
17968 }
17969 /^X\/\(\/\/\)$/{
17970 s//\1/
17971 q
17972 }
17973 /^X\/\(\/\).*/{
17974 s//\1/
17975 q
17976 }
17977 s/.*/./; q'`
17978 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17979 && sed -e '/# am--include-marker/d' "$am_filepart" \
17980 | $MAKE -f - am--depfiles" >&5
17981 (cd "$am_dirpart" \
17982 && sed -e '/# am--include-marker/d' "$am_filepart" \
17983 | $MAKE -f - am--depfiles) >&5 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } || am_rc=$?
17987 done
17988 if test $am_rc -ne 0; then
17989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17990 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17991 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17992 for automatic dependency tracking. If GNU make was not used, consider
17993 re-running the configure script with MAKE=\"gmake\" (or whatever is
17994 necessary). You can also try re-running configure with the
17995 '--disable-dependency-tracking' option to at least be able to build
17996 the package (albeit without support for automatic dependency tracking).
17997 See \`config.log' for more details" "$LINENO" 5; }
17998 fi
17999 { am_dirpart=; unset am_dirpart;}
18000 { am_filepart=; unset am_filepart;}
18001 { am_mf=; unset am_mf;}
18002 { am_rc=; unset am_rc;}
18003 rm -f conftest-deps.mk
18004 }
18005 ;;
18006 "libtool":C)
18007
18008 # See if we are running on zsh, and set the options that allow our
18009 # commands through without removal of \ escapes.
18010 if test -n "${ZSH_VERSION+set}"; then
18011 setopt NO_GLOB_SUBST
18012 fi
18013
18014 cfgfile=${ofile}T
18015 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18016 $RM "$cfgfile"
18017
18018 cat <<_LT_EOF >> "$cfgfile"
18019 #! $SHELL
18020 # Generated automatically by $as_me ($PACKAGE) $VERSION
18021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18022
18023 # Provide generalized library-building support services.
18024 # Written by Gordon Matzigkeit, 1996
18025
18026 # Copyright (C) 2014 Free Software Foundation, Inc.
18027 # This is free software; see the source for copying conditions. There is NO
18028 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18029
18030 # GNU Libtool is free software; you can redistribute it and/or modify
18031 # it under the terms of the GNU General Public License as published by
18032 # the Free Software Foundation; either version 2 of of the License, or
18033 # (at your option) any later version.
18034 #
18035 # As a special exception to the GNU General Public License, if you
18036 # distribute this file as part of a program or library that is built
18037 # using GNU Libtool, you may include this file under the same
18038 # distribution terms that you use for the rest of that program.
18039 #
18040 # GNU Libtool is distributed in the hope that it will be useful, but
18041 # WITHOUT ANY WARRANTY; without even the implied warranty of
18042 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18043 # GNU General Public License for more details.
18044 #
18045 # You should have received a copy of the GNU General Public License
18046 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18047
18048
18049 # The names of the tagged configurations supported by this script.
18050 available_tags=''
18051
18052 # Configured defaults for sys_lib_dlsearch_path munging.
18053 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18054
18055 # ### BEGIN LIBTOOL CONFIG
18056
18057 # Which release of libtool.m4 was used?
18058 macro_version=$macro_version
18059 macro_revision=$macro_revision
18060
18061 # Whether or not to build shared libraries.
18062 build_libtool_libs=$enable_shared
18063
18064 # Whether or not to build static libraries.
18065 build_old_libs=$enable_static
18066
18067 # What type of objects to build.
18068 pic_mode=$pic_mode
18069
18070 # Whether or not to optimize for fast installation.
18071 fast_install=$enable_fast_install
18072
18073 # Shared archive member basename,for filename based shared library versioning on AIX.
18074 shared_archive_member_spec=$shared_archive_member_spec
18075
18076 # Shell to use when invoking shell scripts.
18077 SHELL=$lt_SHELL
18078
18079 # An echo program that protects backslashes.
18080 ECHO=$lt_ECHO
18081
18082 # The PATH separator for the build system.
18083 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18084
18085 # The host system.
18086 host_alias=$host_alias
18087 host=$host
18088 host_os=$host_os
18089
18090 # The build system.
18091 build_alias=$build_alias
18092 build=$build
18093 build_os=$build_os
18094
18095 # A sed program that does not truncate output.
18096 SED=$lt_SED
18097
18098 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18099 Xsed="\$SED -e 1s/^X//"
18100
18101 # A grep program that handles long lines.
18102 GREP=$lt_GREP
18103
18104 # An ERE matcher.
18105 EGREP=$lt_EGREP
18106
18107 # A literal string matcher.
18108 FGREP=$lt_FGREP
18109
18110 # A BSD- or MS-compatible name lister.
18111 NM=$lt_NM
18112
18113 # Whether we need soft or hard links.
18114 LN_S=$lt_LN_S
18115
18116 # What is the maximum length of a command?
18117 max_cmd_len=$max_cmd_len
18118
18119 # Object file suffix (normally "o").
18120 objext=$ac_objext
18121
18122 # Executable file suffix (normally "").
18123 exeext=$exeext
18124
18125 # whether the shell understands "unset".
18126 lt_unset=$lt_unset
18127
18128 # turn spaces into newlines.
18129 SP2NL=$lt_lt_SP2NL
18130
18131 # turn newlines into spaces.
18132 NL2SP=$lt_lt_NL2SP
18133
18134 # convert \$build file names to \$host format.
18135 to_host_file_cmd=$lt_cv_to_host_file_cmd
18136
18137 # convert \$build files to toolchain format.
18138 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18139
18140 # A file(cmd) program that detects file types.
18141 FILECMD=$lt_FILECMD
18142
18143 # An object symbol dumper.
18144 OBJDUMP=$lt_OBJDUMP
18145
18146 # Method to check whether dependent libraries are shared objects.
18147 deplibs_check_method=$lt_deplibs_check_method
18148
18149 # Command to use when deplibs_check_method = "file_magic".
18150 file_magic_cmd=$lt_file_magic_cmd
18151
18152 # How to find potential files when deplibs_check_method = "file_magic".
18153 file_magic_glob=$lt_file_magic_glob
18154
18155 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18156 want_nocaseglob=$lt_want_nocaseglob
18157
18158 # DLL creation program.
18159 DLLTOOL=$lt_DLLTOOL
18160
18161 # Command to associate shared and link libraries.
18162 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18163
18164 # The archiver.
18165 AR=$lt_AR
18166
18167 # Flags to create an archive (by configure).
18168 lt_ar_flags=$lt_ar_flags
18169
18170 # Flags to create an archive.
18171 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18172
18173 # How to feed a file listing to the archiver.
18174 archiver_list_spec=$lt_archiver_list_spec
18175
18176 # A symbol stripping program.
18177 STRIP=$lt_STRIP
18178
18179 # Commands used to install an old-style archive.
18180 RANLIB=$lt_RANLIB
18181 old_postinstall_cmds=$lt_old_postinstall_cmds
18182 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18183
18184 # Whether to use a lock for old archive extraction.
18185 lock_old_archive_extraction=$lock_old_archive_extraction
18186
18187 # A C compiler.
18188 LTCC=$lt_CC
18189
18190 # LTCC compiler flags.
18191 LTCFLAGS=$lt_CFLAGS
18192
18193 # Take the output of nm and produce a listing of raw symbols and C names.
18194 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18195
18196 # Transform the output of nm in a proper C declaration.
18197 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18198
18199 # Transform the output of nm into a list of symbols to manually relocate.
18200 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18201
18202 # Transform the output of nm in a C name address pair.
18203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18204
18205 # Transform the output of nm in a C name address pair when lib prefix is needed.
18206 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18207
18208 # The name lister interface.
18209 nm_interface=$lt_lt_cv_nm_interface
18210
18211 # Specify filename containing input files for \$NM.
18212 nm_file_list_spec=$lt_nm_file_list_spec
18213
18214 # The root where to search for dependent libraries,and where our libraries should be installed.
18215 lt_sysroot=$lt_sysroot
18216
18217 # Command to truncate a binary pipe.
18218 lt_truncate_bin=$lt_lt_cv_truncate_bin
18219
18220 # The name of the directory that contains temporary libtool files.
18221 objdir=$objdir
18222
18223 # Used to examine libraries when file_magic_cmd begins with "file".
18224 MAGIC_CMD=$MAGIC_CMD
18225
18226 # Must we lock files when doing compilation?
18227 need_locks=$lt_need_locks
18228
18229 # Manifest tool.
18230 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18231
18232 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18233 DSYMUTIL=$lt_DSYMUTIL
18234
18235 # Tool to change global to local symbols on Mac OS X.
18236 NMEDIT=$lt_NMEDIT
18237
18238 # Tool to manipulate fat objects and archives on Mac OS X.
18239 LIPO=$lt_LIPO
18240
18241 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18242 OTOOL=$lt_OTOOL
18243
18244 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18245 OTOOL64=$lt_OTOOL64
18246
18247 # Old archive suffix (normally "a").
18248 libext=$libext
18249
18250 # Shared library suffix (normally ".so").
18251 shrext_cmds=$lt_shrext_cmds
18252
18253 # The commands to extract the exported symbol list from a shared archive.
18254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18255
18256 # Variables whose values should be saved in libtool wrapper scripts and
18257 # restored at link time.
18258 variables_saved_for_relink=$lt_variables_saved_for_relink
18259
18260 # Do we need the "lib" prefix for modules?
18261 need_lib_prefix=$need_lib_prefix
18262
18263 # Do we need a version for libraries?
18264 need_version=$need_version
18265
18266 # Library versioning type.
18267 version_type=$version_type
18268
18269 # Shared library runtime path variable.
18270 runpath_var=$runpath_var
18271
18272 # Shared library path variable.
18273 shlibpath_var=$shlibpath_var
18274
18275 # Is shlibpath searched before the hard-coded library search path?
18276 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18277
18278 # Format of library name prefix.
18279 libname_spec=$lt_libname_spec
18280
18281 # List of archive names. First name is the real one, the rest are links.
18282 # The last name is the one that the linker finds with -lNAME
18283 library_names_spec=$lt_library_names_spec
18284
18285 # The coded name of the library, if different from the real name.
18286 soname_spec=$lt_soname_spec
18287
18288 # Permission mode override for installation of shared libraries.
18289 install_override_mode=$lt_install_override_mode
18290
18291 # Command to use after installation of a shared archive.
18292 postinstall_cmds=$lt_postinstall_cmds
18293
18294 # Command to use after uninstallation of a shared archive.
18295 postuninstall_cmds=$lt_postuninstall_cmds
18296
18297 # Commands used to finish a libtool library installation in a directory.
18298 finish_cmds=$lt_finish_cmds
18299
18300 # As "finish_cmds", except a single script fragment to be evaled but
18301 # not shown.
18302 finish_eval=$lt_finish_eval
18303
18304 # Whether we should hardcode library paths into libraries.
18305 hardcode_into_libs=$hardcode_into_libs
18306
18307 # Compile-time system search path for libraries.
18308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18309
18310 # Detected run-time system search path for libraries.
18311 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18312
18313 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18314 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18315
18316 # Whether dlopen is supported.
18317 dlopen_support=$enable_dlopen
18318
18319 # Whether dlopen of programs is supported.
18320 dlopen_self=$enable_dlopen_self
18321
18322 # Whether dlopen of statically linked programs is supported.
18323 dlopen_self_static=$enable_dlopen_self_static
18324
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18328
18329
18330 # The linker used to build libraries.
18331 LD=$lt_LD
18332
18333 # How to create reloadable object files.
18334 reload_flag=$lt_reload_flag
18335 reload_cmds=$lt_reload_cmds
18336
18337 # Commands used to build an old-style archive.
18338 old_archive_cmds=$lt_old_archive_cmds
18339
18340 # A language specific compiler.
18341 CC=$lt_compiler
18342
18343 # Is the compiler the GNU compiler?
18344 with_gcc=$GCC
18345
18346 # Compiler flag to turn off builtin functions.
18347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18348
18349 # Additional compiler flags for building library objects.
18350 pic_flag=$lt_lt_prog_compiler_pic
18351
18352 # How to pass a linker flag through the compiler.
18353 wl=$lt_lt_prog_compiler_wl
18354
18355 # Compiler flag to prevent dynamic linking.
18356 link_static_flag=$lt_lt_prog_compiler_static
18357
18358 # Does compiler simultaneously support -c and -o options?
18359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18360
18361 # Whether or not to add -lc for building shared libraries.
18362 build_libtool_need_lc=$archive_cmds_need_lc
18363
18364 # Whether or not to disallow shared libs when runtime libs are static.
18365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18366
18367 # Compiler flag to allow reflexive dlopens.
18368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18369
18370 # Compiler flag to generate shared objects directly from archives.
18371 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18372
18373 # Whether the compiler copes with passing no objects directly.
18374 compiler_needs_object=$lt_compiler_needs_object
18375
18376 # Create an old-style archive from a shared archive.
18377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18378
18379 # Create a temporary old-style archive to link instead of a shared archive.
18380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18381
18382 # Commands used to build a shared archive.
18383 archive_cmds=$lt_archive_cmds
18384 archive_expsym_cmds=$lt_archive_expsym_cmds
18385
18386 # Commands used to build a loadable module if different from building
18387 # a shared archive.
18388 module_cmds=$lt_module_cmds
18389 module_expsym_cmds=$lt_module_expsym_cmds
18390
18391 # Whether we are building with GNU ld or not.
18392 with_gnu_ld=$lt_with_gnu_ld
18393
18394 # Flag that allows shared libraries with undefined symbols to be built.
18395 allow_undefined_flag=$lt_allow_undefined_flag
18396
18397 # Flag that enforces no undefined symbols.
18398 no_undefined_flag=$lt_no_undefined_flag
18399
18400 # Flag to hardcode \$libdir into a binary during linking.
18401 # This must work even if \$libdir does not exist
18402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18403
18404 # Whether we need a single "-rpath" flag with a separated argument.
18405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18406
18407 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18408 # DIR into the resulting binary.
18409 hardcode_direct=$hardcode_direct
18410
18411 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18412 # DIR into the resulting binary and the resulting library dependency is
18413 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18414 # library is relocated.
18415 hardcode_direct_absolute=$hardcode_direct_absolute
18416
18417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18418 # into the resulting binary.
18419 hardcode_minus_L=$hardcode_minus_L
18420
18421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18422 # into the resulting binary.
18423 hardcode_shlibpath_var=$hardcode_shlibpath_var
18424
18425 # Set to "yes" if building a shared library automatically hardcodes DIR
18426 # into the library and all subsequent libraries and executables linked
18427 # against it.
18428 hardcode_automatic=$hardcode_automatic
18429
18430 # Set to yes if linker adds runtime paths of dependent libraries
18431 # to runtime path list.
18432 inherit_rpath=$inherit_rpath
18433
18434 # Whether libtool must link a program against all its dependency libraries.
18435 link_all_deplibs=$link_all_deplibs
18436
18437 # Set to "yes" if exported symbols are required.
18438 always_export_symbols=$always_export_symbols
18439
18440 # The commands to list exported symbols.
18441 export_symbols_cmds=$lt_export_symbols_cmds
18442
18443 # Symbols that should not be listed in the preloaded symbols.
18444 exclude_expsyms=$lt_exclude_expsyms
18445
18446 # Symbols that must always be exported.
18447 include_expsyms=$lt_include_expsyms
18448
18449 # Commands necessary for linking programs (against libraries) with templates.
18450 prelink_cmds=$lt_prelink_cmds
18451
18452 # Commands necessary for finishing linking programs.
18453 postlink_cmds=$lt_postlink_cmds
18454
18455 # Specify filename containing input files.
18456 file_list_spec=$lt_file_list_spec
18457
18458 # How to hardcode a shared library path into an executable.
18459 hardcode_action=$hardcode_action
18460
18461 # ### END LIBTOOL CONFIG
18462
18463 _LT_EOF
18464
18465 cat <<'_LT_EOF' >> "$cfgfile"
18466
18467 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18468
18469 # func_munge_path_list VARIABLE PATH
18470 # -----------------------------------
18471 # VARIABLE is name of variable containing _space_ separated list of
18472 # directories to be munged by the contents of PATH, which is string
18473 # having a format:
18474 # "DIR[:DIR]:"
18475 # string "DIR[ DIR]" will be prepended to VARIABLE
18476 # ":DIR[:DIR]"
18477 # string "DIR[ DIR]" will be appended to VARIABLE
18478 # "DIRP[:DIRP]::[DIRA:]DIRA"
18479 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18480 # "DIRA[ DIRA]" will be appended to VARIABLE
18481 # "DIR[:DIR]"
18482 # VARIABLE will be replaced by "DIR[ DIR]"
18483 func_munge_path_list ()
18484 {
18485 case x$2 in
18486 x)
18487 ;;
18488 *:)
18489 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18490 ;;
18491 x:*)
18492 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18493 ;;
18494 *::*)
18495 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18496 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18497 ;;
18498 *)
18499 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18500 ;;
18501 esac
18502 }
18503
18504
18505 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18506 func_cc_basename ()
18507 {
18508 for cc_temp in $*""; do
18509 case $cc_temp in
18510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18512 \-*) ;;
18513 *) break;;
18514 esac
18515 done
18516 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18517 }
18518
18519
18520 # ### END FUNCTIONS SHARED WITH CONFIGURE
18521
18522 _LT_EOF
18523
18524 case $host_os in
18525 aix3*)
18526 cat <<\_LT_EOF >> "$cfgfile"
18527 # AIX sometimes has problems with the GCC collect2 program. For some
18528 # reason, if we set the COLLECT_NAMES environment variable, the problems
18529 # vanish in a puff of smoke.
18530 if test set != "${COLLECT_NAMES+set}"; then
18531 COLLECT_NAMES=
18532 export COLLECT_NAMES
18533 fi
18534 _LT_EOF
18535 ;;
18536 esac
18537
18538
18539
18540 ltmain=$ac_aux_dir/ltmain.sh
18541
18542
18543 # We use sed instead of cat because bash on DJGPP gets confused if
18544 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18545 # text mode, it properly converts lines to CR/LF. This bash problem
18546 # is reportedly fixed, but why not run on old versions too?
18547 $SED '$q' "$ltmain" >> "$cfgfile" \
18548 || (rm -f "$cfgfile"; exit 1)
18549
18550 mv -f "$cfgfile" "$ofile" ||
18551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18552 chmod +x "$ofile"
18553
18554 ;;
18555
18556 esac
18557 done # for ac_tag
18558
18559
18560 as_fn_exit 0
18561 _ACEOF
18562 ac_clean_files=$ac_clean_files_save
18563
18564 test $ac_write_fail = 0 ||
18565 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18566
18567
18568 # configure is writing to config.log, and then calls config.status.
18569 # config.status does its own redirection, appending to config.log.
18570 # Unfortunately, on DOS this fails, as config.log is still kept open
18571 # by configure, so config.status won't be able to write to it; its
18572 # output is simply discarded. So we exec the FD to /dev/null,
18573 # effectively closing config.log, so it can be properly (re)opened and
18574 # appended to by config.status. When coming back to configure, we
18575 # need to make the FD available again.
18576 if test "$no_create" != yes; then
18577 ac_cs_success=:
18578 ac_config_status_args=
18579 test "$silent" = yes &&
18580 ac_config_status_args="$ac_config_status_args --quiet"
18581 exec 5>/dev/null
18582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18583 exec 5>>config.log
18584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18585 # would make configure fail if this is the last instruction.
18586 $ac_cs_success || as_fn_exit 1
18587 fi
18588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18590 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18591 fi
18592
18593
18594
18595 echo "*****************************************************"
18596 echo "librelp will be compiled with the following settings:"
18597 echo
18598 echo "run valgrind in testbench: $enable_valgrind"
18599 echo "Debug mode enabled: $enable_debug"
18600 echo "GNUTLS enabled: $enable_tls"
18601 echo "GNUTLS authentication supported: $have_gnutls_certificate_set_verify_function"
18602 echo "OPENSSL enabled: $enable_tls_openssl"
18603 echo "generic TLS tests enabled: $enable_tls_generic"
18604
18605