Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libdmapsharing 3.9.14.
4 #
5 # Report bugs to <https://www.flyn.org/projects/libdmapsharing/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://www.flyn.org/projects/libdmapsharing/ about
283 $0: your system, including any error possibly output before
284 $0: this message. Then install a modern shell, or manually
285 $0: run the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593 as_awk_strverscmp='
594 # Use only awk features that work with 7th edition Unix awk (1978).
595 # My, what an old awk you have, Mr. Solaris!
596 END {
597 while (length(v1) && length(v2)) {
598 # Set d1 to be the next thing to compare from v1, and likewise for d2.
599 # Normally this is a single character, but if v1 and v2 contain digits,
600 # compare them as integers and fractions as strverscmp does.
601 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
602 # Split v1 and v2 into their leading digit string components d1 and d2,
603 # and advance v1 and v2 past the leading digit strings.
604 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
605 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
606 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
607 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
608 if (d1 ~ /^0/) {
609 if (d2 ~ /^0/) {
610 # Compare two fractions.
611 while (d1 ~ /^0/ && d2 ~ /^0/) {
612 d1 = substr(d1, 2); len1--
613 d2 = substr(d2, 2); len2--
614 }
615 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
616 # The two components differ in length, and the common prefix
617 # contains only leading zeros. Consider the longer to be less.
618 d1 = -len1
619 d2 = -len2
620 } else {
621 # Otherwise, compare as strings.
622 d1 = "x" d1
623 d2 = "x" d2
624 }
625 } else {
626 # A fraction is less than an integer.
627 exit 1
628 }
629 } else {
630 if (d2 ~ /^0/) {
631 # An integer is greater than a fraction.
632 exit 2
633 } else {
634 # Compare two integers.
635 d1 += 0
636 d2 += 0
637 }
638 }
639 } else {
640 # The normal case, without worrying about digits.
641 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
642 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
643 }
644 if (d1 < d2) exit 1
645 if (d1 > d2) exit 2
646 }
647 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
648 # which mishandles some comparisons of empty strings to integers.
649 if (length(v2)) exit 1
650 if (length(v1)) exit 2
651 }
652 '
653
654 test -n "$DJDIR" || exec 7<&0 </dev/null
655 exec 6>&1
656
657 # Name of the host.
658 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
659 # so uname gets run too.
660 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
661
662 #
663 # Initializations.
664 #
665 ac_default_prefix=/usr/local
666 ac_clean_files=
667 ac_config_libobj_dir=.
668 LIBOBJS=
669 cross_compiling=no
670 subdirs=
671 MFLAGS=
672 MAKEFLAGS=
673
674 # Identity of this package.
675 PACKAGE_NAME='libdmapsharing'
676 PACKAGE_TARNAME='libdmapsharing'
677 PACKAGE_VERSION='3.9.14'
678 PACKAGE_STRING='libdmapsharing 3.9.14'
679 PACKAGE_BUGREPORT='https://www.flyn.org/projects/libdmapsharing/'
680 PACKAGE_URL=''
681
682 # Factoring default headers for most tests.
683 ac_includes_default="\
684 #include <stddef.h>
685 #ifdef HAVE_STDIO_H
686 # include <stdio.h>
687 #endif
688 #ifdef HAVE_STDLIB_H
689 # include <stdlib.h>
690 #endif
691 #ifdef HAVE_STRING_H
692 # include <string.h>
693 #endif
694 #ifdef HAVE_INTTYPES_H
695 # include <inttypes.h>
696 #endif
697 #ifdef HAVE_STDINT_H
698 # include <stdint.h>
699 #endif
700 #ifdef HAVE_STRINGS_H
701 # include <strings.h>
702 #endif
703 #ifdef HAVE_SYS_TYPES_H
704 # include <sys/types.h>
705 #endif
706 #ifdef HAVE_SYS_STAT_H
707 # include <sys/stat.h>
708 #endif
709 #ifdef HAVE_UNISTD_H
710 # include <unistd.h>
711 #endif"
712
713 ac_header_c_list=
714 ac_subst_vars='am__EXEEXT_FALSE
715 am__EXEEXT_TRUE
716 LTLIBOBJS
717 LIBOBJS
718 am__xargs_n
719 am__rm_f_notfound
720 CSCOPE
721 ETAGS
722 CTAGS
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__include
731 DEPDIR
732 am__untar
733 am__tar
734 AMTAR
735 am__leading_dot
736 SET_MAKE
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 AM_BACKSLASH
754 AM_DEFAULT_V
755 AM_V
756 MDNS_LIBS
757 MDNS_CFLAGS
758 USE_DNS_SD_FALSE
759 USE_DNS_SD_TRUE
760 USE_AVAHI_FALSE
761 USE_AVAHI_TRUE
762 AVAHI_LIBS
763 AVAHI_CFLAGS
764 DMAP_HAVE_UNALIGNED_ACCESS_DEFINE
765 BUILD_DPAPVIEW_FALSE
766 BUILD_DPAPVIEW_TRUE
767 BUILD_VALATESTS_FALSE
768 BUILD_VALATESTS_TRUE
769 BUILD_VAPI_FALSE
770 BUILD_VAPI_TRUE
771 VAPIGEN
772 HAVE_VALAC_FALSE
773 HAVE_VALAC_TRUE
774 VALAC
775 USE_GSTREAMERAPP_FALSE
776 USE_GSTREAMERAPP_TRUE
777 GSTLIB
778 GSTREAMERAPP_LIBS
779 GSTREAMERAPP_CFLAGS
780 GEE_LIBS
781 GEE_CFLAGS
782 GTK_LIBS
783 GTK_CFLAGS
784 SOUP_LIBS
785 SOUP_CFLAGS
786 USE_GDKPIXBUF_FALSE
787 USE_GDKPIXBUF_TRUE
788 GDKPIXBUF_LIBS
789 GDKPIXBUF_CFLAGS
790 GOBJECT_LIBS
791 GOBJECT_CFLAGS
792 GTHREAD_LIBS
793 GTHREAD_CFLAGS
794 GLIB_LIBS
795 GLIB_CFLAGS
796 HAVE_PKGCONFIG
797 TESTS_ENABLED_FALSE
798 TESTS_ENABLED_TRUE
799 HAVE_CHECK_FALSE
800 HAVE_CHECK_TRUE
801 CHECK_LIBS
802 CHECK_CFLAGS
803 WARN_CFLAGS
804 HAVE_PEDANSEE_FALSE
805 HAVE_PEDANSEE_TRUE
806 PEDANSEE
807 GTK_DOC_USE_REBASE_FALSE
808 GTK_DOC_USE_REBASE_TRUE
809 GTK_DOC_USE_LIBTOOL_FALSE
810 GTK_DOC_USE_LIBTOOL_TRUE
811 GTK_DOC_BUILD_PDF_FALSE
812 GTK_DOC_BUILD_PDF_TRUE
813 GTK_DOC_BUILD_HTML_FALSE
814 GTK_DOC_BUILD_HTML_TRUE
815 ENABLE_GTK_DOC_FALSE
816 ENABLE_GTK_DOC_TRUE
817 HAVE_GTK_DOC_FALSE
818 HAVE_GTK_DOC_TRUE
819 AM_DEFAULT_VERBOSITY
820 GTKDOC_DEPS_LIBS
821 GTKDOC_DEPS_CFLAGS
822 HTML_DIR
823 GTKDOC_MKPDF
824 GTKDOC_REBASE
825 GTKDOC_CHECK_PATH
826 GTKDOC_CHECK
827 HAVE_INTROSPECTION_FALSE
828 HAVE_INTROSPECTION_TRUE
829 INTROSPECTION_MAKEFILE
830 INTROSPECTION_LIBS
831 INTROSPECTION_CFLAGS
832 INTROSPECTION_TYPELIBDIR
833 INTROSPECTION_GIRDIR
834 INTROSPECTION_GENERATE
835 INTROSPECTION_COMPILER
836 INTROSPECTION_SCANNER
837 PKG_CONFIG_LIBDIR
838 PKG_CONFIG_PATH
839 PKG_CONFIG
840 LT_SYS_LIBRARY_PATH
841 OTOOL64
842 OTOOL
843 LIPO
844 NMEDIT
845 DSYMUTIL
846 MANIFEST_TOOL
847 AWK
848 RANLIB
849 STRIP
850 ac_ct_AR
851 AR
852 DLLTOOL
853 OBJDUMP
854 FILECMD
855 LN_S
856 NM
857 ac_ct_DUMPBIN
858 DUMPBIN
859 LD
860 FGREP
861 EGREP
862 GREP
863 SED
864 host_os
865 host_vendor
866 host_cpu
867 host
868 build_os
869 build_vendor
870 build_cpu
871 build
872 LIBTOOL
873 CPP
874 OBJEXT
875 EXEEXT
876 ac_ct_CC
877 CPPFLAGS
878 LDFLAGS
879 CFLAGS
880 CC
881 SO_VERSION
882 API_VERSION
883 target_alias
884 host_alias
885 build_alias
886 LIBS
887 ECHO_T
888 ECHO_N
889 ECHO_C
890 DEFS
891 mandir
892 localedir
893 libdir
894 psdir
895 pdfdir
896 dvidir
897 htmldir
898 infodir
899 docdir
900 oldincludedir
901 includedir
902 runstatedir
903 localstatedir
904 sharedstatedir
905 sysconfdir
906 datadir
907 datarootdir
908 libexecdir
909 sbindir
910 bindir
911 program_transform_name
912 prefix
913 exec_prefix
914 PACKAGE_URL
915 PACKAGE_BUGREPORT
916 PACKAGE_STRING
917 PACKAGE_VERSION
918 PACKAGE_TARNAME
919 PACKAGE_NAME
920 PATH_SEPARATOR
921 SHELL
922 am__quote'
923 ac_subst_files=''
924 ac_user_opts='
925 enable_option_checking
926 enable_shared
927 enable_static
928 enable_pic
929 with_pic
930 enable_fast_install
931 enable_aix_soname
932 with_aix_soname
933 with_gnu_ld
934 with_sysroot
935 enable_libtool_lock
936 enable_introspection
937 with_html_dir
938 enable_gtk_doc
939 enable_gtk_doc_html
940 enable_gtk_doc_pdf
941 enable_debug
942 enable_coverage
943 enable_more_warnings
944 enable_tests
945 with_mdns
946 enable_silent_rules
947 enable_dependency_tracking
948 '
949 ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 LIBS
956 CPPFLAGS
957 CPP
958 LT_SYS_LIBRARY_PATH
959 PKG_CONFIG
960 PKG_CONFIG_PATH
961 PKG_CONFIG_LIBDIR
962 GTKDOC_DEPS_CFLAGS
963 GTKDOC_DEPS_LIBS
964 CHECK_CFLAGS
965 CHECK_LIBS
966 GLIB_CFLAGS
967 GLIB_LIBS
968 GTHREAD_CFLAGS
969 GTHREAD_LIBS
970 GOBJECT_CFLAGS
971 GOBJECT_LIBS
972 GDKPIXBUF_CFLAGS
973 GDKPIXBUF_LIBS
974 SOUP_CFLAGS
975 SOUP_LIBS
976 GTK_CFLAGS
977 GTK_LIBS
978 GEE_CFLAGS
979 GEE_LIBS
980 GSTREAMERAPP_CFLAGS
981 GSTREAMERAPP_LIBS
982 AVAHI_CFLAGS
983 AVAHI_LIBS'
984
985
986 # Initialize some variables set by options.
987 ac_init_help=
988 ac_init_version=false
989 ac_unrecognized_opts=
990 ac_unrecognized_sep=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
993 cache_file=/dev/null
994 exec_prefix=NONE
995 no_create=
996 no_recursion=
997 prefix=NONE
998 program_prefix=NONE
999 program_suffix=NONE
1000 program_transform_name=s,x,x,
1001 silent=
1002 site=
1003 srcdir=
1004 verbose=
1005 x_includes=NONE
1006 x_libraries=NONE
1007
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 runstatedir='${localstatedir}/run'
1023 includedir='${prefix}/include'
1024 oldincludedir='/usr/include'
1025 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1026 infodir='${datarootdir}/info'
1027 htmldir='${docdir}'
1028 dvidir='${docdir}'
1029 pdfdir='${docdir}'
1030 psdir='${docdir}'
1031 libdir='${exec_prefix}/lib'
1032 localedir='${datarootdir}/locale'
1033 mandir='${datarootdir}/man'
1034
1035 ac_prev=
1036 ac_dashdash=
1037 for ac_option
1038 do
1039 # If the previous option needs an argument, assign it.
1040 if test -n "$ac_prev"; then
1041 eval $ac_prev=\$ac_option
1042 ac_prev=
1043 continue
1044 fi
1045
1046 case $ac_option in
1047 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1048 *=) ac_optarg= ;;
1049 *) ac_optarg=yes ;;
1050 esac
1051
1052 case $ac_dashdash$ac_option in
1053 --)
1054 ac_dashdash=yes ;;
1055
1056 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057 ac_prev=bindir ;;
1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059 bindir=$ac_optarg ;;
1060
1061 -build | --build | --buil | --bui | --bu)
1062 ac_prev=build_alias ;;
1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064 build_alias=$ac_optarg ;;
1065
1066 -cache-file | --cache-file | --cache-fil | --cache-fi \
1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068 ac_prev=cache_file ;;
1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071 cache_file=$ac_optarg ;;
1072
1073 --config-cache | -C)
1074 cache_file=config.cache ;;
1075
1076 -datadir | --datadir | --datadi | --datad)
1077 ac_prev=datadir ;;
1078 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079 datadir=$ac_optarg ;;
1080
1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082 | --dataroo | --dataro | --datar)
1083 ac_prev=datarootdir ;;
1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086 datarootdir=$ac_optarg ;;
1087
1088 -disable-* | --disable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: '$ac_useropt'"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=no ;;
1103
1104 -docdir | --docdir | --docdi | --doc | --do)
1105 ac_prev=docdir ;;
1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107 docdir=$ac_optarg ;;
1108
1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110 ac_prev=dvidir ;;
1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112 dvidir=$ac_optarg ;;
1113
1114 -enable-* | --enable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: '$ac_useropt'"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "enable_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval enable_$ac_useropt=\$ac_optarg ;;
1129
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1138
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1141 with_gas=yes ;;
1142
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1149
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1154
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 ac_prev=htmldir ;;
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 | --ht=*)
1159 htmldir=$ac_optarg ;;
1160
1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1167
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 ac_prev=infodir ;;
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1172
1173 -libdir | --libdir | --libdi | --libd)
1174 ac_prev=libdir ;;
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1177
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1184
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1189
1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
1191 | --localstate | --localstat | --localsta | --localst | --locals)
1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195 localstatedir=$ac_optarg ;;
1196
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 ac_prev=mandir ;;
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1201
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1204 with_fp=no ;;
1205
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1208 no_create=yes ;;
1209
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 no_recursion=yes ;;
1213
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1222
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 ac_prev=prefix ;;
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1227
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1234
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1241
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
1250 -program-transform-name=* | --program-transform-name=* \
1251 | --program-transform-nam=* | --program-transform-na=* \
1252 | --program-transform-n=* | --program-transform-=* \
1253 | --program-transform=* | --program-transfor=* \
1254 | --program-transfo=* | --program-transf=* \
1255 | --program-trans=* | --program-tran=* \
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1258
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 ac_prev=pdfdir ;;
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1263
1264 -psdir | --psdir | --psdi | --psd | --ps)
1265 ac_prev=psdir ;;
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 psdir=$ac_optarg ;;
1268
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1272
1273 -runstatedir | --runstatedir | --runstatedi | --runstated \
1274 | --runstate | --runstat | --runsta | --runst | --runs \
1275 | --run | --ru | --r)
1276 ac_prev=runstatedir ;;
1277 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1278 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1279 | --run=* | --ru=* | --r=*)
1280 runstatedir=$ac_optarg ;;
1281
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 ac_prev=sbindir ;;
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 | --sbi=* | --sb=*)
1286 sbindir=$ac_optarg ;;
1287
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1291 | --sha | --sh)
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 | --sha=* | --sh=*)
1297 sharedstatedir=$ac_optarg ;;
1298
1299 -site | --site | --sit)
1300 ac_prev=site ;;
1301 -site=* | --site=* | --sit=*)
1302 site=$ac_optarg ;;
1303
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 ac_prev=srcdir ;;
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1308
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1315
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1320
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 verbose=yes ;;
1323
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1326
1327 -with-* | --with-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: '$ac_useropt'"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1342
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: '$ac_useropt'"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=no ;;
1358
1359 --x)
1360 # Obsolete; use --with-x.
1361 with_x=yes ;;
1362
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1369
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1376
1377 -*) as_fn_error $? "unrecognized option: '$ac_option'
1378 Try '$0 --help' for more information"
1379 ;;
1380
1381 *=*)
1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' | [0-9]* | *[!_$as_cr_alnum]* )
1386 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1387 esac
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1390
1391 *)
1392 # FIXME: should be removed in autoconf 3.0.
1393 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1397 ;;
1398
1399 esac
1400 done
1401
1402 if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $? "missing argument to $ac_option"
1405 fi
1406
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1409 no) ;;
1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412 esac
1413 fi
1414
1415 # Check all directory arguments for consistency.
1416 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir runstatedir
1420 do
1421 eval ac_val=\$$ac_var
1422 # Remove trailing slashes.
1423 case $ac_val in
1424 */ )
1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\$ac_val;;
1427 esac
1428 # Be sure to have absolute directory names.
1429 case $ac_val in
1430 [\\/$]* | ?:[\\/]* ) continue;;
1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432 esac
1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434 done
1435
1436 # There might be people who depend on the old broken behavior: '$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1439 build=$build_alias
1440 host=$host_alias
1441 target=$target_alias
1442
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1449 fi
1450 fi
1451
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454
1455 test "$silent" = yes && exec 6>/dev/null
1456
1457
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error $? "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error $? "pwd does not report name of working directory"
1464
1465
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 printf "%s\n" X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\).*/{
1489 s//\1/
1490 q
1491 }
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1496 fi
1497 else
1498 ac_srcdir_defaulted=no
1499 fi
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1503 fi
1504 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507 pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1511 fi
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1524
1525 #
1526 # Report the --help message.
1527 #
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532 'configure' configures libdmapsharing 3.9.14 to adapt to many kinds of systems.
1533
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1535
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1538
1539 Defaults for the options are specified in brackets.
1540
1541 Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print 'checking ...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for '--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or '..']
1551
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1557
1558 By default, 'make install' will install all the files in
1559 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than '$ac_default_prefix' using '--prefix',
1561 for instance '--prefix=\$HOME'.
1562
1563 For better control, use the options below.
1564
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/libdmapsharing]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1586 _ACEOF
1587
1588 cat <<\_ACEOF
1589
1590 Program names:
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594
1595 System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 _ACEOF
1599 fi
1600
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of libdmapsharing 3.9.14:";;
1604 esac
1605 cat <<\_ACEOF
1606
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1614 both]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --enable-aix-soname=aix|svr4|both
1618 shared library versioning (aka "SONAME") variant to
1619 provide on AIX, [default=aix].
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --enable-introspection=[no/auto/yes]
1622 Enable introspection for this build
1623 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1624 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1625 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1626 --enable-debug enable debugging build
1627 --enable-coverage enable code-coverage build
1628 --enable-more-warnings maximum compiler warnings
1629 --disable-tests do not build tests
1630 --enable-silent-rules less verbose build output (undo: "make V=1")
1631 --disable-silent-rules verbose build output (undo: "make V=0")
1632 --enable-dependency-tracking
1633 do not reject slow dependency extractors
1634 --disable-dependency-tracking
1635 speeds up one-time build
1636
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1641 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1642 compiler's sysroot if not specified).
1643 --with-html-dir=PATH path to installed docs
1644 --with-mdns=auto|avahi|dns_sd
1645 Select the mDNS/DNS-SD implementation to use
1646 (default auto)
1647
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1656 CPP C preprocessor
1657 LT_SYS_LIBRARY_PATH
1658 User-defined run-time library search path.
1659 PKG_CONFIG path to pkg-config utility
1660 PKG_CONFIG_PATH
1661 directories to add to pkg-config's search path
1662 PKG_CONFIG_LIBDIR
1663 path overriding pkg-config's built-in search path
1664 GTKDOC_DEPS_CFLAGS
1665 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1666 GTKDOC_DEPS_LIBS
1667 linker flags for GTKDOC_DEPS, overriding pkg-config
1668 CHECK_CFLAGS
1669 C compiler flags for CHECK, overriding pkg-config
1670 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1671 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1672 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1673 GTHREAD_CFLAGS
1674 C compiler flags for GTHREAD, overriding pkg-config
1675 GTHREAD_LIBS
1676 linker flags for GTHREAD, overriding pkg-config
1677 GOBJECT_CFLAGS
1678 C compiler flags for GOBJECT, overriding pkg-config
1679 GOBJECT_LIBS
1680 linker flags for GOBJECT, overriding pkg-config
1681 GDKPIXBUF_CFLAGS
1682 C compiler flags for GDKPIXBUF, overriding pkg-config
1683 GDKPIXBUF_LIBS
1684 linker flags for GDKPIXBUF, overriding pkg-config
1685 SOUP_CFLAGS C compiler flags for SOUP, overriding pkg-config
1686 SOUP_LIBS linker flags for SOUP, overriding pkg-config
1687 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1688 GTK_LIBS linker flags for GTK, overriding pkg-config
1689 GEE_CFLAGS C compiler flags for GEE, overriding pkg-config
1690 GEE_LIBS linker flags for GEE, overriding pkg-config
1691 GSTREAMERAPP_CFLAGS
1692 C compiler flags for GSTREAMERAPP, overriding pkg-config
1693 GSTREAMERAPP_LIBS
1694 linker flags for GSTREAMERAPP, overriding pkg-config
1695 AVAHI_CFLAGS
1696 C compiler flags for AVAHI, overriding pkg-config
1697 AVAHI_LIBS linker flags for AVAHI, overriding pkg-config
1698
1699 Use these variables to override the choices made by 'configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1701
1702 Report bugs to <https://www.flyn.org/projects/libdmapsharing/>.
1703 _ACEOF
1704 ac_status=$?
1705 fi
1706
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 continue
1713 ac_builddir=.
1714
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *)
1718 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724 esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1730
1731 case $srcdir in
1732 .) # We are building in place.
1733 ac_srcdir=.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1740 *) # Relative name.
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for configure.gnu first; this name is used for a wrapper for
1749 # Metaconfig's "Configure" on case-insensitive file systems.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1756 else
1757 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 fi || ac_status=$?
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1760 done
1761 fi
1762
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765 cat <<\_ACEOF
1766 libdmapsharing configure 3.9.14
1767 generated by GNU Autoconf 2.72
1768
1769 Copyright (C) 2023 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1772 _ACEOF
1773 exit
1774 fi
1775
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1779
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest.beam
1787 if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 printf "%s\n" "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext
1806 then :
1807 ac_retval=0
1808 else case e in #(
1809 e) printf "%s\n" "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1 ;;
1813 esac
1814 fi
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_compile
1819
1820 # ac_fn_c_try_cpp LINENO
1821 # ----------------------
1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_cpp ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 printf "%s\n" "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } > conftest.i && {
1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 }
1845 then :
1846 ac_retval=0
1847 else case e in #(
1848 e) printf "%s\n" "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1 ;;
1852 esac
1853 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_cpp
1858
1859 # ac_fn_c_try_link LINENO
1860 # -----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_link ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 printf "%s\n" "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 test -x conftest$ac_exeext
1887 }
1888 then :
1889 ac_retval=0
1890 else case e in #(
1891 e) printf "%s\n" "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1 ;;
1895 esac
1896 fi
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905 } # ac_fn_c_try_link
1906
1907 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists and can be compiled using the include files in
1910 # INCLUDES, setting the cache variable VAR accordingly.
1911 ac_fn_c_check_header_compile ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 printf %s "checking for $2... " >&6; }
1916 if eval test \${$3+y}
1917 then :
1918 printf %s "(cached) " >&6
1919 else case e in #(
1920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 #include <$2>
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"
1926 then :
1927 eval "$3=yes"
1928 else case e in #(
1929 e) eval "$3=no" ;;
1930 esac
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1933 esac
1934 fi
1935 eval ac_res=\$$3
1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 printf "%s\n" "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_header_compile
1941
1942 # ac_fn_c_check_func LINENO FUNC VAR
1943 # ----------------------------------
1944 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1945 ac_fn_c_check_func ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 printf %s "checking for $2... " >&6; }
1950 if eval test \${$3+y}
1951 then :
1952 printf %s "(cached) " >&6
1953 else case e in #(
1954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1958 #define $2 innocuous_$2
1959
1960 /* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $2 (void); below. */
1962
1963 #include <limits.h>
1964 #undef $2
1965
1966 /* Override any GCC internal prototype to avoid an error.
1967 Use char because int might match the return type of a GCC
1968 builtin and then its argument prototype would still apply. */
1969 #ifdef __cplusplus
1970 extern "C"
1971 #endif
1972 char $2 (void);
1973 /* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976 #if defined __stub_$2 || defined __stub___$2
1977 choke me
1978 #endif
1979
1980 int
1981 main (void)
1982 {
1983 return $2 ();
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_link "$LINENO"
1989 then :
1990 eval "$3=yes"
1991 else case e in #(
1992 e) eval "$3=no" ;;
1993 esac
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1996 conftest$ac_exeext conftest.$ac_ext ;;
1997 esac
1998 fi
1999 eval ac_res=\$$3
2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 printf "%s\n" "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_func
2005 ac_configure_args_raw=
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 *\'*)
2010 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 as_fn_append ac_configure_args_raw " '$ac_arg'"
2013 done
2014
2015 case $ac_configure_args_raw in
2016 *$as_nl*)
2017 ac_safe_unquote= ;;
2018 *)
2019 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2020 ac_unsafe_a="$ac_unsafe_z#~"
2021 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2022 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2023 esac
2024
2025 cat >config.log <<_ACEOF
2026 This file contains any messages produced by compilers while
2027 running configure, to aid debugging if configure makes a mistake.
2028
2029 It was created by libdmapsharing $as_me 3.9.14, which was
2030 generated by GNU Autoconf 2.72. Invocation command line was
2031
2032 $ $0$ac_configure_args_raw
2033
2034 _ACEOF
2035 exec 5>>config.log
2036 {
2037 cat <<_ASUNAME
2038 ## --------- ##
2039 ## Platform. ##
2040 ## --------- ##
2041
2042 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047
2048 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2050
2051 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2052 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2053 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2055 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2056 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2057 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2058
2059 _ASUNAME
2060
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 case $as_dir in #(((
2066 '') as_dir=./ ;;
2067 */) ;;
2068 *) as_dir=$as_dir/ ;;
2069 esac
2070 printf "%s\n" "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2073
2074 } >&5
2075
2076 cat >&5 <<_ACEOF
2077
2078
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2082
2083 _ACEOF
2084
2085
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2096 do
2097 for ac_arg
2098 do
2099 case $ac_arg in
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2103 continue ;;
2104 *\'*)
2105 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 esac
2107 case $ac_pass in
2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2109 2)
2110 as_fn_append ac_configure_args1 " '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2113 else
2114 case $ac_arg in
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 esac
2122 ;;
2123 -* ) ac_must_keep_next=true ;;
2124 esac
2125 fi
2126 as_fn_append ac_configure_args " '$ac_arg'"
2127 ;;
2128 esac
2129 done
2130 done
2131 { ac_configure_args0=; unset ac_configure_args0;}
2132 { ac_configure_args1=; unset ac_configure_args1;}
2133
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Sanitize IFS.
2141 IFS=" "" $as_nl"
2142 # Save into config.log some information that might help in debugging.
2143 {
2144 echo
2145
2146 printf "%s\n" "## ---------------- ##
2147 ## Cache variables. ##
2148 ## ---------------- ##"
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
2151 (
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
2157 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2164 esac ;;
2165 esac
2166 done
2167 (set) 2>&1 |
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2170 sed -n \
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
2174 *)
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176 ;;
2177 esac |
2178 sort
2179 )
2180 echo
2181
2182 printf "%s\n" "## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##"
2185 echo
2186 for ac_var in $ac_subst_vars
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 printf "%s\n" "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195
2196 if test -n "$ac_subst_files"; then
2197 printf "%s\n" "## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##"
2200 echo
2201 for ac_var in $ac_subst_files
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 printf "%s\n" "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2210 fi
2211
2212 if test -s confdefs.h; then
2213 printf "%s\n" "## ----------- ##
2214 ## confdefs.h. ##
2215 ## ----------- ##"
2216 echo
2217 cat confdefs.h
2218 echo
2219 fi
2220 test "$ac_signal" != 0 &&
2221 printf "%s\n" "$as_me: caught signal $ac_signal"
2222 printf "%s\n" "$as_me: exit $exit_status"
2223 } >&5
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226 exit $exit_status
2227 ' 0
2228 for ac_signal in 1 2 13 15; do
2229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 done
2231 ac_signal=0
2232
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2235
2236 printf "%s\n" "/* confdefs.h */" > confdefs.h
2237
2238 # Predefined preprocessor variables.
2239
2240 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2241
2242 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2243
2244 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2245
2246 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2247
2248 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2249
2250 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2251
2252
2253 # Let the site file select an alternate cache file if it wants to.
2254 # Prefer an explicitly selected file to automatically selected ones.
2255 if test -n "$CONFIG_SITE"; then
2256 ac_site_files="$CONFIG_SITE"
2257 elif test "x$prefix" != xNONE; then
2258 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2259 else
2260 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2261 fi
2262
2263 for ac_site_file in $ac_site_files
2264 do
2265 case $ac_site_file in #(
2266 */*) :
2267 ;; #(
2268 *) :
2269 ac_site_file=./$ac_site_file ;;
2270 esac
2271 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2275 . "$ac_site_file" \
2276 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2277 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2278 as_fn_error $? "failed to load site script $ac_site_file
2279 See 'config.log' for more details" "$LINENO" 5; }
2280 fi
2281 done
2282
2283 if test -r "$cache_file"; then
2284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2289 case $cache_file in
2290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
2292 esac
2293 fi
2294 else
2295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2297 >$cache_file
2298 fi
2299
2300 # Test code for whether the C compiler supports C89 (global declarations)
2301 ac_c_conftest_c89_globals='
2302 /* Does the compiler advertise C89 conformance?
2303 Do not test the value of __STDC__, because some compilers set it to 0
2304 while being otherwise adequately conformant. */
2305 #if !defined __STDC__
2306 # error "Compiler does not advertise C89 conformance"
2307 #endif
2308
2309 #include <stddef.h>
2310 #include <stdarg.h>
2311 struct stat;
2312 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2313 struct buf { int x; };
2314 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (char **p, int i)
2316 {
2317 return p[i];
2318 }
2319 static char *f (char * (*g) (char **, int), char **p, ...)
2320 {
2321 char *s;
2322 va_list v;
2323 va_start (v,p);
2324 s = g (p, va_arg (v,int));
2325 va_end (v);
2326 return s;
2327 }
2328
2329 /* C89 style stringification. */
2330 #define noexpand_stringify(a) #a
2331 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2332
2333 /* C89 style token pasting. Exercises some of the corner cases that
2334 e.g. old MSVC gets wrong, but not very hard. */
2335 #define noexpand_concat(a,b) a##b
2336 #define expand_concat(a,b) noexpand_concat(a,b)
2337 extern int vA;
2338 extern int vbee;
2339 #define aye A
2340 #define bee B
2341 int *pvA = &expand_concat(v,aye);
2342 int *pvbee = &noexpand_concat(v,bee);
2343
2344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2345 function prototypes and stuff, but not \xHH hex character constants.
2346 These do not provoke an error unfortunately, instead are silently treated
2347 as an "x". The following induces an error, until -std is added to get
2348 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2349 array size at least. It is necessary to write \x00 == 0 to get something
2350 that is true only with -std. */
2351 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2352
2353 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2354 inside strings and character constants. */
2355 #define FOO(x) '\''x'\''
2356 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2357
2358 int test (int i, double x);
2359 struct s1 {int (*f) (int a);};
2360 struct s2 {int (*f) (double a);};
2361 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2362 int, int);'
2363
2364 # Test code for whether the C compiler supports C89 (body of main).
2365 ac_c_conftest_c89_main='
2366 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2367 '
2368
2369 # Test code for whether the C compiler supports C99 (global declarations)
2370 ac_c_conftest_c99_globals='
2371 /* Does the compiler advertise C99 conformance? */
2372 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2373 # error "Compiler does not advertise C99 conformance"
2374 #endif
2375
2376 // See if C++-style comments work.
2377
2378 #include <stdbool.h>
2379 extern int puts (const char *);
2380 extern int printf (const char *, ...);
2381 extern int dprintf (int, const char *, ...);
2382 extern void *malloc (size_t);
2383 extern void free (void *);
2384
2385 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2386 // dprintf is used instead of fprintf to avoid needing to declare
2387 // FILE and stderr.
2388 #define debug(...) dprintf (2, __VA_ARGS__)
2389 #define showlist(...) puts (#__VA_ARGS__)
2390 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2391 static void
2392 test_varargs_macros (void)
2393 {
2394 int x = 1234;
2395 int y = 5678;
2396 debug ("Flag");
2397 debug ("X = %d\n", x);
2398 showlist (The first, second, and third items.);
2399 report (x>y, "x is %d but y is %d", x, y);
2400 }
2401
2402 // Check long long types.
2403 #define BIG64 18446744073709551615ull
2404 #define BIG32 4294967295ul
2405 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2406 #if !BIG_OK
2407 #error "your preprocessor is broken"
2408 #endif
2409 #if BIG_OK
2410 #else
2411 #error "your preprocessor is broken"
2412 #endif
2413 static long long int bignum = -9223372036854775807LL;
2414 static unsigned long long int ubignum = BIG64;
2415
2416 struct incomplete_array
2417 {
2418 int datasize;
2419 double data[];
2420 };
2421
2422 struct named_init {
2423 int number;
2424 const wchar_t *name;
2425 double average;
2426 };
2427
2428 typedef const char *ccp;
2429
2430 static inline int
2431 test_restrict (ccp restrict text)
2432 {
2433 // Iterate through items via the restricted pointer.
2434 // Also check for declarations in for loops.
2435 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2436 continue;
2437 return 0;
2438 }
2439
2440 // Check varargs and va_copy.
2441 static bool
2442 test_varargs (const char *format, ...)
2443 {
2444 va_list args;
2445 va_start (args, format);
2446 va_list args_copy;
2447 va_copy (args_copy, args);
2448
2449 const char *str = "";
2450 int number = 0;
2451 float fnumber = 0;
2452
2453 while (*format)
2454 {
2455 switch (*format++)
2456 {
2457 case '\''s'\'': // string
2458 str = va_arg (args_copy, const char *);
2459 break;
2460 case '\''d'\'': // int
2461 number = va_arg (args_copy, int);
2462 break;
2463 case '\''f'\'': // float
2464 fnumber = va_arg (args_copy, double);
2465 break;
2466 default:
2467 break;
2468 }
2469 }
2470 va_end (args_copy);
2471 va_end (args);
2472
2473 return *str && number && fnumber;
2474 }
2475 '
2476
2477 # Test code for whether the C compiler supports C99 (body of main).
2478 ac_c_conftest_c99_main='
2479 // Check bool.
2480 _Bool success = false;
2481 success |= (argc != 0);
2482
2483 // Check restrict.
2484 if (test_restrict ("String literal") == 0)
2485 success = true;
2486 char *restrict newvar = "Another string";
2487
2488 // Check varargs.
2489 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2490 test_varargs_macros ();
2491
2492 // Check flexible array members.
2493 struct incomplete_array *ia =
2494 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2495 ia->datasize = 10;
2496 for (int i = 0; i < ia->datasize; ++i)
2497 ia->data[i] = i * 1.234;
2498 // Work around memory leak warnings.
2499 free (ia);
2500
2501 // Check named initializers.
2502 struct named_init ni = {
2503 .number = 34,
2504 .name = L"Test wide string",
2505 .average = 543.34343,
2506 };
2507
2508 ni.number = 58;
2509
2510 int dynamic_array[ni.number];
2511 dynamic_array[0] = argv[0][0];
2512 dynamic_array[ni.number - 1] = 543;
2513
2514 // work around unused variable warnings
2515 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2516 || dynamic_array[ni.number - 1] != 543);
2517 '
2518
2519 # Test code for whether the C compiler supports C11 (global declarations)
2520 ac_c_conftest_c11_globals='
2521 /* Does the compiler advertise C11 conformance? */
2522 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2523 # error "Compiler does not advertise C11 conformance"
2524 #endif
2525
2526 // Check _Alignas.
2527 char _Alignas (double) aligned_as_double;
2528 char _Alignas (0) no_special_alignment;
2529 extern char aligned_as_int;
2530 char _Alignas (0) _Alignas (int) aligned_as_int;
2531
2532 // Check _Alignof.
2533 enum
2534 {
2535 int_alignment = _Alignof (int),
2536 int_array_alignment = _Alignof (int[100]),
2537 char_alignment = _Alignof (char)
2538 };
2539 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2540
2541 // Check _Noreturn.
2542 int _Noreturn does_not_return (void) { for (;;) continue; }
2543
2544 // Check _Static_assert.
2545 struct test_static_assert
2546 {
2547 int x;
2548 _Static_assert (sizeof (int) <= sizeof (long int),
2549 "_Static_assert does not work in struct");
2550 long int y;
2551 };
2552
2553 // Check UTF-8 literals.
2554 #define u8 syntax error!
2555 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2556
2557 // Check duplicate typedefs.
2558 typedef long *long_ptr;
2559 typedef long int *long_ptr;
2560 typedef long_ptr long_ptr;
2561
2562 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2563 struct anonymous
2564 {
2565 union {
2566 struct { int i; int j; };
2567 struct { int k; long int l; } w;
2568 };
2569 int m;
2570 } v1;
2571 '
2572
2573 # Test code for whether the C compiler supports C11 (body of main).
2574 ac_c_conftest_c11_main='
2575 _Static_assert ((offsetof (struct anonymous, i)
2576 == offsetof (struct anonymous, w.k)),
2577 "Anonymous union alignment botch");
2578 v1.i = 2;
2579 v1.w.k = 5;
2580 ok |= v1.i != 5;
2581 '
2582
2583 # Test code for whether the C compiler supports C11 (complete).
2584 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2585 ${ac_c_conftest_c99_globals}
2586 ${ac_c_conftest_c11_globals}
2587
2588 int
2589 main (int argc, char **argv)
2590 {
2591 int ok = 0;
2592 ${ac_c_conftest_c89_main}
2593 ${ac_c_conftest_c99_main}
2594 ${ac_c_conftest_c11_main}
2595 return ok;
2596 }
2597 "
2598
2599 # Test code for whether the C compiler supports C99 (complete).
2600 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2601 ${ac_c_conftest_c99_globals}
2602
2603 int
2604 main (int argc, char **argv)
2605 {
2606 int ok = 0;
2607 ${ac_c_conftest_c89_main}
2608 ${ac_c_conftest_c99_main}
2609 return ok;
2610 }
2611 "
2612
2613 # Test code for whether the C compiler supports C89 (complete).
2614 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2615
2616 int
2617 main (int argc, char **argv)
2618 {
2619 int ok = 0;
2620 ${ac_c_conftest_c89_main}
2621 return ok;
2622 }
2623 "
2624
2625 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2626 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2627 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2628 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2629 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2630 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2631 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2632 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2633 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2634
2635 # Auxiliary files required by this configure script.
2636 ac_aux_files="missing install-sh config.guess config.sub ltmain.sh compile"
2637
2638 # Locations in which to look for auxiliary files.
2639 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2640
2641 # Search for a directory containing all of the required auxiliary files,
2642 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2643 # If we don't find one directory that contains all the files we need,
2644 # we report the set of missing files from the *first* directory in
2645 # $ac_aux_dir_candidates and give up.
2646 ac_missing_aux_files=""
2647 ac_first_candidate=:
2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 as_found=false
2651 for as_dir in $ac_aux_dir_candidates
2652 do
2653 IFS=$as_save_IFS
2654 case $as_dir in #(((
2655 '') as_dir=./ ;;
2656 */) ;;
2657 *) as_dir=$as_dir/ ;;
2658 esac
2659 as_found=:
2660
2661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2662 ac_aux_dir_found=yes
2663 ac_install_sh=
2664 for ac_aux in $ac_aux_files
2665 do
2666 # As a special case, if "install-sh" is required, that requirement
2667 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2668 # and $ac_install_sh is set appropriately for whichever one is found.
2669 if test x"$ac_aux" = x"install-sh"
2670 then
2671 if test -f "${as_dir}install-sh"; then
2672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2673 ac_install_sh="${as_dir}install-sh -c"
2674 elif test -f "${as_dir}install.sh"; then
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2676 ac_install_sh="${as_dir}install.sh -c"
2677 elif test -f "${as_dir}shtool"; then
2678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2679 ac_install_sh="${as_dir}shtool install -c"
2680 else
2681 ac_aux_dir_found=no
2682 if $ac_first_candidate; then
2683 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2684 else
2685 break
2686 fi
2687 fi
2688 else
2689 if test -f "${as_dir}${ac_aux}"; then
2690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2691 else
2692 ac_aux_dir_found=no
2693 if $ac_first_candidate; then
2694 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2695 else
2696 break
2697 fi
2698 fi
2699 fi
2700 done
2701 if test "$ac_aux_dir_found" = yes; then
2702 ac_aux_dir="$as_dir"
2703 break
2704 fi
2705 ac_first_candidate=false
2706
2707 as_found=false
2708 done
2709 IFS=$as_save_IFS
2710 if $as_found
2711 then :
2712
2713 else case e in #(
2714 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2715 esac
2716 fi
2717
2718
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 if test -f "${ac_aux_dir}config.guess"; then
2724 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2725 fi
2726 if test -f "${ac_aux_dir}config.sub"; then
2727 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2728 fi
2729 if test -f "$ac_aux_dir/configure"; then
2730 ac_configure="$SHELL ${ac_aux_dir}configure"
2731 fi
2732
2733 # Check that the precious variables saved in the cache have kept the same
2734 # value.
2735 ac_cache_corrupted=false
2736 for ac_var in $ac_precious_vars; do
2737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2738 eval ac_new_set=\$ac_env_${ac_var}_set
2739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2740 eval ac_new_val=\$ac_env_${ac_var}_value
2741 case $ac_old_set,$ac_new_set in
2742 set,)
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2744 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2745 ac_cache_corrupted=: ;;
2746 ,set)
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2748 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2749 ac_cache_corrupted=: ;;
2750 ,);;
2751 *)
2752 if test "x$ac_old_val" != "x$ac_new_val"; then
2753 # differences in whitespace do not lead to failure.
2754 ac_old_val_w=`echo x $ac_old_val`
2755 ac_new_val_w=`echo x $ac_new_val`
2756 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2758 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2759 ac_cache_corrupted=:
2760 else
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2762 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2763 eval $ac_var=\$ac_old_val
2764 fi
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2766 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2768 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2769 fi;;
2770 esac
2771 # Pass precious variables to config.status.
2772 if test "$ac_new_set" = set; then
2773 case $ac_new_val in
2774 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 *) ac_arg=$ac_var=$ac_new_val ;;
2776 esac
2777 case " $ac_configure_args " in
2778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2779 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2780 esac
2781 fi
2782 done
2783 if $ac_cache_corrupted; then
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2785 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2787 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2788 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2789 and start over" "$LINENO" 5
2790 fi
2791 ## -------------------- ##
2792 ## Main body of script. ##
2793 ## -------------------- ##
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801
2802
2803 API_VERSION=4.0
2804
2805
2806 SO_VERSION=12:14:9
2807
2808
2809 ac_config_headers="$ac_config_headers config.h"
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822 ac_ext=c
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 printf %s "checking for $ac_word... " >&6; }
2832 if test ${ac_cv_prog_CC+y}
2833 then :
2834 printf %s "(cached) " >&6
2835 else case e in #(
2836 e) if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 case $as_dir in #(((
2844 '') as_dir=./ ;;
2845 */) ;;
2846 *) as_dir=$as_dir/ ;;
2847 esac
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi ;;
2859 esac
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 printf "%s\n" "$CC" >&6; }
2865 else
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 printf "%s\n" "no" >&6; }
2868 fi
2869
2870
2871 fi
2872 if test -z "$ac_cv_prog_CC"; then
2873 ac_ct_CC=$CC
2874 # Extract the first word of "gcc", so it can be a program name with args.
2875 set dummy gcc; ac_word=$2
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 printf %s "checking for $ac_word... " >&6; }
2878 if test ${ac_cv_prog_ac_ct_CC+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else case e in #(
2882 e) if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 case $as_dir in #(((
2890 '') as_dir=./ ;;
2891 */) ;;
2892 *) as_dir=$as_dir/ ;;
2893 esac
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi ;;
2905 esac
2906 fi
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 printf "%s\n" "$ac_ct_CC" >&6; }
2911 else
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 printf "%s\n" "no" >&6; }
2914 fi
2915
2916 if test "x$ac_ct_CC" = x; then
2917 CC=""
2918 else
2919 case $cross_compiling:$ac_tool_warned in
2920 yes:)
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925 CC=$ac_ct_CC
2926 fi
2927 else
2928 CC="$ac_cv_prog_CC"
2929 fi
2930
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}cc; ac_word=$2
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 printf %s "checking for $ac_word... " >&6; }
2937 if test ${ac_cv_prog_CC+y}
2938 then :
2939 printf %s "(cached) " >&6
2940 else case e in #(
2941 e) if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 case $as_dir in #(((
2949 '') as_dir=./ ;;
2950 */) ;;
2951 *) as_dir=$as_dir/ ;;
2952 esac
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi ;;
2964 esac
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 printf "%s\n" "$CC" >&6; }
2970 else
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 printf "%s\n" "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 fi
2978 if test -z "$CC"; then
2979 # Extract the first word of "cc", so it can be a program name with args.
2980 set dummy cc; ac_word=$2
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 printf %s "checking for $ac_word... " >&6; }
2983 if test ${ac_cv_prog_CC+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else case e in #(
2987 e) if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 ac_prog_rejected=no
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 case $as_dir in #(((
2996 '') as_dir=./ ;;
2997 */) ;;
2998 *) as_dir=$as_dir/ ;;
2999 esac
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3002 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003 ac_prog_rejected=yes
3004 continue
3005 fi
3006 ac_cv_prog_CC="cc"
3007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 if test $ac_prog_rejected = yes; then
3015 # We found a bogon in the path, so make sure we never use it.
3016 set dummy $ac_cv_prog_CC
3017 shift
3018 if test $# != 0; then
3019 # We chose a different compiler from the bogus one.
3020 # However, it has the same basename, so the bogon will be chosen
3021 # first if we set CC to just the basename; use the full file name.
3022 shift
3023 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3024 fi
3025 fi
3026 fi ;;
3027 esac
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 printf "%s\n" "$CC" >&6; }
3033 else
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 printf "%s\n" "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 for ac_prog in cl.exe
3043 do
3044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 printf %s "checking for $ac_word... " >&6; }
3048 if test ${ac_cv_prog_CC+y}
3049 then :
3050 printf %s "(cached) " >&6
3051 else case e in #(
3052 e) if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 case $as_dir in #(((
3060 '') as_dir=./ ;;
3061 */) ;;
3062 *) as_dir=$as_dir/ ;;
3063 esac
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi ;;
3075 esac
3076 fi
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 printf "%s\n" "$CC" >&6; }
3081 else
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 printf "%s\n" "no" >&6; }
3084 fi
3085
3086
3087 test -n "$CC" && break
3088 done
3089 fi
3090 if test -z "$CC"; then
3091 ac_ct_CC=$CC
3092 for ac_prog in cl.exe
3093 do
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 printf %s "checking for $ac_word... " >&6; }
3098 if test ${ac_cv_prog_ac_ct_CC+y}
3099 then :
3100 printf %s "(cached) " >&6
3101 else case e in #(
3102 e) if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 case $as_dir in #(((
3110 '') as_dir=./ ;;
3111 */) ;;
3112 *) as_dir=$as_dir/ ;;
3113 esac
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_CC="$ac_prog"
3117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi ;;
3125 esac
3126 fi
3127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128 if test -n "$ac_ct_CC"; then
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3130 printf "%s\n" "$ac_ct_CC" >&6; }
3131 else
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 printf "%s\n" "no" >&6; }
3134 fi
3135
3136
3137 test -n "$ac_ct_CC" && break
3138 done
3139
3140 if test "x$ac_ct_CC" = x; then
3141 CC=""
3142 else
3143 case $cross_compiling:$ac_tool_warned in
3144 yes:)
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3148 esac
3149 CC=$ac_ct_CC
3150 fi
3151 fi
3152
3153 fi
3154 if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}clang; ac_word=$2
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 printf %s "checking for $ac_word... " >&6; }
3160 if test ${ac_cv_prog_CC+y}
3161 then :
3162 printf %s "(cached) " >&6
3163 else case e in #(
3164 e) if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 case $as_dir in #(((
3172 '') as_dir=./ ;;
3173 */) ;;
3174 *) as_dir=$as_dir/ ;;
3175 esac
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_CC="${ac_tool_prefix}clang"
3179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi ;;
3187 esac
3188 fi
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192 printf "%s\n" "$CC" >&6; }
3193 else
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 printf "%s\n" "no" >&6; }
3196 fi
3197
3198
3199 fi
3200 if test -z "$ac_cv_prog_CC"; then
3201 ac_ct_CC=$CC
3202 # Extract the first word of "clang", so it can be a program name with args.
3203 set dummy clang; ac_word=$2
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 printf %s "checking for $ac_word... " >&6; }
3206 if test ${ac_cv_prog_ac_ct_CC+y}
3207 then :
3208 printf %s "(cached) " >&6
3209 else case e in #(
3210 e) if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 case $as_dir in #(((
3218 '') as_dir=./ ;;
3219 */) ;;
3220 *) as_dir=$as_dir/ ;;
3221 esac
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_CC="clang"
3225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi ;;
3233 esac
3234 fi
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 printf "%s\n" "$ac_ct_CC" >&6; }
3239 else
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 printf "%s\n" "no" >&6; }
3242 fi
3243
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253 CC=$ac_ct_CC
3254 fi
3255 else
3256 CC="$ac_cv_prog_CC"
3257 fi
3258
3259 fi
3260
3261
3262 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3263 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3264 as_fn_error $? "no acceptable C compiler found in \$PATH
3265 See 'config.log' for more details" "$LINENO" 5; }
3266
3267 # Provide some information about the compiler.
3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3269 set X $ac_compile
3270 ac_compiler=$2
3271 for ac_option in --version -v -V -qversion -version; do
3272 { { ac_try="$ac_compiler $ac_option >&5"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 printf "%s\n" "$ac_try_echo"; } >&5
3279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3280 ac_status=$?
3281 if test -s conftest.err; then
3282 sed '10a\
3283 ... rest of stderr output deleted ...
3284 10q' conftest.err >conftest.er1
3285 cat conftest.er1 >&5
3286 fi
3287 rm -f conftest.er1 conftest.err
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }
3290 done
3291
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main (void)
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 ac_clean_files_save=$ac_clean_files
3304 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3305 # Try to create an executable without -o first, disregard a.out.
3306 # It will help us diagnose broken compilers, and finding out an intuition
3307 # of exeext.
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3309 printf %s "checking whether the C compiler works... " >&6; }
3310 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311
3312 # The possible output files:
3313 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314
3315 ac_rmfiles=
3316 for ac_file in $ac_files
3317 do
3318 case $ac_file in
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3321 esac
3322 done
3323 rm -f $ac_rmfiles
3324
3325 if { { ac_try="$ac_link_default"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 printf "%s\n" "$ac_try_echo"; } >&5
3332 (eval "$ac_link_default") 2>&5
3333 ac_status=$?
3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3338 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3340 # so that the user can short-circuit this test for compilers unknown to
3341 # Autoconf.
3342 for ac_file in $ac_files ''
3343 do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347 ;;
3348 [ab].out )
3349 # We found the default executable, but exeext='' is most
3350 # certainly right.
3351 break;;
3352 *.* )
3353 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3354 then :; else
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 fi
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an '-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3361 # actually working.
3362 break;;
3363 * )
3364 break;;
3365 esac
3366 done
3367 test "$ac_cv_exeext" = no && ac_cv_exeext=
3368
3369 else case e in #(
3370 e) ac_file='' ;;
3371 esac
3372 fi
3373 if test -z "$ac_file"
3374 then :
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 printf "%s\n" "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3381 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3382 as_fn_error 77 "C compiler cannot create executables
3383 See 'config.log' for more details" "$LINENO" 5; }
3384 else case e in #(
3385 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 printf "%s\n" "yes" >&6; } ;;
3387 esac
3388 fi
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3390 printf %s "checking for C compiler default output file name... " >&6; }
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3392 printf "%s\n" "$ac_file" >&6; }
3393 ac_exeext=$ac_cv_exeext
3394
3395 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3396 ac_clean_files=$ac_clean_files_save
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3398 printf %s "checking for suffix of executables... " >&6; }
3399 if { { ac_try="$ac_link"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 printf "%s\n" "$ac_try_echo"; } >&5
3406 (eval "$ac_link") 2>&5
3407 ac_status=$?
3408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }
3410 then :
3411 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3412 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3413 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3414 # 'rm'.
3415 for ac_file in conftest.exe conftest conftest.*; do
3416 test -f "$ac_file" || continue
3417 case $ac_file in
3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 break;;
3421 * ) break;;
3422 esac
3423 done
3424 else case e in #(
3425 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3426 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3427 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3428 See 'config.log' for more details" "$LINENO" 5; } ;;
3429 esac
3430 fi
3431 rm -f conftest conftest$ac_cv_exeext
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3433 printf "%s\n" "$ac_cv_exeext" >&6; }
3434
3435 rm -f conftest.$ac_ext
3436 EXEEXT=$ac_cv_exeext
3437 ac_exeext=$EXEEXT
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440 #include <stdio.h>
3441 int
3442 main (void)
3443 {
3444 FILE *f = fopen ("conftest.out", "w");
3445 if (!f)
3446 return 1;
3447 return ferror (f) || fclose (f) != 0;
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 ac_clean_files="$ac_clean_files conftest.out"
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3457 printf %s "checking whether we are cross compiling... " >&6; }
3458 if test "$cross_compiling" != yes; then
3459 { { ac_try="$ac_link"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 printf "%s\n" "$ac_try_echo"; } >&5
3466 (eval "$ac_link") 2>&5
3467 ac_status=$?
3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 if { ac_try='./conftest$ac_cv_exeext'
3471 { { case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 printf "%s\n" "$ac_try_echo"; } >&5
3477 (eval "$ac_try") 2>&5
3478 ac_status=$?
3479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; }; then
3481 cross_compiling=no
3482 else
3483 if test "$cross_compiling" = maybe; then
3484 cross_compiling=yes
3485 else
3486 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3487 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3488 as_fn_error 77 "cannot run C compiled programs.
3489 If you meant to cross compile, use '--host'.
3490 See 'config.log' for more details" "$LINENO" 5; }
3491 fi
3492 fi
3493 fi
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3495 printf "%s\n" "$cross_compiling" >&6; }
3496
3497 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3498 conftest.o conftest.obj conftest.out
3499 ac_clean_files=$ac_clean_files_save
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3501 printf %s "checking for suffix of object files... " >&6; }
3502 if test ${ac_cv_objext+y}
3503 then :
3504 printf %s "(cached) " >&6
3505 else case e in #(
3506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508
3509 int
3510 main (void)
3511 {
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.o conftest.obj
3518 if { { ac_try="$ac_compile"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 printf "%s\n" "$ac_try_echo"; } >&5
3525 (eval "$ac_compile") 2>&5
3526 ac_status=$?
3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }
3529 then :
3530 for ac_file in conftest.o conftest.obj conftest.*; do
3531 test -f "$ac_file" || continue;
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3535 break;;
3536 esac
3537 done
3538 else case e in #(
3539 e) printf "%s\n" "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3543 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3544 as_fn_error $? "cannot compute suffix of object files: cannot compile
3545 See 'config.log' for more details" "$LINENO" 5; } ;;
3546 esac
3547 fi
3548 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3549 esac
3550 fi
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552 printf "%s\n" "$ac_cv_objext" >&6; }
3553 OBJEXT=$ac_cv_objext
3554 ac_objext=$OBJEXT
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3556 printf %s "checking whether the compiler supports GNU C... " >&6; }
3557 if test ${ac_cv_c_compiler_gnu+y}
3558 then :
3559 printf %s "(cached) " >&6
3560 else case e in #(
3561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main (void)
3566 {
3567 #ifndef __GNUC__
3568 choke me
3569 #endif
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"
3576 then :
3577 ac_compiler_gnu=yes
3578 else case e in #(
3579 e) ac_compiler_gnu=no ;;
3580 esac
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584 ;;
3585 esac
3586 fi
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3588 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
3591 if test $ac_compiler_gnu = yes; then
3592 GCC=yes
3593 else
3594 GCC=
3595 fi
3596 ac_test_CFLAGS=${CFLAGS+y}
3597 ac_save_CFLAGS=$CFLAGS
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3599 printf %s "checking whether $CC accepts -g... " >&6; }
3600 if test ${ac_cv_prog_cc_g+y}
3601 then :
3602 printf %s "(cached) " >&6
3603 else case e in #(
3604 e) ac_save_c_werror_flag=$ac_c_werror_flag
3605 ac_c_werror_flag=yes
3606 ac_cv_prog_cc_g=no
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610
3611 int
3612 main (void)
3613 {
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"
3620 then :
3621 ac_cv_prog_cc_g=yes
3622 else case e in #(
3623 e) CFLAGS=""
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626
3627 int
3628 main (void)
3629 {
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"
3636 then :
3637
3638 else case e in #(
3639 e) ac_c_werror_flag=$ac_save_c_werror_flag
3640 CFLAGS="-g"
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main (void)
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"
3653 then :
3654 ac_cv_prog_cc_g=yes
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3657 esac
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3660 esac
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3664 esac
3665 fi
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3668 if test $ac_test_CFLAGS; then
3669 CFLAGS=$ac_save_CFLAGS
3670 elif test $ac_cv_prog_cc_g = yes; then
3671 if test "$GCC" = yes; then
3672 CFLAGS="-g -O2"
3673 else
3674 CFLAGS="-g"
3675 fi
3676 else
3677 if test "$GCC" = yes; then
3678 CFLAGS="-O2"
3679 else
3680 CFLAGS=
3681 fi
3682 fi
3683 ac_prog_cc_stdc=no
3684 if test x$ac_prog_cc_stdc = xno
3685 then :
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3687 printf %s "checking for $CC option to enable C11 features... " >&6; }
3688 if test ${ac_cv_prog_cc_c11+y}
3689 then :
3690 printf %s "(cached) " >&6
3691 else case e in #(
3692 e) ac_cv_prog_cc_c11=no
3693 ac_save_CC=$CC
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696 $ac_c_conftest_c11_program
3697 _ACEOF
3698 for ac_arg in '' -std=gnu11
3699 do
3700 CC="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile "$LINENO"
3702 then :
3703 ac_cv_prog_cc_c11=$ac_arg
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.beam
3706 test "x$ac_cv_prog_cc_c11" != "xno" && break
3707 done
3708 rm -f conftest.$ac_ext
3709 CC=$ac_save_CC ;;
3710 esac
3711 fi
3712
3713 if test "x$ac_cv_prog_cc_c11" = xno
3714 then :
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3716 printf "%s\n" "unsupported" >&6; }
3717 else case e in #(
3718 e) if test "x$ac_cv_prog_cc_c11" = x
3719 then :
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 printf "%s\n" "none needed" >&6; }
3722 else case e in #(
3723 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3724 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3725 CC="$CC $ac_cv_prog_cc_c11" ;;
3726 esac
3727 fi
3728 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3729 ac_prog_cc_stdc=c11 ;;
3730 esac
3731 fi
3732 fi
3733 if test x$ac_prog_cc_stdc = xno
3734 then :
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3736 printf %s "checking for $CC option to enable C99 features... " >&6; }
3737 if test ${ac_cv_prog_cc_c99+y}
3738 then :
3739 printf %s "(cached) " >&6
3740 else case e in #(
3741 e) ac_cv_prog_cc_c99=no
3742 ac_save_CC=$CC
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 $ac_c_conftest_c99_program
3746 _ACEOF
3747 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3748 do
3749 CC="$ac_save_CC $ac_arg"
3750 if ac_fn_c_try_compile "$LINENO"
3751 then :
3752 ac_cv_prog_cc_c99=$ac_arg
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.beam
3755 test "x$ac_cv_prog_cc_c99" != "xno" && break
3756 done
3757 rm -f conftest.$ac_ext
3758 CC=$ac_save_CC ;;
3759 esac
3760 fi
3761
3762 if test "x$ac_cv_prog_cc_c99" = xno
3763 then :
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3765 printf "%s\n" "unsupported" >&6; }
3766 else case e in #(
3767 e) if test "x$ac_cv_prog_cc_c99" = x
3768 then :
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770 printf "%s\n" "none needed" >&6; }
3771 else case e in #(
3772 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3773 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3774 CC="$CC $ac_cv_prog_cc_c99" ;;
3775 esac
3776 fi
3777 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3778 ac_prog_cc_stdc=c99 ;;
3779 esac
3780 fi
3781 fi
3782 if test x$ac_prog_cc_stdc = xno
3783 then :
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3785 printf %s "checking for $CC option to enable C89 features... " >&6; }
3786 if test ${ac_cv_prog_cc_c89+y}
3787 then :
3788 printf %s "(cached) " >&6
3789 else case e in #(
3790 e) ac_cv_prog_cc_c89=no
3791 ac_save_CC=$CC
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 $ac_c_conftest_c89_program
3795 _ACEOF
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 do
3798 CC="$ac_save_CC $ac_arg"
3799 if ac_fn_c_try_compile "$LINENO"
3800 then :
3801 ac_cv_prog_cc_c89=$ac_arg
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.beam
3804 test "x$ac_cv_prog_cc_c89" != "xno" && break
3805 done
3806 rm -f conftest.$ac_ext
3807 CC=$ac_save_CC ;;
3808 esac
3809 fi
3810
3811 if test "x$ac_cv_prog_cc_c89" = xno
3812 then :
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814 printf "%s\n" "unsupported" >&6; }
3815 else case e in #(
3816 e) if test "x$ac_cv_prog_cc_c89" = x
3817 then :
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3819 printf "%s\n" "none needed" >&6; }
3820 else case e in #(
3821 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3823 CC="$CC $ac_cv_prog_cc_c89" ;;
3824 esac
3825 fi
3826 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3827 ac_prog_cc_stdc=c89 ;;
3828 esac
3829 fi
3830 fi
3831
3832 ac_ext=c
3833 ac_cpp='$CPP $CPPFLAGS'
3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837
3838
3839
3840 # Expand $ac_aux_dir to an absolute path.
3841 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3842
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3850 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3851 if test ${am_cv_prog_cc_c_o+y}
3852 then :
3853 printf %s "(cached) " >&6
3854 else case e in #(
3855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857
3858 int
3859 main (void)
3860 {
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 # Make sure it works both with $CC and with simple cc.
3867 # Following AC_PROG_CC_C_O, we do the test twice because some
3868 # compilers refuse to overwrite an existing .o file with -o,
3869 # though they will create one.
3870 am_cv_prog_cc_c_o=yes
3871 for am_i in 1 2; do
3872 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3873 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } \
3877 && test -f conftest2.$ac_objext; then
3878 : OK
3879 else
3880 am_cv_prog_cc_c_o=no
3881 break
3882 fi
3883 done
3884 # aligned with autoconf, so not including core; see bug#72225.
3885 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3886 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3887 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3888 unset am_i ;;
3889 esac
3890 fi
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3892 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3893 if test "$am_cv_prog_cc_c_o" != yes; then
3894 # Losing compiler, so override with the script.
3895 # FIXME: It is wrong to rewrite CC.
3896 # But if we don't then we get into trouble of one sort or another.
3897 # A longer-term fix would be to have automake use am__CC in this case,
3898 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3899 CC="$am_aux_dir/compile $CC"
3900 fi
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3914 printf %s "checking how to run the C preprocessor... " >&6; }
3915 # On Suns, sometimes $CPP names a directory.
3916 if test -n "$CPP" && test -d "$CPP"; then
3917 CPP=
3918 fi
3919 if test -z "$CPP"; then
3920 if test ${ac_cv_prog_CPP+y}
3921 then :
3922 printf %s "(cached) " >&6
3923 else case e in #(
3924 e) # Double quotes because $CC needs to be expanded
3925 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3926 do
3927 ac_preproc_ok=false
3928 for ac_c_preproc_warn_flag in '' yes
3929 do
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # On the NeXT, cc -E runs the code through the compiler's parser,
3933 # not just through cpp. "Syntax error" is here to catch this case.
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <limits.h>
3937 Syntax error
3938 _ACEOF
3939 if ac_fn_c_try_cpp "$LINENO"
3940 then :
3941
3942 else case e in #(
3943 e) # Broken: fails on valid input.
3944 continue ;;
3945 esac
3946 fi
3947 rm -f conftest.err conftest.i conftest.$ac_ext
3948
3949 # OK, works on sane cases. Now check whether nonexistent headers
3950 # can be detected and how.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <ac_nonexistent.h>
3954 _ACEOF
3955 if ac_fn_c_try_cpp "$LINENO"
3956 then :
3957 # Broken: success on invalid input.
3958 continue
3959 else case e in #(
3960 e) # Passes both tests.
3961 ac_preproc_ok=:
3962 break ;;
3963 esac
3964 fi
3965 rm -f conftest.err conftest.i conftest.$ac_ext
3966
3967 done
3968 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3969 rm -f conftest.i conftest.err conftest.$ac_ext
3970 if $ac_preproc_ok
3971 then :
3972 break
3973 fi
3974
3975 done
3976 ac_cv_prog_CPP=$CPP
3977 ;;
3978 esac
3979 fi
3980 CPP=$ac_cv_prog_CPP
3981 else
3982 ac_cv_prog_CPP=$CPP
3983 fi
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3985 printf "%s\n" "$CPP" >&6; }
3986 ac_preproc_ok=false
3987 for ac_c_preproc_warn_flag in '' yes
3988 do
3989 # Use a header file that comes with gcc, so configuring glibc
3990 # with a fresh cross-compiler works.
3991 # On the NeXT, cc -E runs the code through the compiler's parser,
3992 # not just through cpp. "Syntax error" is here to catch this case.
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <limits.h>
3996 Syntax error
3997 _ACEOF
3998 if ac_fn_c_try_cpp "$LINENO"
3999 then :
4000
4001 else case e in #(
4002 e) # Broken: fails on valid input.
4003 continue ;;
4004 esac
4005 fi
4006 rm -f conftest.err conftest.i conftest.$ac_ext
4007
4008 # OK, works on sane cases. Now check whether nonexistent headers
4009 # can be detected and how.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <ac_nonexistent.h>
4013 _ACEOF
4014 if ac_fn_c_try_cpp "$LINENO"
4015 then :
4016 # Broken: success on invalid input.
4017 continue
4018 else case e in #(
4019 e) # Passes both tests.
4020 ac_preproc_ok=:
4021 break ;;
4022 esac
4023 fi
4024 rm -f conftest.err conftest.i conftest.$ac_ext
4025
4026 done
4027 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.i conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok
4030 then :
4031
4032 else case e in #(
4033 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4034 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4035 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4036 See 'config.log' for more details" "$LINENO" 5; } ;;
4037 esac
4038 fi
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045
4046 case `pwd` in
4047 *\ * | *\ *)
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4049 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4050 esac
4051
4052
4053
4054 macro_version='2.5.4'
4055 macro_revision='2.5.4'
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070 ltmain=$ac_aux_dir/ltmain.sh
4071
4072
4073
4074 # Make sure we can run config.sub.
4075 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4076 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4077
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4079 printf %s "checking build system type... " >&6; }
4080 if test ${ac_cv_build+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else case e in #(
4084 e) ac_build_alias=$build_alias
4085 test "x$ac_build_alias" = x &&
4086 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4087 test "x$ac_build_alias" = x &&
4088 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4089 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4090 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4091 ;;
4092 esac
4093 fi
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4095 printf "%s\n" "$ac_cv_build" >&6; }
4096 case $ac_cv_build in
4097 *-*-*) ;;
4098 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4099 esac
4100 build=$ac_cv_build
4101 ac_save_IFS=$IFS; IFS='-'
4102 set x $ac_cv_build
4103 shift
4104 build_cpu=$1
4105 build_vendor=$2
4106 shift; shift
4107 # Remember, the first character of IFS is used to create $*,
4108 # except with old shells:
4109 build_os=$*
4110 IFS=$ac_save_IFS
4111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4112
4113
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4115 printf %s "checking host system type... " >&6; }
4116 if test ${ac_cv_host+y}
4117 then :
4118 printf %s "(cached) " >&6
4119 else case e in #(
4120 e) if test "x$host_alias" = x; then
4121 ac_cv_host=$ac_cv_build
4122 else
4123 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4124 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4125 fi
4126 ;;
4127 esac
4128 fi
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4130 printf "%s\n" "$ac_cv_host" >&6; }
4131 case $ac_cv_host in
4132 *-*-*) ;;
4133 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4134 esac
4135 host=$ac_cv_host
4136 ac_save_IFS=$IFS; IFS='-'
4137 set x $ac_cv_host
4138 shift
4139 host_cpu=$1
4140 host_vendor=$2
4141 shift; shift
4142 # Remember, the first character of IFS is used to create $*,
4143 # except with old shells:
4144 host_os=$*
4145 IFS=$ac_save_IFS
4146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4147
4148
4149 # Backslashify metacharacters that are still active within
4150 # double-quoted strings.
4151 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4152
4153 # Same as above, but do not quote variable references.
4154 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4155
4156 # Sed substitution to delay expansion of an escaped shell variable in a
4157 # double_quote_subst'ed string.
4158 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4159
4160 # Sed substitution to delay expansion of an escaped single quote.
4161 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4162
4163 # Sed substitution to avoid accidental globbing in evaled expressions
4164 no_glob_subst='s/\*/\\\*/g'
4165
4166 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4169
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4171 printf %s "checking how to print strings... " >&6; }
4172 # Test print first, because it will be a builtin if present.
4173 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4174 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4175 ECHO='print -r --'
4176 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4177 ECHO='printf %s\n'
4178 else
4179 # Use this function as a fallback that always works.
4180 func_fallback_echo ()
4181 {
4182 eval 'cat <<_LTECHO_EOF
4183 $1
4184 _LTECHO_EOF'
4185 }
4186 ECHO='func_fallback_echo'
4187 fi
4188
4189 # func_echo_all arg...
4190 # Invoke $ECHO with all args, space-separated.
4191 func_echo_all ()
4192 {
4193 $ECHO ""
4194 }
4195
4196 case $ECHO in
4197 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4198 printf "%s\n" "printf" >&6; } ;;
4199 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4200 printf "%s\n" "print -r" >&6; } ;;
4201 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4202 printf "%s\n" "cat" >&6; } ;;
4203 esac
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4219 printf %s "checking for a sed that does not truncate output... " >&6; }
4220 if test ${ac_cv_path_SED+y}
4221 then :
4222 printf %s "(cached) " >&6
4223 else case e in #(
4224 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4225 for ac_i in 1 2 3 4 5 6 7; do
4226 ac_script="$ac_script$as_nl$ac_script"
4227 done
4228 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4229 { ac_script=; unset ac_script;}
4230 if test -z "$SED"; then
4231 ac_path_SED_found=false
4232 # Loop through the user's path and test for each of PROGNAME-LIST
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236 IFS=$as_save_IFS
4237 case $as_dir in #(((
4238 '') as_dir=./ ;;
4239 */) ;;
4240 *) as_dir=$as_dir/ ;;
4241 esac
4242 for ac_prog in sed gsed
4243 do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4246 as_fn_executable_p "$ac_path_SED" || continue
4247 # Check for GNU ac_path_SED and select it if it is found.
4248 # Check for GNU $ac_path_SED
4249 case `"$ac_path_SED" --version 2>&1` in #(
4250 *GNU*)
4251 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4252 #(
4253 *)
4254 ac_count=0
4255 printf %s 0123456789 >"conftest.in"
4256 while :
4257 do
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 printf "%s\n" '' >> "conftest.nl"
4262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_SED_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_SED="$ac_path_SED"
4268 ac_path_SED_max=$ac_count
4269 fi
4270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274 esac
4275
4276 $ac_path_SED_found && break 3
4277 done
4278 done
4279 done
4280 IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_SED"; then
4282 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4283 fi
4284 else
4285 ac_cv_path_SED=$SED
4286 fi
4287 ;;
4288 esac
4289 fi
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4291 printf "%s\n" "$ac_cv_path_SED" >&6; }
4292 SED="$ac_cv_path_SED"
4293 rm -f conftest.sed
4294
4295 test -z "$SED" && SED=sed
4296 Xsed="$SED -e 1s/^X//"
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4309 printf %s "checking for grep that handles long lines and -e... " >&6; }
4310 if test ${ac_cv_path_GREP+y}
4311 then :
4312 printf %s "(cached) " >&6
4313 else case e in #(
4314 e) if test -z "$GREP"; then
4315 ac_path_GREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 do
4320 IFS=$as_save_IFS
4321 case $as_dir in #(((
4322 '') as_dir=./ ;;
4323 */) ;;
4324 *) as_dir=$as_dir/ ;;
4325 esac
4326 for ac_prog in grep ggrep
4327 do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4330 as_fn_executable_p "$ac_path_GREP" || continue
4331 # Check for GNU ac_path_GREP and select it if it is found.
4332 # Check for GNU $ac_path_GREP
4333 case `"$ac_path_GREP" --version 2>&1` in #(
4334 *GNU*)
4335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4336 #(
4337 *)
4338 ac_count=0
4339 printf %s 0123456789 >"conftest.in"
4340 while :
4341 do
4342 cat "conftest.in" "conftest.in" >"conftest.tmp"
4343 mv "conftest.tmp" "conftest.in"
4344 cp "conftest.in" "conftest.nl"
4345 printf "%s\n" 'GREP' >> "conftest.nl"
4346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348 as_fn_arith $ac_count + 1 && ac_count=$as_val
4349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4350 # Best one so far, save it but keep looking for a better one
4351 ac_cv_path_GREP="$ac_path_GREP"
4352 ac_path_GREP_max=$ac_count
4353 fi
4354 # 10*(2^10) chars as input seems more than enough
4355 test $ac_count -gt 10 && break
4356 done
4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 esac
4359
4360 $ac_path_GREP_found && break 3
4361 done
4362 done
4363 done
4364 IFS=$as_save_IFS
4365 if test -z "$ac_cv_path_GREP"; then
4366 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 fi
4368 else
4369 ac_cv_path_GREP=$GREP
4370 fi
4371 ;;
4372 esac
4373 fi
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4375 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4376 GREP="$ac_cv_path_GREP"
4377
4378
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4380 printf %s "checking for egrep... " >&6; }
4381 if test ${ac_cv_path_EGREP+y}
4382 then :
4383 printf %s "(cached) " >&6
4384 else case e in #(
4385 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4386 then ac_cv_path_EGREP="$GREP -E"
4387 else
4388 if test -z "$EGREP"; then
4389 ac_path_EGREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 do
4394 IFS=$as_save_IFS
4395 case $as_dir in #(((
4396 '') as_dir=./ ;;
4397 */) ;;
4398 *) as_dir=$as_dir/ ;;
4399 esac
4400 for ac_prog in egrep
4401 do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4404 as_fn_executable_p "$ac_path_EGREP" || continue
4405 # Check for GNU ac_path_EGREP and select it if it is found.
4406 # Check for GNU $ac_path_EGREP
4407 case `"$ac_path_EGREP" --version 2>&1` in #(
4408 *GNU*)
4409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 #(
4411 *)
4412 ac_count=0
4413 printf %s 0123456789 >"conftest.in"
4414 while :
4415 do
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 printf "%s\n" 'EGREP' >> "conftest.nl"
4420 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 as_fn_arith $ac_count + 1 && ac_count=$as_val
4423 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_EGREP="$ac_path_EGREP"
4426 ac_path_EGREP_max=$ac_count
4427 fi
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4430 done
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4433
4434 $ac_path_EGREP_found && break 3
4435 done
4436 done
4437 done
4438 IFS=$as_save_IFS
4439 if test -z "$ac_cv_path_EGREP"; then
4440 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4441 fi
4442 else
4443 ac_cv_path_EGREP=$EGREP
4444 fi
4445
4446 fi ;;
4447 esac
4448 fi
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4450 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4451 EGREP="$ac_cv_path_EGREP"
4452
4453 EGREP_TRADITIONAL=$EGREP
4454 ac_cv_path_EGREP_TRADITIONAL=$EGREP
4455
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4457 printf %s "checking for fgrep... " >&6; }
4458 if test ${ac_cv_path_FGREP+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else case e in #(
4462 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4463 then ac_cv_path_FGREP="$GREP -F"
4464 else
4465 if test -z "$FGREP"; then
4466 ac_path_FGREP_found=false
4467 # Loop through the user's path and test for each of PROGNAME-LIST
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470 do
4471 IFS=$as_save_IFS
4472 case $as_dir in #(((
4473 '') as_dir=./ ;;
4474 */) ;;
4475 *) as_dir=$as_dir/ ;;
4476 esac
4477 for ac_prog in fgrep
4478 do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4481 as_fn_executable_p "$ac_path_FGREP" || continue
4482 # Check for GNU ac_path_FGREP and select it if it is found.
4483 # Check for GNU $ac_path_FGREP
4484 case `"$ac_path_FGREP" --version 2>&1` in #(
4485 *GNU*)
4486 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4487 #(
4488 *)
4489 ac_count=0
4490 printf %s 0123456789 >"conftest.in"
4491 while :
4492 do
4493 cat "conftest.in" "conftest.in" >"conftest.tmp"
4494 mv "conftest.tmp" "conftest.in"
4495 cp "conftest.in" "conftest.nl"
4496 printf "%s\n" 'FGREP' >> "conftest.nl"
4497 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499 as_fn_arith $ac_count + 1 && ac_count=$as_val
4500 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4501 # Best one so far, save it but keep looking for a better one
4502 ac_cv_path_FGREP="$ac_path_FGREP"
4503 ac_path_FGREP_max=$ac_count
4504 fi
4505 # 10*(2^10) chars as input seems more than enough
4506 test $ac_count -gt 10 && break
4507 done
4508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 esac
4510
4511 $ac_path_FGREP_found && break 3
4512 done
4513 done
4514 done
4515 IFS=$as_save_IFS
4516 if test -z "$ac_cv_path_FGREP"; then
4517 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4518 fi
4519 else
4520 ac_cv_path_FGREP=$FGREP
4521 fi
4522
4523 fi ;;
4524 esac
4525 fi
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4527 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4528 FGREP="$ac_cv_path_FGREP"
4529
4530
4531 test -z "$GREP" && GREP=grep
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551 # Check whether --with-gnu-ld was given.
4552 if test ${with_gnu_ld+y}
4553 then :
4554 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4555 else case e in #(
4556 e) with_gnu_ld=no ;;
4557 esac
4558 fi
4559
4560 ac_prog=ld
4561 if test yes = "$GCC"; then
4562 # Check if gcc -print-prog-name=ld gives a path.
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4564 printf %s "checking for ld used by $CC... " >&6; }
4565 case $host in
4566 *-*-mingw* | *-*-windows*)
4567 # gcc leaves a trailing carriage return, which upsets mingw
4568 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4569 *)
4570 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4571 esac
4572 case $ac_prog in
4573 # Accept absolute paths.
4574 [\\/]* | ?:[\\/]*)
4575 re_direlt='/[^/][^/]*/\.\./'
4576 # Canonicalize the pathname of ld
4577 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4578 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4579 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4580 done
4581 test -z "$LD" && LD=$ac_prog
4582 ;;
4583 "")
4584 # If it fails, then pretend we aren't using GCC.
4585 ac_prog=ld
4586 ;;
4587 *)
4588 # If it is relative, then search for the first ld in PATH.
4589 with_gnu_ld=unknown
4590 ;;
4591 esac
4592 elif test yes = "$with_gnu_ld"; then
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4594 printf %s "checking for GNU ld... " >&6; }
4595 else
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4597 printf %s "checking for non-GNU ld... " >&6; }
4598 fi
4599 if test ${lt_cv_path_LD+y}
4600 then :
4601 printf %s "(cached) " >&6
4602 else case e in #(
4603 e) if test -z "$LD"; then
4604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4605 for ac_dir in $PATH; do
4606 IFS=$lt_save_ifs
4607 test -z "$ac_dir" && ac_dir=.
4608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4609 lt_cv_path_LD=$ac_dir/$ac_prog
4610 # Check to see if the program is GNU ld. I'd rather use --version,
4611 # but apparently some variants of GNU ld only accept -v.
4612 # Break only if it was the GNU/non-GNU ld that we prefer.
4613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4614 *GNU* | *'with BFD'*)
4615 test no != "$with_gnu_ld" && break
4616 ;;
4617 *)
4618 test yes != "$with_gnu_ld" && break
4619 ;;
4620 esac
4621 fi
4622 done
4623 IFS=$lt_save_ifs
4624 else
4625 lt_cv_path_LD=$LD # Let the user override the test with a path.
4626 fi ;;
4627 esac
4628 fi
4629
4630 LD=$lt_cv_path_LD
4631 if test -n "$LD"; then
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4633 printf "%s\n" "$LD" >&6; }
4634 else
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 printf "%s\n" "no" >&6; }
4637 fi
4638 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4640 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4641 if test ${lt_cv_prog_gnu_ld+y}
4642 then :
4643 printf %s "(cached) " >&6
4644 else case e in #(
4645 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
4646 case `$LD -v 2>&1 </dev/null` in
4647 *GNU* | *'with BFD'*)
4648 lt_cv_prog_gnu_ld=yes
4649 ;;
4650 *)
4651 lt_cv_prog_gnu_ld=no
4652 ;;
4653 esac ;;
4654 esac
4655 fi
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4657 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4658 with_gnu_ld=$lt_cv_prog_gnu_ld
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4669 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4670 if test ${lt_cv_path_NM+y}
4671 then :
4672 printf %s "(cached) " >&6
4673 else case e in #(
4674 e) if test -n "$NM"; then
4675 # Let the user override the test.
4676 lt_cv_path_NM=$NM
4677 else
4678 lt_nm_to_check=${ac_tool_prefix}nm
4679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4680 lt_nm_to_check="$lt_nm_to_check nm"
4681 fi
4682 for lt_tmp_nm in $lt_nm_to_check; do
4683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4685 IFS=$lt_save_ifs
4686 test -z "$ac_dir" && ac_dir=.
4687 tmp_nm=$ac_dir/$lt_tmp_nm
4688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4689 # Check to see if the nm accepts a BSD-compat flag.
4690 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4691 # nm: unknown option "B" ignored
4692 # Tru64's nm complains that /dev/null is an invalid object file
4693 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4694 case $build_os in
4695 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
4696 *) lt_bad_file=/dev/null ;;
4697 esac
4698 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4699 *$lt_bad_file* | *'Invalid file or object type'*)
4700 lt_cv_path_NM="$tmp_nm -B"
4701 break 2
4702 ;;
4703 *)
4704 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4705 */dev/null*)
4706 lt_cv_path_NM="$tmp_nm -p"
4707 break 2
4708 ;;
4709 *)
4710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4711 continue # so that we can try to find one that supports BSD flags
4712 ;;
4713 esac
4714 ;;
4715 esac
4716 fi
4717 done
4718 IFS=$lt_save_ifs
4719 done
4720 : ${lt_cv_path_NM=no}
4721 fi ;;
4722 esac
4723 fi
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4725 printf "%s\n" "$lt_cv_path_NM" >&6; }
4726 if test no != "$lt_cv_path_NM"; then
4727 NM=$lt_cv_path_NM
4728 else
4729 # Didn't find any BSD compatible name lister, look for dumpbin.
4730 if test -n "$DUMPBIN"; then :
4731 # Let the user override the test.
4732 else
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in dumpbin "link -dump"
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 printf %s "checking for $ac_word... " >&6; }
4740 if test ${ac_cv_prog_DUMPBIN+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else case e in #(
4744 e) if test -n "$DUMPBIN"; then
4745 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750 IFS=$as_save_IFS
4751 case $as_dir in #(((
4752 '') as_dir=./ ;;
4753 */) ;;
4754 *) as_dir=$as_dir/ ;;
4755 esac
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 fi ;;
4767 esac
4768 fi
4769 DUMPBIN=$ac_cv_prog_DUMPBIN
4770 if test -n "$DUMPBIN"; then
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4772 printf "%s\n" "$DUMPBIN" >&6; }
4773 else
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 printf "%s\n" "no" >&6; }
4776 fi
4777
4778
4779 test -n "$DUMPBIN" && break
4780 done
4781 fi
4782 if test -z "$DUMPBIN"; then
4783 ac_ct_DUMPBIN=$DUMPBIN
4784 for ac_prog in dumpbin "link -dump"
4785 do
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 printf %s "checking for $ac_word... " >&6; }
4790 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4791 then :
4792 printf %s "(cached) " >&6
4793 else case e in #(
4794 e) if test -n "$ac_ct_DUMPBIN"; then
4795 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 case $as_dir in #(((
4802 '') as_dir=./ ;;
4803 */) ;;
4804 *) as_dir=$as_dir/ ;;
4805 esac
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi ;;
4817 esac
4818 fi
4819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4820 if test -n "$ac_ct_DUMPBIN"; then
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4822 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4823 else
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 printf "%s\n" "no" >&6; }
4826 fi
4827
4828
4829 test -n "$ac_ct_DUMPBIN" && break
4830 done
4831
4832 if test "x$ac_ct_DUMPBIN" = x; then
4833 DUMPBIN=":"
4834 else
4835 case $cross_compiling:$ac_tool_warned in
4836 yes:)
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839 ac_tool_warned=yes ;;
4840 esac
4841 DUMPBIN=$ac_ct_DUMPBIN
4842 fi
4843 fi
4844
4845 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4846 *COFF*)
4847 DUMPBIN="$DUMPBIN -symbols -headers"
4848 ;;
4849 *)
4850 DUMPBIN=:
4851 ;;
4852 esac
4853 fi
4854
4855 if test : != "$DUMPBIN"; then
4856 NM=$DUMPBIN
4857 fi
4858 fi
4859 test -z "$NM" && NM=nm
4860
4861
4862
4863
4864
4865
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4867 printf %s "checking the name lister ($NM) interface... " >&6; }
4868 if test ${lt_cv_nm_interface+y}
4869 then :
4870 printf %s "(cached) " >&6
4871 else case e in #(
4872 e) lt_cv_nm_interface="BSD nm"
4873 echo "int some_variable = 0;" > conftest.$ac_ext
4874 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4875 (eval "$ac_compile" 2>conftest.err)
4876 cat conftest.err >&5
4877 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4878 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4879 cat conftest.err >&5
4880 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4881 cat conftest.out >&5
4882 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4883 lt_cv_nm_interface="MS dumpbin"
4884 fi
4885 rm -f conftest* ;;
4886 esac
4887 fi
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4889 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4890
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4892 printf %s "checking whether ln -s works... " >&6; }
4893 LN_S=$as_ln_s
4894 if test "$LN_S" = "ln -s"; then
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4896 printf "%s\n" "yes" >&6; }
4897 else
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4899 printf "%s\n" "no, using $LN_S" >&6; }
4900 fi
4901
4902 # find the maximum length of command line arguments
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4904 printf %s "checking the maximum length of command line arguments... " >&6; }
4905 if test ${lt_cv_sys_max_cmd_len+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else case e in #(
4909 e) i=0
4910 teststring=ABCD
4911
4912 case $build_os in
4913 msdosdjgpp*)
4914 # On DJGPP, this test can blow up pretty badly due to problems in libc
4915 # (any single argument exceeding 2000 bytes causes a buffer overrun
4916 # during glob expansion). Even if it were fixed, the result of this
4917 # check would be larger than it should be.
4918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4919 ;;
4920
4921 gnu* | ironclad*)
4922 # Under GNU Hurd and Ironclad, this test is not required because there
4923 # is no limit to the length of command line arguments.
4924 # Libtool will interpret -1 as no limit whatsoever
4925 lt_cv_sys_max_cmd_len=-1;
4926 ;;
4927
4928 cygwin* | mingw* | windows* | cegcc*)
4929 # On Win9x/ME, this test blows up -- it succeeds, but takes
4930 # about 5 minutes as the teststring grows exponentially.
4931 # Worse, since 9x/ME are not pre-emptively multitasking,
4932 # you end up with a "frozen" computer, even though with patience
4933 # the test eventually succeeds (with a max line length of 256k).
4934 # Instead, let's just punt: use the minimum linelength reported by
4935 # all of the supported platforms: 8192 (on NT/2K/XP).
4936 lt_cv_sys_max_cmd_len=8192;
4937 ;;
4938
4939 mint*)
4940 # On MiNT this can take a long time and run out of memory.
4941 lt_cv_sys_max_cmd_len=8192;
4942 ;;
4943
4944 amigaos*)
4945 # On AmigaOS with pdksh, this test takes hours, literally.
4946 # So we just punt and use a minimum line length of 8192.
4947 lt_cv_sys_max_cmd_len=8192;
4948 ;;
4949
4950 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4951 # This has been around since 386BSD, at least. Likely further.
4952 if test -x /sbin/sysctl; then
4953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4954 elif test -x /usr/sbin/sysctl; then
4955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4956 else
4957 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4958 fi
4959 # And add a safety zone
4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4962 ;;
4963
4964 interix*)
4965 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4966 lt_cv_sys_max_cmd_len=196608
4967 ;;
4968
4969 os2*)
4970 # The test takes a long time on OS/2.
4971 lt_cv_sys_max_cmd_len=8192
4972 ;;
4973
4974 osf*)
4975 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4976 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4977 # nice to cause kernel panics so lets avoid the loop below.
4978 # First set a reasonable default.
4979 lt_cv_sys_max_cmd_len=16384
4980 #
4981 if test -x /sbin/sysconfig; then
4982 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4983 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4984 esac
4985 fi
4986 ;;
4987 sco3.2v5*)
4988 lt_cv_sys_max_cmd_len=102400
4989 ;;
4990 sysv5* | sco5v6* | sysv4.2uw2*)
4991 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4992 if test -n "$kargmax"; then
4993 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
4994 else
4995 lt_cv_sys_max_cmd_len=32768
4996 fi
4997 ;;
4998 *)
4999 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5000 if test -n "$lt_cv_sys_max_cmd_len" && \
5001 test undefined != "$lt_cv_sys_max_cmd_len"; then
5002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5004 else
5005 # Make teststring a little bigger before we do anything with it.
5006 # a 1K string should be a reasonable start.
5007 for i in 1 2 3 4 5 6 7 8; do
5008 teststring=$teststring$teststring
5009 done
5010 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5011 # If test is not a shell built-in, we'll probably end up computing a
5012 # maximum length that is only half of the actual maximum length, but
5013 # we can't tell.
5014 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5015 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5016 test 17 != "$i" # 1/2 MB should be enough
5017 do
5018 i=`expr $i + 1`
5019 teststring=$teststring$teststring
5020 done
5021 # Only check the string length outside the loop.
5022 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5023 teststring=
5024 # Add a significant safety factor because C++ compilers can tack on
5025 # massive amounts of additional arguments before passing them to the
5026 # linker. It appears as though 1/2 is a usable value.
5027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5028 fi
5029 ;;
5030 esac
5031 ;;
5032 esac
5033 fi
5034
5035 if test -n "$lt_cv_sys_max_cmd_len"; then
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5037 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5038 else
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5040 printf "%s\n" "none" >&6; }
5041 fi
5042 max_cmd_len=$lt_cv_sys_max_cmd_len
5043
5044
5045
5046
5047
5048
5049 : ${CP="cp -f"}
5050 : ${MV="mv -f"}
5051 : ${RM="rm -f"}
5052
5053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5054 lt_unset=unset
5055 else
5056 lt_unset=false
5057 fi
5058
5059
5060
5061
5062
5063 # test EBCDIC or ASCII
5064 case `echo X|tr X '\101'` in
5065 A) # ASCII based system
5066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5067 lt_SP2NL='tr \040 \012'
5068 lt_NL2SP='tr \015\012 \040\040'
5069 ;;
5070 *) # EBCDIC based system
5071 lt_SP2NL='tr \100 \n'
5072 lt_NL2SP='tr \r\n \100\100'
5073 ;;
5074 esac
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5085 printf %s "checking how to convert $build file names to $host format... " >&6; }
5086 if test ${lt_cv_to_host_file_cmd+y}
5087 then :
5088 printf %s "(cached) " >&6
5089 else case e in #(
5090 e) case $host in
5091 *-*-mingw* )
5092 case $build in
5093 *-*-mingw* | *-*-windows* ) # actually msys
5094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5095 ;;
5096 *-*-cygwin* )
5097 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5098 ;;
5099 * ) # otherwise, assume *nix
5100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5101 ;;
5102 esac
5103 ;;
5104 *-*-cygwin* )
5105 case $build in
5106 *-*-mingw* | *-*-windows* ) # actually msys
5107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5108 ;;
5109 *-*-cygwin* )
5110 lt_cv_to_host_file_cmd=func_convert_file_noop
5111 ;;
5112 * ) # otherwise, assume *nix
5113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5114 ;;
5115 esac
5116 ;;
5117 * ) # unhandled hosts (and "normal" native builds)
5118 lt_cv_to_host_file_cmd=func_convert_file_noop
5119 ;;
5120 esac
5121 ;;
5122 esac
5123 fi
5124
5125 to_host_file_cmd=$lt_cv_to_host_file_cmd
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5127 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5128
5129
5130
5131
5132
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5134 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5135 if test ${lt_cv_to_tool_file_cmd+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else case e in #(
5139 e) #assume ordinary cross tools, or native build.
5140 lt_cv_to_tool_file_cmd=func_convert_file_noop
5141 case $host in
5142 *-*-mingw* | *-*-windows* )
5143 case $build in
5144 *-*-mingw* | *-*-windows* ) # actually msys
5145 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5146 ;;
5147 esac
5148 ;;
5149 esac
5150 ;;
5151 esac
5152 fi
5153
5154 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5156 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5157
5158
5159
5160
5161
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5163 printf %s "checking for $LD option to reload object files... " >&6; }
5164 if test ${lt_cv_ld_reload_flag+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else case e in #(
5168 e) lt_cv_ld_reload_flag='-r' ;;
5169 esac
5170 fi
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5172 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5173 reload_flag=$lt_cv_ld_reload_flag
5174 case $reload_flag in
5175 "" | " "*) ;;
5176 *) reload_flag=" $reload_flag" ;;
5177 esac
5178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5179 case $host_os in
5180 cygwin* | mingw* | windows* | pw32* | cegcc*)
5181 if test yes != "$GCC"; then
5182 reload_cmds=false
5183 fi
5184 ;;
5185 darwin*)
5186 if test yes = "$GCC"; then
5187 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5188 else
5189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5190 fi
5191 ;;
5192 esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202 # Extract the first word of "file", so it can be a program name with args.
5203 set dummy file; ac_word=$2
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 printf %s "checking for $ac_word... " >&6; }
5206 if test ${ac_cv_prog_FILECMD+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else case e in #(
5210 e) if test -n "$FILECMD"; then
5211 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 case $as_dir in #(((
5218 '') as_dir=./ ;;
5219 */) ;;
5220 *) as_dir=$as_dir/ ;;
5221 esac
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_FILECMD="file"
5225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5233 fi ;;
5234 esac
5235 fi
5236 FILECMD=$ac_cv_prog_FILECMD
5237 if test -n "$FILECMD"; then
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5239 printf "%s\n" "$FILECMD" >&6; }
5240 else
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 printf "%s\n" "no" >&6; }
5243 fi
5244
5245
5246
5247
5248
5249
5250
5251
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 printf %s "checking for $ac_word... " >&6; }
5257 if test ${ac_cv_prog_OBJDUMP+y}
5258 then :
5259 printf %s "(cached) " >&6
5260 else case e in #(
5261 e) if test -n "$OBJDUMP"; then
5262 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 case $as_dir in #(((
5269 '') as_dir=./ ;;
5270 */) ;;
5271 *) as_dir=$as_dir/ ;;
5272 esac
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 fi ;;
5284 esac
5285 fi
5286 OBJDUMP=$ac_cv_prog_OBJDUMP
5287 if test -n "$OBJDUMP"; then
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5289 printf "%s\n" "$OBJDUMP" >&6; }
5290 else
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 printf "%s\n" "no" >&6; }
5293 fi
5294
5295
5296 fi
5297 if test -z "$ac_cv_prog_OBJDUMP"; then
5298 ac_ct_OBJDUMP=$OBJDUMP
5299 # Extract the first word of "objdump", so it can be a program name with args.
5300 set dummy objdump; ac_word=$2
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 printf %s "checking for $ac_word... " >&6; }
5303 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5304 then :
5305 printf %s "(cached) " >&6
5306 else case e in #(
5307 e) if test -n "$ac_ct_OBJDUMP"; then
5308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 case $as_dir in #(((
5315 '') as_dir=./ ;;
5316 */) ;;
5317 *) as_dir=$as_dir/ ;;
5318 esac
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi ;;
5330 esac
5331 fi
5332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5333 if test -n "$ac_ct_OBJDUMP"; then
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5335 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5336 else
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 printf "%s\n" "no" >&6; }
5339 fi
5340
5341 if test "x$ac_ct_OBJDUMP" = x; then
5342 OBJDUMP="false"
5343 else
5344 case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350 OBJDUMP=$ac_ct_OBJDUMP
5351 fi
5352 else
5353 OBJDUMP="$ac_cv_prog_OBJDUMP"
5354 fi
5355
5356 test -z "$OBJDUMP" && OBJDUMP=objdump
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5367 printf %s "checking how to recognize dependent libraries... " >&6; }
5368 if test ${lt_cv_deplibs_check_method+y}
5369 then :
5370 printf %s "(cached) " >&6
5371 else case e in #(
5372 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
5373 lt_cv_file_magic_test_file=
5374 lt_cv_deplibs_check_method='unknown'
5375 # Need to set the preceding variable on all platforms that support
5376 # interlibrary dependencies.
5377 # 'none' -- dependencies not supported.
5378 # 'unknown' -- same as none, but documents that we really don't know.
5379 # 'pass_all' -- all dependencies passed with no checks.
5380 # 'file_magic [[regex]]' -- check by looking for files in library path
5381 # that responds to the $file_magic_cmd with a given extended regex.
5382 # If you have 'file' or equivalent on your system and you're not sure
5383 # whether 'pass_all' will *always* work, you probably want this one.
5384
5385 case $host_os in
5386 aix[4-9]*)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389
5390 beos*)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
5394 bsdi[45]*)
5395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5396 lt_cv_file_magic_cmd='$FILECMD -L'
5397 lt_cv_file_magic_test_file=/shlib/libc.so
5398 ;;
5399
5400 cygwin*)
5401 # func_win32_libid is a shell function defined in ltmain.sh
5402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5403 lt_cv_file_magic_cmd='func_win32_libid'
5404 ;;
5405
5406 mingw* | windows* | pw32*)
5407 # Base MSYS/MinGW do not provide the 'file' command needed by
5408 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5409 # unless we find 'file', for example because we are cross-compiling.
5410 if ( file / ) >/dev/null 2>&1; then
5411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5412 lt_cv_file_magic_cmd='func_win32_libid'
5413 else
5414 # Keep this pattern in sync with the one in func_win32_libid.
5415 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
5416 lt_cv_file_magic_cmd='$OBJDUMP -f'
5417 fi
5418 ;;
5419
5420 cegcc*)
5421 # use the weaker test based on 'objdump'. See mingw*.
5422 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5424 ;;
5425
5426 darwin* | rhapsody*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430 freebsd* | dragonfly* | midnightbsd*)
5431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5432 case $host_cpu in
5433 i*86 )
5434 # Not sure whether the presence of OpenBSD here was a mistake.
5435 # Let's accept both of them until this is cleared up.
5436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437 lt_cv_file_magic_cmd=$FILECMD
5438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439 ;;
5440 esac
5441 else
5442 lt_cv_deplibs_check_method=pass_all
5443 fi
5444 ;;
5445
5446 haiku*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449
5450 hpux10.20* | hpux11*)
5451 lt_cv_file_magic_cmd=$FILECMD
5452 case $host_cpu in
5453 ia64*)
5454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5455 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456 ;;
5457 hppa*64*)
5458 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]'
5459 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 ;;
5461 *)
5462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5463 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5464 ;;
5465 esac
5466 ;;
5467
5468 interix[3-9]*)
5469 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471 ;;
5472
5473 irix5* | irix6* | nonstopux*)
5474 case $LD in
5475 *-32|*"-32 ") libmagic=32-bit;;
5476 *-n32|*"-n32 ") libmagic=N32;;
5477 *-64|*"-64 ") libmagic=64-bit;;
5478 *) libmagic=never-match;;
5479 esac
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
5483 # This must be glibc/ELF.
5484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5485 lt_cv_deplibs_check_method=pass_all
5486 ;;
5487
5488 *-mlibc)
5489 lt_cv_deplibs_check_method=pass_all
5490 ;;
5491
5492 netbsd* | netbsdelf*-gnu)
5493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5495 else
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5497 fi
5498 ;;
5499
5500 newos6*)
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5502 lt_cv_file_magic_cmd=$FILECMD
5503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5504 ;;
5505
5506 *nto* | *qnx*)
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509
5510 openbsd*)
5511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5513 else
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515 fi
5516 ;;
5517
5518 osf3* | osf4* | osf5*)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522 rdos*)
5523 lt_cv_deplibs_check_method=pass_all
5524 ;;
5525
5526 serenity*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530 solaris*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533
5534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537
5538 sysv4 | sysv4.3*)
5539 case $host_vendor in
5540 motorola)
5541 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]'
5542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5543 ;;
5544 ncr)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547 sequent)
5548 lt_cv_file_magic_cmd='/bin/file'
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5550 ;;
5551 sni)
5552 lt_cv_file_magic_cmd='/bin/file'
5553 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5554 lt_cv_file_magic_test_file=/lib/libc.so
5555 ;;
5556 siemens)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559 pc)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562 esac
5563 ;;
5564
5565 tpf*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568 os2*)
5569 lt_cv_deplibs_check_method=pass_all
5570 ;;
5571 esac
5572 ;;
5573 esac
5574 fi
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5576 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5577
5578 file_magic_glob=
5579 want_nocaseglob=no
5580 if test "$build" = "$host"; then
5581 case $host_os in
5582 mingw* | windows* | pw32*)
5583 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5584 want_nocaseglob=yes
5585 else
5586 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5587 fi
5588 ;;
5589 esac
5590 fi
5591
5592 file_magic_cmd=$lt_cv_file_magic_cmd
5593 deplibs_check_method=$lt_cv_deplibs_check_method
5594 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 printf %s "checking for $ac_word... " >&6; }
5622 if test ${ac_cv_prog_DLLTOOL+y}
5623 then :
5624 printf %s "(cached) " >&6
5625 else case e in #(
5626 e) if test -n "$DLLTOOL"; then
5627 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632 IFS=$as_save_IFS
5633 case $as_dir in #(((
5634 '') as_dir=./ ;;
5635 */) ;;
5636 *) as_dir=$as_dir/ ;;
5637 esac
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi ;;
5649 esac
5650 fi
5651 DLLTOOL=$ac_cv_prog_DLLTOOL
5652 if test -n "$DLLTOOL"; then
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5654 printf "%s\n" "$DLLTOOL" >&6; }
5655 else
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 printf "%s\n" "no" >&6; }
5658 fi
5659
5660
5661 fi
5662 if test -z "$ac_cv_prog_DLLTOOL"; then
5663 ac_ct_DLLTOOL=$DLLTOOL
5664 # Extract the first word of "dlltool", so it can be a program name with args.
5665 set dummy dlltool; ac_word=$2
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 printf %s "checking for $ac_word... " >&6; }
5668 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5669 then :
5670 printf %s "(cached) " >&6
5671 else case e in #(
5672 e) if test -n "$ac_ct_DLLTOOL"; then
5673 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678 IFS=$as_save_IFS
5679 case $as_dir in #(((
5680 '') as_dir=./ ;;
5681 */) ;;
5682 *) as_dir=$as_dir/ ;;
5683 esac
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi ;;
5695 esac
5696 fi
5697 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5698 if test -n "$ac_ct_DLLTOOL"; then
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5700 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5701 else
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 printf "%s\n" "no" >&6; }
5704 fi
5705
5706 if test "x$ac_ct_DLLTOOL" = x; then
5707 DLLTOOL="false"
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715 DLLTOOL=$ac_ct_DLLTOOL
5716 fi
5717 else
5718 DLLTOOL="$ac_cv_prog_DLLTOOL"
5719 fi
5720
5721 test -z "$DLLTOOL" && DLLTOOL=dlltool
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5733 printf %s "checking how to associate runtime and link libraries... " >&6; }
5734 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5735 then :
5736 printf %s "(cached) " >&6
5737 else case e in #(
5738 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
5739
5740 case $host_os in
5741 cygwin* | mingw* | windows* | pw32* | cegcc*)
5742 # two different shell functions defined in ltmain.sh;
5743 # decide which one to use based on capabilities of $DLLTOOL
5744 case `$DLLTOOL --help 2>&1` in
5745 *--identify-strict*)
5746 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5747 ;;
5748 *)
5749 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5750 ;;
5751 esac
5752 ;;
5753 *)
5754 # fallback: assume linklib IS sharedlib
5755 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5756 ;;
5757 esac
5758 ;;
5759 esac
5760 fi
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5762 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5763 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5764 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5765
5766
5767
5768
5769
5770
5771
5772
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 printf %s "checking for $ac_word... " >&6; }
5778 if test ${ac_cv_prog_RANLIB+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else case e in #(
5782 e) if test -n "$RANLIB"; then
5783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788 IFS=$as_save_IFS
5789 case $as_dir in #(((
5790 '') as_dir=./ ;;
5791 */) ;;
5792 *) as_dir=$as_dir/ ;;
5793 esac
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800 done
5801 done
5802 IFS=$as_save_IFS
5803
5804 fi ;;
5805 esac
5806 fi
5807 RANLIB=$ac_cv_prog_RANLIB
5808 if test -n "$RANLIB"; then
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5810 printf "%s\n" "$RANLIB" >&6; }
5811 else
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 printf "%s\n" "no" >&6; }
5814 fi
5815
5816
5817 fi
5818 if test -z "$ac_cv_prog_RANLIB"; then
5819 ac_ct_RANLIB=$RANLIB
5820 # Extract the first word of "ranlib", so it can be a program name with args.
5821 set dummy ranlib; ac_word=$2
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 printf %s "checking for $ac_word... " >&6; }
5824 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5825 then :
5826 printf %s "(cached) " >&6
5827 else case e in #(
5828 e) if test -n "$ac_ct_RANLIB"; then
5829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 case $as_dir in #(((
5836 '') as_dir=./ ;;
5837 */) ;;
5838 *) as_dir=$as_dir/ ;;
5839 esac
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_ac_ct_RANLIB="ranlib"
5843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850 fi ;;
5851 esac
5852 fi
5853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5854 if test -n "$ac_ct_RANLIB"; then
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5856 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5857 else
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 printf "%s\n" "no" >&6; }
5860 fi
5861
5862 if test "x$ac_ct_RANLIB" = x; then
5863 RANLIB=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 RANLIB=$ac_ct_RANLIB
5872 fi
5873 else
5874 RANLIB="$ac_cv_prog_RANLIB"
5875 fi
5876
5877 if test -n "$ac_tool_prefix"; then
5878 for ac_prog in ar
5879 do
5880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 printf %s "checking for $ac_word... " >&6; }
5884 if test ${ac_cv_prog_AR+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else case e in #(
5888 e) if test -n "$AR"; then
5889 ac_cv_prog_AR="$AR" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 case $as_dir in #(((
5896 '') as_dir=./ ;;
5897 */) ;;
5898 *) as_dir=$as_dir/ ;;
5899 esac
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi ;;
5911 esac
5912 fi
5913 AR=$ac_cv_prog_AR
5914 if test -n "$AR"; then
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5916 printf "%s\n" "$AR" >&6; }
5917 else
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 printf "%s\n" "no" >&6; }
5920 fi
5921
5922
5923 test -n "$AR" && break
5924 done
5925 fi
5926 if test -z "$AR"; then
5927 ac_ct_AR=$AR
5928 for ac_prog in ar
5929 do
5930 # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 printf %s "checking for $ac_word... " >&6; }
5934 if test ${ac_cv_prog_ac_ct_AR+y}
5935 then :
5936 printf %s "(cached) " >&6
5937 else case e in #(
5938 e) if test -n "$ac_ct_AR"; then
5939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944 IFS=$as_save_IFS
5945 case $as_dir in #(((
5946 '') as_dir=./ ;;
5947 */) ;;
5948 *) as_dir=$as_dir/ ;;
5949 esac
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_AR="$ac_prog"
5953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi ;;
5961 esac
5962 fi
5963 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5964 if test -n "$ac_ct_AR"; then
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5966 printf "%s\n" "$ac_ct_AR" >&6; }
5967 else
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 printf "%s\n" "no" >&6; }
5970 fi
5971
5972
5973 test -n "$ac_ct_AR" && break
5974 done
5975
5976 if test "x$ac_ct_AR" = x; then
5977 AR="false"
5978 else
5979 case $cross_compiling:$ac_tool_warned in
5980 yes:)
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983 ac_tool_warned=yes ;;
5984 esac
5985 AR=$ac_ct_AR
5986 fi
5987 fi
5988
5989 : ${AR=ar}
5990
5991
5992
5993
5994
5995
5996 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
5997 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5998 # higher priority because that's what people were doing historically (setting
5999 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6000 # variable obsoleted/removed.
6001
6002 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6003 lt_ar_flags=$AR_FLAGS
6004
6005
6006
6007
6008
6009
6010 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6011 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6012
6013
6014
6015
6016
6017
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6019 printf %s "checking for archiver @FILE support... " >&6; }
6020 if test ${lt_cv_ar_at_file+y}
6021 then :
6022 printf %s "(cached) " >&6
6023 else case e in #(
6024 e) lt_cv_ar_at_file=no
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027
6028 int
6029 main (void)
6030 {
6031
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"
6037 then :
6038 echo conftest.$ac_objext > conftest.lst
6039 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6041 (eval $lt_ar_try) 2>&5
6042 ac_status=$?
6043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044 test $ac_status = 0; }
6045 if test 0 -eq "$ac_status"; then
6046 # Ensure the archiver fails upon bogus file names.
6047 rm -f conftest.$ac_objext libconftest.a
6048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6049 (eval $lt_ar_try) 2>&5
6050 ac_status=$?
6051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; }
6053 if test 0 -ne "$ac_status"; then
6054 lt_cv_ar_at_file=@
6055 fi
6056 fi
6057 rm -f conftest.* libconftest.a
6058
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 ;;
6062 esac
6063 fi
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6065 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6066
6067 if test no = "$lt_cv_ar_at_file"; then
6068 archiver_list_spec=
6069 else
6070 archiver_list_spec=$lt_cv_ar_at_file
6071 fi
6072
6073
6074
6075
6076
6077
6078
6079 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}strip; ac_word=$2
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 printf %s "checking for $ac_word... " >&6; }
6084 if test ${ac_cv_prog_STRIP+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else case e in #(
6088 e) if test -n "$STRIP"; then
6089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094 IFS=$as_save_IFS
6095 case $as_dir in #(((
6096 '') as_dir=./ ;;
6097 */) ;;
6098 *) as_dir=$as_dir/ ;;
6099 esac
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi ;;
6111 esac
6112 fi
6113 STRIP=$ac_cv_prog_STRIP
6114 if test -n "$STRIP"; then
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6116 printf "%s\n" "$STRIP" >&6; }
6117 else
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 printf "%s\n" "no" >&6; }
6120 fi
6121
6122
6123 fi
6124 if test -z "$ac_cv_prog_STRIP"; then
6125 ac_ct_STRIP=$STRIP
6126 # Extract the first word of "strip", so it can be a program name with args.
6127 set dummy strip; ac_word=$2
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 printf %s "checking for $ac_word... " >&6; }
6130 if test ${ac_cv_prog_ac_ct_STRIP+y}
6131 then :
6132 printf %s "(cached) " >&6
6133 else case e in #(
6134 e) if test -n "$ac_ct_STRIP"; then
6135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 case $as_dir in #(((
6142 '') as_dir=./ ;;
6143 */) ;;
6144 *) as_dir=$as_dir/ ;;
6145 esac
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_ac_ct_STRIP="strip"
6149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156 fi ;;
6157 esac
6158 fi
6159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6160 if test -n "$ac_ct_STRIP"; then
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6162 printf "%s\n" "$ac_ct_STRIP" >&6; }
6163 else
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 printf "%s\n" "no" >&6; }
6166 fi
6167
6168 if test "x$ac_ct_STRIP" = x; then
6169 STRIP=":"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177 STRIP=$ac_ct_STRIP
6178 fi
6179 else
6180 STRIP="$ac_cv_prog_STRIP"
6181 fi
6182
6183 test -z "$STRIP" && STRIP=:
6184
6185
6186
6187
6188
6189
6190
6191 test -z "$RANLIB" && RANLIB=:
6192
6193
6194
6195
6196
6197
6198 # Determine commands to create old-style static archives.
6199 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6200 old_postinstall_cmds='chmod 644 $oldlib'
6201 old_postuninstall_cmds=
6202
6203 if test -n "$RANLIB"; then
6204 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6206 fi
6207
6208 case $host_os in
6209 darwin*)
6210 lock_old_archive_extraction=yes ;;
6211 *)
6212 lock_old_archive_extraction=no ;;
6213 esac
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 for ac_prog in gawk mawk nawk awk
6236 do
6237 # Extract the first word of "$ac_prog", so it can be a program name with args.
6238 set dummy $ac_prog; ac_word=$2
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 printf %s "checking for $ac_word... " >&6; }
6241 if test ${ac_cv_prog_AWK+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else case e in #(
6245 e) if test -n "$AWK"; then
6246 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 case $as_dir in #(((
6253 '') as_dir=./ ;;
6254 */) ;;
6255 *) as_dir=$as_dir/ ;;
6256 esac
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_AWK="$ac_prog"
6260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi ;;
6268 esac
6269 fi
6270 AWK=$ac_cv_prog_AWK
6271 if test -n "$AWK"; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6273 printf "%s\n" "$AWK" >&6; }
6274 else
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 printf "%s\n" "no" >&6; }
6277 fi
6278
6279
6280 test -n "$AWK" && break
6281 done
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 # If no C compiler was specified, use CC.
6302 LTCC=${LTCC-"$CC"}
6303
6304 # If no C compiler flags were specified, use CFLAGS.
6305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6306
6307 # Allow CC to be a program name with arguments.
6308 compiler=$CC
6309
6310
6311 # Check for command to grab the raw symbol name followed by C symbol from nm.
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6313 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6314 if test ${lt_cv_sys_global_symbol_pipe+y}
6315 then :
6316 printf %s "(cached) " >&6
6317 else case e in #(
6318 e)
6319 # These are sane defaults that work on at least a few old systems.
6320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6321
6322 # Character class describing NM global symbol codes.
6323 symcode='[BCDEGRST]'
6324
6325 # Regexp to match symbols that can be accessed directly from C.
6326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6327
6328 # Define system-specific variables.
6329 case $host_os in
6330 aix*)
6331 symcode='[BCDT]'
6332 ;;
6333 cygwin* | mingw* | windows* | pw32* | cegcc*)
6334 symcode='[ABCDGISTW]'
6335 ;;
6336 hpux*)
6337 if test ia64 = "$host_cpu"; then
6338 symcode='[ABCDEGRST]'
6339 fi
6340 ;;
6341 irix* | nonstopux*)
6342 symcode='[BCDEGRST]'
6343 ;;
6344 osf*)
6345 symcode='[BCDEGQRST]'
6346 ;;
6347 solaris*)
6348 symcode='[BCDRT]'
6349 ;;
6350 sco3.2v5*)
6351 symcode='[DT]'
6352 ;;
6353 sysv4.2uw2*)
6354 symcode='[DT]'
6355 ;;
6356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6357 symcode='[ABDT]'
6358 ;;
6359 sysv4)
6360 symcode='[DFNSTU]'
6361 ;;
6362 esac
6363
6364 # If we're using GNU nm, then use its standard symbol codes.
6365 case `$NM -V 2>&1` in
6366 *GNU* | *'with BFD'*)
6367 symcode='[ABCDGIRSTW]' ;;
6368 esac
6369
6370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6371 # Gets list of data symbols to import.
6372 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6373 # Adjust the below global symbol transforms to fixup imported variables.
6374 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6375 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6376 lt_c_name_lib_hook="\
6377 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6378 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6379 else
6380 # Disable hooks by default.
6381 lt_cv_sys_global_symbol_to_import=
6382 lt_cdecl_hook=
6383 lt_c_name_hook=
6384 lt_c_name_lib_hook=
6385 fi
6386
6387 # Transform an extracted symbol line into a proper C declaration.
6388 # Some systems (esp. on ia64) link data and code symbols differently,
6389 # so use this general approach.
6390 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6391 $lt_cdecl_hook\
6392 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6393 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6394
6395 # Transform an extracted symbol line into symbol name and symbol address
6396 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6397 $lt_c_name_hook\
6398 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6399 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6400
6401 # Transform an extracted symbol line into symbol name with lib prefix and
6402 # symbol address.
6403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6404 $lt_c_name_lib_hook\
6405 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6406 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6407 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6408
6409 # Handle CRLF in mingw tool chain
6410 opt_cr=
6411 case $build_os in
6412 mingw* | windows*)
6413 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6414 ;;
6415 esac
6416
6417 # Try without a prefix underscore, then with it.
6418 for ac_symprfx in "" "_"; do
6419
6420 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6421 symxfrm="\\1 $ac_symprfx\\2 \\2"
6422
6423 # Write the raw and C identifiers.
6424 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6425 # Fake it for dumpbin and say T for any non-static function,
6426 # D for any global variable and I for any imported variable.
6427 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6428 # which start with @ or ?.
6429 lt_cv_sys_global_symbol_pipe="$AWK '"\
6430 " {last_section=section; section=\$ 3};"\
6431 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6432 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6433 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6434 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6435 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6436 " \$ 0!~/External *\|/{next};"\
6437 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6438 " {if(hide[section]) next};"\
6439 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6440 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6441 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6442 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6443 " ' prfx=^$ac_symprfx"
6444 else
6445 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6446 fi
6447 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6448
6449 # Check to see that the pipe works correctly.
6450 pipe_works=no
6451
6452 rm -f conftest*
6453 cat > conftest.$ac_ext <<_LT_EOF
6454 #ifdef __cplusplus
6455 extern "C" {
6456 #endif
6457 char nm_test_var;
6458 void nm_test_func(void);
6459 void nm_test_func(void){}
6460 #ifdef __cplusplus
6461 }
6462 #endif
6463 int main(void){nm_test_var='a';nm_test_func();return(0);}
6464 _LT_EOF
6465
6466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467 (eval $ac_compile) 2>&5
6468 ac_status=$?
6469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }; then
6471 # Now try to grab the symbols.
6472 nlist=conftest.nm
6473 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6474 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6475 # Try sorting and uniquifying the output.
6476 if sort "$nlist" | uniq > "$nlist"T; then
6477 mv -f "$nlist"T "$nlist"
6478 else
6479 rm -f "$nlist"T
6480 fi
6481
6482 # Make sure that we snagged all the symbols we need.
6483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6485 cat <<_LT_EOF > conftest.$ac_ext
6486 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6487 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6488 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6489 relocations are performed -- see ld's documentation on pseudo-relocs. */
6490 # define LT_DLSYM_CONST
6491 #elif defined __osf__
6492 /* This system does not cope well with relocations in const data. */
6493 # define LT_DLSYM_CONST
6494 #else
6495 # define LT_DLSYM_CONST const
6496 #endif
6497
6498 #ifdef __cplusplus
6499 extern "C" {
6500 #endif
6501
6502 _LT_EOF
6503 # Now generate the symbol file.
6504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6505
6506 cat <<_LT_EOF >> conftest.$ac_ext
6507
6508 /* The mapping between symbol names and symbols. */
6509 LT_DLSYM_CONST struct {
6510 const char *name;
6511 void *address;
6512 }
6513 lt__PROGRAM__LTX_preloaded_symbols[] =
6514 {
6515 { "@PROGRAM@", (void *) 0 },
6516 _LT_EOF
6517 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6518 cat <<\_LT_EOF >> conftest.$ac_ext
6519 {0, (void *) 0}
6520 };
6521
6522 /* This works around a problem in FreeBSD linker */
6523 #ifdef FREEBSD_WORKAROUND
6524 static const void *lt_preloaded_setup() {
6525 return lt__PROGRAM__LTX_preloaded_symbols;
6526 }
6527 #endif
6528
6529 #ifdef __cplusplus
6530 }
6531 #endif
6532 _LT_EOF
6533 # Now try linking the two files.
6534 mv conftest.$ac_objext conftstm.$ac_objext
6535 lt_globsym_save_LIBS=$LIBS
6536 lt_globsym_save_CFLAGS=$CFLAGS
6537 LIBS=conftstm.$ac_objext
6538 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6540 (eval $ac_link) 2>&5
6541 ac_status=$?
6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6544 pipe_works=yes
6545 fi
6546 LIBS=$lt_globsym_save_LIBS
6547 CFLAGS=$lt_globsym_save_CFLAGS
6548 else
6549 echo "cannot find nm_test_func in $nlist" >&5
6550 fi
6551 else
6552 echo "cannot find nm_test_var in $nlist" >&5
6553 fi
6554 else
6555 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6556 fi
6557 else
6558 echo "$progname: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6560 fi
6561 rm -rf conftest* conftst*
6562
6563 # Do not use the global_symbol_pipe unless it works.
6564 if test yes = "$pipe_works"; then
6565 break
6566 else
6567 lt_cv_sys_global_symbol_pipe=
6568 fi
6569 done
6570 ;;
6571 esac
6572 fi
6573
6574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6575 lt_cv_sys_global_symbol_to_cdecl=
6576 fi
6577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6579 printf "%s\n" "failed" >&6; }
6580 else
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6582 printf "%s\n" "ok" >&6; }
6583 fi
6584
6585 # Response file support.
6586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6587 nm_file_list_spec='@'
6588 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6589 nm_file_list_spec='@'
6590 fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6629 printf %s "checking for sysroot... " >&6; }
6630
6631 # Check whether --with-sysroot was given.
6632 if test ${with_sysroot+y}
6633 then :
6634 withval=$with_sysroot;
6635 else case e in #(
6636 e) with_sysroot=no ;;
6637 esac
6638 fi
6639
6640
6641 lt_sysroot=
6642 case $with_sysroot in #(
6643 yes)
6644 if test yes = "$GCC"; then
6645 # Trim trailing / since we'll always append absolute paths and we want
6646 # to avoid //, if only for less confusing output for the user.
6647 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
6648 fi
6649 ;; #(
6650 /*)
6651 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6652 ;; #(
6653 no|'')
6654 ;; #(
6655 *)
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6657 printf "%s\n" "$with_sysroot" >&6; }
6658 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6659 ;;
6660 esac
6661
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6663 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6664
6665
6666
6667
6668
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6670 printf %s "checking for a working dd... " >&6; }
6671 if test ${ac_cv_path_lt_DD+y}
6672 then :
6673 printf %s "(cached) " >&6
6674 else case e in #(
6675 e) printf 0123456789abcdef0123456789abcdef >conftest.i
6676 cat conftest.i conftest.i >conftest2.i
6677 : ${lt_DD:=$DD}
6678 if test -z "$lt_DD"; then
6679 ac_path_lt_DD_found=false
6680 # Loop through the user's path and test for each of PROGNAME-LIST
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 case $as_dir in #(((
6686 '') as_dir=./ ;;
6687 */) ;;
6688 *) as_dir=$as_dir/ ;;
6689 esac
6690 for ac_prog in dd
6691 do
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6694 as_fn_executable_p "$ac_path_lt_DD" || continue
6695 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6696 cmp -s conftest.i conftest.out \
6697 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6698 fi
6699 $ac_path_lt_DD_found && break 3
6700 done
6701 done
6702 done
6703 IFS=$as_save_IFS
6704 if test -z "$ac_cv_path_lt_DD"; then
6705 :
6706 fi
6707 else
6708 ac_cv_path_lt_DD=$lt_DD
6709 fi
6710
6711 rm -f conftest.i conftest2.i conftest.out ;;
6712 esac
6713 fi
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6715 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6716
6717
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6719 printf %s "checking how to truncate binary pipes... " >&6; }
6720 if test ${lt_cv_truncate_bin+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else case e in #(
6724 e) printf 0123456789abcdef0123456789abcdef >conftest.i
6725 cat conftest.i conftest.i >conftest2.i
6726 lt_cv_truncate_bin=
6727 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6728 cmp -s conftest.i conftest.out \
6729 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6730 fi
6731 rm -f conftest.i conftest2.i conftest.out
6732 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
6733 esac
6734 fi
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6736 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6737
6738
6739
6740
6741
6742
6743
6744 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6745 func_cc_basename ()
6746 {
6747 for cc_temp in $*""; do
6748 case $cc_temp in
6749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6751 \-*) ;;
6752 *) break;;
6753 esac
6754 done
6755 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6756 }
6757
6758 # Check whether --enable-libtool-lock was given.
6759 if test ${enable_libtool_lock+y}
6760 then :
6761 enableval=$enable_libtool_lock;
6762 fi
6763
6764 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6765
6766 # Some flags need to be propagated to the compiler or linker for good
6767 # libtool support.
6768 case $host in
6769 ia64-*-hpux*)
6770 # Find out what ABI is being produced by ac_compile, and set mode
6771 # options accordingly.
6772 echo 'int i;' > conftest.$ac_ext
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; }; then
6778 case `$FILECMD conftest.$ac_objext` in
6779 *ELF-32*)
6780 HPUX_IA64_MODE=32
6781 ;;
6782 *ELF-64*)
6783 HPUX_IA64_MODE=64
6784 ;;
6785 esac
6786 fi
6787 rm -rf conftest*
6788 ;;
6789 *-*-irix6*)
6790 # Find out what ABI is being produced by ac_compile, and set linker
6791 # options accordingly.
6792 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794 (eval $ac_compile) 2>&5
6795 ac_status=$?
6796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }; then
6798 if test yes = "$lt_cv_prog_gnu_ld"; then
6799 case `$FILECMD conftest.$ac_objext` in
6800 *32-bit*)
6801 LD="${LD-ld} -melf32bsmip"
6802 ;;
6803 *N32*)
6804 LD="${LD-ld} -melf32bmipn32"
6805 ;;
6806 *64-bit*)
6807 LD="${LD-ld} -melf64bmip"
6808 ;;
6809 esac
6810 else
6811 case `$FILECMD conftest.$ac_objext` in
6812 *32-bit*)
6813 LD="${LD-ld} -32"
6814 ;;
6815 *N32*)
6816 LD="${LD-ld} -n32"
6817 ;;
6818 *64-bit*)
6819 LD="${LD-ld} -64"
6820 ;;
6821 esac
6822 fi
6823 fi
6824 rm -rf conftest*
6825 ;;
6826
6827 mips64*-*linux*)
6828 # Find out what ABI is being produced by ac_compile, and set linker
6829 # options accordingly.
6830 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 emul=elf
6837 case `$FILECMD conftest.$ac_objext` in
6838 *32-bit*)
6839 emul="${emul}32"
6840 ;;
6841 *64-bit*)
6842 emul="${emul}64"
6843 ;;
6844 esac
6845 case `$FILECMD conftest.$ac_objext` in
6846 *MSB*)
6847 emul="${emul}btsmip"
6848 ;;
6849 *LSB*)
6850 emul="${emul}ltsmip"
6851 ;;
6852 esac
6853 case `$FILECMD conftest.$ac_objext` in
6854 *N32*)
6855 emul="${emul}n32"
6856 ;;
6857 esac
6858 LD="${LD-ld} -m $emul"
6859 fi
6860 rm -rf conftest*
6861 ;;
6862
6863 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6864 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
6865 # Find out what ABI is being produced by ac_compile, and set linker
6866 # options accordingly. Note that the listed cases only cover the
6867 # situations where additional linker options are needed (such as when
6868 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6869 # vice versa); the common cases where no linker options are needed do
6870 # not appear in the list.
6871 echo 'int i;' > conftest.$ac_ext
6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876 test $ac_status = 0; }; then
6877 case `$FILECMD conftest.o` in
6878 *32-bit*)
6879 case $host in
6880 x86_64-*kfreebsd*-gnu)
6881 LD="${LD-ld} -m elf_i386_fbsd"
6882 ;;
6883 x86_64-*linux*|x86_64-gnu*)
6884 case `$FILECMD conftest.o` in
6885 *x86-64*)
6886 LD="${LD-ld} -m elf32_x86_64"
6887 ;;
6888 *)
6889 LD="${LD-ld} -m elf_i386"
6890 ;;
6891 esac
6892 ;;
6893 powerpc64le-*linux*)
6894 LD="${LD-ld} -m elf32lppclinux"
6895 ;;
6896 powerpc64-*linux*)
6897 LD="${LD-ld} -m elf32ppclinux"
6898 ;;
6899 s390x-*linux*)
6900 LD="${LD-ld} -m elf_s390"
6901 ;;
6902 sparc64-*linux*)
6903 LD="${LD-ld} -m elf32_sparc"
6904 ;;
6905 esac
6906 ;;
6907 *64-bit*)
6908 case $host in
6909 x86_64-*kfreebsd*-gnu)
6910 LD="${LD-ld} -m elf_x86_64_fbsd"
6911 ;;
6912 x86_64-*linux*|x86_64-gnu*)
6913 LD="${LD-ld} -m elf_x86_64"
6914 ;;
6915 powerpcle-*linux*)
6916 LD="${LD-ld} -m elf64lppc"
6917 ;;
6918 powerpc-*linux*)
6919 LD="${LD-ld} -m elf64ppc"
6920 ;;
6921 s390*-*linux*|s390*-*tpf*)
6922 LD="${LD-ld} -m elf64_s390"
6923 ;;
6924 sparc*-*linux*)
6925 LD="${LD-ld} -m elf64_sparc"
6926 ;;
6927 esac
6928 ;;
6929 esac
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
6934 *-*-sco3.2v5*)
6935 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6936 SAVE_CFLAGS=$CFLAGS
6937 CFLAGS="$CFLAGS -belf"
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6939 printf %s "checking whether the C compiler needs -belf... " >&6; }
6940 if test ${lt_cv_cc_needs_belf+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else case e in #(
6944 e) ac_ext=c
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952
6953 int
6954 main (void)
6955 {
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 if ac_fn_c_try_link "$LINENO"
6962 then :
6963 lt_cv_cc_needs_belf=yes
6964 else case e in #(
6965 e) lt_cv_cc_needs_belf=no ;;
6966 esac
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6969 conftest$ac_exeext conftest.$ac_ext
6970 ac_ext=c
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 ;;
6976 esac
6977 fi
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6979 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6980 if test yes != "$lt_cv_cc_needs_belf"; then
6981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6982 CFLAGS=$SAVE_CFLAGS
6983 fi
6984 ;;
6985 *-*solaris*)
6986 # Find out what ABI is being produced by ac_compile, and set linker
6987 # options accordingly.
6988 echo 'int i;' > conftest.$ac_ext
6989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6990 (eval $ac_compile) 2>&5
6991 ac_status=$?
6992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993 test $ac_status = 0; }; then
6994 case `$FILECMD conftest.o` in
6995 *64-bit*)
6996 case $lt_cv_prog_gnu_ld in
6997 yes*)
6998 case $host in
6999 i?86-*-solaris*|x86_64-*-solaris*)
7000 LD="${LD-ld} -m elf_x86_64"
7001 ;;
7002 sparc*-*-solaris*)
7003 LD="${LD-ld} -m elf64_sparc"
7004 ;;
7005 esac
7006 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7007 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7008 LD=${LD-ld}_sol2
7009 fi
7010 ;;
7011 *)
7012 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7013 LD="${LD-ld} -64"
7014 fi
7015 ;;
7016 esac
7017 ;;
7018 esac
7019 fi
7020 rm -rf conftest*
7021 ;;
7022 esac
7023
7024 need_locks=$enable_libtool_lock
7025
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}mt; ac_word=$2
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 printf %s "checking for $ac_word... " >&6; }
7031 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7032 then :
7033 printf %s "(cached) " >&6
7034 else case e in #(
7035 e) if test -n "$MANIFEST_TOOL"; then
7036 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 case $as_dir in #(((
7043 '') as_dir=./ ;;
7044 */) ;;
7045 *) as_dir=$as_dir/ ;;
7046 esac
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi ;;
7058 esac
7059 fi
7060 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7061 if test -n "$MANIFEST_TOOL"; then
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7063 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7064 else
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7072 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7073 # Extract the first word of "mt", so it can be a program name with args.
7074 set dummy mt; ac_word=$2
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 printf %s "checking for $ac_word... " >&6; }
7077 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7078 then :
7079 printf %s "(cached) " >&6
7080 else case e in #(
7081 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7082 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087 IFS=$as_save_IFS
7088 case $as_dir in #(((
7089 '') as_dir=./ ;;
7090 */) ;;
7091 *) as_dir=$as_dir/ ;;
7092 esac
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi ;;
7104 esac
7105 fi
7106 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7107 if test -n "$ac_ct_MANIFEST_TOOL"; then
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7109 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7110 else
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 printf "%s\n" "no" >&6; }
7113 fi
7114
7115 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7116 MANIFEST_TOOL=":"
7117 else
7118 case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7125 fi
7126 else
7127 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7128 fi
7129
7130 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7132 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7133 if test ${lt_cv_path_manifest_tool+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else case e in #(
7137 e) lt_cv_path_manifest_tool=no
7138 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7139 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7140 cat conftest.err >&5
7141 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7142 lt_cv_path_manifest_tool=yes
7143 fi
7144 rm -f conftest* ;;
7145 esac
7146 fi
7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7148 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7149 if test yes != "$lt_cv_path_manifest_tool"; then
7150 MANIFEST_TOOL=:
7151 fi
7152
7153
7154
7155
7156
7157
7158 case $host_os in
7159 rhapsody* | darwin*)
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 printf %s "checking for $ac_word... " >&6; }
7165 if test ${ac_cv_prog_DSYMUTIL+y}
7166 then :
7167 printf %s "(cached) " >&6
7168 else case e in #(
7169 e) if test -n "$DSYMUTIL"; then
7170 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 case $as_dir in #(((
7177 '') as_dir=./ ;;
7178 */) ;;
7179 *) as_dir=$as_dir/ ;;
7180 esac
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi ;;
7192 esac
7193 fi
7194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7195 if test -n "$DSYMUTIL"; then
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7197 printf "%s\n" "$DSYMUTIL" >&6; }
7198 else
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 printf "%s\n" "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_DSYMUTIL"; then
7206 ac_ct_DSYMUTIL=$DSYMUTIL
7207 # Extract the first word of "dsymutil", so it can be a program name with args.
7208 set dummy dsymutil; ac_word=$2
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 printf %s "checking for $ac_word... " >&6; }
7211 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else case e in #(
7215 e) if test -n "$ac_ct_DSYMUTIL"; then
7216 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 case $as_dir in #(((
7223 '') as_dir=./ ;;
7224 */) ;;
7225 *) as_dir=$as_dir/ ;;
7226 esac
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi ;;
7238 esac
7239 fi
7240 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7241 if test -n "$ac_ct_DSYMUTIL"; then
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7243 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7244 else
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 printf "%s\n" "no" >&6; }
7247 fi
7248
7249 if test "x$ac_ct_DSYMUTIL" = x; then
7250 DSYMUTIL=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258 DSYMUTIL=$ac_ct_DSYMUTIL
7259 fi
7260 else
7261 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7262 fi
7263
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7266 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 printf %s "checking for $ac_word... " >&6; }
7269 if test ${ac_cv_prog_NMEDIT+y}
7270 then :
7271 printf %s "(cached) " >&6
7272 else case e in #(
7273 e) if test -n "$NMEDIT"; then
7274 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279 IFS=$as_save_IFS
7280 case $as_dir in #(((
7281 '') as_dir=./ ;;
7282 */) ;;
7283 *) as_dir=$as_dir/ ;;
7284 esac
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi ;;
7296 esac
7297 fi
7298 NMEDIT=$ac_cv_prog_NMEDIT
7299 if test -n "$NMEDIT"; then
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7301 printf "%s\n" "$NMEDIT" >&6; }
7302 else
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 printf "%s\n" "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_NMEDIT"; then
7310 ac_ct_NMEDIT=$NMEDIT
7311 # Extract the first word of "nmedit", so it can be a program name with args.
7312 set dummy nmedit; ac_word=$2
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 printf %s "checking for $ac_word... " >&6; }
7315 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7316 then :
7317 printf %s "(cached) " >&6
7318 else case e in #(
7319 e) if test -n "$ac_ct_NMEDIT"; then
7320 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 case $as_dir in #(((
7327 '') as_dir=./ ;;
7328 */) ;;
7329 *) as_dir=$as_dir/ ;;
7330 esac
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 fi ;;
7342 esac
7343 fi
7344 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7345 if test -n "$ac_ct_NMEDIT"; then
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7347 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7348 else
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 printf "%s\n" "no" >&6; }
7351 fi
7352
7353 if test "x$ac_ct_NMEDIT" = x; then
7354 NMEDIT=":"
7355 else
7356 case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362 NMEDIT=$ac_ct_NMEDIT
7363 fi
7364 else
7365 NMEDIT="$ac_cv_prog_NMEDIT"
7366 fi
7367
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 printf %s "checking for $ac_word... " >&6; }
7373 if test ${ac_cv_prog_LIPO+y}
7374 then :
7375 printf %s "(cached) " >&6
7376 else case e in #(
7377 e) if test -n "$LIPO"; then
7378 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 case $as_dir in #(((
7385 '') as_dir=./ ;;
7386 */) ;;
7387 *) as_dir=$as_dir/ ;;
7388 esac
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi ;;
7400 esac
7401 fi
7402 LIPO=$ac_cv_prog_LIPO
7403 if test -n "$LIPO"; then
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7405 printf "%s\n" "$LIPO" >&6; }
7406 else
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 printf "%s\n" "no" >&6; }
7409 fi
7410
7411
7412 fi
7413 if test -z "$ac_cv_prog_LIPO"; then
7414 ac_ct_LIPO=$LIPO
7415 # Extract the first word of "lipo", so it can be a program name with args.
7416 set dummy lipo; ac_word=$2
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 printf %s "checking for $ac_word... " >&6; }
7419 if test ${ac_cv_prog_ac_ct_LIPO+y}
7420 then :
7421 printf %s "(cached) " >&6
7422 else case e in #(
7423 e) if test -n "$ac_ct_LIPO"; then
7424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 case $as_dir in #(((
7431 '') as_dir=./ ;;
7432 */) ;;
7433 *) as_dir=$as_dir/ ;;
7434 esac
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_ac_ct_LIPO="lipo"
7438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445 fi ;;
7446 esac
7447 fi
7448 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7449 if test -n "$ac_ct_LIPO"; then
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7451 printf "%s\n" "$ac_ct_LIPO" >&6; }
7452 else
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 printf "%s\n" "no" >&6; }
7455 fi
7456
7457 if test "x$ac_ct_LIPO" = x; then
7458 LIPO=":"
7459 else
7460 case $cross_compiling:$ac_tool_warned in
7461 yes:)
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7463 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7464 ac_tool_warned=yes ;;
7465 esac
7466 LIPO=$ac_ct_LIPO
7467 fi
7468 else
7469 LIPO="$ac_cv_prog_LIPO"
7470 fi
7471
7472 if test -n "$ac_tool_prefix"; then
7473 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7474 set dummy ${ac_tool_prefix}otool; ac_word=$2
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 printf %s "checking for $ac_word... " >&6; }
7477 if test ${ac_cv_prog_OTOOL+y}
7478 then :
7479 printf %s "(cached) " >&6
7480 else case e in #(
7481 e) if test -n "$OTOOL"; then
7482 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487 IFS=$as_save_IFS
7488 case $as_dir in #(((
7489 '') as_dir=./ ;;
7490 */) ;;
7491 *) as_dir=$as_dir/ ;;
7492 esac
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503 fi ;;
7504 esac
7505 fi
7506 OTOOL=$ac_cv_prog_OTOOL
7507 if test -n "$OTOOL"; then
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7509 printf "%s\n" "$OTOOL" >&6; }
7510 else
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 printf "%s\n" "no" >&6; }
7513 fi
7514
7515
7516 fi
7517 if test -z "$ac_cv_prog_OTOOL"; then
7518 ac_ct_OTOOL=$OTOOL
7519 # Extract the first word of "otool", so it can be a program name with args.
7520 set dummy otool; ac_word=$2
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 printf %s "checking for $ac_word... " >&6; }
7523 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7524 then :
7525 printf %s "(cached) " >&6
7526 else case e in #(
7527 e) if test -n "$ac_ct_OTOOL"; then
7528 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533 IFS=$as_save_IFS
7534 case $as_dir in #(((
7535 '') as_dir=./ ;;
7536 */) ;;
7537 *) as_dir=$as_dir/ ;;
7538 esac
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_OTOOL="otool"
7542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549 fi ;;
7550 esac
7551 fi
7552 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7553 if test -n "$ac_ct_OTOOL"; then
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7555 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7556 else
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 printf "%s\n" "no" >&6; }
7559 fi
7560
7561 if test "x$ac_ct_OTOOL" = x; then
7562 OTOOL=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 OTOOL=$ac_ct_OTOOL
7571 fi
7572 else
7573 OTOOL="$ac_cv_prog_OTOOL"
7574 fi
7575
7576 if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7578 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 printf %s "checking for $ac_word... " >&6; }
7581 if test ${ac_cv_prog_OTOOL64+y}
7582 then :
7583 printf %s "(cached) " >&6
7584 else case e in #(
7585 e) if test -n "$OTOOL64"; then
7586 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591 IFS=$as_save_IFS
7592 case $as_dir in #(((
7593 '') as_dir=./ ;;
7594 */) ;;
7595 *) as_dir=$as_dir/ ;;
7596 esac
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi ;;
7608 esac
7609 fi
7610 OTOOL64=$ac_cv_prog_OTOOL64
7611 if test -n "$OTOOL64"; then
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7613 printf "%s\n" "$OTOOL64" >&6; }
7614 else
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 printf "%s\n" "no" >&6; }
7617 fi
7618
7619
7620 fi
7621 if test -z "$ac_cv_prog_OTOOL64"; then
7622 ac_ct_OTOOL64=$OTOOL64
7623 # Extract the first word of "otool64", so it can be a program name with args.
7624 set dummy otool64; ac_word=$2
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 printf %s "checking for $ac_word... " >&6; }
7627 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7628 then :
7629 printf %s "(cached) " >&6
7630 else case e in #(
7631 e) if test -n "$ac_ct_OTOOL64"; then
7632 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637 IFS=$as_save_IFS
7638 case $as_dir in #(((
7639 '') as_dir=./ ;;
7640 */) ;;
7641 *) as_dir=$as_dir/ ;;
7642 esac
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7645 ac_cv_prog_ac_ct_OTOOL64="otool64"
7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653 fi ;;
7654 esac
7655 fi
7656 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7657 if test -n "$ac_ct_OTOOL64"; then
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7659 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7660 else
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 printf "%s\n" "no" >&6; }
7663 fi
7664
7665 if test "x$ac_ct_OTOOL64" = x; then
7666 OTOOL64=":"
7667 else
7668 case $cross_compiling:$ac_tool_warned in
7669 yes:)
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672 ac_tool_warned=yes ;;
7673 esac
7674 OTOOL64=$ac_ct_OTOOL64
7675 fi
7676 else
7677 OTOOL64="$ac_cv_prog_OTOOL64"
7678 fi
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7707 printf %s "checking for -single_module linker flag... " >&6; }
7708 if test ${lt_cv_apple_cc_single_mod+y}
7709 then :
7710 printf %s "(cached) " >&6
7711 else case e in #(
7712 e) lt_cv_apple_cc_single_mod=no
7713 if test -z "$LT_MULTI_MODULE"; then
7714 # By default we will add the -single_module flag. You can override
7715 # by either setting the environment variable LT_MULTI_MODULE
7716 # non-empty at configure time, or by adding -multi_module to the
7717 # link flags.
7718 rm -rf libconftest.dylib*
7719 echo "int foo(void){return 1;}" > conftest.c
7720 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7721 -dynamiclib -Wl,-single_module conftest.c" >&5
7722 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7723 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7724 _lt_result=$?
7725 # If there is a non-empty error log, and "single_module"
7726 # appears in it, assume the flag caused a linker warning
7727 if test -s conftest.err && $GREP single_module conftest.err; then
7728 cat conftest.err >&5
7729 # Otherwise, if the output was created with a 0 exit code from
7730 # the compiler, it worked.
7731 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7732 lt_cv_apple_cc_single_mod=yes
7733 else
7734 cat conftest.err >&5
7735 fi
7736 rm -rf libconftest.dylib*
7737 rm -f conftest.*
7738 fi ;;
7739 esac
7740 fi
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7742 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7743
7744 # Feature test to disable chained fixups since it is not
7745 # compatible with '-undefined dynamic_lookup'
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
7747 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
7748 if test ${lt_cv_support_no_fixup_chains+y}
7749 then :
7750 printf %s "(cached) " >&6
7751 else case e in #(
7752 e) save_LDFLAGS=$LDFLAGS
7753 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756
7757 int
7758 main (void)
7759 {
7760
7761 ;
7762 return 0;
7763 }
7764 _ACEOF
7765 if ac_fn_c_try_link "$LINENO"
7766 then :
7767 lt_cv_support_no_fixup_chains=yes
7768 else case e in #(
7769 e) lt_cv_support_no_fixup_chains=no
7770 ;;
7771 esac
7772 fi
7773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7774 conftest$ac_exeext conftest.$ac_ext
7775 LDFLAGS=$save_LDFLAGS
7776
7777 ;;
7778 esac
7779 fi
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
7781 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
7782
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7784 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7785 if test ${lt_cv_ld_exported_symbols_list+y}
7786 then :
7787 printf %s "(cached) " >&6
7788 else case e in #(
7789 e) lt_cv_ld_exported_symbols_list=no
7790 save_LDFLAGS=$LDFLAGS
7791 echo "_main" > conftest.sym
7792 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795
7796 int
7797 main (void)
7798 {
7799
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"
7805 then :
7806 lt_cv_ld_exported_symbols_list=yes
7807 else case e in #(
7808 e) lt_cv_ld_exported_symbols_list=no ;;
7809 esac
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7812 conftest$ac_exeext conftest.$ac_ext
7813 LDFLAGS=$save_LDFLAGS
7814 ;;
7815 esac
7816 fi
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7818 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7819
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7821 printf %s "checking for -force_load linker flag... " >&6; }
7822 if test ${lt_cv_ld_force_load+y}
7823 then :
7824 printf %s "(cached) " >&6
7825 else case e in #(
7826 e) lt_cv_ld_force_load=no
7827 cat > conftest.c << _LT_EOF
7828 int forced_loaded() { return 2;}
7829 _LT_EOF
7830 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7831 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7832 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7833 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7834 echo "$RANLIB libconftest.a" >&5
7835 $RANLIB libconftest.a 2>&5
7836 cat > conftest.c << _LT_EOF
7837 int main(void) { return 0;}
7838 _LT_EOF
7839 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7840 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7841 _lt_result=$?
7842 if test -s conftest.err && $GREP force_load conftest.err; then
7843 cat conftest.err >&5
7844 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7845 lt_cv_ld_force_load=yes
7846 else
7847 cat conftest.err >&5
7848 fi
7849 rm -f conftest.err libconftest.a conftest conftest.c
7850 rm -rf conftest.dSYM
7851 ;;
7852 esac
7853 fi
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7855 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7856 case $host_os in
7857 rhapsody* | darwin1.[012])
7858 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7859 darwin1.*)
7860 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7861 darwin*)
7862 case $MACOSX_DEPLOYMENT_TARGET,$host in
7863 10.[012],*|,*powerpc*-darwin[5-8]*)
7864 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7865 *)
7866 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
7867 if test yes = "$lt_cv_support_no_fixup_chains"; then
7868 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
7869 fi
7870 ;;
7871 esac
7872 ;;
7873 esac
7874 if test yes = "$lt_cv_apple_cc_single_mod"; then
7875 _lt_dar_single_mod='$single_module'
7876 fi
7877 _lt_dar_needs_single_mod=no
7878 case $host_os in
7879 rhapsody* | darwin1.*)
7880 _lt_dar_needs_single_mod=yes ;;
7881 darwin*)
7882 # When targeting Mac OS X 10.4 (darwin 8) or later,
7883 # -single_module is the default and -multi_module is unsupported.
7884 # The toolchain on macOS 10.14 (darwin 18) and later cannot
7885 # target any OS version that needs -single_module.
7886 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7887 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
7888 _lt_dar_needs_single_mod=yes ;;
7889 esac
7890 ;;
7891 esac
7892 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7893 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7894 else
7895 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7896 fi
7897 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7898 _lt_dsymutil='~$DSYMUTIL $lib || :'
7899 else
7900 _lt_dsymutil=
7901 fi
7902 ;;
7903 esac
7904
7905 # func_munge_path_list VARIABLE PATH
7906 # -----------------------------------
7907 # VARIABLE is name of variable containing _space_ separated list of
7908 # directories to be munged by the contents of PATH, which is string
7909 # having a format:
7910 # "DIR[:DIR]:"
7911 # string "DIR[ DIR]" will be prepended to VARIABLE
7912 # ":DIR[:DIR]"
7913 # string "DIR[ DIR]" will be appended to VARIABLE
7914 # "DIRP[:DIRP]::[DIRA:]DIRA"
7915 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7916 # "DIRA[ DIRA]" will be appended to VARIABLE
7917 # "DIR[:DIR]"
7918 # VARIABLE will be replaced by "DIR[ DIR]"
7919 func_munge_path_list ()
7920 {
7921 case x$2 in
7922 x)
7923 ;;
7924 *:)
7925 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7926 ;;
7927 x:*)
7928 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7929 ;;
7930 *::*)
7931 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7932 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7933 ;;
7934 *)
7935 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7936 ;;
7937 esac
7938 }
7939
7940 ac_header= ac_cache=
7941 for ac_item in $ac_header_c_list
7942 do
7943 if test $ac_cache; then
7944 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7945 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7946 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7947 fi
7948 ac_header= ac_cache=
7949 elif test $ac_header; then
7950 ac_cache=$ac_item
7951 else
7952 ac_header=$ac_item
7953 fi
7954 done
7955
7956
7957
7958
7959
7960
7961
7962
7963 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7964 then :
7965
7966 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7967
7968 fi
7969 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7970 "
7971 if test "x$ac_cv_header_dlfcn_h" = xyes
7972 then :
7973 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7974
7975 fi
7976
7977
7978
7979
7980
7981 # Set options
7982
7983
7984
7985 enable_dlopen=no
7986
7987
7988 enable_win32_dll=no
7989
7990
7991 # Check whether --enable-shared was given.
7992 if test ${enable_shared+y}
7993 then :
7994 enableval=$enable_shared; p=${PACKAGE-default}
7995 case $enableval in
7996 yes) enable_shared=yes ;;
7997 no) enable_shared=no ;;
7998 *)
7999 enable_shared=no
8000 # Look at the argument we got. We use all the common list separators.
8001 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8002 for pkg in $enableval; do
8003 IFS=$lt_save_ifs
8004 if test "X$pkg" = "X$p"; then
8005 enable_shared=yes
8006 fi
8007 done
8008 IFS=$lt_save_ifs
8009 ;;
8010 esac
8011 else case e in #(
8012 e) enable_shared=yes ;;
8013 esac
8014 fi
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024 # Check whether --enable-static was given.
8025 if test ${enable_static+y}
8026 then :
8027 enableval=$enable_static; p=${PACKAGE-default}
8028 case $enableval in
8029 yes) enable_static=yes ;;
8030 no) enable_static=no ;;
8031 *)
8032 enable_static=no
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8035 for pkg in $enableval; do
8036 IFS=$lt_save_ifs
8037 if test "X$pkg" = "X$p"; then
8038 enable_static=yes
8039 fi
8040 done
8041 IFS=$lt_save_ifs
8042 ;;
8043 esac
8044 else case e in #(
8045 e) enable_static=yes ;;
8046 esac
8047 fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057 # Check whether --enable-pic was given.
8058 if test ${enable_pic+y}
8059 then :
8060 enableval=$enable_pic; lt_p=${PACKAGE-default}
8061 case $enableval in
8062 yes|no) pic_mode=$enableval ;;
8063 *)
8064 pic_mode=default
8065 # Look at the argument we got. We use all the common list separators.
8066 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8067 for lt_pkg in $enableval; do
8068 IFS=$lt_save_ifs
8069 if test "X$lt_pkg" = "X$lt_p"; then
8070 pic_mode=yes
8071 fi
8072 done
8073 IFS=$lt_save_ifs
8074 ;;
8075 esac
8076 else case e in #(
8077 e) # Check whether --with-pic was given.
8078 if test ${with_pic+y}
8079 then :
8080 withval=$with_pic; lt_p=${PACKAGE-default}
8081 case $withval in
8082 yes|no) pic_mode=$withval ;;
8083 *)
8084 pic_mode=default
8085 # Look at the argument we got. We use all the common list separators.
8086 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8087 for lt_pkg in $withval; do
8088 IFS=$lt_save_ifs
8089 if test "X$lt_pkg" = "X$lt_p"; then
8090 pic_mode=yes
8091 fi
8092 done
8093 IFS=$lt_save_ifs
8094 ;;
8095 esac
8096 else case e in #(
8097 e) pic_mode=default ;;
8098 esac
8099 fi
8100
8101 ;;
8102 esac
8103 fi
8104
8105
8106
8107
8108
8109
8110
8111
8112 # Check whether --enable-fast-install was given.
8113 if test ${enable_fast_install+y}
8114 then :
8115 enableval=$enable_fast_install; p=${PACKAGE-default}
8116 case $enableval in
8117 yes) enable_fast_install=yes ;;
8118 no) enable_fast_install=no ;;
8119 *)
8120 enable_fast_install=no
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8123 for pkg in $enableval; do
8124 IFS=$lt_save_ifs
8125 if test "X$pkg" = "X$p"; then
8126 enable_fast_install=yes
8127 fi
8128 done
8129 IFS=$lt_save_ifs
8130 ;;
8131 esac
8132 else case e in #(
8133 e) enable_fast_install=yes ;;
8134 esac
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144 shared_archive_member_spec=
8145 case $host,$enable_shared in
8146 power*-*-aix[5-9]*,yes)
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8148 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8149 # Check whether --enable-aix-soname was given.
8150 if test ${enable_aix_soname+y}
8151 then :
8152 enableval=$enable_aix_soname; case $enableval in
8153 aix|svr4|both)
8154 ;;
8155 *)
8156 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8157 ;;
8158 esac
8159 lt_cv_with_aix_soname=$enable_aix_soname
8160 else case e in #(
8161 e) # Check whether --with-aix-soname was given.
8162 if test ${with_aix_soname+y}
8163 then :
8164 withval=$with_aix_soname; case $withval in
8165 aix|svr4|both)
8166 ;;
8167 *)
8168 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8169 ;;
8170 esac
8171 lt_cv_with_aix_soname=$with_aix_soname
8172 else case e in #(
8173 e) if test ${lt_cv_with_aix_soname+y}
8174 then :
8175 printf %s "(cached) " >&6
8176 else case e in #(
8177 e) lt_cv_with_aix_soname=aix ;;
8178 esac
8179 fi
8180 ;;
8181 esac
8182 fi
8183
8184 enable_aix_soname=$lt_cv_with_aix_soname ;;
8185 esac
8186 fi
8187
8188 with_aix_soname=$enable_aix_soname
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8190 printf "%s\n" "$with_aix_soname" >&6; }
8191 if test aix != "$with_aix_soname"; then
8192 # For the AIX way of multilib, we name the shared archive member
8193 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8194 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8195 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8196 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8197 if test 64 = "${OBJECT_MODE-32}"; then
8198 shared_archive_member_spec=shr_64
8199 else
8200 shared_archive_member_spec=shr
8201 fi
8202 fi
8203 ;;
8204 *)
8205 with_aix_soname=aix
8206 ;;
8207 esac
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218 # This can be used to rebuild libtool when needed
8219 LIBTOOL_DEPS=$ltmain
8220
8221 # Always use our own libtool.
8222 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 test -z "$LN_S" && LN_S="ln -s"
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 if test -n "${ZSH_VERSION+set}"; then
8269 setopt NO_GLOB_SUBST
8270 fi
8271
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8273 printf %s "checking for objdir... " >&6; }
8274 if test ${lt_cv_objdir+y}
8275 then :
8276 printf %s "(cached) " >&6
8277 else case e in #(
8278 e) rm -f .libs 2>/dev/null
8279 mkdir .libs 2>/dev/null
8280 if test -d .libs; then
8281 lt_cv_objdir=.libs
8282 else
8283 # MS-DOS does not allow filenames that begin with a dot.
8284 lt_cv_objdir=_libs
8285 fi
8286 rmdir .libs 2>/dev/null ;;
8287 esac
8288 fi
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8290 printf "%s\n" "$lt_cv_objdir" >&6; }
8291 objdir=$lt_cv_objdir
8292
8293
8294
8295
8296
8297 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8298
8299
8300
8301
8302 case $host_os in
8303 aix3*)
8304 # AIX sometimes has problems with the GCC collect2 program. For some
8305 # reason, if we set the COLLECT_NAMES environment variable, the problems
8306 # vanish in a puff of smoke.
8307 if test set != "${COLLECT_NAMES+set}"; then
8308 COLLECT_NAMES=
8309 export COLLECT_NAMES
8310 fi
8311 ;;
8312 esac
8313
8314 # Global variables:
8315 ofile=libtool
8316 can_build_shared=yes
8317
8318 # All known linkers require a '.a' archive for static linking (except MSVC and
8319 # ICC, which need '.lib').
8320 libext=a
8321
8322 with_gnu_ld=$lt_cv_prog_gnu_ld
8323
8324 old_CC=$CC
8325 old_CFLAGS=$CFLAGS
8326
8327 # Set sane defaults for various variables
8328 test -z "$CC" && CC=cc
8329 test -z "$LTCC" && LTCC=$CC
8330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8331 test -z "$LD" && LD=ld
8332 test -z "$ac_objext" && ac_objext=o
8333
8334 func_cc_basename $compiler
8335 cc_basename=$func_cc_basename_result
8336
8337
8338 # Only perform the check for file, if the check method requires it
8339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8340 case $deplibs_check_method in
8341 file_magic*)
8342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8344 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8345 if test ${lt_cv_path_MAGIC_CMD+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else case e in #(
8349 e) case $MAGIC_CMD in
8350 [\\/*] | ?:[\\/]*)
8351 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8352 ;;
8353 *)
8354 lt_save_MAGIC_CMD=$MAGIC_CMD
8355 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8357 for ac_dir in $ac_dummy; do
8358 IFS=$lt_save_ifs
8359 test -z "$ac_dir" && ac_dir=.
8360 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8361 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8362 if test -n "$file_magic_test_file"; then
8363 case $deplibs_check_method in
8364 "file_magic "*)
8365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8366 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8368 $EGREP "$file_magic_regex" > /dev/null; then
8369 :
8370 else
8371 cat <<_LT_EOF 1>&2
8372
8373 *** Warning: the command libtool uses to detect shared libraries,
8374 *** $file_magic_cmd, produces output that libtool cannot recognize.
8375 *** The result is that libtool may fail to recognize shared libraries
8376 *** as such. This will affect the creation of libtool libraries that
8377 *** depend on shared libraries, but programs linked with such libtool
8378 *** libraries will work regardless of this problem. Nevertheless, you
8379 *** may want to report the problem to your system manager and/or to
8380 *** [email protected]
8381
8382 _LT_EOF
8383 fi ;;
8384 esac
8385 fi
8386 break
8387 fi
8388 done
8389 IFS=$lt_save_ifs
8390 MAGIC_CMD=$lt_save_MAGIC_CMD
8391 ;;
8392 esac ;;
8393 esac
8394 fi
8395
8396 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8397 if test -n "$MAGIC_CMD"; then
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8399 printf "%s\n" "$MAGIC_CMD" >&6; }
8400 else
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 printf "%s\n" "no" >&6; }
8403 fi
8404
8405
8406
8407
8408
8409 if test -z "$lt_cv_path_MAGIC_CMD"; then
8410 if test -n "$ac_tool_prefix"; then
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8412 printf %s "checking for file... " >&6; }
8413 if test ${lt_cv_path_MAGIC_CMD+y}
8414 then :
8415 printf %s "(cached) " >&6
8416 else case e in #(
8417 e) case $MAGIC_CMD in
8418 [\\/*] | ?:[\\/]*)
8419 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8420 ;;
8421 *)
8422 lt_save_MAGIC_CMD=$MAGIC_CMD
8423 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8425 for ac_dir in $ac_dummy; do
8426 IFS=$lt_save_ifs
8427 test -z "$ac_dir" && ac_dir=.
8428 if test -f "$ac_dir/file"; then
8429 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8430 if test -n "$file_magic_test_file"; then
8431 case $deplibs_check_method in
8432 "file_magic "*)
8433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8434 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8436 $EGREP "$file_magic_regex" > /dev/null; then
8437 :
8438 else
8439 cat <<_LT_EOF 1>&2
8440
8441 *** Warning: the command libtool uses to detect shared libraries,
8442 *** $file_magic_cmd, produces output that libtool cannot recognize.
8443 *** The result is that libtool may fail to recognize shared libraries
8444 *** as such. This will affect the creation of libtool libraries that
8445 *** depend on shared libraries, but programs linked with such libtool
8446 *** libraries will work regardless of this problem. Nevertheless, you
8447 *** may want to report the problem to your system manager and/or to
8448 *** [email protected]
8449
8450 _LT_EOF
8451 fi ;;
8452 esac
8453 fi
8454 break
8455 fi
8456 done
8457 IFS=$lt_save_ifs
8458 MAGIC_CMD=$lt_save_MAGIC_CMD
8459 ;;
8460 esac ;;
8461 esac
8462 fi
8463
8464 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8465 if test -n "$MAGIC_CMD"; then
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8467 printf "%s\n" "$MAGIC_CMD" >&6; }
8468 else
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 printf "%s\n" "no" >&6; }
8471 fi
8472
8473
8474 else
8475 MAGIC_CMD=:
8476 fi
8477 fi
8478
8479 fi
8480 ;;
8481 esac
8482
8483 # Use C for the default configuration in the libtool script
8484
8485 lt_save_CC=$CC
8486 ac_ext=c
8487 ac_cpp='$CPP $CPPFLAGS'
8488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8491
8492
8493 # Source file extension for C test sources.
8494 ac_ext=c
8495
8496 # Object file extension for compiled C test sources.
8497 objext=o
8498 objext=$objext
8499
8500 # Code to be used in simple compile tests
8501 lt_simple_compile_test_code="int some_variable = 0;"
8502
8503 # Code to be used in simple link tests
8504 lt_simple_link_test_code='int main(void){return(0);}'
8505
8506
8507
8508
8509
8510
8511
8512 # If no C compiler was specified, use CC.
8513 LTCC=${LTCC-"$CC"}
8514
8515 # If no C compiler flags were specified, use CFLAGS.
8516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8517
8518 # Allow CC to be a program name with arguments.
8519 compiler=$CC
8520
8521 # Save the default compiler, since it gets overwritten when the other
8522 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8523 compiler_DEFAULT=$CC
8524
8525 # save warnings/boilerplate of simple test code
8526 ac_outfile=conftest.$ac_objext
8527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8529 _lt_compiler_boilerplate=`cat conftest.err`
8530 $RM conftest*
8531
8532 ac_outfile=conftest.$ac_objext
8533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535 _lt_linker_boilerplate=`cat conftest.err`
8536 $RM -r conftest*
8537
8538
8539 ## CAVEAT EMPTOR:
8540 ## There is no encapsulation within the following macros, do not change
8541 ## the running order or otherwise move them around unless you know exactly
8542 ## what you are doing...
8543 if test -n "$compiler"; then
8544
8545 lt_prog_compiler_no_builtin_flag=
8546
8547 if test yes = "$GCC"; then
8548 case $cc_basename in
8549 nvcc*)
8550 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8551 *)
8552 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8553 esac
8554
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8556 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8557 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else case e in #(
8561 e) lt_cv_prog_compiler_rtti_exceptions=no
8562 ac_outfile=conftest.$ac_objext
8563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8564 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8565 # Insert the option either (1) after the last *FLAGS variable, or
8566 # (2) before a word containing "conftest.", or (3) at the end.
8567 # Note that $ac_compile itself does not contain backslashes and begins
8568 # with a dollar sign (not a hyphen), so the echo should work correctly.
8569 # The option is referenced via a variable to avoid confusing sed.
8570 lt_compile=`echo "$ac_compile" | $SED \
8571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8573 -e 's:$: $lt_compiler_flag:'`
8574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8575 (eval "$lt_compile" 2>conftest.err)
8576 ac_status=$?
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 if (exit $ac_status) && test -s "$ac_outfile"; then
8580 # The compiler can only warn and ignore the option if not recognized
8581 # So say no if there are warnings other than the usual output.
8582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8585 lt_cv_prog_compiler_rtti_exceptions=yes
8586 fi
8587 fi
8588 $RM conftest*
8589 ;;
8590 esac
8591 fi
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8593 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8594
8595 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8596 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8597 else
8598 :
8599 fi
8600
8601 fi
8602
8603
8604
8605
8606
8607
8608 lt_prog_compiler_wl=
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_static=
8611
8612
8613 if test yes = "$GCC"; then
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_static='-static'
8616
8617 case $host_os in
8618 aix*)
8619 # All AIX code is PIC.
8620 if test ia64 = "$host_cpu"; then
8621 # AIX 5 now supports IA64 processor
8622 lt_prog_compiler_static='-Bstatic'
8623 fi
8624 lt_prog_compiler_pic='-fPIC'
8625 ;;
8626
8627 amigaos*)
8628 case $host_cpu in
8629 powerpc)
8630 # see comment about AmigaOS4 .so support
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633 m68k)
8634 # FIXME: we need at least 68020 code to build shared libraries, but
8635 # adding the '-m68020' flag to GCC prevents building anything better,
8636 # like '-m68040'.
8637 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8638 ;;
8639 esac
8640 ;;
8641
8642 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8643 # PIC is the default for these OSes.
8644 ;;
8645
8646 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8650 # (--disable-auto-import) libraries
8651 lt_prog_compiler_pic='-DDLL_EXPORT'
8652 case $host_os in
8653 os2*)
8654 lt_prog_compiler_static='$wl-static'
8655 ;;
8656 esac
8657 ;;
8658
8659 darwin* | rhapsody*)
8660 # PIC is the default on this platform
8661 # Common symbols not allowed in MH_DYLIB files
8662 lt_prog_compiler_pic='-fno-common'
8663 ;;
8664
8665 haiku*)
8666 # PIC is the default for Haiku.
8667 # The "-static" flag exists, but is broken.
8668 lt_prog_compiler_static=
8669 ;;
8670
8671 hpux*)
8672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8674 # sets the default TLS model and affects inlining.
8675 case $host_cpu in
8676 hppa*64*)
8677 # +Z the default
8678 ;;
8679 *)
8680 lt_prog_compiler_pic='-fPIC'
8681 ;;
8682 esac
8683 ;;
8684
8685 interix[3-9]*)
8686 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8687 # Instead, we relocate shared libraries at runtime.
8688 ;;
8689
8690 msdosdjgpp*)
8691 # Just because we use GCC doesn't mean we suddenly get shared libraries
8692 # on systems that don't support them.
8693 lt_prog_compiler_can_build_shared=no
8694 enable_shared=no
8695 ;;
8696
8697 *nto* | *qnx*)
8698 # QNX uses GNU C++, but need to define -shared option too, otherwise
8699 # it will coredump.
8700 lt_prog_compiler_pic='-fPIC -shared'
8701 ;;
8702
8703 sysv4*MP*)
8704 if test -d /usr/nec; then
8705 lt_prog_compiler_pic=-Kconform_pic
8706 fi
8707 ;;
8708
8709 *)
8710 lt_prog_compiler_pic='-fPIC'
8711 ;;
8712 esac
8713
8714 case $cc_basename in
8715 nvcc*) # Cuda Compiler Driver 2.2
8716 lt_prog_compiler_wl='-Xlinker '
8717 if test -n "$lt_prog_compiler_pic"; then
8718 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8719 fi
8720 ;;
8721 esac
8722 else
8723 # PORTME Check for flag to pass linker flags through the system compiler.
8724 case $host_os in
8725 aix*)
8726 lt_prog_compiler_wl='-Wl,'
8727 if test ia64 = "$host_cpu"; then
8728 # AIX 5 now supports IA64 processor
8729 lt_prog_compiler_static='-Bstatic'
8730 else
8731 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8732 fi
8733 ;;
8734
8735 darwin* | rhapsody*)
8736 # PIC is the default on this platform
8737 # Common symbols not allowed in MH_DYLIB files
8738 lt_prog_compiler_pic='-fno-common'
8739 case $cc_basename in
8740 nagfor*)
8741 # NAG Fortran compiler
8742 lt_prog_compiler_wl='-Wl,-Wl,,'
8743 lt_prog_compiler_pic='-PIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 ;;
8746 esac
8747 ;;
8748
8749 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
8750 # This hack is so that the source file can tell whether it is being
8751 # built for inclusion in a dll (and should export symbols for example).
8752 lt_prog_compiler_pic='-DDLL_EXPORT'
8753 case $host_os in
8754 os2*)
8755 lt_prog_compiler_static='$wl-static'
8756 ;;
8757 esac
8758 ;;
8759
8760 hpux9* | hpux10* | hpux11*)
8761 lt_prog_compiler_wl='-Wl,'
8762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8763 # not for PA HP-UX.
8764 case $host_cpu in
8765 hppa*64*|ia64*)
8766 # +Z the default
8767 ;;
8768 *)
8769 lt_prog_compiler_pic='+Z'
8770 ;;
8771 esac
8772 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8773 lt_prog_compiler_static='$wl-a ${wl}archive'
8774 ;;
8775
8776 irix5* | irix6* | nonstopux*)
8777 lt_prog_compiler_wl='-Wl,'
8778 # PIC (with -KPIC) is the default.
8779 lt_prog_compiler_static='-non_shared'
8780 ;;
8781
8782 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8783 case $cc_basename in
8784 # old Intel for x86_64, which still supported -KPIC.
8785 ecc*)
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-static'
8789 ;;
8790 *flang* | ftn | f18* | f95*)
8791 # Flang compiler.
8792 lt_prog_compiler_wl='-Wl,'
8793 lt_prog_compiler_pic='-fPIC'
8794 lt_prog_compiler_static='-static'
8795 ;;
8796 # icc used to be incompatible with GCC.
8797 # ICC 10 doesn't accept -KPIC any more.
8798 icc* | ifort*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-fPIC'
8801 lt_prog_compiler_static='-static'
8802 ;;
8803 # Lahey Fortran 8.1.
8804 lf95*)
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_pic='--shared'
8807 lt_prog_compiler_static='--static'
8808 ;;
8809 nagfor*)
8810 # NAG Fortran compiler
8811 lt_prog_compiler_wl='-Wl,-Wl,,'
8812 lt_prog_compiler_pic='-PIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815 tcc*)
8816 # Fabrice Bellard et al's Tiny C Compiler
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-fPIC'
8819 lt_prog_compiler_static='-static'
8820 ;;
8821 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8822 # Portland Group compilers (*not* the Pentium gcc compiler,
8823 # which looks to be a dead project)
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='-fpic'
8826 lt_prog_compiler_static='-Bstatic'
8827 ;;
8828 ccc*)
8829 lt_prog_compiler_wl='-Wl,'
8830 # All Alpha code is PIC.
8831 lt_prog_compiler_static='-non_shared'
8832 ;;
8833 xl* | bgxl* | bgf* | mpixl*)
8834 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-qpic'
8837 lt_prog_compiler_static='-qstaticlink'
8838 ;;
8839 *)
8840 case `$CC -V 2>&1 | $SED 5q` in
8841 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8842 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 lt_prog_compiler_wl=''
8846 ;;
8847 *Sun\ F* | *Sun*Fortran*)
8848 lt_prog_compiler_pic='-KPIC'
8849 lt_prog_compiler_static='-Bstatic'
8850 lt_prog_compiler_wl='-Qoption ld '
8851 ;;
8852 *Sun\ C*)
8853 # Sun C 5.9
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-Bstatic'
8856 lt_prog_compiler_wl='-Wl,'
8857 ;;
8858 *Intel*\ [CF]*Compiler*)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-fPIC'
8861 lt_prog_compiler_static='-static'
8862 ;;
8863 *Portland\ Group*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-fpic'
8866 lt_prog_compiler_static='-Bstatic'
8867 ;;
8868 esac
8869 ;;
8870 esac
8871 ;;
8872
8873 newsos6)
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877
8878 *-mlibc)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fPIC'
8881 lt_prog_compiler_static='-static'
8882 ;;
8883
8884 *nto* | *qnx*)
8885 # QNX uses GNU C++, but need to define -shared option too, otherwise
8886 # it will coredump.
8887 lt_prog_compiler_pic='-fPIC -shared'
8888 ;;
8889
8890 osf3* | osf4* | osf5*)
8891 lt_prog_compiler_wl='-Wl,'
8892 # All OSF/1 code is PIC.
8893 lt_prog_compiler_static='-non_shared'
8894 ;;
8895
8896 rdos*)
8897 lt_prog_compiler_static='-non_shared'
8898 ;;
8899
8900 serenity*)
8901 ;;
8902
8903 solaris*)
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 case $cc_basename in
8907 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8908 lt_prog_compiler_wl='-Qoption ld ';;
8909 *)
8910 lt_prog_compiler_wl='-Wl,';;
8911 esac
8912 ;;
8913
8914 sunos4*)
8915 lt_prog_compiler_wl='-Qoption ld '
8916 lt_prog_compiler_pic='-PIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
8919
8920 sysv4 | sysv4.2uw2* | sysv4.3*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 sysv4*MP*)
8927 if test -d /usr/nec; then
8928 lt_prog_compiler_pic='-Kconform_pic'
8929 lt_prog_compiler_static='-Bstatic'
8930 fi
8931 ;;
8932
8933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 ;;
8938
8939 unicos*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_can_build_shared=no
8942 ;;
8943
8944 uts4*)
8945 lt_prog_compiler_pic='-pic'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948
8949 *)
8950 lt_prog_compiler_can_build_shared=no
8951 ;;
8952 esac
8953 fi
8954
8955 case $host_os in
8956 # For platforms that do not support PIC, -DPIC is meaningless:
8957 *djgpp*)
8958 lt_prog_compiler_pic=
8959 ;;
8960 *)
8961 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962 ;;
8963 esac
8964
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8966 printf %s "checking for $compiler option to produce PIC... " >&6; }
8967 if test ${lt_cv_prog_compiler_pic+y}
8968 then :
8969 printf %s "(cached) " >&6
8970 else case e in #(
8971 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
8972 esac
8973 fi
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8975 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8976 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8977
8978 #
8979 # Check to make sure the PIC flag actually works.
8980 #
8981 if test -n "$lt_prog_compiler_pic"; then
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8983 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8984 if test ${lt_cv_prog_compiler_pic_works+y}
8985 then :
8986 printf %s "(cached) " >&6
8987 else case e in #(
8988 e) lt_cv_prog_compiler_pic_works=no
8989 ac_outfile=conftest.$ac_objext
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8992 # Insert the option either (1) after the last *FLAGS variable, or
8993 # (2) before a word containing "conftest.", or (3) at the end.
8994 # Note that $ac_compile itself does not contain backslashes and begins
8995 # with a dollar sign (not a hyphen), so the echo should work correctly.
8996 # The option is referenced via a variable to avoid confusing sed.
8997 lt_compile=`echo "$ac_compile" | $SED \
8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000 -e 's:$: $lt_compiler_flag:'`
9001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9002 (eval "$lt_compile" 2>conftest.err)
9003 ac_status=$?
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 if (exit $ac_status) && test -s "$ac_outfile"; then
9007 # The compiler can only warn and ignore the option if not recognized
9008 # So say no if there are warnings other than the usual output.
9009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_pic_works=yes
9013 fi
9014 fi
9015 $RM conftest*
9016 ;;
9017 esac
9018 fi
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9020 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9021
9022 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9023 case $lt_prog_compiler_pic in
9024 "" | " "*) ;;
9025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026 esac
9027 else
9028 lt_prog_compiler_pic=
9029 lt_prog_compiler_can_build_shared=no
9030 fi
9031
9032 fi
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044 #
9045 # Check to make sure the static flag actually works.
9046 #
9047 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9049 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9050 if test ${lt_cv_prog_compiler_static_works+y}
9051 then :
9052 printf %s "(cached) " >&6
9053 else case e in #(
9054 e) lt_cv_prog_compiler_static_works=no
9055 save_LDFLAGS=$LDFLAGS
9056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9057 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9059 # The linker can only warn and ignore the option if not recognized
9060 # So say no if there are warnings
9061 if test -s conftest.err; then
9062 # Append any errors to the config.log.
9063 cat conftest.err 1>&5
9064 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066 if diff conftest.exp conftest.er2 >/dev/null; then
9067 lt_cv_prog_compiler_static_works=yes
9068 fi
9069 else
9070 lt_cv_prog_compiler_static_works=yes
9071 fi
9072 fi
9073 $RM -r conftest*
9074 LDFLAGS=$save_LDFLAGS
9075 ;;
9076 esac
9077 fi
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9079 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9080
9081 if test yes = "$lt_cv_prog_compiler_static_works"; then
9082 :
9083 else
9084 lt_prog_compiler_static=
9085 fi
9086
9087
9088
9089
9090
9091
9092
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9094 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9095 if test ${lt_cv_prog_compiler_c_o+y}
9096 then :
9097 printf %s "(cached) " >&6
9098 else case e in #(
9099 e) lt_cv_prog_compiler_c_o=no
9100 $RM -r conftest 2>/dev/null
9101 mkdir conftest
9102 cd conftest
9103 mkdir out
9104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9105
9106 lt_compiler_flag="-o out/conftest2.$ac_objext"
9107 # Insert the option either (1) after the last *FLAGS variable, or
9108 # (2) before a word containing "conftest.", or (3) at the end.
9109 # Note that $ac_compile itself does not contain backslashes and begins
9110 # with a dollar sign (not a hyphen), so the echo should work correctly.
9111 lt_compile=`echo "$ac_compile" | $SED \
9112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9114 -e 's:$: $lt_compiler_flag:'`
9115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9116 (eval "$lt_compile" 2>out/conftest.err)
9117 ac_status=$?
9118 cat out/conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9121 then
9122 # The compiler can only warn and ignore the option if not recognized
9123 # So say no if there are warnings
9124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9127 lt_cv_prog_compiler_c_o=yes
9128 fi
9129 fi
9130 chmod u+w . 2>&5
9131 $RM conftest*
9132 # SGI C++ compiler will create directory out/ii_files/ for
9133 # template instantiation
9134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9135 $RM out/* && rmdir out
9136 cd ..
9137 $RM -r conftest
9138 $RM conftest*
9139 ;;
9140 esac
9141 fi
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9143 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9144
9145
9146
9147
9148
9149
9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9151 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9152 if test ${lt_cv_prog_compiler_c_o+y}
9153 then :
9154 printf %s "(cached) " >&6
9155 else case e in #(
9156 e) lt_cv_prog_compiler_c_o=no
9157 $RM -r conftest 2>/dev/null
9158 mkdir conftest
9159 cd conftest
9160 mkdir out
9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162
9163 lt_compiler_flag="-o out/conftest2.$ac_objext"
9164 # Insert the option either (1) after the last *FLAGS variable, or
9165 # (2) before a word containing "conftest.", or (3) at the end.
9166 # Note that $ac_compile itself does not contain backslashes and begins
9167 # with a dollar sign (not a hyphen), so the echo should work correctly.
9168 lt_compile=`echo "$ac_compile" | $SED \
9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171 -e 's:$: $lt_compiler_flag:'`
9172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173 (eval "$lt_compile" 2>out/conftest.err)
9174 ac_status=$?
9175 cat out/conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9178 then
9179 # The compiler can only warn and ignore the option if not recognized
9180 # So say no if there are warnings
9181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9184 lt_cv_prog_compiler_c_o=yes
9185 fi
9186 fi
9187 chmod u+w . 2>&5
9188 $RM conftest*
9189 # SGI C++ compiler will create directory out/ii_files/ for
9190 # template instantiation
9191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9192 $RM out/* && rmdir out
9193 cd ..
9194 $RM -r conftest
9195 $RM conftest*
9196 ;;
9197 esac
9198 fi
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9200 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9201
9202
9203
9204
9205 hard_links=nottested
9206 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9207 # do not overwrite the value of need_locks provided by the user
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9209 printf %s "checking if we can lock with hard links... " >&6; }
9210 hard_links=yes
9211 $RM conftest*
9212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9213 touch conftest.a
9214 ln conftest.a conftest.b 2>&5 || hard_links=no
9215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9217 printf "%s\n" "$hard_links" >&6; }
9218 if test no = "$hard_links"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9220 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9221 need_locks=warn
9222 fi
9223 else
9224 need_locks=no
9225 fi
9226
9227
9228
9229
9230
9231
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9233 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9234
9235 runpath_var=
9236 allow_undefined_flag=
9237 always_export_symbols=no
9238 archive_cmds=
9239 archive_expsym_cmds=
9240 compiler_needs_object=no
9241 enable_shared_with_static_runtimes=no
9242 export_dynamic_flag_spec=
9243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9244 hardcode_automatic=no
9245 hardcode_direct=no
9246 hardcode_direct_absolute=no
9247 hardcode_libdir_flag_spec=
9248 hardcode_libdir_separator=
9249 hardcode_minus_L=no
9250 hardcode_shlibpath_var=unsupported
9251 inherit_rpath=no
9252 link_all_deplibs=unknown
9253 module_cmds=
9254 module_expsym_cmds=
9255 old_archive_from_new_cmds=
9256 old_archive_from_expsyms_cmds=
9257 thread_safe_flag_spec=
9258 whole_archive_flag_spec=
9259 # include_expsyms should be a list of space-separated symbols to be *always*
9260 # included in the symbol list
9261 include_expsyms=
9262 # exclude_expsyms can be an extended regexp of symbols to exclude
9263 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9264 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9265 # as well as any symbol that contains 'd'.
9266 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9267 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9268 # platforms (ab)use it in PIC code, but their linkers get confused if
9269 # the symbol is explicitly referenced. Since portable code cannot
9270 # rely on this symbol name, it's probably fine to never include it in
9271 # preloaded symbol tables.
9272 # Exclude shared library initialization/finalization symbols.
9273 extract_expsyms_cmds=
9274
9275 case $host_os in
9276 cygwin* | mingw* | windows* | pw32* | cegcc*)
9277 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9278 # When not using gcc, we currently assume that we are using
9279 # Microsoft Visual C++ or Intel C++ Compiler.
9280 if test yes != "$GCC"; then
9281 with_gnu_ld=no
9282 fi
9283 ;;
9284 interix*)
9285 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9286 with_gnu_ld=yes
9287 ;;
9288 esac
9289
9290 ld_shlibs=yes
9291
9292 # On some targets, GNU ld is compatible enough with the native linker
9293 # that we're better off using the native interface for both.
9294 lt_use_gnu_ld_interface=no
9295 if test yes = "$with_gnu_ld"; then
9296 case $host_os in
9297 aix*)
9298 # The AIX port of GNU ld has always aspired to compatibility
9299 # with the native linker. However, as the warning in the GNU ld
9300 # block says, versions before 2.19.5* couldn't really create working
9301 # shared libraries, regardless of the interface used.
9302 case `$LD -v 2>&1` in
9303 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9304 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9305 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9306 *)
9307 lt_use_gnu_ld_interface=yes
9308 ;;
9309 esac
9310 ;;
9311 *)
9312 lt_use_gnu_ld_interface=yes
9313 ;;
9314 esac
9315 fi
9316
9317 if test yes = "$lt_use_gnu_ld_interface"; then
9318 # If archive_cmds runs LD, not CC, wlarc should be empty
9319 wlarc='$wl'
9320
9321 # Set some defaults for GNU ld with shared library support. These
9322 # are reset later if shared libraries are not supported. Putting them
9323 # here allows them to be overridden if necessary.
9324 runpath_var=LD_RUN_PATH
9325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9326 export_dynamic_flag_spec='$wl--export-dynamic'
9327 # ancient GNU ld didn't support --whole-archive et. al.
9328 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9329 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9330 else
9331 whole_archive_flag_spec=
9332 fi
9333 supports_anon_versioning=no
9334 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9335 *GNU\ gold*) supports_anon_versioning=yes ;;
9336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9339 *\ 2.11.*) ;; # other 2.11 versions
9340 *) supports_anon_versioning=yes ;;
9341 esac
9342
9343 # See if GNU ld supports shared libraries.
9344 case $host_os in
9345 aix[3-9]*)
9346 # On AIX/PPC, the GNU linker is very broken
9347 if test ia64 != "$host_cpu"; then
9348 ld_shlibs=no
9349 cat <<_LT_EOF 1>&2
9350
9351 *** Warning: the GNU linker, at least up to release 2.19, is reported
9352 *** to be unable to reliably create shared libraries on AIX.
9353 *** Therefore, libtool is disabling shared libraries support. If you
9354 *** really care for shared libraries, you may want to install binutils
9355 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9356 *** You will then need to restart the configuration process.
9357
9358 _LT_EOF
9359 fi
9360 ;;
9361
9362 amigaos*)
9363 case $host_cpu in
9364 powerpc)
9365 # see comment about AmigaOS4 .so support
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367 archive_expsym_cmds=''
9368 ;;
9369 m68k)
9370 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)'
9371 hardcode_libdir_flag_spec='-L$libdir'
9372 hardcode_minus_L=yes
9373 ;;
9374 esac
9375 ;;
9376
9377 beos*)
9378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379 allow_undefined_flag=unsupported
9380 # Joseph Beckenbach <[email protected]> says some releases of gcc
9381 # support --undefined. This deserves some investigation. FIXME
9382 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9383 else
9384 ld_shlibs=no
9385 fi
9386 ;;
9387
9388 cygwin* | mingw* | windows* | pw32* | cegcc*)
9389 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9390 # as there is no search path for DLLs.
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 export_dynamic_flag_spec='$wl--export-all-symbols'
9393 allow_undefined_flag=unsupported
9394 always_export_symbols=no
9395 enable_shared_with_static_runtimes=yes
9396 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'
9397 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9398 file_list_spec='@'
9399
9400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402 # If the export-symbols file already is a .def file, use it as
9403 # is; otherwise, prepend EXPORTS...
9404 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9405 cp $export_symbols $output_objdir/$soname.def;
9406 else
9407 echo EXPORTS > $output_objdir/$soname.def;
9408 cat $export_symbols >> $output_objdir/$soname.def;
9409 fi~
9410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411 else
9412 ld_shlibs=no
9413 fi
9414 ;;
9415
9416 haiku*)
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9418 link_all_deplibs=no
9419 ;;
9420
9421 os2*)
9422 hardcode_libdir_flag_spec='-L$libdir'
9423 hardcode_minus_L=yes
9424 allow_undefined_flag=unsupported
9425 shrext_cmds=.dll
9426 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9427 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9428 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9429 $ECHO EXPORTS >> $output_objdir/$libname.def~
9430 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9431 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9432 emximp -o $lib $output_objdir/$libname.def'
9433 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9434 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9435 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9436 $ECHO EXPORTS >> $output_objdir/$libname.def~
9437 prefix_cmds="$SED"~
9438 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9439 prefix_cmds="$prefix_cmds -e 1d";
9440 fi~
9441 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9442 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9443 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9444 emximp -o $lib $output_objdir/$libname.def'
9445 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9446 enable_shared_with_static_runtimes=yes
9447 file_list_spec='@'
9448 ;;
9449
9450 interix[3-9]*)
9451 hardcode_direct=no
9452 hardcode_shlibpath_var=no
9453 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9454 export_dynamic_flag_spec='$wl-E'
9455 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9456 # Instead, shared libraries are loaded at an image base (0x10000000 by
9457 # default) and relocated if they conflict, which is a slow very memory
9458 # consuming and fragmenting process. To avoid this, we pick a random,
9459 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9460 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9462 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'
9463 ;;
9464
9465 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9466 tmp_diet=no
9467 if test linux-dietlibc = "$host_os"; then
9468 case $cc_basename in
9469 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9470 esac
9471 fi
9472 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9473 && test no = "$tmp_diet"
9474 then
9475 tmp_addflag=' $pic_flag'
9476 tmp_sharedflag='-shared'
9477 case $cc_basename,$host_cpu in
9478 pgcc*) # Portland Group C compiler
9479 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'
9480 tmp_addflag=' $pic_flag'
9481 ;;
9482 pgf77* | pgf90* | pgf95* | pgfortran*)
9483 # Portland Group f77 and f90 compilers
9484 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'
9485 tmp_addflag=' $pic_flag -Mnomain' ;;
9486 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9487 tmp_addflag=' -i_dynamic' ;;
9488 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9489 tmp_addflag=' -i_dynamic -nofor_main' ;;
9490 ifc* | ifort*) # Intel Fortran compiler
9491 tmp_addflag=' -nofor_main' ;;
9492 lf95*) # Lahey Fortran 8.1
9493 whole_archive_flag_spec=
9494 tmp_sharedflag='--shared' ;;
9495 nagfor*) # NAGFOR 5.3
9496 tmp_sharedflag='-Wl,-shared' ;;
9497 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9498 tmp_sharedflag='-qmkshrobj'
9499 tmp_addflag= ;;
9500 nvcc*) # Cuda Compiler Driver 2.2
9501 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'
9502 compiler_needs_object=yes
9503 ;;
9504 esac
9505 case `$CC -V 2>&1 | $SED 5q` in
9506 *Sun\ C*) # Sun C 5.9
9507 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'
9508 compiler_needs_object=yes
9509 tmp_sharedflag='-G' ;;
9510 *Sun\ F*) # Sun Fortran 8.3
9511 tmp_sharedflag='-G' ;;
9512 esac
9513 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9514
9515 if test yes = "$supports_anon_versioning"; then
9516 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9517 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9518 echo "local: *; };" >> $output_objdir/$libname.ver~
9519 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9520 fi
9521
9522 case $cc_basename in
9523 tcc*)
9524 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9525 export_dynamic_flag_spec='-rdynamic'
9526 ;;
9527 xlf* | bgf* | bgxlf* | mpixlf*)
9528 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9529 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9530 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9531 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9532 if test yes = "$supports_anon_versioning"; then
9533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9534 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9535 echo "local: *; };" >> $output_objdir/$libname.ver~
9536 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9537 fi
9538 ;;
9539 esac
9540 else
9541 ld_shlibs=no
9542 fi
9543 ;;
9544
9545 *-mlibc)
9546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9548 ;;
9549
9550 netbsd* | netbsdelf*-gnu)
9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9553 wlarc=
9554 else
9555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9557 fi
9558 ;;
9559
9560 solaris*)
9561 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9562 ld_shlibs=no
9563 cat <<_LT_EOF 1>&2
9564
9565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9566 *** create shared libraries on Solaris systems. Therefore, libtool
9567 *** is disabling shared libraries support. We urge you to upgrade GNU
9568 *** binutils to release 2.9.1 or newer. Another option is to modify
9569 *** your PATH or compiler configuration so that the native linker is
9570 *** used, and then restart.
9571
9572 _LT_EOF
9573 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
9580
9581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9582 case `$LD -v 2>&1` in
9583 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9584 ld_shlibs=no
9585 cat <<_LT_EOF 1>&2
9586
9587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9588 *** reliably create shared libraries on SCO systems. Therefore, libtool
9589 *** is disabling shared libraries support. We urge you to upgrade GNU
9590 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595 ;;
9596 *)
9597 # For security reasons, it is highly recommended that you always
9598 # use absolute paths for naming shared libraries, and exclude the
9599 # DT_RUNPATH tag from executables and libraries. But doing so
9600 # requires that you compile everything twice, which is a pain.
9601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9605 else
9606 ld_shlibs=no
9607 fi
9608 ;;
9609 esac
9610 ;;
9611
9612 sunos4*)
9613 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9614 wlarc=
9615 hardcode_direct=yes
9616 hardcode_shlibpath_var=no
9617 ;;
9618
9619 *)
9620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9622 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9623 else
9624 ld_shlibs=no
9625 fi
9626 ;;
9627 esac
9628
9629 if test no = "$ld_shlibs"; then
9630 runpath_var=
9631 hardcode_libdir_flag_spec=
9632 export_dynamic_flag_spec=
9633 whole_archive_flag_spec=
9634 fi
9635 else
9636 # PORTME fill in a description of your system's linker (not GNU ld)
9637 case $host_os in
9638 aix3*)
9639 allow_undefined_flag=unsupported
9640 always_export_symbols=yes
9641 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'
9642 # Note: this linker hardcodes the directories in LIBPATH if there
9643 # are no directories specified by -L.
9644 hardcode_minus_L=yes
9645 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9646 # Neither direct hardcoding nor static linking is supported with a
9647 # broken collect2.
9648 hardcode_direct=unsupported
9649 fi
9650 ;;
9651
9652 aix[4-9]*)
9653 if test ia64 = "$host_cpu"; then
9654 # On IA64, the linker does run time linking by default, so we don't
9655 # have to do anything special.
9656 aix_use_runtimelinking=no
9657 exp_sym_flag='-Bexport'
9658 no_entry_flag=
9659 else
9660 # If we're using GNU nm, then we don't want the "-C" option.
9661 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9662 # Without the "-l" option, or with the "-B" option, AIX nm treats
9663 # weak defined symbols like other global defined symbols, whereas
9664 # GNU nm marks them as "W".
9665 # While the 'weak' keyword is ignored in the Export File, we need
9666 # it in the Import File for the 'aix-soname' feature, so we have
9667 # to replace the "-B" option with "-P" for AIX nm.
9668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9669 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'
9670 else
9671 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'
9672 fi
9673 aix_use_runtimelinking=no
9674
9675 # Test if we are trying to use run time linking or normal
9676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9677 # have runtime linking enabled, and use it for executables.
9678 # For shared libraries, we enable/disable runtime linking
9679 # depending on the kind of the shared library created -
9680 # when "with_aix_soname,aix_use_runtimelinking" is:
9681 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9682 # "aix,yes" lib.so shared, rtl:yes, for executables
9683 # lib.a static archive
9684 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9685 # lib.a(lib.so.V) shared, rtl:no, for executables
9686 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9687 # lib.a(lib.so.V) shared, rtl:no
9688 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9689 # lib.a static archive
9690 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9691 for ld_flag in $LDFLAGS; do
9692 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9693 aix_use_runtimelinking=yes
9694 break
9695 fi
9696 done
9697 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9698 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9699 # so we don't have lib.a shared libs to link our executables.
9700 # We have to force runtime linking in this case.
9701 aix_use_runtimelinking=yes
9702 LDFLAGS="$LDFLAGS -Wl,-brtl"
9703 fi
9704 ;;
9705 esac
9706
9707 exp_sym_flag='-bexport'
9708 no_entry_flag='-bnoentry'
9709 fi
9710
9711 # When large executables or shared objects are built, AIX ld can
9712 # have problems creating the table of contents. If linking a library
9713 # or program results in "error TOC overflow" add -mminimal-toc to
9714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716
9717 archive_cmds=''
9718 hardcode_direct=yes
9719 hardcode_direct_absolute=yes
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 file_list_spec='$wl-f,'
9723 case $with_aix_soname,$aix_use_runtimelinking in
9724 aix,*) ;; # traditional, no import file
9725 svr4,* | *,yes) # use import file
9726 # The Import File defines what to hardcode.
9727 hardcode_direct=no
9728 hardcode_direct_absolute=no
9729 ;;
9730 esac
9731
9732 if test yes = "$GCC"; then
9733 case $host_os in aix4.[012]|aix4.[012].*)
9734 # We only want to do this on AIX 4.2 and lower, the check
9735 # below for broken collect2 doesn't work under 4.3+
9736 collect2name=`$CC -print-prog-name=collect2`
9737 if test -f "$collect2name" &&
9738 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9739 then
9740 # We have reworked collect2
9741 :
9742 else
9743 # We have old collect2
9744 hardcode_direct=unsupported
9745 # It fails to find uninstalled libraries when the uninstalled
9746 # path is not listed in the libpath. Setting hardcode_minus_L
9747 # to unsupported forces relinking
9748 hardcode_minus_L=yes
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_libdir_separator=
9751 fi
9752 ;;
9753 esac
9754 shared_flag='-shared'
9755 if test yes = "$aix_use_runtimelinking"; then
9756 shared_flag="$shared_flag "'$wl-G'
9757 fi
9758 # Need to ensure runtime linking is disabled for the traditional
9759 # shared library, or the linker may eventually find shared libraries
9760 # /with/ Import File - we do not want to mix them.
9761 shared_flag_aix='-shared'
9762 shared_flag_svr4='-shared $wl-G'
9763 else
9764 # not using gcc
9765 if test ia64 = "$host_cpu"; then
9766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9767 # chokes on -Wl,-G. The following line is correct:
9768 shared_flag='-G'
9769 else
9770 if test yes = "$aix_use_runtimelinking"; then
9771 shared_flag='$wl-G'
9772 else
9773 shared_flag='$wl-bM:SRE'
9774 fi
9775 shared_flag_aix='$wl-bM:SRE'
9776 shared_flag_svr4='$wl-G'
9777 fi
9778 fi
9779
9780 export_dynamic_flag_spec='$wl-bexpall'
9781 # It seems that -bexpall does not export symbols beginning with
9782 # underscore (_), so it is better to generate a list of symbols to export.
9783 always_export_symbols=yes
9784 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9785 # Warning - without using the other runtime loading flags (-brtl),
9786 # -berok will link without error, but may produce a broken library.
9787 allow_undefined_flag='-berok'
9788 # Determine the default libpath from the value encoded in an
9789 # empty executable.
9790 if test set = "${lt_cv_aix_libpath+set}"; then
9791 aix_libpath=$lt_cv_aix_libpath
9792 else
9793 if test ${lt_cv_aix_libpath_+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else case e in #(
9797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799
9800 int
9801 main (void)
9802 {
9803
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"
9809 then :
9810
9811 lt_aix_libpath_sed='
9812 /Import File Strings/,/^$/ {
9813 /^0/ {
9814 s/^0 *\([^ ]*\) *$/\1/
9815 p
9816 }
9817 }'
9818 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819 # Check for a 64-bit object if we didn't find anything.
9820 if test -z "$lt_cv_aix_libpath_"; then
9821 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9822 fi
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9825 conftest$ac_exeext conftest.$ac_ext
9826 if test -z "$lt_cv_aix_libpath_"; then
9827 lt_cv_aix_libpath_=/usr/lib:/lib
9828 fi
9829 ;;
9830 esac
9831 fi
9832
9833 aix_libpath=$lt_cv_aix_libpath_
9834 fi
9835
9836 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9837 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
9838 else
9839 if test ia64 = "$host_cpu"; then
9840 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9841 allow_undefined_flag="-z nodefs"
9842 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"
9843 else
9844 # Determine the default libpath from the value encoded in an
9845 # empty executable.
9846 if test set = "${lt_cv_aix_libpath+set}"; then
9847 aix_libpath=$lt_cv_aix_libpath
9848 else
9849 if test ${lt_cv_aix_libpath_+y}
9850 then :
9851 printf %s "(cached) " >&6
9852 else case e in #(
9853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855
9856 int
9857 main (void)
9858 {
9859
9860 ;
9861 return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"
9865 then :
9866
9867 lt_aix_libpath_sed='
9868 /Import File Strings/,/^$/ {
9869 /^0/ {
9870 s/^0 *\([^ ]*\) *$/\1/
9871 p
9872 }
9873 }'
9874 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9875 # Check for a 64-bit object if we didn't find anything.
9876 if test -z "$lt_cv_aix_libpath_"; then
9877 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9878 fi
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9881 conftest$ac_exeext conftest.$ac_ext
9882 if test -z "$lt_cv_aix_libpath_"; then
9883 lt_cv_aix_libpath_=/usr/lib:/lib
9884 fi
9885 ;;
9886 esac
9887 fi
9888
9889 aix_libpath=$lt_cv_aix_libpath_
9890 fi
9891
9892 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9893 # Warning - without using the other run time loading flags,
9894 # -berok will link without error, but may produce a broken library.
9895 no_undefined_flag=' $wl-bernotok'
9896 allow_undefined_flag=' $wl-berok'
9897 if test yes = "$with_gnu_ld"; then
9898 # We only use this code for GNU lds that support --whole-archive.
9899 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9900 else
9901 # Exported symbols can be pulled into shared objects from archives
9902 whole_archive_flag_spec='$convenience'
9903 fi
9904 archive_cmds_need_lc=yes
9905 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9906 # -brtl affects multiple linker settings, -berok does not and is overridden later
9907 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9908 if test svr4 != "$with_aix_soname"; then
9909 # This is similar to how AIX traditionally builds its shared libraries.
9910 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'
9911 fi
9912 if test aix != "$with_aix_soname"; then
9913 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'
9914 else
9915 # used by -dlpreopen to get the symbols
9916 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9917 fi
9918 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9919 fi
9920 fi
9921 ;;
9922
9923 amigaos*)
9924 case $host_cpu in
9925 powerpc)
9926 # see comment about AmigaOS4 .so support
9927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9928 archive_expsym_cmds=''
9929 ;;
9930 m68k)
9931 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)'
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 hardcode_minus_L=yes
9934 ;;
9935 esac
9936 ;;
9937
9938 bsdi[45]*)
9939 export_dynamic_flag_spec=-rdynamic
9940 ;;
9941
9942 cygwin* | mingw* | windows* | pw32* | cegcc*)
9943 # When not using gcc, we currently assume that we are using
9944 # Microsoft Visual C++ or Intel C++ Compiler.
9945 # hardcode_libdir_flag_spec is actually meaningless, as there is
9946 # no search path for DLLs.
9947 case $cc_basename in
9948 cl* | icl*)
9949 # Native MSVC or ICC
9950 hardcode_libdir_flag_spec=' '
9951 allow_undefined_flag=unsupported
9952 always_export_symbols=yes
9953 file_list_spec='@'
9954 # Tell ltmain to make .lib files, not .a files.
9955 libext=lib
9956 # Tell ltmain to make .dll files, not .so files.
9957 shrext_cmds=.dll
9958 # FIXME: Setting linknames here is a bad hack.
9959 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9960 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9961 cp "$export_symbols" "$output_objdir/$soname.def";
9962 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9963 else
9964 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9965 fi~
9966 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9967 linknames='
9968 # The linker will not automatically build a static lib if we build a DLL.
9969 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9970 enable_shared_with_static_runtimes=yes
9971 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9973 # Don't use ranlib
9974 old_postinstall_cmds='chmod 644 $oldlib'
9975 postlink_cmds='lt_outputfile="@OUTPUT@"~
9976 lt_tool_outputfile="@TOOL_OUTPUT@"~
9977 case $lt_outputfile in
9978 *.exe|*.EXE) ;;
9979 *)
9980 lt_outputfile=$lt_outputfile.exe
9981 lt_tool_outputfile=$lt_tool_outputfile.exe
9982 ;;
9983 esac~
9984 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9985 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9986 $RM "$lt_outputfile.manifest";
9987 fi'
9988 ;;
9989 *)
9990 # Assume MSVC and ICC wrapper
9991 hardcode_libdir_flag_spec=' '
9992 allow_undefined_flag=unsupported
9993 # Tell ltmain to make .lib files, not .a files.
9994 libext=lib
9995 # Tell ltmain to make .dll files, not .so files.
9996 shrext_cmds=.dll
9997 # FIXME: Setting linknames here is a bad hack.
9998 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9999 # The linker will automatically build a .lib file if we build a DLL.
10000 old_archive_from_new_cmds='true'
10001 # FIXME: Should let the user specify the lib program.
10002 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10003 enable_shared_with_static_runtimes=yes
10004 ;;
10005 esac
10006 ;;
10007
10008 darwin* | rhapsody*)
10009
10010
10011 archive_cmds_need_lc=no
10012 hardcode_direct=no
10013 hardcode_automatic=yes
10014 hardcode_shlibpath_var=unsupported
10015 if test yes = "$lt_cv_ld_force_load"; then
10016 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\"`'
10017
10018 else
10019 whole_archive_flag_spec=''
10020 fi
10021 link_all_deplibs=yes
10022 allow_undefined_flag=$_lt_dar_allow_undefined
10023 case $cc_basename in
10024 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10025 *) _lt_dar_can_shared=$GCC ;;
10026 esac
10027 if test yes = "$_lt_dar_can_shared"; then
10028 output_verbose_link_cmd=func_echo_all
10029 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10030 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10031 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"
10032 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"
10033
10034 else
10035 ld_shlibs=no
10036 fi
10037
10038 ;;
10039
10040 dgux*)
10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10047 # support. Future versions do this automatically, but an explicit c++rt0.o
10048 # does not break anything, and helps significantly (at the cost of a little
10049 # extra space).
10050 freebsd2.2*)
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10052 hardcode_libdir_flag_spec='-R$libdir'
10053 hardcode_direct=yes
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10058 freebsd2.*)
10059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=yes
10061 hardcode_minus_L=yes
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10066 freebsd* | dragonfly* | midnightbsd*)
10067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068 hardcode_libdir_flag_spec='-R$libdir'
10069 hardcode_direct=yes
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 hpux9*)
10074 if test yes = "$GCC"; then
10075 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'
10076 else
10077 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'
10078 fi
10079 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10080 hardcode_libdir_separator=:
10081 hardcode_direct=yes
10082
10083 # hardcode_minus_L: Not really in the search PATH,
10084 # but as the default location of the library.
10085 hardcode_minus_L=yes
10086 export_dynamic_flag_spec='$wl-E'
10087 ;;
10088
10089 hpux10*)
10090 if test yes,no = "$GCC,$with_gnu_ld"; then
10091 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10092 else
10093 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10094 fi
10095 if test no = "$with_gnu_ld"; then
10096 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10097 hardcode_libdir_separator=:
10098 hardcode_direct=yes
10099 hardcode_direct_absolute=yes
10100 export_dynamic_flag_spec='$wl-E'
10101 # hardcode_minus_L: Not really in the search PATH,
10102 # but as the default location of the library.
10103 hardcode_minus_L=yes
10104 fi
10105 ;;
10106
10107 hpux11*)
10108 if test yes,no = "$GCC,$with_gnu_ld"; then
10109 case $host_cpu in
10110 hppa*64*)
10111 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 ;;
10113 ia64*)
10114 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10115 ;;
10116 *)
10117 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10118 ;;
10119 esac
10120 else
10121 case $host_cpu in
10122 hppa*64*)
10123 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 ;;
10125 ia64*)
10126 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10127 ;;
10128 *)
10129
10130 # Older versions of the 11.00 compiler do not understand -b yet
10131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10133 printf %s "checking if $CC understands -b... " >&6; }
10134 if test ${lt_cv_prog_compiler__b+y}
10135 then :
10136 printf %s "(cached) " >&6
10137 else case e in #(
10138 e) lt_cv_prog_compiler__b=no
10139 save_LDFLAGS=$LDFLAGS
10140 LDFLAGS="$LDFLAGS -b"
10141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10143 # The linker can only warn and ignore the option if not recognized
10144 # So say no if there are warnings
10145 if test -s conftest.err; then
10146 # Append any errors to the config.log.
10147 cat conftest.err 1>&5
10148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10150 if diff conftest.exp conftest.er2 >/dev/null; then
10151 lt_cv_prog_compiler__b=yes
10152 fi
10153 else
10154 lt_cv_prog_compiler__b=yes
10155 fi
10156 fi
10157 $RM -r conftest*
10158 LDFLAGS=$save_LDFLAGS
10159 ;;
10160 esac
10161 fi
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10163 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10164
10165 if test yes = "$lt_cv_prog_compiler__b"; then
10166 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10167 else
10168 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10169 fi
10170
10171 ;;
10172 esac
10173 fi
10174 if test no = "$with_gnu_ld"; then
10175 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10176 hardcode_libdir_separator=:
10177
10178 case $host_cpu in
10179 hppa*64*|ia64*)
10180 hardcode_direct=no
10181 hardcode_shlibpath_var=no
10182 ;;
10183 *)
10184 hardcode_direct=yes
10185 hardcode_direct_absolute=yes
10186 export_dynamic_flag_spec='$wl-E'
10187
10188 # hardcode_minus_L: Not really in the search PATH,
10189 # but as the default location of the library.
10190 hardcode_minus_L=yes
10191 ;;
10192 esac
10193 fi
10194 ;;
10195
10196 irix5* | irix6* | nonstopux*)
10197 if test yes = "$GCC"; then
10198 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'
10199 # Try to use the -exported_symbol ld option, if it does not
10200 # work, assume that -exports_file does not work either and
10201 # implicitly export all symbols.
10202 # This should be the same for all languages, so no per-tag cache variable.
10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10204 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10205 if test ${lt_cv_irix_exported_symbol+y}
10206 then :
10207 printf %s "(cached) " >&6
10208 else case e in #(
10209 e) save_LDFLAGS=$LDFLAGS
10210 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213 int foo (void) { return 0; }
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"
10216 then :
10217 lt_cv_irix_exported_symbol=yes
10218 else case e in #(
10219 e) lt_cv_irix_exported_symbol=no ;;
10220 esac
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LDFLAGS=$save_LDFLAGS ;;
10225 esac
10226 fi
10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10228 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10229 if test yes = "$lt_cv_irix_exported_symbol"; then
10230 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'
10231 fi
10232 else
10233 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'
10234 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'
10235 fi
10236 archive_cmds_need_lc='no'
10237 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10238 hardcode_libdir_separator=:
10239 inherit_rpath=yes
10240 link_all_deplibs=yes
10241 ;;
10242
10243 linux*)
10244 case $cc_basename in
10245 tcc*)
10246 # Fabrice Bellard et al's Tiny C Compiler
10247 ld_shlibs=yes
10248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10250 ;;
10251 esac
10252 ;;
10253
10254 *-mlibc)
10255 ;;
10256
10257 netbsd* | netbsdelf*-gnu)
10258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10260 else
10261 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10262 fi
10263 hardcode_libdir_flag_spec='-R$libdir'
10264 hardcode_direct=yes
10265 hardcode_shlibpath_var=no
10266 ;;
10267
10268 newsos6)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=yes
10271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10272 hardcode_libdir_separator=:
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 *nto* | *qnx*)
10277 ;;
10278
10279 openbsd*)
10280 if test -f /usr/libexec/ld.so; then
10281 hardcode_direct=yes
10282 hardcode_shlibpath_var=no
10283 hardcode_direct_absolute=yes
10284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10287 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10288 export_dynamic_flag_spec='$wl-E'
10289 else
10290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10291 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10292 fi
10293 else
10294 ld_shlibs=no
10295 fi
10296 ;;
10297
10298 os2*)
10299 hardcode_libdir_flag_spec='-L$libdir'
10300 hardcode_minus_L=yes
10301 allow_undefined_flag=unsupported
10302 shrext_cmds=.dll
10303 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10304 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10305 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10306 $ECHO EXPORTS >> $output_objdir/$libname.def~
10307 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10308 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10309 emximp -o $lib $output_objdir/$libname.def'
10310 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10311 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10312 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10313 $ECHO EXPORTS >> $output_objdir/$libname.def~
10314 prefix_cmds="$SED"~
10315 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10316 prefix_cmds="$prefix_cmds -e 1d";
10317 fi~
10318 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10319 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10320 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10321 emximp -o $lib $output_objdir/$libname.def'
10322 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10323 enable_shared_with_static_runtimes=yes
10324 file_list_spec='@'
10325 ;;
10326
10327 osf3*)
10328 if test yes = "$GCC"; then
10329 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10330 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'
10331 else
10332 allow_undefined_flag=' -expect_unresolved \*'
10333 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'
10334 fi
10335 archive_cmds_need_lc='no'
10336 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10337 hardcode_libdir_separator=:
10338 ;;
10339
10340 osf4* | osf5*) # as osf3* with the addition of -msym flag
10341 if test yes = "$GCC"; then
10342 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10343 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'
10344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10345 else
10346 allow_undefined_flag=' -expect_unresolved \*'
10347 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'
10348 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~
10349 $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'
10350
10351 # Both c and cxx compiler support -rpath directly
10352 hardcode_libdir_flag_spec='-rpath $libdir'
10353 fi
10354 archive_cmds_need_lc='no'
10355 hardcode_libdir_separator=:
10356 ;;
10357
10358 serenity*)
10359 ;;
10360
10361 solaris*)
10362 no_undefined_flag=' -z defs'
10363 if test yes = "$GCC"; then
10364 wlarc='$wl'
10365 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10366 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10367 $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'
10368 else
10369 case `$CC -V 2>&1` in
10370 *"Compilers 5.0"*)
10371 wlarc=''
10372 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10374 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10375 ;;
10376 *)
10377 wlarc='$wl'
10378 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10380 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10381 ;;
10382 esac
10383 fi
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_shlibpath_var=no
10386 case $host_os in
10387 solaris2.[0-5] | solaris2.[0-5].*) ;;
10388 *)
10389 # The compiler driver will combine and reorder linker options,
10390 # but understands '-z linker_flag'. GCC discards it without '$wl',
10391 # but is careful enough not to reorder.
10392 # Supported since Solaris 2.6 (maybe 2.5.1?)
10393 if test yes = "$GCC"; then
10394 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10395 else
10396 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10397 fi
10398 ;;
10399 esac
10400 link_all_deplibs=yes
10401 ;;
10402
10403 sunos4*)
10404 if test sequent = "$host_vendor"; then
10405 # Use $CC to link under sequent, because it throws in some extra .o
10406 # files that make .init and .fini sections work.
10407 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10408 else
10409 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10410 fi
10411 hardcode_libdir_flag_spec='-L$libdir'
10412 hardcode_direct=yes
10413 hardcode_minus_L=yes
10414 hardcode_shlibpath_var=no
10415 ;;
10416
10417 sysv4)
10418 case $host_vendor in
10419 sni)
10420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421 hardcode_direct=yes # is this really true???
10422 ;;
10423 siemens)
10424 ## LD is ld it makes a PLAMLIB
10425 ## CC just makes a GrossModule.
10426 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10427 reload_cmds='$CC -r -o $output$reload_objs'
10428 hardcode_direct=no
10429 ;;
10430 motorola)
10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10433 ;;
10434 esac
10435 runpath_var='LD_RUN_PATH'
10436 hardcode_shlibpath_var=no
10437 ;;
10438
10439 sysv4.3*)
10440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_shlibpath_var=no
10442 export_dynamic_flag_spec='-Bexport'
10443 ;;
10444
10445 sysv4*MP*)
10446 if test -d /usr/nec; then
10447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10448 hardcode_shlibpath_var=no
10449 runpath_var=LD_RUN_PATH
10450 hardcode_runpath_var=yes
10451 ld_shlibs=yes
10452 fi
10453 ;;
10454
10455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10456 no_undefined_flag='$wl-z,text'
10457 archive_cmds_need_lc=no
10458 hardcode_shlibpath_var=no
10459 runpath_var='LD_RUN_PATH'
10460
10461 if test yes = "$GCC"; then
10462 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10464 else
10465 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10466 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10467 fi
10468 ;;
10469
10470 sysv5* | sco3.2v5* | sco5v6*)
10471 # Note: We CANNOT use -z defs as we might desire, because we do not
10472 # link with -lc, and that would cause any symbols used from libc to
10473 # always be unresolved, which means just about no library would
10474 # ever link correctly. If we're not using GNU ld we use -z text
10475 # though, which does catch some bad symbols but isn't as heavy-handed
10476 # as -z defs.
10477 no_undefined_flag='$wl-z,text'
10478 allow_undefined_flag='$wl-z,nodefs'
10479 archive_cmds_need_lc=no
10480 hardcode_shlibpath_var=no
10481 hardcode_libdir_flag_spec='$wl-R,$libdir'
10482 hardcode_libdir_separator=':'
10483 link_all_deplibs=yes
10484 export_dynamic_flag_spec='$wl-Bexport'
10485 runpath_var='LD_RUN_PATH'
10486
10487 if test yes = "$GCC"; then
10488 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10490 else
10491 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10493 fi
10494 ;;
10495
10496 uts4*)
10497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498 hardcode_libdir_flag_spec='-L$libdir'
10499 hardcode_shlibpath_var=no
10500 ;;
10501
10502 *)
10503 ld_shlibs=no
10504 ;;
10505 esac
10506
10507 if test sni = "$host_vendor"; then
10508 case $host in
10509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10510 export_dynamic_flag_spec='$wl-Blargedynsym'
10511 ;;
10512 esac
10513 fi
10514 fi
10515
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10517 printf "%s\n" "$ld_shlibs" >&6; }
10518 test no = "$ld_shlibs" && can_build_shared=no
10519
10520 with_gnu_ld=$with_gnu_ld
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536 #
10537 # Do we need to explicitly link libc?
10538 #
10539 case "x$archive_cmds_need_lc" in
10540 x|xyes)
10541 # Assume -lc should be added
10542 archive_cmds_need_lc=yes
10543
10544 if test yes,yes = "$GCC,$enable_shared"; then
10545 case $archive_cmds in
10546 *'~'*)
10547 # FIXME: we may have to deal with multi-command sequences.
10548 ;;
10549 '$CC '*)
10550 # Test whether the compiler implicitly links with -lc since on some
10551 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10552 # to ld, don't add -lc before -lgcc.
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10554 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10555 if test ${lt_cv_archive_cmds_need_lc+y}
10556 then :
10557 printf %s "(cached) " >&6
10558 else case e in #(
10559 e) $RM conftest*
10560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10561
10562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10563 (eval $ac_compile) 2>&5
10564 ac_status=$?
10565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566 test $ac_status = 0; } 2>conftest.err; then
10567 soname=conftest
10568 lib=conftest
10569 libobjs=conftest.$ac_objext
10570 deplibs=
10571 wl=$lt_prog_compiler_wl
10572 pic_flag=$lt_prog_compiler_pic
10573 compiler_flags=-v
10574 linker_flags=-v
10575 verstring=
10576 output_objdir=.
10577 libname=conftest
10578 lt_save_allow_undefined_flag=$allow_undefined_flag
10579 allow_undefined_flag=
10580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10582 ac_status=$?
10583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10584 test $ac_status = 0; }
10585 then
10586 lt_cv_archive_cmds_need_lc=no
10587 else
10588 lt_cv_archive_cmds_need_lc=yes
10589 fi
10590 allow_undefined_flag=$lt_save_allow_undefined_flag
10591 else
10592 cat conftest.err 1>&5
10593 fi
10594 $RM conftest*
10595 ;;
10596 esac
10597 fi
10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10599 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10600 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10601 ;;
10602 esac
10603 fi
10604 ;;
10605 esac
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10759 printf %s "checking dynamic linker characteristics... " >&6; }
10760
10761 if test yes = "$GCC"; then
10762 case $host_os in
10763 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10764 *) lt_awk_arg='/^libraries:/' ;;
10765 esac
10766 case $host_os in
10767 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10768 *) lt_sed_strip_eq='s|=/|/|g' ;;
10769 esac
10770 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10771 case $lt_search_path_spec in
10772 *\;*)
10773 # if the path contains ";" then we assume it to be the separator
10774 # otherwise default to the standard path separator (i.e. ":") - it is
10775 # assumed that no part of a normal pathname contains ";" but that should
10776 # okay in the real world where ";" in dirpaths is itself problematic.
10777 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10778 ;;
10779 *)
10780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10781 ;;
10782 esac
10783 # Ok, now we have the path, separated by spaces, we can step through it
10784 # and add multilib dir if necessary...
10785 lt_tmp_lt_search_path_spec=
10786 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10787 # ...but if some path component already ends with the multilib dir we assume
10788 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10789 case "$lt_multi_os_dir; $lt_search_path_spec " in
10790 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10791 lt_multi_os_dir=
10792 ;;
10793 esac
10794 for lt_sys_path in $lt_search_path_spec; do
10795 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10797 elif test -n "$lt_multi_os_dir"; then
10798 test -d "$lt_sys_path" && \
10799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10800 fi
10801 done
10802 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10803 BEGIN {RS = " "; FS = "/|\n";} {
10804 lt_foo = "";
10805 lt_count = 0;
10806 for (lt_i = NF; lt_i > 0; lt_i--) {
10807 if ($lt_i != "" && $lt_i != ".") {
10808 if ($lt_i == "..") {
10809 lt_count++;
10810 } else {
10811 if (lt_count == 0) {
10812 lt_foo = "/" $lt_i lt_foo;
10813 } else {
10814 lt_count--;
10815 }
10816 }
10817 }
10818 }
10819 if (lt_foo != "") { lt_freq[lt_foo]++; }
10820 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10821 }'`
10822 # AWK program above erroneously prepends '/' to C:/dos/paths
10823 # for these hosts.
10824 case $host_os in
10825 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10826 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10827 esac
10828 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10829 else
10830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10831 fi
10832 library_names_spec=
10833 libname_spec='lib$name'
10834 soname_spec=
10835 shrext_cmds=.so
10836 postinstall_cmds=
10837 postuninstall_cmds=
10838 finish_cmds=
10839 finish_eval=
10840 shlibpath_var=
10841 shlibpath_overrides_runpath=unknown
10842 version_type=none
10843 dynamic_linker="$host_os ld.so"
10844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10845 need_lib_prefix=unknown
10846 hardcode_into_libs=no
10847
10848 # when you set need_version to no, make sure it does not cause -set_version
10849 # flags to be left without arguments
10850 need_version=unknown
10851
10852
10853
10854 case $host_os in
10855 aix3*)
10856 version_type=linux # correct to gnu/linux during the next big refactor
10857 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10858 shlibpath_var=LIBPATH
10859
10860 # AIX 3 has no versioning support, so we append a major version to the name.
10861 soname_spec='$libname$release$shared_ext$major'
10862 ;;
10863
10864 aix[4-9]*)
10865 version_type=linux # correct to gnu/linux during the next big refactor
10866 need_lib_prefix=no
10867 need_version=no
10868 hardcode_into_libs=yes
10869 if test ia64 = "$host_cpu"; then
10870 # AIX 5 supports IA64
10871 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 else
10874 # With GCC up to 2.95.x, collect2 would create an import file
10875 # for dependence libraries. The import file would start with
10876 # the line '#! .'. This would cause the generated library to
10877 # depend on '.', always an invalid library. This was fixed in
10878 # development snapshots of GCC prior to 3.0.
10879 case $host_os in
10880 aix4 | aix4.[01] | aix4.[01].*)
10881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10882 echo ' yes '
10883 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10884 :
10885 else
10886 can_build_shared=no
10887 fi
10888 ;;
10889 esac
10890 # Using Import Files as archive members, it is possible to support
10891 # filename-based versioning of shared library archives on AIX. While
10892 # this would work for both with and without runtime linking, it will
10893 # prevent static linking of such archives. So we do filename-based
10894 # shared library versioning with .so extension only, which is used
10895 # when both runtime linking and shared linking is enabled.
10896 # Unfortunately, runtime linking may impact performance, so we do
10897 # not want this to be the default eventually. Also, we use the
10898 # versioned .so libs for executables only if there is the -brtl
10899 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
10900 # To allow for filename-based versioning support, we need to create
10901 # libNAME.so.V as an archive file, containing:
10902 # *) an Import File, referring to the versioned filename of the
10903 # archive as well as the shared archive member, telling the
10904 # bitwidth (32 or 64) of that shared object, and providing the
10905 # list of exported symbols of that shared object, eventually
10906 # decorated with the 'weak' keyword
10907 # *) the shared object with the F_LOADONLY flag set, to really avoid
10908 # it being seen by the linker.
10909 # At run time we better use the real file rather than another symlink,
10910 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10911
10912 case $with_aix_soname,$aix_use_runtimelinking in
10913 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10914 # soname into executable. Probably we can add versioning support to
10915 # collect2, so additional links can be useful in future.
10916 aix,yes) # traditional libtool
10917 dynamic_linker='AIX unversionable lib.so'
10918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10919 # instead of lib<name>.a to let people know that these are not
10920 # typical AIX shared libraries.
10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922 ;;
10923 aix,no) # traditional AIX only
10924 dynamic_linker='AIX lib.a(lib.so.V)'
10925 # We preserve .a as extension for shared libraries through AIX4.2
10926 # and later when we are not doing run time linking.
10927 library_names_spec='$libname$release.a $libname.a'
10928 soname_spec='$libname$release$shared_ext$major'
10929 ;;
10930 svr4,*) # full svr4 only
10931 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10932 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10933 # We do not specify a path in Import Files, so LIBPATH fires.
10934 shlibpath_overrides_runpath=yes
10935 ;;
10936 *,yes) # both, prefer svr4
10937 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10938 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10939 # unpreferred sharedlib libNAME.a needs extra handling
10940 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"'
10941 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"'
10942 # We do not specify a path in Import Files, so LIBPATH fires.
10943 shlibpath_overrides_runpath=yes
10944 ;;
10945 *,no) # both, prefer aix
10946 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10947 library_names_spec='$libname$release.a $libname.a'
10948 soname_spec='$libname$release$shared_ext$major'
10949 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10950 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)'
10951 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"'
10952 ;;
10953 esac
10954 shlibpath_var=LIBPATH
10955 fi
10956 ;;
10957
10958 amigaos*)
10959 case $host_cpu in
10960 powerpc)
10961 # Since July 2007 AmigaOS4 officially supports .so libraries.
10962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964 ;;
10965 m68k)
10966 library_names_spec='$libname.ixlibrary $libname.a'
10967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10968 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'
10969 ;;
10970 esac
10971 ;;
10972
10973 beos*)
10974 library_names_spec='$libname$shared_ext'
10975 dynamic_linker="$host_os ld.so"
10976 shlibpath_var=LIBRARY_PATH
10977 ;;
10978
10979 bsdi[45]*)
10980 version_type=linux # correct to gnu/linux during the next big refactor
10981 need_version=no
10982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10983 soname_spec='$libname$release$shared_ext$major'
10984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10988 # the default ld.so.conf also contains /usr/contrib/lib and
10989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10990 # libtool to hard-code these into programs
10991 ;;
10992
10993 cygwin* | mingw* | windows* | pw32* | cegcc*)
10994 version_type=windows
10995 shrext_cmds=.dll
10996 need_version=no
10997 need_lib_prefix=no
10998
10999 case $GCC,$cc_basename in
11000 yes,*)
11001 # gcc
11002 library_names_spec='$libname.dll.a'
11003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11004 # If user builds GCC with multilib enabled,
11005 # it should just install on $(libdir)
11006 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11007 if test xyes = x"$multilib"; then
11008 postinstall_cmds='base_file=`basename \$file`~
11009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11010 dldir=$destdir/`dirname \$dlpath`~
11011 $install_prog $dir/$dlname $destdir/$dlname~
11012 chmod a+x $destdir/$dlname~
11013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11014 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11015 fi'
11016 else
11017 postinstall_cmds='base_file=`basename \$file`~
11018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11019 dldir=$destdir/`dirname \$dlpath`~
11020 test -d \$dldir || mkdir -p \$dldir~
11021 $install_prog $dir/$dlname \$dldir/$dlname~
11022 chmod a+x \$dldir/$dlname~
11023 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11024 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11025 fi'
11026 fi
11027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11028 dlpath=$dir/\$dldll~
11029 $RM \$dlpath'
11030 shlibpath_overrides_runpath=yes
11031
11032 case $host_os in
11033 cygwin*)
11034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11035 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11036
11037 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11038 ;;
11039 mingw* | windows* | cegcc*)
11040 # MinGW DLLs use traditional 'lib' prefix
11041 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11042 ;;
11043 pw32*)
11044 # pw32 DLLs use 'pw' prefix rather than 'lib'
11045 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11046 ;;
11047 esac
11048 dynamic_linker='Win32 ld.exe'
11049 ;;
11050
11051 *,cl* | *,icl*)
11052 # Native MSVC or ICC
11053 libname_spec='$name'
11054 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11055 library_names_spec='$libname.dll.lib'
11056
11057 case $build_os in
11058 mingw* | windows*)
11059 sys_lib_search_path_spec=
11060 lt_save_ifs=$IFS
11061 IFS=';'
11062 for lt_path in $LIB
11063 do
11064 IFS=$lt_save_ifs
11065 # Let DOS variable expansion print the short 8.3 style file name.
11066 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11067 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11068 done
11069 IFS=$lt_save_ifs
11070 # Convert to MSYS style.
11071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11072 ;;
11073 cygwin*)
11074 # Convert to unix form, then to dos form, then back to unix form
11075 # but this time dos style (no spaces!) so that the unix form looks
11076 # like /cygdrive/c/PROGRA~1:/cygdr...
11077 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11078 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11079 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11080 ;;
11081 *)
11082 sys_lib_search_path_spec=$LIB
11083 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11084 # It is most probably a Windows format PATH.
11085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11086 else
11087 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11088 fi
11089 # FIXME: find the short name or the path components, as spaces are
11090 # common. (e.g. "Program Files" -> "PROGRA~1")
11091 ;;
11092 esac
11093
11094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11095 postinstall_cmds='base_file=`basename \$file`~
11096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11097 dldir=$destdir/`dirname \$dlpath`~
11098 test -d \$dldir || mkdir -p \$dldir~
11099 $install_prog $dir/$dlname \$dldir/$dlname'
11100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11101 dlpath=$dir/\$dldll~
11102 $RM \$dlpath'
11103 shlibpath_overrides_runpath=yes
11104 dynamic_linker='Win32 link.exe'
11105 ;;
11106
11107 *)
11108 # Assume MSVC and ICC wrapper
11109 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11110 dynamic_linker='Win32 ld.exe'
11111 ;;
11112 esac
11113 # FIXME: first we should search . and the directory the executable is in
11114 shlibpath_var=PATH
11115 ;;
11116
11117 darwin* | rhapsody*)
11118 dynamic_linker="$host_os dyld"
11119 version_type=darwin
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11123 soname_spec='$libname$release$major$shared_ext'
11124 shlibpath_overrides_runpath=yes
11125 shlibpath_var=DYLD_LIBRARY_PATH
11126 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11127
11128 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11130 ;;
11131
11132 dgux*)
11133 version_type=linux # correct to gnu/linux during the next big refactor
11134 need_lib_prefix=no
11135 need_version=no
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 ;;
11140
11141 freebsd* | dragonfly* | midnightbsd*)
11142 # DragonFly does not have aout. When/if they implement a new
11143 # versioning mechanism, adjust this.
11144 if test -x /usr/bin/objformat; then
11145 objformat=`/usr/bin/objformat`
11146 else
11147 case $host_os in
11148 freebsd[23].*) objformat=aout ;;
11149 *) objformat=elf ;;
11150 esac
11151 fi
11152 version_type=freebsd-$objformat
11153 case $version_type in
11154 freebsd-elf*)
11155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156 soname_spec='$libname$release$shared_ext$major'
11157 need_version=no
11158 need_lib_prefix=no
11159 ;;
11160 freebsd-*)
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11162 need_version=yes
11163 ;;
11164 esac
11165 case $host_cpu in
11166 powerpc64)
11167 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11168 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 int test_pointer_size[sizeof (void *) - 5];
11172
11173 _ACEOF
11174 if ac_fn_c_try_compile "$LINENO"
11175 then :
11176 shlibpath_var=LD_LIBRARY_PATH
11177 else case e in #(
11178 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11179 esac
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11182 ;;
11183 *)
11184 shlibpath_var=LD_LIBRARY_PATH
11185 ;;
11186 esac
11187 case $host_os in
11188 freebsd2.*)
11189 shlibpath_overrides_runpath=yes
11190 ;;
11191 freebsd3.[01]* | freebsdelf3.[01]*)
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11194 ;;
11195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11199 ;;
11200 *) # from 4.6 on, and DragonFly
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 ;;
11204 esac
11205 ;;
11206
11207 haiku*)
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 need_lib_prefix=no
11210 need_version=no
11211 dynamic_linker="$host_os runtime_loader"
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213 soname_spec='$libname$release$shared_ext$major'
11214 shlibpath_var=LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11217 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11218 hardcode_into_libs=no
11219 ;;
11220
11221 hpux9* | hpux10* | hpux11*)
11222 # Give a soname corresponding to the major version so that dld.sl refuses to
11223 # link against other versions.
11224 version_type=sunos
11225 need_lib_prefix=no
11226 need_version=no
11227 case $host_cpu in
11228 ia64*)
11229 shrext_cmds='.so'
11230 hardcode_into_libs=yes
11231 dynamic_linker="$host_os dld.so"
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11235 soname_spec='$libname$release$shared_ext$major'
11236 if test 32 = "$HPUX_IA64_MODE"; then
11237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11238 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11239 else
11240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11241 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11242 fi
11243 ;;
11244 hppa*64*)
11245 shrext_cmds='.sl'
11246 hardcode_into_libs=yes
11247 dynamic_linker="$host_os dld.sl"
11248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251 soname_spec='$libname$release$shared_ext$major'
11252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11254 ;;
11255 *)
11256 shrext_cmds='.sl'
11257 dynamic_linker="$host_os dld.sl"
11258 shlibpath_var=SHLIB_PATH
11259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261 soname_spec='$libname$release$shared_ext$major'
11262 ;;
11263 esac
11264 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11265 postinstall_cmds='chmod 555 $lib'
11266 # or fails outright, so override atomically:
11267 install_override_mode=555
11268 ;;
11269
11270 interix[3-9]*)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11275 soname_spec='$libname$release$shared_ext$major'
11276 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=no
11279 hardcode_into_libs=yes
11280 ;;
11281
11282 irix5* | irix6* | nonstopux*)
11283 case $host_os in
11284 nonstopux*) version_type=nonstopux ;;
11285 *)
11286 if test yes = "$lt_cv_prog_gnu_ld"; then
11287 version_type=linux # correct to gnu/linux during the next big refactor
11288 else
11289 version_type=irix
11290 fi ;;
11291 esac
11292 need_lib_prefix=no
11293 need_version=no
11294 soname_spec='$libname$release$shared_ext$major'
11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11296 case $host_os in
11297 irix5* | nonstopux*)
11298 libsuff= shlibsuff=
11299 ;;
11300 *)
11301 case $LD in # libtool.m4 will add one of these switches to LD
11302 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11303 libsuff= shlibsuff= libmagic=32-bit;;
11304 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11305 libsuff=32 shlibsuff=N32 libmagic=N32;;
11306 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11307 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11308 *) libsuff= shlibsuff= libmagic=never-match;;
11309 esac
11310 ;;
11311 esac
11312 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11313 shlibpath_overrides_runpath=no
11314 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11315 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11316 hardcode_into_libs=yes
11317 ;;
11318
11319 # No shared lib support for Linux oldld, aout, or coff.
11320 linux*oldld* | linux*aout* | linux*coff*)
11321 dynamic_linker=no
11322 ;;
11323
11324 linux*android*)
11325 version_type=none # Android doesn't support versioned libraries.
11326 need_lib_prefix=no
11327 need_version=no
11328 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
11329 soname_spec='$libname$release$shared_ext'
11330 finish_cmds=
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333
11334 # This implies no fast_install, which is unacceptable.
11335 # Some rework will be needed to allow for fast_install
11336 # before this can be enabled.
11337 hardcode_into_libs=yes
11338
11339 dynamic_linker='Android linker'
11340 # -rpath works at least for libraries that are not overridden by
11341 # libraries installed in system locations.
11342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11343 ;;
11344
11345 # This must be glibc/ELF.
11346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11347 version_type=linux # correct to gnu/linux during the next big refactor
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351 soname_spec='$libname$release$shared_ext$major'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355
11356 # Some binutils ld are patched to set DT_RUNPATH
11357 if test ${lt_cv_shlibpath_overrides_runpath+y}
11358 then :
11359 printf %s "(cached) " >&6
11360 else case e in #(
11361 e) lt_cv_shlibpath_overrides_runpath=no
11362 save_LDFLAGS=$LDFLAGS
11363 save_libdir=$libdir
11364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368
11369 int
11370 main (void)
11371 {
11372
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"
11378 then :
11379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11380 then :
11381 lt_cv_shlibpath_overrides_runpath=yes
11382 fi
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LDFLAGS=$save_LDFLAGS
11387 libdir=$save_libdir
11388 ;;
11389 esac
11390 fi
11391
11392 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11393
11394 # This implies no fast_install, which is unacceptable.
11395 # Some rework will be needed to allow for fast_install
11396 # before this can be enabled.
11397 hardcode_into_libs=yes
11398
11399 # Add ABI-specific directories to the system library path.
11400 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11401
11402 # Ideally, we could use ldconfig to report *all* directories which are
11403 # searched for libraries, however this is still not possible. Aside from not
11404 # being certain /sbin/ldconfig is available, command
11405 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11406 # even though it is searched at run-time. Try to do the best guess by
11407 # appending ld.so.conf contents (and includes) to the search path.
11408 if test -f /etc/ld.so.conf; then
11409 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' ' '`
11410 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11411 fi
11412
11413 # We used to test for /lib/ld.so.1 and disable shared libraries on
11414 # powerpc, because MkLinux only supported shared libraries with the
11415 # GNU dynamic linker. Since this was broken with cross compilers,
11416 # most powerpc-linux boxes support dynamic linking these days and
11417 # people can always --disable-shared, the test was removed, and we
11418 # assume the GNU/Linux dynamic linker is in use.
11419 dynamic_linker='GNU/Linux ld.so'
11420 ;;
11421
11422 netbsdelf*-gnu)
11423 version_type=linux
11424 need_lib_prefix=no
11425 need_version=no
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427 soname_spec='$libname$release$shared_ext$major'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=no
11430 hardcode_into_libs=yes
11431 dynamic_linker='NetBSD ld.elf_so'
11432 ;;
11433
11434 netbsd*)
11435 version_type=sunos
11436 need_lib_prefix=no
11437 need_version=no
11438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11441 dynamic_linker='NetBSD (a.out) ld.so'
11442 else
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
11445 dynamic_linker='NetBSD ld.elf_so'
11446 fi
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11450 ;;
11451
11452 *-mlibc)
11453 version_type=linux # correct to gnu/linux during the next big refactor
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457 soname_spec='$libname$release$shared_ext$major'
11458 dynamic_linker='mlibc ld.so'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=no
11461 hardcode_into_libs=yes
11462 ;;
11463
11464 newsos6)
11465 version_type=linux # correct to gnu/linux during the next big refactor
11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes
11469 ;;
11470
11471 *nto* | *qnx*)
11472 version_type=qnx
11473 need_lib_prefix=no
11474 need_version=no
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 dynamic_linker='ldqnx.so'
11481 ;;
11482
11483 openbsd*)
11484 version_type=sunos
11485 sys_lib_dlsearch_path_spec=/usr/lib
11486 need_lib_prefix=no
11487 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11488 need_version=no
11489 else
11490 need_version=yes
11491 fi
11492 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=yes
11496 ;;
11497
11498 os2*)
11499 libname_spec='$name'
11500 version_type=windows
11501 shrext_cmds=.dll
11502 need_version=no
11503 need_lib_prefix=no
11504 # OS/2 can only load a DLL with a base name of 8 characters or less.
11505 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11506 v=$($ECHO $release$versuffix | tr -d .-);
11507 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11508 $ECHO $n$v`$shared_ext'
11509 library_names_spec='${libname}_dll.$libext'
11510 dynamic_linker='OS/2 ld.exe'
11511 shlibpath_var=BEGINLIBPATH
11512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11514 postinstall_cmds='base_file=`basename \$file`~
11515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11516 dldir=$destdir/`dirname \$dlpath`~
11517 test -d \$dldir || mkdir -p \$dldir~
11518 $install_prog $dir/$dlname \$dldir/$dlname~
11519 chmod a+x \$dldir/$dlname~
11520 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11521 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11522 fi'
11523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11524 dlpath=$dir/\$dldll~
11525 $RM \$dlpath'
11526 ;;
11527
11528 osf3* | osf4* | osf5*)
11529 version_type=osf
11530 need_lib_prefix=no
11531 need_version=no
11532 soname_spec='$libname$release$shared_ext$major'
11533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11537 ;;
11538
11539 rdos*)
11540 dynamic_linker=no
11541 ;;
11542
11543 serenity*)
11544 version_type=linux # correct to gnu/linux during the next big refactor
11545 need_lib_prefix=no
11546 need_version=no
11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548 soname_spec='$libname$release$shared_ext$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=no
11551 dynamic_linker='SerenityOS LibELF'
11552 ;;
11553
11554 solaris*)
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11559 soname_spec='$libname$release$shared_ext$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 # ldd complains unless libraries are executable
11564 postinstall_cmds='chmod +x $lib'
11565 ;;
11566
11567 sunos4*)
11568 version_type=sunos
11569 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11573 if test yes = "$with_gnu_ld"; then
11574 need_lib_prefix=no
11575 fi
11576 need_version=yes
11577 ;;
11578
11579 sysv4 | sysv4.3*)
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582 soname_spec='$libname$release$shared_ext$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 case $host_vendor in
11585 sni)
11586 shlibpath_overrides_runpath=no
11587 need_lib_prefix=no
11588 runpath_var=LD_RUN_PATH
11589 ;;
11590 siemens)
11591 need_lib_prefix=no
11592 ;;
11593 motorola)
11594 need_lib_prefix=no
11595 need_version=no
11596 shlibpath_overrides_runpath=no
11597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11598 ;;
11599 esac
11600 ;;
11601
11602 sysv4*MP*)
11603 if test -d /usr/nec; then
11604 version_type=linux # correct to gnu/linux during the next big refactor
11605 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11606 soname_spec='$libname$shared_ext.$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 fi
11609 ;;
11610
11611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11612 version_type=sco
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11616 soname_spec='$libname$release$shared_ext$major'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 if test yes = "$with_gnu_ld"; then
11621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11622 else
11623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11624 case $host_os in
11625 sco3.2v5*)
11626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11627 ;;
11628 esac
11629 fi
11630 sys_lib_dlsearch_path_spec='/usr/lib'
11631 ;;
11632
11633 tpf*)
11634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11635 version_type=linux # correct to gnu/linux during the next big refactor
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641 hardcode_into_libs=yes
11642 ;;
11643
11644 uts4*)
11645 version_type=linux # correct to gnu/linux during the next big refactor
11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11647 soname_spec='$libname$release$shared_ext$major'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 ;;
11650
11651 emscripten*)
11652 version_type=none
11653 need_lib_prefix=no
11654 need_version=no
11655 library_names_spec='$libname$release$shared_ext'
11656 soname_spec='$libname$release$shared_ext'
11657 finish_cmds=
11658 dynamic_linker="Emscripten linker"
11659 lt_prog_compiler_wl=
11660 lt_prog_compiler_pic=
11661 lt_prog_compiler_static=
11662
11663
11664 if test yes = "$GCC"; then
11665 lt_prog_compiler_wl='-Wl,'
11666 lt_prog_compiler_static='-static'
11667
11668 case $host_os in
11669 aix*)
11670 # All AIX code is PIC.
11671 if test ia64 = "$host_cpu"; then
11672 # AIX 5 now supports IA64 processor
11673 lt_prog_compiler_static='-Bstatic'
11674 fi
11675 lt_prog_compiler_pic='-fPIC'
11676 ;;
11677
11678 amigaos*)
11679 case $host_cpu in
11680 powerpc)
11681 # see comment about AmigaOS4 .so support
11682 lt_prog_compiler_pic='-fPIC'
11683 ;;
11684 m68k)
11685 # FIXME: we need at least 68020 code to build shared libraries, but
11686 # adding the '-m68020' flag to GCC prevents building anything better,
11687 # like '-m68040'.
11688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11689 ;;
11690 esac
11691 ;;
11692
11693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11694 # PIC is the default for these OSes.
11695 ;;
11696
11697 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11698 # This hack is so that the source file can tell whether it is being
11699 # built for inclusion in a dll (and should export symbols for example).
11700 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11701 # (--disable-auto-import) libraries
11702 lt_prog_compiler_pic='-DDLL_EXPORT'
11703 case $host_os in
11704 os2*)
11705 lt_prog_compiler_static='$wl-static'
11706 ;;
11707 esac
11708 ;;
11709
11710 darwin* | rhapsody*)
11711 # PIC is the default on this platform
11712 # Common symbols not allowed in MH_DYLIB files
11713 lt_prog_compiler_pic='-fno-common'
11714 ;;
11715
11716 haiku*)
11717 # PIC is the default for Haiku.
11718 # The "-static" flag exists, but is broken.
11719 lt_prog_compiler_static=
11720 ;;
11721
11722 hpux*)
11723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11725 # sets the default TLS model and affects inlining.
11726 case $host_cpu in
11727 hppa*64*)
11728 # +Z the default
11729 ;;
11730 *)
11731 lt_prog_compiler_pic='-fPIC'
11732 ;;
11733 esac
11734 ;;
11735
11736 interix[3-9]*)
11737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11738 # Instead, we relocate shared libraries at runtime.
11739 ;;
11740
11741 msdosdjgpp*)
11742 # Just because we use GCC doesn't mean we suddenly get shared libraries
11743 # on systems that don't support them.
11744 lt_prog_compiler_can_build_shared=no
11745 enable_shared=no
11746 ;;
11747
11748 *nto* | *qnx*)
11749 # QNX uses GNU C++, but need to define -shared option too, otherwise
11750 # it will coredump.
11751 lt_prog_compiler_pic='-fPIC -shared'
11752 ;;
11753
11754 sysv4*MP*)
11755 if test -d /usr/nec; then
11756 lt_prog_compiler_pic=-Kconform_pic
11757 fi
11758 ;;
11759
11760 *)
11761 lt_prog_compiler_pic='-fPIC'
11762 ;;
11763 esac
11764
11765 case $cc_basename in
11766 nvcc*) # Cuda Compiler Driver 2.2
11767 lt_prog_compiler_wl='-Xlinker '
11768 if test -n "$lt_prog_compiler_pic"; then
11769 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11770 fi
11771 ;;
11772 esac
11773 else
11774 # PORTME Check for flag to pass linker flags through the system compiler.
11775 case $host_os in
11776 aix*)
11777 lt_prog_compiler_wl='-Wl,'
11778 if test ia64 = "$host_cpu"; then
11779 # AIX 5 now supports IA64 processor
11780 lt_prog_compiler_static='-Bstatic'
11781 else
11782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11783 fi
11784 ;;
11785
11786 darwin* | rhapsody*)
11787 # PIC is the default on this platform
11788 # Common symbols not allowed in MH_DYLIB files
11789 lt_prog_compiler_pic='-fno-common'
11790 case $cc_basename in
11791 nagfor*)
11792 # NAG Fortran compiler
11793 lt_prog_compiler_wl='-Wl,-Wl,,'
11794 lt_prog_compiler_pic='-PIC'
11795 lt_prog_compiler_static='-Bstatic'
11796 ;;
11797 esac
11798 ;;
11799
11800 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11801 # This hack is so that the source file can tell whether it is being
11802 # built for inclusion in a dll (and should export symbols for example).
11803 lt_prog_compiler_pic='-DDLL_EXPORT'
11804 case $host_os in
11805 os2*)
11806 lt_prog_compiler_static='$wl-static'
11807 ;;
11808 esac
11809 ;;
11810
11811 hpux9* | hpux10* | hpux11*)
11812 lt_prog_compiler_wl='-Wl,'
11813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11814 # not for PA HP-UX.
11815 case $host_cpu in
11816 hppa*64*|ia64*)
11817 # +Z the default
11818 ;;
11819 *)
11820 lt_prog_compiler_pic='+Z'
11821 ;;
11822 esac
11823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11824 lt_prog_compiler_static='$wl-a ${wl}archive'
11825 ;;
11826
11827 irix5* | irix6* | nonstopux*)
11828 lt_prog_compiler_wl='-Wl,'
11829 # PIC (with -KPIC) is the default.
11830 lt_prog_compiler_static='-non_shared'
11831 ;;
11832
11833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11834 case $cc_basename in
11835 # old Intel for x86_64, which still supported -KPIC.
11836 ecc*)
11837 lt_prog_compiler_wl='-Wl,'
11838 lt_prog_compiler_pic='-KPIC'
11839 lt_prog_compiler_static='-static'
11840 ;;
11841 *flang* | ftn | f18* | f95*)
11842 # Flang compiler.
11843 lt_prog_compiler_wl='-Wl,'
11844 lt_prog_compiler_pic='-fPIC'
11845 lt_prog_compiler_static='-static'
11846 ;;
11847 # icc used to be incompatible with GCC.
11848 # ICC 10 doesn't accept -KPIC any more.
11849 icc* | ifort*)
11850 lt_prog_compiler_wl='-Wl,'
11851 lt_prog_compiler_pic='-fPIC'
11852 lt_prog_compiler_static='-static'
11853 ;;
11854 # Lahey Fortran 8.1.
11855 lf95*)
11856 lt_prog_compiler_wl='-Wl,'
11857 lt_prog_compiler_pic='--shared'
11858 lt_prog_compiler_static='--static'
11859 ;;
11860 nagfor*)
11861 # NAG Fortran compiler
11862 lt_prog_compiler_wl='-Wl,-Wl,,'
11863 lt_prog_compiler_pic='-PIC'
11864 lt_prog_compiler_static='-Bstatic'
11865 ;;
11866 tcc*)
11867 # Fabrice Bellard et al's Tiny C Compiler
11868 lt_prog_compiler_wl='-Wl,'
11869 lt_prog_compiler_pic='-fPIC'
11870 lt_prog_compiler_static='-static'
11871 ;;
11872 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11873 # Portland Group compilers (*not* the Pentium gcc compiler,
11874 # which looks to be a dead project)
11875 lt_prog_compiler_wl='-Wl,'
11876 lt_prog_compiler_pic='-fpic'
11877 lt_prog_compiler_static='-Bstatic'
11878 ;;
11879 ccc*)
11880 lt_prog_compiler_wl='-Wl,'
11881 # All Alpha code is PIC.
11882 lt_prog_compiler_static='-non_shared'
11883 ;;
11884 xl* | bgxl* | bgf* | mpixl*)
11885 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11886 lt_prog_compiler_wl='-Wl,'
11887 lt_prog_compiler_pic='-qpic'
11888 lt_prog_compiler_static='-qstaticlink'
11889 ;;
11890 *)
11891 case `$CC -V 2>&1 | $SED 5q` in
11892 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11894 lt_prog_compiler_pic='-KPIC'
11895 lt_prog_compiler_static='-Bstatic'
11896 lt_prog_compiler_wl=''
11897 ;;
11898 *Sun\ F* | *Sun*Fortran*)
11899 lt_prog_compiler_pic='-KPIC'
11900 lt_prog_compiler_static='-Bstatic'
11901 lt_prog_compiler_wl='-Qoption ld '
11902 ;;
11903 *Sun\ C*)
11904 # Sun C 5.9
11905 lt_prog_compiler_pic='-KPIC'
11906 lt_prog_compiler_static='-Bstatic'
11907 lt_prog_compiler_wl='-Wl,'
11908 ;;
11909 *Intel*\ [CF]*Compiler*)
11910 lt_prog_compiler_wl='-Wl,'
11911 lt_prog_compiler_pic='-fPIC'
11912 lt_prog_compiler_static='-static'
11913 ;;
11914 *Portland\ Group*)
11915 lt_prog_compiler_wl='-Wl,'
11916 lt_prog_compiler_pic='-fpic'
11917 lt_prog_compiler_static='-Bstatic'
11918 ;;
11919 esac
11920 ;;
11921 esac
11922 ;;
11923
11924 newsos6)
11925 lt_prog_compiler_pic='-KPIC'
11926 lt_prog_compiler_static='-Bstatic'
11927 ;;
11928
11929 *-mlibc)
11930 lt_prog_compiler_wl='-Wl,'
11931 lt_prog_compiler_pic='-fPIC'
11932 lt_prog_compiler_static='-static'
11933 ;;
11934
11935 *nto* | *qnx*)
11936 # QNX uses GNU C++, but need to define -shared option too, otherwise
11937 # it will coredump.
11938 lt_prog_compiler_pic='-fPIC -shared'
11939 ;;
11940
11941 osf3* | osf4* | osf5*)
11942 lt_prog_compiler_wl='-Wl,'
11943 # All OSF/1 code is PIC.
11944 lt_prog_compiler_static='-non_shared'
11945 ;;
11946
11947 rdos*)
11948 lt_prog_compiler_static='-non_shared'
11949 ;;
11950
11951 serenity*)
11952 ;;
11953
11954 solaris*)
11955 lt_prog_compiler_pic='-KPIC'
11956 lt_prog_compiler_static='-Bstatic'
11957 case $cc_basename in
11958 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11959 lt_prog_compiler_wl='-Qoption ld ';;
11960 *)
11961 lt_prog_compiler_wl='-Wl,';;
11962 esac
11963 ;;
11964
11965 sunos4*)
11966 lt_prog_compiler_wl='-Qoption ld '
11967 lt_prog_compiler_pic='-PIC'
11968 lt_prog_compiler_static='-Bstatic'
11969 ;;
11970
11971 sysv4 | sysv4.2uw2* | sysv4.3*)
11972 lt_prog_compiler_wl='-Wl,'
11973 lt_prog_compiler_pic='-KPIC'
11974 lt_prog_compiler_static='-Bstatic'
11975 ;;
11976
11977 sysv4*MP*)
11978 if test -d /usr/nec; then
11979 lt_prog_compiler_pic='-Kconform_pic'
11980 lt_prog_compiler_static='-Bstatic'
11981 fi
11982 ;;
11983
11984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11985 lt_prog_compiler_wl='-Wl,'
11986 lt_prog_compiler_pic='-KPIC'
11987 lt_prog_compiler_static='-Bstatic'
11988 ;;
11989
11990 unicos*)
11991 lt_prog_compiler_wl='-Wl,'
11992 lt_prog_compiler_can_build_shared=no
11993 ;;
11994
11995 uts4*)
11996 lt_prog_compiler_pic='-pic'
11997 lt_prog_compiler_static='-Bstatic'
11998 ;;
11999
12000 *)
12001 lt_prog_compiler_can_build_shared=no
12002 ;;
12003 esac
12004 fi
12005
12006 case $host_os in
12007 # For platforms that do not support PIC, -DPIC is meaningless:
12008 *djgpp*)
12009 lt_prog_compiler_pic=
12010 ;;
12011 *)
12012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12013 ;;
12014 esac
12015
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12017 printf %s "checking for $compiler option to produce PIC... " >&6; }
12018 if test ${lt_cv_prog_compiler_pic+y}
12019 then :
12020 printf %s "(cached) " >&6
12021 else case e in #(
12022 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12023 esac
12024 fi
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12026 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12027 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12028
12029 #
12030 # Check to make sure the PIC flag actually works.
12031 #
12032 if test -n "$lt_prog_compiler_pic"; then
12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12034 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12035 if test ${lt_cv_prog_compiler_pic_works+y}
12036 then :
12037 printf %s "(cached) " >&6
12038 else case e in #(
12039 e) lt_cv_prog_compiler_pic_works=no
12040 ac_outfile=conftest.$ac_objext
12041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12043 # Insert the option either (1) after the last *FLAGS variable, or
12044 # (2) before a word containing "conftest.", or (3) at the end.
12045 # Note that $ac_compile itself does not contain backslashes and begins
12046 # with a dollar sign (not a hyphen), so the echo should work correctly.
12047 # The option is referenced via a variable to avoid confusing sed.
12048 lt_compile=`echo "$ac_compile" | $SED \
12049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12051 -e 's:$: $lt_compiler_flag:'`
12052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12053 (eval "$lt_compile" 2>conftest.err)
12054 ac_status=$?
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 if (exit $ac_status) && test -s "$ac_outfile"; then
12058 # The compiler can only warn and ignore the option if not recognized
12059 # So say no if there are warnings other than the usual output.
12060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12063 lt_cv_prog_compiler_pic_works=yes
12064 fi
12065 fi
12066 $RM conftest*
12067 ;;
12068 esac
12069 fi
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12071 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12072
12073 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12074 case $lt_prog_compiler_pic in
12075 "" | " "*) ;;
12076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12077 esac
12078 else
12079 lt_prog_compiler_pic=
12080 lt_prog_compiler_can_build_shared=no
12081 fi
12082
12083 fi
12084
12085
12086
12087
12088
12089 #
12090 # Check to make sure the static flag actually works.
12091 #
12092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12094 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12095 if test ${lt_cv_prog_compiler_static_works+y}
12096 then :
12097 printf %s "(cached) " >&6
12098 else case e in #(
12099 e) lt_cv_prog_compiler_static_works=no
12100 save_LDFLAGS=$LDFLAGS
12101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12104 # The linker can only warn and ignore the option if not recognized
12105 # So say no if there are warnings
12106 if test -s conftest.err; then
12107 # Append any errors to the config.log.
12108 cat conftest.err 1>&5
12109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12111 if diff conftest.exp conftest.er2 >/dev/null; then
12112 lt_cv_prog_compiler_static_works=yes
12113 fi
12114 else
12115 lt_cv_prog_compiler_static_works=yes
12116 fi
12117 fi
12118 $RM -r conftest*
12119 LDFLAGS=$save_LDFLAGS
12120 ;;
12121 esac
12122 fi
12123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12124 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12125
12126 if test yes = "$lt_cv_prog_compiler_static_works"; then
12127 :
12128 else
12129 lt_prog_compiler_static=
12130 fi
12131
12132
12133
12134 ='-fPIC'
12135 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12136 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12137 archive_cmds_need_lc=no
12138 no_undefined_flag=
12139 ;;
12140
12141 *)
12142 dynamic_linker=no
12143 ;;
12144 esac
12145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12146 printf "%s\n" "$dynamic_linker" >&6; }
12147 test no = "$dynamic_linker" && can_build_shared=no
12148
12149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12150 if test yes = "$GCC"; then
12151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12152 fi
12153
12154 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12155 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12156 fi
12157
12158 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12159 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12160 fi
12161
12162 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12163 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12164
12165 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12166 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12167
12168 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12169 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12268 printf %s "checking how to hardcode library paths into programs... " >&6; }
12269 hardcode_action=
12270 if test -n "$hardcode_libdir_flag_spec" ||
12271 test -n "$runpath_var" ||
12272 test yes = "$hardcode_automatic"; then
12273
12274 # We can hardcode non-existent directories.
12275 if test no != "$hardcode_direct" &&
12276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12277 # have to relink, otherwise we might link with an installed library
12278 # when we should be linking with a yet-to-be-installed one
12279 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12280 test no != "$hardcode_minus_L"; then
12281 # Linking always hardcodes the temporary library directory.
12282 hardcode_action=relink
12283 else
12284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12285 hardcode_action=immediate
12286 fi
12287 else
12288 # We cannot hardcode anything, or else we can only hardcode existing
12289 # directories.
12290 hardcode_action=unsupported
12291 fi
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12293 printf "%s\n" "$hardcode_action" >&6; }
12294
12295 if test relink = "$hardcode_action" ||
12296 test yes = "$inherit_rpath"; then
12297 # Fast installation is not supported
12298 enable_fast_install=no
12299 elif test yes = "$shlibpath_overrides_runpath" ||
12300 test no = "$enable_shared"; then
12301 # Fast installation is not necessary
12302 enable_fast_install=needless
12303 fi
12304
12305
12306
12307
12308
12309
12310 if test yes != "$enable_dlopen"; then
12311 enable_dlopen=unknown
12312 enable_dlopen_self=unknown
12313 enable_dlopen_self_static=unknown
12314 else
12315 lt_cv_dlopen=no
12316 lt_cv_dlopen_libs=
12317
12318 case $host_os in
12319 beos*)
12320 lt_cv_dlopen=load_add_on
12321 lt_cv_dlopen_libs=
12322 lt_cv_dlopen_self=yes
12323 ;;
12324
12325 mingw* | windows* | pw32* | cegcc*)
12326 lt_cv_dlopen=LoadLibrary
12327 lt_cv_dlopen_libs=
12328 ;;
12329
12330 cygwin*)
12331 lt_cv_dlopen=dlopen
12332 lt_cv_dlopen_libs=
12333 ;;
12334
12335 darwin*)
12336 # if libdl is installed we need to link against it
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12338 printf %s "checking for dlopen in -ldl... " >&6; }
12339 if test ${ac_cv_lib_dl_dlopen+y}
12340 then :
12341 printf %s "(cached) " >&6
12342 else case e in #(
12343 e) ac_check_lib_save_LIBS=$LIBS
12344 LIBS="-ldl $LIBS"
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply.
12351 The 'extern "C"' is for builds by C++ compilers;
12352 although this is not generally supported in C code supporting it here
12353 has little cost and some practical benefit (sr 110532). */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 char dlopen (void);
12358 int
12359 main (void)
12360 {
12361 return dlopen ();
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"
12367 then :
12368 ac_cv_lib_dl_dlopen=yes
12369 else case e in #(
12370 e) ac_cv_lib_dl_dlopen=no ;;
12371 esac
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS ;;
12376 esac
12377 fi
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12380 if test "x$ac_cv_lib_dl_dlopen" = xyes
12381 then :
12382 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12383 else case e in #(
12384 e)
12385 lt_cv_dlopen=dyld
12386 lt_cv_dlopen_libs=
12387 lt_cv_dlopen_self=yes
12388 ;;
12389 esac
12390 fi
12391
12392 ;;
12393
12394 tpf*)
12395 # Don't try to run any link tests for TPF. We know it's impossible
12396 # because TPF is a cross-compiler, and we know how we open DSOs.
12397 lt_cv_dlopen=dlopen
12398 lt_cv_dlopen_libs=
12399 lt_cv_dlopen_self=no
12400 ;;
12401
12402 *)
12403 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12404 if test "x$ac_cv_func_shl_load" = xyes
12405 then :
12406 lt_cv_dlopen=shl_load
12407 else case e in #(
12408 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12409 printf %s "checking for shl_load in -ldld... " >&6; }
12410 if test ${ac_cv_lib_dld_shl_load+y}
12411 then :
12412 printf %s "(cached) " >&6
12413 else case e in #(
12414 e) ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-ldld $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply.
12422 The 'extern "C"' is for builds by C++ compilers;
12423 although this is not generally supported in C code supporting it here
12424 has little cost and some practical benefit (sr 110532). */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 char shl_load (void);
12429 int
12430 main (void)
12431 {
12432 return shl_load ();
12433 ;
12434 return 0;
12435 }
12436 _ACEOF
12437 if ac_fn_c_try_link "$LINENO"
12438 then :
12439 ac_cv_lib_dld_shl_load=yes
12440 else case e in #(
12441 e) ac_cv_lib_dld_shl_load=no ;;
12442 esac
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS ;;
12447 esac
12448 fi
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12450 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12451 if test "x$ac_cv_lib_dld_shl_load" = xyes
12452 then :
12453 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12454 else case e in #(
12455 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12456 if test "x$ac_cv_func_dlopen" = xyes
12457 then :
12458 lt_cv_dlopen=dlopen
12459 else case e in #(
12460 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12461 printf %s "checking for dlopen in -ldl... " >&6; }
12462 if test ${ac_cv_lib_dl_dlopen+y}
12463 then :
12464 printf %s "(cached) " >&6
12465 else case e in #(
12466 e) ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-ldl $LIBS"
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470
12471 /* Override any GCC internal prototype to avoid an error.
12472 Use char because int might match the return type of a GCC
12473 builtin and then its argument prototype would still apply.
12474 The 'extern "C"' is for builds by C++ compilers;
12475 although this is not generally supported in C code supporting it here
12476 has little cost and some practical benefit (sr 110532). */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char dlopen (void);
12481 int
12482 main (void)
12483 {
12484 return dlopen ();
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"
12490 then :
12491 ac_cv_lib_dl_dlopen=yes
12492 else case e in #(
12493 e) ac_cv_lib_dl_dlopen=no ;;
12494 esac
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS ;;
12499 esac
12500 fi
12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12502 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12503 if test "x$ac_cv_lib_dl_dlopen" = xyes
12504 then :
12505 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12506 else case e in #(
12507 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12508 printf %s "checking for dlopen in -lsvld... " >&6; }
12509 if test ${ac_cv_lib_svld_dlopen+y}
12510 then :
12511 printf %s "(cached) " >&6
12512 else case e in #(
12513 e) ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-lsvld $LIBS"
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply.
12521 The 'extern "C"' is for builds by C++ compilers;
12522 although this is not generally supported in C code supporting it here
12523 has little cost and some practical benefit (sr 110532). */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 char dlopen (void);
12528 int
12529 main (void)
12530 {
12531 return dlopen ();
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"
12537 then :
12538 ac_cv_lib_svld_dlopen=yes
12539 else case e in #(
12540 e) ac_cv_lib_svld_dlopen=no ;;
12541 esac
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS ;;
12546 esac
12547 fi
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12549 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12550 if test "x$ac_cv_lib_svld_dlopen" = xyes
12551 then :
12552 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12553 else case e in #(
12554 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12555 printf %s "checking for dld_link in -ldld... " >&6; }
12556 if test ${ac_cv_lib_dld_dld_link+y}
12557 then :
12558 printf %s "(cached) " >&6
12559 else case e in #(
12560 e) ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-ldld $LIBS"
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply.
12568 The 'extern "C"' is for builds by C++ compilers;
12569 although this is not generally supported in C code supporting it here
12570 has little cost and some practical benefit (sr 110532). */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 char dld_link (void);
12575 int
12576 main (void)
12577 {
12578 return dld_link ();
12579 ;
12580 return 0;
12581 }
12582 _ACEOF
12583 if ac_fn_c_try_link "$LINENO"
12584 then :
12585 ac_cv_lib_dld_dld_link=yes
12586 else case e in #(
12587 e) ac_cv_lib_dld_dld_link=no ;;
12588 esac
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12591 conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS ;;
12593 esac
12594 fi
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12596 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12597 if test "x$ac_cv_lib_dld_dld_link" = xyes
12598 then :
12599 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12600 fi
12601
12602 ;;
12603 esac
12604 fi
12605
12606 ;;
12607 esac
12608 fi
12609
12610 ;;
12611 esac
12612 fi
12613
12614 ;;
12615 esac
12616 fi
12617
12618 ;;
12619 esac
12620 fi
12621
12622 ;;
12623 esac
12624
12625 if test no = "$lt_cv_dlopen"; then
12626 enable_dlopen=no
12627 else
12628 enable_dlopen=yes
12629 fi
12630
12631 case $lt_cv_dlopen in
12632 dlopen)
12633 save_CPPFLAGS=$CPPFLAGS
12634 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12635
12636 save_LDFLAGS=$LDFLAGS
12637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12638
12639 save_LIBS=$LIBS
12640 LIBS="$lt_cv_dlopen_libs $LIBS"
12641
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12643 printf %s "checking whether a program can dlopen itself... " >&6; }
12644 if test ${lt_cv_dlopen_self+y}
12645 then :
12646 printf %s "(cached) " >&6
12647 else case e in #(
12648 e) if test yes = "$cross_compiling"; then :
12649 lt_cv_dlopen_self=cross
12650 else
12651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12652 lt_status=$lt_dlunknown
12653 cat > conftest.$ac_ext <<_LT_EOF
12654 #line $LINENO "configure"
12655 #include "confdefs.h"
12656
12657 #if HAVE_DLFCN_H
12658 #include <dlfcn.h>
12659 #endif
12660
12661 #include <stdio.h>
12662
12663 #ifdef RTLD_GLOBAL
12664 # define LT_DLGLOBAL RTLD_GLOBAL
12665 #else
12666 # ifdef DL_GLOBAL
12667 # define LT_DLGLOBAL DL_GLOBAL
12668 # else
12669 # define LT_DLGLOBAL 0
12670 # endif
12671 #endif
12672
12673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12674 find out it does not work in some platform. */
12675 #ifndef LT_DLLAZY_OR_NOW
12676 # ifdef RTLD_LAZY
12677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12678 # else
12679 # ifdef DL_LAZY
12680 # define LT_DLLAZY_OR_NOW DL_LAZY
12681 # else
12682 # ifdef RTLD_NOW
12683 # define LT_DLLAZY_OR_NOW RTLD_NOW
12684 # else
12685 # ifdef DL_NOW
12686 # define LT_DLLAZY_OR_NOW DL_NOW
12687 # else
12688 # define LT_DLLAZY_OR_NOW 0
12689 # endif
12690 # endif
12691 # endif
12692 # endif
12693 #endif
12694
12695 /* When -fvisibility=hidden is used, assume the code has been annotated
12696 correspondingly for the symbols needed. */
12697 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12698 int fnord (void) __attribute__((visibility("default")));
12699 #endif
12700
12701 int fnord (void) { return 42; }
12702 int main (void)
12703 {
12704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12705 int status = $lt_dlunknown;
12706
12707 if (self)
12708 {
12709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12710 else
12711 {
12712 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12713 else puts (dlerror ());
12714 }
12715 /* dlclose (self); */
12716 }
12717 else
12718 puts (dlerror ());
12719
12720 return status;
12721 }
12722 _LT_EOF
12723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12724 (eval $ac_link) 2>&5
12725 ac_status=$?
12726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12728 (./conftest; exit; ) >&5 2>/dev/null
12729 lt_status=$?
12730 case x$lt_status in
12731 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12732 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12733 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12734 esac
12735 else :
12736 # compilation failed
12737 lt_cv_dlopen_self=no
12738 fi
12739 fi
12740 rm -fr conftest*
12741
12742 ;;
12743 esac
12744 fi
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12746 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12747
12748 if test yes = "$lt_cv_dlopen_self"; then
12749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12751 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12752 if test ${lt_cv_dlopen_self_static+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else case e in #(
12756 e) if test yes = "$cross_compiling"; then :
12757 lt_cv_dlopen_self_static=cross
12758 else
12759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12760 lt_status=$lt_dlunknown
12761 cat > conftest.$ac_ext <<_LT_EOF
12762 #line $LINENO "configure"
12763 #include "confdefs.h"
12764
12765 #if HAVE_DLFCN_H
12766 #include <dlfcn.h>
12767 #endif
12768
12769 #include <stdio.h>
12770
12771 #ifdef RTLD_GLOBAL
12772 # define LT_DLGLOBAL RTLD_GLOBAL
12773 #else
12774 # ifdef DL_GLOBAL
12775 # define LT_DLGLOBAL DL_GLOBAL
12776 # else
12777 # define LT_DLGLOBAL 0
12778 # endif
12779 #endif
12780
12781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12782 find out it does not work in some platform. */
12783 #ifndef LT_DLLAZY_OR_NOW
12784 # ifdef RTLD_LAZY
12785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12786 # else
12787 # ifdef DL_LAZY
12788 # define LT_DLLAZY_OR_NOW DL_LAZY
12789 # else
12790 # ifdef RTLD_NOW
12791 # define LT_DLLAZY_OR_NOW RTLD_NOW
12792 # else
12793 # ifdef DL_NOW
12794 # define LT_DLLAZY_OR_NOW DL_NOW
12795 # else
12796 # define LT_DLLAZY_OR_NOW 0
12797 # endif
12798 # endif
12799 # endif
12800 # endif
12801 #endif
12802
12803 /* When -fvisibility=hidden is used, assume the code has been annotated
12804 correspondingly for the symbols needed. */
12805 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12806 int fnord (void) __attribute__((visibility("default")));
12807 #endif
12808
12809 int fnord (void) { return 42; }
12810 int main (void)
12811 {
12812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12813 int status = $lt_dlunknown;
12814
12815 if (self)
12816 {
12817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12818 else
12819 {
12820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12821 else puts (dlerror ());
12822 }
12823 /* dlclose (self); */
12824 }
12825 else
12826 puts (dlerror ());
12827
12828 return status;
12829 }
12830 _LT_EOF
12831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12832 (eval $ac_link) 2>&5
12833 ac_status=$?
12834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12836 (./conftest; exit; ) >&5 2>/dev/null
12837 lt_status=$?
12838 case x$lt_status in
12839 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12840 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12841 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12842 esac
12843 else :
12844 # compilation failed
12845 lt_cv_dlopen_self_static=no
12846 fi
12847 fi
12848 rm -fr conftest*
12849
12850 ;;
12851 esac
12852 fi
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12854 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12855 fi
12856
12857 CPPFLAGS=$save_CPPFLAGS
12858 LDFLAGS=$save_LDFLAGS
12859 LIBS=$save_LIBS
12860 ;;
12861 esac
12862
12863 case $lt_cv_dlopen_self in
12864 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12865 *) enable_dlopen_self=unknown ;;
12866 esac
12867
12868 case $lt_cv_dlopen_self_static in
12869 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12870 *) enable_dlopen_self_static=unknown ;;
12871 esac
12872 fi
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890 striplib=
12891 old_striplib=
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12893 printf %s "checking whether stripping libraries is possible... " >&6; }
12894 if test -z "$STRIP"; then
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 printf "%s\n" "no" >&6; }
12897 else
12898 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12899 old_striplib="$STRIP --strip-debug"
12900 striplib="$STRIP --strip-unneeded"
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12902 printf "%s\n" "yes" >&6; }
12903 else
12904 case $host_os in
12905 darwin*)
12906 # FIXME - insert some real tests, host_os isn't really good enough
12907 striplib="$STRIP -x"
12908 old_striplib="$STRIP -S"
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 printf "%s\n" "yes" >&6; }
12911 ;;
12912 freebsd*)
12913 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12914 old_striplib="$STRIP --strip-debug"
12915 striplib="$STRIP --strip-unneeded"
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 printf "%s\n" "yes" >&6; }
12918 else
12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 printf "%s\n" "no" >&6; }
12921 fi
12922 ;;
12923 *)
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 printf "%s\n" "no" >&6; }
12926 ;;
12927 esac
12928 fi
12929 fi
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942 # Report what library types will actually be built
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12944 printf %s "checking if libtool supports shared libraries... " >&6; }
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12946 printf "%s\n" "$can_build_shared" >&6; }
12947
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12949 printf %s "checking whether to build shared libraries... " >&6; }
12950 test no = "$can_build_shared" && enable_shared=no
12951
12952 # On AIX, shared libraries and static libraries use the same namespace, and
12953 # are all built from PIC.
12954 case $host_os in
12955 aix3*)
12956 test yes = "$enable_shared" && enable_static=no
12957 if test -n "$RANLIB"; then
12958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959 postinstall_cmds='$RANLIB $lib'
12960 fi
12961 ;;
12962
12963 aix[4-9]*)
12964 if test ia64 != "$host_cpu"; then
12965 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12966 yes,aix,yes) ;; # shared object as lib.so file only
12967 yes,svr4,*) ;; # shared object as lib.so archive member only
12968 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12969 esac
12970 fi
12971 ;;
12972 esac
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12974 printf "%s\n" "$enable_shared" >&6; }
12975
12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12977 printf %s "checking whether to build static libraries... " >&6; }
12978 # Make sure either enable_shared or enable_static is yes.
12979 test yes = "$enable_shared" || enable_static=yes
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12981 printf "%s\n" "$enable_static" >&6; }
12982
12983
12984
12985
12986 fi
12987 ac_ext=c
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12992
12993 CC=$lt_save_CC
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009 ac_config_commands="$ac_config_commands libtool"
13010
13011
13012
13013
13014 # Only expand once:
13015
13016
13017 ac_ext=c
13018 ac_cpp='$CPP $CPPFLAGS'
13019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13022 if test -n "$ac_tool_prefix"; then
13023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 printf %s "checking for $ac_word... " >&6; }
13027 if test ${ac_cv_prog_CC+y}
13028 then :
13029 printf %s "(cached) " >&6
13030 else case e in #(
13031 e) if test -n "$CC"; then
13032 ac_cv_prog_CC="$CC" # Let the user override the test.
13033 else
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037 IFS=$as_save_IFS
13038 case $as_dir in #(((
13039 '') as_dir=./ ;;
13040 */) ;;
13041 *) as_dir=$as_dir/ ;;
13042 esac
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13047 break 2
13048 fi
13049 done
13050 done
13051 IFS=$as_save_IFS
13052
13053 fi ;;
13054 esac
13055 fi
13056 CC=$ac_cv_prog_CC
13057 if test -n "$CC"; then
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13059 printf "%s\n" "$CC" >&6; }
13060 else
13061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062 printf "%s\n" "no" >&6; }
13063 fi
13064
13065
13066 fi
13067 if test -z "$ac_cv_prog_CC"; then
13068 ac_ct_CC=$CC
13069 # Extract the first word of "gcc", so it can be a program name with args.
13070 set dummy gcc; ac_word=$2
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13072 printf %s "checking for $ac_word... " >&6; }
13073 if test ${ac_cv_prog_ac_ct_CC+y}
13074 then :
13075 printf %s "(cached) " >&6
13076 else case e in #(
13077 e) if test -n "$ac_ct_CC"; then
13078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13079 else
13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13082 do
13083 IFS=$as_save_IFS
13084 case $as_dir in #(((
13085 '') as_dir=./ ;;
13086 */) ;;
13087 *) as_dir=$as_dir/ ;;
13088 esac
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_ac_ct_CC="gcc"
13092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13093 break 2
13094 fi
13095 done
13096 done
13097 IFS=$as_save_IFS
13098
13099 fi ;;
13100 esac
13101 fi
13102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13103 if test -n "$ac_ct_CC"; then
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13105 printf "%s\n" "$ac_ct_CC" >&6; }
13106 else
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 printf "%s\n" "no" >&6; }
13109 fi
13110
13111 if test "x$ac_ct_CC" = x; then
13112 CC=""
13113 else
13114 case $cross_compiling:$ac_tool_warned in
13115 yes:)
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13118 ac_tool_warned=yes ;;
13119 esac
13120 CC=$ac_ct_CC
13121 fi
13122 else
13123 CC="$ac_cv_prog_CC"
13124 fi
13125
13126 if test -z "$CC"; then
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}cc; ac_word=$2
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 printf %s "checking for $ac_word... " >&6; }
13132 if test ${ac_cv_prog_CC+y}
13133 then :
13134 printf %s "(cached) " >&6
13135 else case e in #(
13136 e) if test -n "$CC"; then
13137 ac_cv_prog_CC="$CC" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142 IFS=$as_save_IFS
13143 case $as_dir in #(((
13144 '') as_dir=./ ;;
13145 */) ;;
13146 *) as_dir=$as_dir/ ;;
13147 esac
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_CC="${ac_tool_prefix}cc"
13151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154 done
13155 done
13156 IFS=$as_save_IFS
13157
13158 fi ;;
13159 esac
13160 fi
13161 CC=$ac_cv_prog_CC
13162 if test -n "$CC"; then
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13164 printf "%s\n" "$CC" >&6; }
13165 else
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 printf "%s\n" "no" >&6; }
13168 fi
13169
13170
13171 fi
13172 fi
13173 if test -z "$CC"; then
13174 # Extract the first word of "cc", so it can be a program name with args.
13175 set dummy cc; ac_word=$2
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 printf %s "checking for $ac_word... " >&6; }
13178 if test ${ac_cv_prog_CC+y}
13179 then :
13180 printf %s "(cached) " >&6
13181 else case e in #(
13182 e) if test -n "$CC"; then
13183 ac_cv_prog_CC="$CC" # Let the user override the test.
13184 else
13185 ac_prog_rejected=no
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13188 do
13189 IFS=$as_save_IFS
13190 case $as_dir in #(((
13191 '') as_dir=./ ;;
13192 */) ;;
13193 *) as_dir=$as_dir/ ;;
13194 esac
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13197 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13198 ac_prog_rejected=yes
13199 continue
13200 fi
13201 ac_cv_prog_CC="cc"
13202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205 done
13206 done
13207 IFS=$as_save_IFS
13208
13209 if test $ac_prog_rejected = yes; then
13210 # We found a bogon in the path, so make sure we never use it.
13211 set dummy $ac_cv_prog_CC
13212 shift
13213 if test $# != 0; then
13214 # We chose a different compiler from the bogus one.
13215 # However, it has the same basename, so the bogon will be chosen
13216 # first if we set CC to just the basename; use the full file name.
13217 shift
13218 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13219 fi
13220 fi
13221 fi ;;
13222 esac
13223 fi
13224 CC=$ac_cv_prog_CC
13225 if test -n "$CC"; then
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13227 printf "%s\n" "$CC" >&6; }
13228 else
13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 printf "%s\n" "no" >&6; }
13231 fi
13232
13233
13234 fi
13235 if test -z "$CC"; then
13236 if test -n "$ac_tool_prefix"; then
13237 for ac_prog in cl.exe
13238 do
13239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 printf %s "checking for $ac_word... " >&6; }
13243 if test ${ac_cv_prog_CC+y}
13244 then :
13245 printf %s "(cached) " >&6
13246 else case e in #(
13247 e) if test -n "$CC"; then
13248 ac_cv_prog_CC="$CC" # Let the user override the test.
13249 else
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $PATH
13252 do
13253 IFS=$as_save_IFS
13254 case $as_dir in #(((
13255 '') as_dir=./ ;;
13256 */) ;;
13257 *) as_dir=$as_dir/ ;;
13258 esac
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265 done
13266 done
13267 IFS=$as_save_IFS
13268
13269 fi ;;
13270 esac
13271 fi
13272 CC=$ac_cv_prog_CC
13273 if test -n "$CC"; then
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13275 printf "%s\n" "$CC" >&6; }
13276 else
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 printf "%s\n" "no" >&6; }
13279 fi
13280
13281
13282 test -n "$CC" && break
13283 done
13284 fi
13285 if test -z "$CC"; then
13286 ac_ct_CC=$CC
13287 for ac_prog in cl.exe
13288 do
13289 # Extract the first word of "$ac_prog", so it can be a program name with args.
13290 set dummy $ac_prog; ac_word=$2
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 printf %s "checking for $ac_word... " >&6; }
13293 if test ${ac_cv_prog_ac_ct_CC+y}
13294 then :
13295 printf %s "(cached) " >&6
13296 else case e in #(
13297 e) if test -n "$ac_ct_CC"; then
13298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13299 else
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13302 do
13303 IFS=$as_save_IFS
13304 case $as_dir in #(((
13305 '') as_dir=./ ;;
13306 */) ;;
13307 *) as_dir=$as_dir/ ;;
13308 esac
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13311 ac_cv_prog_ac_ct_CC="$ac_prog"
13312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13313 break 2
13314 fi
13315 done
13316 done
13317 IFS=$as_save_IFS
13318
13319 fi ;;
13320 esac
13321 fi
13322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13323 if test -n "$ac_ct_CC"; then
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13325 printf "%s\n" "$ac_ct_CC" >&6; }
13326 else
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 printf "%s\n" "no" >&6; }
13329 fi
13330
13331
13332 test -n "$ac_ct_CC" && break
13333 done
13334
13335 if test "x$ac_ct_CC" = x; then
13336 CC=""
13337 else
13338 case $cross_compiling:$ac_tool_warned in
13339 yes:)
13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13341 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13342 ac_tool_warned=yes ;;
13343 esac
13344 CC=$ac_ct_CC
13345 fi
13346 fi
13347
13348 fi
13349 if test -z "$CC"; then
13350 if test -n "$ac_tool_prefix"; then
13351 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13352 set dummy ${ac_tool_prefix}clang; ac_word=$2
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 printf %s "checking for $ac_word... " >&6; }
13355 if test ${ac_cv_prog_CC+y}
13356 then :
13357 printf %s "(cached) " >&6
13358 else case e in #(
13359 e) if test -n "$CC"; then
13360 ac_cv_prog_CC="$CC" # Let the user override the test.
13361 else
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365 IFS=$as_save_IFS
13366 case $as_dir in #(((
13367 '') as_dir=./ ;;
13368 */) ;;
13369 *) as_dir=$as_dir/ ;;
13370 esac
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13373 ac_cv_prog_CC="${ac_tool_prefix}clang"
13374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377 done
13378 done
13379 IFS=$as_save_IFS
13380
13381 fi ;;
13382 esac
13383 fi
13384 CC=$ac_cv_prog_CC
13385 if test -n "$CC"; then
13386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13387 printf "%s\n" "$CC" >&6; }
13388 else
13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 printf "%s\n" "no" >&6; }
13391 fi
13392
13393
13394 fi
13395 if test -z "$ac_cv_prog_CC"; then
13396 ac_ct_CC=$CC
13397 # Extract the first word of "clang", so it can be a program name with args.
13398 set dummy clang; ac_word=$2
13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 printf %s "checking for $ac_word... " >&6; }
13401 if test ${ac_cv_prog_ac_ct_CC+y}
13402 then :
13403 printf %s "(cached) " >&6
13404 else case e in #(
13405 e) if test -n "$ac_ct_CC"; then
13406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13407 else
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13410 do
13411 IFS=$as_save_IFS
13412 case $as_dir in #(((
13413 '') as_dir=./ ;;
13414 */) ;;
13415 *) as_dir=$as_dir/ ;;
13416 esac
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13419 ac_cv_prog_ac_ct_CC="clang"
13420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13421 break 2
13422 fi
13423 done
13424 done
13425 IFS=$as_save_IFS
13426
13427 fi ;;
13428 esac
13429 fi
13430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13431 if test -n "$ac_ct_CC"; then
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13433 printf "%s\n" "$ac_ct_CC" >&6; }
13434 else
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 printf "%s\n" "no" >&6; }
13437 fi
13438
13439 if test "x$ac_ct_CC" = x; then
13440 CC=""
13441 else
13442 case $cross_compiling:$ac_tool_warned in
13443 yes:)
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13445 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13446 ac_tool_warned=yes ;;
13447 esac
13448 CC=$ac_ct_CC
13449 fi
13450 else
13451 CC="$ac_cv_prog_CC"
13452 fi
13453
13454 fi
13455
13456
13457 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13458 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13459 as_fn_error $? "no acceptable C compiler found in \$PATH
13460 See 'config.log' for more details" "$LINENO" 5; }
13461
13462 # Provide some information about the compiler.
13463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13464 set X $ac_compile
13465 ac_compiler=$2
13466 for ac_option in --version -v -V -qversion -version; do
13467 { { ac_try="$ac_compiler $ac_option >&5"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471 esac
13472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13473 printf "%s\n" "$ac_try_echo"; } >&5
13474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13475 ac_status=$?
13476 if test -s conftest.err; then
13477 sed '10a\
13478 ... rest of stderr output deleted ...
13479 10q' conftest.err >conftest.er1
13480 cat conftest.er1 >&5
13481 fi
13482 rm -f conftest.er1 conftest.err
13483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }
13485 done
13486
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13488 printf %s "checking whether the compiler supports GNU C... " >&6; }
13489 if test ${ac_cv_c_compiler_gnu+y}
13490 then :
13491 printf %s "(cached) " >&6
13492 else case e in #(
13493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495
13496 int
13497 main (void)
13498 {
13499 #ifndef __GNUC__
13500 choke me
13501 #endif
13502
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_compile "$LINENO"
13508 then :
13509 ac_compiler_gnu=yes
13510 else case e in #(
13511 e) ac_compiler_gnu=no ;;
13512 esac
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13516 ;;
13517 esac
13518 fi
13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13520 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13522
13523 if test $ac_compiler_gnu = yes; then
13524 GCC=yes
13525 else
13526 GCC=
13527 fi
13528 ac_test_CFLAGS=${CFLAGS+y}
13529 ac_save_CFLAGS=$CFLAGS
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13531 printf %s "checking whether $CC accepts -g... " >&6; }
13532 if test ${ac_cv_prog_cc_g+y}
13533 then :
13534 printf %s "(cached) " >&6
13535 else case e in #(
13536 e) ac_save_c_werror_flag=$ac_c_werror_flag
13537 ac_c_werror_flag=yes
13538 ac_cv_prog_cc_g=no
13539 CFLAGS="-g"
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542
13543 int
13544 main (void)
13545 {
13546
13547 ;
13548 return 0;
13549 }
13550 _ACEOF
13551 if ac_fn_c_try_compile "$LINENO"
13552 then :
13553 ac_cv_prog_cc_g=yes
13554 else case e in #(
13555 e) CFLAGS=""
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558
13559 int
13560 main (void)
13561 {
13562
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 if ac_fn_c_try_compile "$LINENO"
13568 then :
13569
13570 else case e in #(
13571 e) ac_c_werror_flag=$ac_save_c_werror_flag
13572 CFLAGS="-g"
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575
13576 int
13577 main (void)
13578 {
13579
13580 ;
13581 return 0;
13582 }
13583 _ACEOF
13584 if ac_fn_c_try_compile "$LINENO"
13585 then :
13586 ac_cv_prog_cc_g=yes
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13589 esac
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13592 esac
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13595 ac_c_werror_flag=$ac_save_c_werror_flag ;;
13596 esac
13597 fi
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13599 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13600 if test $ac_test_CFLAGS; then
13601 CFLAGS=$ac_save_CFLAGS
13602 elif test $ac_cv_prog_cc_g = yes; then
13603 if test "$GCC" = yes; then
13604 CFLAGS="-g -O2"
13605 else
13606 CFLAGS="-g"
13607 fi
13608 else
13609 if test "$GCC" = yes; then
13610 CFLAGS="-O2"
13611 else
13612 CFLAGS=
13613 fi
13614 fi
13615 ac_prog_cc_stdc=no
13616 if test x$ac_prog_cc_stdc = xno
13617 then :
13618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13619 printf %s "checking for $CC option to enable C11 features... " >&6; }
13620 if test ${ac_cv_prog_cc_c11+y}
13621 then :
13622 printf %s "(cached) " >&6
13623 else case e in #(
13624 e) ac_cv_prog_cc_c11=no
13625 ac_save_CC=$CC
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 $ac_c_conftest_c11_program
13629 _ACEOF
13630 for ac_arg in '' -std=gnu11
13631 do
13632 CC="$ac_save_CC $ac_arg"
13633 if ac_fn_c_try_compile "$LINENO"
13634 then :
13635 ac_cv_prog_cc_c11=$ac_arg
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.beam
13638 test "x$ac_cv_prog_cc_c11" != "xno" && break
13639 done
13640 rm -f conftest.$ac_ext
13641 CC=$ac_save_CC ;;
13642 esac
13643 fi
13644
13645 if test "x$ac_cv_prog_cc_c11" = xno
13646 then :
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13648 printf "%s\n" "unsupported" >&6; }
13649 else case e in #(
13650 e) if test "x$ac_cv_prog_cc_c11" = x
13651 then :
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13653 printf "%s\n" "none needed" >&6; }
13654 else case e in #(
13655 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13656 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13657 CC="$CC $ac_cv_prog_cc_c11" ;;
13658 esac
13659 fi
13660 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13661 ac_prog_cc_stdc=c11 ;;
13662 esac
13663 fi
13664 fi
13665 if test x$ac_prog_cc_stdc = xno
13666 then :
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13668 printf %s "checking for $CC option to enable C99 features... " >&6; }
13669 if test ${ac_cv_prog_cc_c99+y}
13670 then :
13671 printf %s "(cached) " >&6
13672 else case e in #(
13673 e) ac_cv_prog_cc_c99=no
13674 ac_save_CC=$CC
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 $ac_c_conftest_c99_program
13678 _ACEOF
13679 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13680 do
13681 CC="$ac_save_CC $ac_arg"
13682 if ac_fn_c_try_compile "$LINENO"
13683 then :
13684 ac_cv_prog_cc_c99=$ac_arg
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext conftest.beam
13687 test "x$ac_cv_prog_cc_c99" != "xno" && break
13688 done
13689 rm -f conftest.$ac_ext
13690 CC=$ac_save_CC ;;
13691 esac
13692 fi
13693
13694 if test "x$ac_cv_prog_cc_c99" = xno
13695 then :
13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13697 printf "%s\n" "unsupported" >&6; }
13698 else case e in #(
13699 e) if test "x$ac_cv_prog_cc_c99" = x
13700 then :
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13702 printf "%s\n" "none needed" >&6; }
13703 else case e in #(
13704 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13705 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13706 CC="$CC $ac_cv_prog_cc_c99" ;;
13707 esac
13708 fi
13709 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13710 ac_prog_cc_stdc=c99 ;;
13711 esac
13712 fi
13713 fi
13714 if test x$ac_prog_cc_stdc = xno
13715 then :
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13717 printf %s "checking for $CC option to enable C89 features... " >&6; }
13718 if test ${ac_cv_prog_cc_c89+y}
13719 then :
13720 printf %s "(cached) " >&6
13721 else case e in #(
13722 e) ac_cv_prog_cc_c89=no
13723 ac_save_CC=$CC
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 $ac_c_conftest_c89_program
13727 _ACEOF
13728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13729 do
13730 CC="$ac_save_CC $ac_arg"
13731 if ac_fn_c_try_compile "$LINENO"
13732 then :
13733 ac_cv_prog_cc_c89=$ac_arg
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext conftest.beam
13736 test "x$ac_cv_prog_cc_c89" != "xno" && break
13737 done
13738 rm -f conftest.$ac_ext
13739 CC=$ac_save_CC ;;
13740 esac
13741 fi
13742
13743 if test "x$ac_cv_prog_cc_c89" = xno
13744 then :
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13746 printf "%s\n" "unsupported" >&6; }
13747 else case e in #(
13748 e) if test "x$ac_cv_prog_cc_c89" = x
13749 then :
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13751 printf "%s\n" "none needed" >&6; }
13752 else case e in #(
13753 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13754 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13755 CC="$CC $ac_cv_prog_cc_c89" ;;
13756 esac
13757 fi
13758 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13759 ac_prog_cc_stdc=c89 ;;
13760 esac
13761 fi
13762 fi
13763
13764 ac_ext=c
13765 ac_cpp='$CPP $CPPFLAGS'
13766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13769
13770
13771 ac_ext=c
13772 ac_cpp='$CPP $CPPFLAGS'
13773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13777 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13778 if test ${am_cv_prog_cc_c_o+y}
13779 then :
13780 printf %s "(cached) " >&6
13781 else case e in #(
13782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784
13785 int
13786 main (void)
13787 {
13788
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 # Make sure it works both with $CC and with simple cc.
13794 # Following AC_PROG_CC_C_O, we do the test twice because some
13795 # compilers refuse to overwrite an existing .o file with -o,
13796 # though they will create one.
13797 am_cv_prog_cc_c_o=yes
13798 for am_i in 1 2; do
13799 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13800 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } \
13804 && test -f conftest2.$ac_objext; then
13805 : OK
13806 else
13807 am_cv_prog_cc_c_o=no
13808 break
13809 fi
13810 done
13811 # aligned with autoconf, so not including core; see bug#72225.
13812 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
13813 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
13814 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
13815 unset am_i ;;
13816 esac
13817 fi
13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13819 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13820 if test "$am_cv_prog_cc_c_o" != yes; then
13821 # Losing compiler, so override with the script.
13822 # FIXME: It is wrong to rewrite CC.
13823 # But if we don't then we get into trouble of one sort or another.
13824 # A longer-term fix would be to have automake use am__CC in this case,
13825 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13826 CC="$am_aux_dir/compile $CC"
13827 fi
13828 ac_ext=c
13829 ac_cpp='$CPP $CPPFLAGS'
13830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13833
13834
13835
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floorf" >&5
13837 printf %s "checking for library containing floorf... " >&6; }
13838 if test ${ac_cv_search_floorf+y}
13839 then :
13840 printf %s "(cached) " >&6
13841 else case e in #(
13842 e) ac_func_search_save_LIBS=$LIBS
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply.
13849 The 'extern "C"' is for builds by C++ compilers;
13850 although this is not generally supported in C code supporting it here
13851 has little cost and some practical benefit (sr 110532). */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char floorf (void);
13856 int
13857 main (void)
13858 {
13859 return floorf ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 for ac_lib in '' m
13865 do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13868 else
13869 ac_res=-l$ac_lib
13870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13871 fi
13872 if ac_fn_c_try_link "$LINENO"
13873 then :
13874 ac_cv_search_floorf=$ac_res
13875 fi
13876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13877 conftest$ac_exeext
13878 if test ${ac_cv_search_floorf+y}
13879 then :
13880 break
13881 fi
13882 done
13883 if test ${ac_cv_search_floorf+y}
13884 then :
13885
13886 else case e in #(
13887 e) ac_cv_search_floorf=no ;;
13888 esac
13889 fi
13890 rm conftest.$ac_ext
13891 LIBS=$ac_func_search_save_LIBS ;;
13892 esac
13893 fi
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floorf" >&5
13895 printf "%s\n" "$ac_cv_search_floorf" >&6; }
13896 ac_res=$ac_cv_search_floorf
13897 if test "$ac_res" != no
13898 then :
13899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13900
13901 fi
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13912 if test -n "$ac_tool_prefix"; then
13913 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13914 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 printf %s "checking for $ac_word... " >&6; }
13917 if test ${ac_cv_path_PKG_CONFIG+y}
13918 then :
13919 printf %s "(cached) " >&6
13920 else case e in #(
13921 e) case $PKG_CONFIG in
13922 [\\/]* | ?:[\\/]*)
13923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13924 ;;
13925 *)
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in $PATH
13928 do
13929 IFS=$as_save_IFS
13930 case $as_dir in #(((
13931 '') as_dir=./ ;;
13932 */) ;;
13933 *) as_dir=$as_dir/ ;;
13934 esac
13935 for ac_exec_ext in '' $ac_executable_extensions; do
13936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13937 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13939 break 2
13940 fi
13941 done
13942 done
13943 IFS=$as_save_IFS
13944
13945 ;;
13946 esac ;;
13947 esac
13948 fi
13949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13950 if test -n "$PKG_CONFIG"; then
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13952 printf "%s\n" "$PKG_CONFIG" >&6; }
13953 else
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 printf "%s\n" "no" >&6; }
13956 fi
13957
13958
13959 fi
13960 if test -z "$ac_cv_path_PKG_CONFIG"; then
13961 ac_pt_PKG_CONFIG=$PKG_CONFIG
13962 # Extract the first word of "pkg-config", so it can be a program name with args.
13963 set dummy pkg-config; ac_word=$2
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13965 printf %s "checking for $ac_word... " >&6; }
13966 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13967 then :
13968 printf %s "(cached) " >&6
13969 else case e in #(
13970 e) case $ac_pt_PKG_CONFIG in
13971 [\\/]* | ?:[\\/]*)
13972 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13973 ;;
13974 *)
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978 IFS=$as_save_IFS
13979 case $as_dir in #(((
13980 '') as_dir=./ ;;
13981 */) ;;
13982 *) as_dir=$as_dir/ ;;
13983 esac
13984 for ac_exec_ext in '' $ac_executable_extensions; do
13985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13986 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13988 break 2
13989 fi
13990 done
13991 done
13992 IFS=$as_save_IFS
13993
13994 ;;
13995 esac ;;
13996 esac
13997 fi
13998 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13999 if test -n "$ac_pt_PKG_CONFIG"; then
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14001 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14002 else
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 printf "%s\n" "no" >&6; }
14005 fi
14006
14007 if test "x$ac_pt_PKG_CONFIG" = x; then
14008 PKG_CONFIG=""
14009 else
14010 case $cross_compiling:$ac_tool_warned in
14011 yes:)
14012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14014 ac_tool_warned=yes ;;
14015 esac
14016 PKG_CONFIG=$ac_pt_PKG_CONFIG
14017 fi
14018 else
14019 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14020 fi
14021
14022 fi
14023 if test -n "$PKG_CONFIG"; then
14024 _pkg_min_version=0.9.0
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14026 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14027 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14029 printf "%s\n" "yes" >&6; }
14030 else
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 printf "%s\n" "no" >&6; }
14033 PKG_CONFIG=""
14034 fi
14035 fi
14036 if test -z "$PKG_CONFIG"; then
14037 as_fn_error $? "pkg-config not found" "$LINENO" 5
14038 fi
14039
14040
14041
14042 # Check whether --enable-introspection was given.
14043 if test ${enable_introspection+y}
14044 then :
14045 enableval=$enable_introspection;
14046 else case e in #(
14047 e) enable_introspection=auto ;;
14048 esac
14049 fi
14050
14051
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14053 printf %s "checking for gobject-introspection... " >&6; }
14054
14055 case $enable_introspection in #(
14056 no) :
14057 found_introspection="no (disabled, use --enable-introspection to enable)"
14058 ;; #(
14059 yes) :
14060 if test -n "$PKG_CONFIG" && \
14061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14062 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14063 ac_status=$?
14064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14065 test $ac_status = 0; }; then
14066 :
14067 else
14068 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
14069 fi
14070 if test -n "$PKG_CONFIG" && \
14071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.30.0\""; } >&5
14072 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.30.0") 2>&5
14073 ac_status=$?
14074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14075 test $ac_status = 0; }; then
14076 found_introspection=yes
14077 else
14078 as_fn_error $? "You need to have gobject-introspection >= 1.30.0 installed to build libdmapsharing" "$LINENO" 5
14079 fi
14080 ;; #(
14081 auto) :
14082 if test -n "$PKG_CONFIG" && \
14083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.30.0\""; } >&5
14084 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.30.0") 2>&5
14085 ac_status=$?
14086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14087 test $ac_status = 0; }; then
14088 found_introspection=yes
14089 else
14090 found_introspection=no
14091 fi
14092 enable_introspection=$found_introspection
14093 ;; #(
14094 *) :
14095 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14096 ;;
14097 esac
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14099 printf "%s\n" "$found_introspection" >&6; }
14100
14101 INTROSPECTION_SCANNER=
14102 INTROSPECTION_COMPILER=
14103 INTROSPECTION_GENERATE=
14104 INTROSPECTION_GIRDIR=
14105 INTROSPECTION_TYPELIBDIR=
14106 if test "x$found_introspection" = "xyes"; then
14107 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14108 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14109 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14110 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14111 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14112 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14113 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14114 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14115 fi
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125 if test "x$found_introspection" = "xyes"; then
14126 HAVE_INTROSPECTION_TRUE=
14127 HAVE_INTROSPECTION_FALSE='#'
14128 else
14129 HAVE_INTROSPECTION_TRUE='#'
14130 HAVE_INTROSPECTION_FALSE=
14131 fi
14132
14133
14134
14135
14136
14137
14138 gtk_doc_requires="gtk-doc >= 1.0"
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
14140 printf %s "checking for gtk-doc... " >&6; }
14141 if test -n "$PKG_CONFIG" && \
14142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
14143 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
14144 ac_status=$?
14145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14146 test $ac_status = 0; }; then
14147 have_gtk_doc=yes
14148 else
14149 have_gtk_doc=no
14150 fi
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
14152 printf "%s\n" "$have_gtk_doc" >&6; }
14153
14154 if test "$have_gtk_doc" = "no"; then
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
14156 You will not be able to create source packages with 'make dist'
14157 because $gtk_doc_requires is not found." >&5
14158 printf "%s\n" "$as_me: WARNING:
14159 You will not be able to create source packages with 'make dist'
14160 because $gtk_doc_requires is not found." >&2;}
14161 fi
14162
14163 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14164 set dummy gtkdoc-check; ac_word=$2
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14166 printf %s "checking for $ac_word... " >&6; }
14167 if test ${ac_cv_prog_GTKDOC_CHECK+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else case e in #(
14171 e) if test -n "$GTKDOC_CHECK"; then
14172 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
14173 else
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14176 do
14177 IFS=$as_save_IFS
14178 case $as_dir in #(((
14179 '') as_dir=./ ;;
14180 */) ;;
14181 *) as_dir=$as_dir/ ;;
14182 esac
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14185 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
14186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14187 break 2
14188 fi
14189 done
14190 done
14191 IFS=$as_save_IFS
14192
14193 fi ;;
14194 esac
14195 fi
14196 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
14197 if test -n "$GTKDOC_CHECK"; then
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14199 printf "%s\n" "$GTKDOC_CHECK" >&6; }
14200 else
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202 printf "%s\n" "no" >&6; }
14203 fi
14204
14205
14206 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14207 set dummy gtkdoc-check; ac_word=$2
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 printf %s "checking for $ac_word... " >&6; }
14210 if test ${ac_cv_path_GTKDOC_CHECK_PATH+y}
14211 then :
14212 printf %s "(cached) " >&6
14213 else case e in #(
14214 e) case $GTKDOC_CHECK_PATH in
14215 [\\/]* | ?:[\\/]*)
14216 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
14217 ;;
14218 *)
14219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220 for as_dir in $PATH
14221 do
14222 IFS=$as_save_IFS
14223 case $as_dir in #(((
14224 '') as_dir=./ ;;
14225 */) ;;
14226 *) as_dir=$as_dir/ ;;
14227 esac
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14230 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext"
14231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234 done
14235 done
14236 IFS=$as_save_IFS
14237
14238 ;;
14239 esac ;;
14240 esac
14241 fi
14242 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
14243 if test -n "$GTKDOC_CHECK_PATH"; then
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
14245 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; }
14246 else
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 printf "%s\n" "no" >&6; }
14249 fi
14250
14251
14252 for ac_prog in gtkdoc-rebase
14253 do
14254 # Extract the first word of "$ac_prog", so it can be a program name with args.
14255 set dummy $ac_prog; ac_word=$2
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 printf %s "checking for $ac_word... " >&6; }
14258 if test ${ac_cv_path_GTKDOC_REBASE+y}
14259 then :
14260 printf %s "(cached) " >&6
14261 else case e in #(
14262 e) case $GTKDOC_REBASE in
14263 [\\/]* | ?:[\\/]*)
14264 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14265 ;;
14266 *)
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270 IFS=$as_save_IFS
14271 case $as_dir in #(((
14272 '') as_dir=./ ;;
14273 */) ;;
14274 *) as_dir=$as_dir/ ;;
14275 esac
14276 for ac_exec_ext in '' $ac_executable_extensions; do
14277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14278 ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext"
14279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14280 break 2
14281 fi
14282 done
14283 done
14284 IFS=$as_save_IFS
14285
14286 ;;
14287 esac ;;
14288 esac
14289 fi
14290 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14291 if test -n "$GTKDOC_REBASE"; then
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14293 printf "%s\n" "$GTKDOC_REBASE" >&6; }
14294 else
14295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 printf "%s\n" "no" >&6; }
14297 fi
14298
14299
14300 test -n "$GTKDOC_REBASE" && break
14301 done
14302 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14303
14304 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14305 set dummy gtkdoc-mkpdf; ac_word=$2
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 printf %s "checking for $ac_word... " >&6; }
14308 if test ${ac_cv_path_GTKDOC_MKPDF+y}
14309 then :
14310 printf %s "(cached) " >&6
14311 else case e in #(
14312 e) case $GTKDOC_MKPDF in
14313 [\\/]* | ?:[\\/]*)
14314 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14315 ;;
14316 *)
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $PATH
14319 do
14320 IFS=$as_save_IFS
14321 case $as_dir in #(((
14322 '') as_dir=./ ;;
14323 */) ;;
14324 *) as_dir=$as_dir/ ;;
14325 esac
14326 for ac_exec_ext in '' $ac_executable_extensions; do
14327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14328 ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext"
14329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14330 break 2
14331 fi
14332 done
14333 done
14334 IFS=$as_save_IFS
14335
14336 ;;
14337 esac ;;
14338 esac
14339 fi
14340 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14341 if test -n "$GTKDOC_MKPDF"; then
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14343 printf "%s\n" "$GTKDOC_MKPDF" >&6; }
14344 else
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 printf "%s\n" "no" >&6; }
14347 fi
14348
14349
14350
14351
14352 # Check whether --with-html-dir was given.
14353 if test ${with_html_dir+y}
14354 then :
14355 withval=$with_html_dir;
14356 else case e in #(
14357 e) with_html_dir='${datadir}/gtk-doc/html' ;;
14358 esac
14359 fi
14360
14361 HTML_DIR="$with_html_dir"
14362
14363
14364 # Check whether --enable-gtk-doc was given.
14365 if test ${enable_gtk_doc+y}
14366 then :
14367 enableval=$enable_gtk_doc;
14368 else case e in #(
14369 e) enable_gtk_doc=no ;;
14370 esac
14371 fi
14372
14373
14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14375 printf %s "checking whether to build gtk-doc documentation... " >&6; }
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14377 printf "%s\n" "$enable_gtk_doc" >&6; }
14378
14379 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
14380 as_fn_error $? "
14381 You must have $gtk_doc_requires installed to build documentation for
14382 $PACKAGE_NAME. Please install gtk-doc or disable building the
14383 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
14384 fi
14385
14386 if test "x$PACKAGE_NAME" != "xglib"; then
14387
14388 pkg_failed=no
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" >&5
14390 printf %s "checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... " >&6; }
14391
14392 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14393 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14394 elif test -n "$PKG_CONFIG"; then
14395 if test -n "$PKG_CONFIG" && \
14396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14397 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14398 ac_status=$?
14399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14400 test $ac_status = 0; }; then
14401 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14402 test "x$?" != "x0" && pkg_failed=yes
14403 else
14404 pkg_failed=yes
14405 fi
14406 else
14407 pkg_failed=untried
14408 fi
14409 if test -n "$GTKDOC_DEPS_LIBS"; then
14410 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14411 elif test -n "$PKG_CONFIG"; then
14412 if test -n "$PKG_CONFIG" && \
14413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14414 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14415 ac_status=$?
14416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14417 test $ac_status = 0; }; then
14418 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14419 test "x$?" != "x0" && pkg_failed=yes
14420 else
14421 pkg_failed=yes
14422 fi
14423 else
14424 pkg_failed=untried
14425 fi
14426
14427
14428
14429 if test $pkg_failed = yes; then
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 printf "%s\n" "no" >&6; }
14432
14433 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14434 _pkg_short_errors_supported=yes
14435 else
14436 _pkg_short_errors_supported=no
14437 fi
14438 if test $_pkg_short_errors_supported = yes; then
14439 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14440 else
14441 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14442 fi
14443 # Put the nasty error message in config.log where it belongs
14444 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14445
14446 :
14447 elif test $pkg_failed = untried; then
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 printf "%s\n" "no" >&6; }
14450 :
14451 else
14452 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14453 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14455 printf "%s\n" "yes" >&6; }
14456
14457 fi
14458 fi
14459
14460 # Check whether --enable-gtk-doc-html was given.
14461 if test ${enable_gtk_doc_html+y}
14462 then :
14463 enableval=$enable_gtk_doc_html;
14464 else case e in #(
14465 e) enable_gtk_doc_html=yes ;;
14466 esac
14467 fi
14468
14469 # Check whether --enable-gtk-doc-pdf was given.
14470 if test ${enable_gtk_doc_pdf+y}
14471 then :
14472 enableval=$enable_gtk_doc_pdf;
14473 else case e in #(
14474 e) enable_gtk_doc_pdf=no ;;
14475 esac
14476 fi
14477
14478
14479 if test -z "$GTKDOC_MKPDF"; then
14480 enable_gtk_doc_pdf=no
14481 fi
14482
14483 if test -z "$AM_DEFAULT_VERBOSITY"; then
14484 AM_DEFAULT_VERBOSITY=1
14485 fi
14486
14487
14488 if test x$have_gtk_doc = xyes; then
14489 HAVE_GTK_DOC_TRUE=
14490 HAVE_GTK_DOC_FALSE='#'
14491 else
14492 HAVE_GTK_DOC_TRUE='#'
14493 HAVE_GTK_DOC_FALSE=
14494 fi
14495
14496 if test x$enable_gtk_doc = xyes; then
14497 ENABLE_GTK_DOC_TRUE=
14498 ENABLE_GTK_DOC_FALSE='#'
14499 else
14500 ENABLE_GTK_DOC_TRUE='#'
14501 ENABLE_GTK_DOC_FALSE=
14502 fi
14503
14504 if test x$enable_gtk_doc_html = xyes; then
14505 GTK_DOC_BUILD_HTML_TRUE=
14506 GTK_DOC_BUILD_HTML_FALSE='#'
14507 else
14508 GTK_DOC_BUILD_HTML_TRUE='#'
14509 GTK_DOC_BUILD_HTML_FALSE=
14510 fi
14511
14512 if test x$enable_gtk_doc_pdf = xyes; then
14513 GTK_DOC_BUILD_PDF_TRUE=
14514 GTK_DOC_BUILD_PDF_FALSE='#'
14515 else
14516 GTK_DOC_BUILD_PDF_TRUE='#'
14517 GTK_DOC_BUILD_PDF_FALSE=
14518 fi
14519
14520 if test -n "$LIBTOOL"; then
14521 GTK_DOC_USE_LIBTOOL_TRUE=
14522 GTK_DOC_USE_LIBTOOL_FALSE='#'
14523 else
14524 GTK_DOC_USE_LIBTOOL_TRUE='#'
14525 GTK_DOC_USE_LIBTOOL_FALSE=
14526 fi
14527
14528 if test -n "$GTKDOC_REBASE"; then
14529 GTK_DOC_USE_REBASE_TRUE=
14530 GTK_DOC_USE_REBASE_FALSE='#'
14531 else
14532 GTK_DOC_USE_REBASE_TRUE='#'
14533 GTK_DOC_USE_REBASE_FALSE=
14534 fi
14535
14536
14537
14538 # Have pedansee?
14539 # Extract the first word of "pedansee", so it can be a program name with args.
14540 set dummy pedansee; ac_word=$2
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14542 printf %s "checking for $ac_word... " >&6; }
14543 if test ${ac_cv_path_PEDANSEE+y}
14544 then :
14545 printf %s "(cached) " >&6
14546 else case e in #(
14547 e) case $PEDANSEE in
14548 [\\/]* | ?:[\\/]*)
14549 ac_cv_path_PEDANSEE="$PEDANSEE" # Let the user override the test with a path.
14550 ;;
14551 *)
14552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553 for as_dir in $PATH
14554 do
14555 IFS=$as_save_IFS
14556 case $as_dir in #(((
14557 '') as_dir=./ ;;
14558 */) ;;
14559 *) as_dir=$as_dir/ ;;
14560 esac
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14563 ac_cv_path_PEDANSEE="$as_dir$ac_word$ac_exec_ext"
14564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14565 break 2
14566 fi
14567 done
14568 done
14569 IFS=$as_save_IFS
14570
14571 ;;
14572 esac ;;
14573 esac
14574 fi
14575 PEDANSEE=$ac_cv_path_PEDANSEE
14576 if test -n "$PEDANSEE"; then
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PEDANSEE" >&5
14578 printf "%s\n" "$PEDANSEE" >&6; }
14579 else
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 printf "%s\n" "no" >&6; }
14582 fi
14583
14584
14585 if test -n "$PEDANSEE"; then
14586 HAVE_PEDANSEE_TRUE=
14587 HAVE_PEDANSEE_FALSE='#'
14588 else
14589 HAVE_PEDANSEE_TRUE='#'
14590 HAVE_PEDANSEE_FALSE=
14591 fi
14592
14593
14594 # Select debugging or measuring code coverage?
14595 # Check whether --enable-debug was given.
14596 if test ${enable_debug+y}
14597 then :
14598 enableval=$enable_debug;
14599 fi
14600
14601 # Check whether --enable-coverage was given.
14602 if test ${enable_coverage+y}
14603 then :
14604 enableval=$enable_coverage;
14605 fi
14606
14607 if test "x$enable_debug" = "xyes"; then
14608 CFLAGS="$CFLAGS -O0 -g"
14609 elif test "x$enable_coverage" = "xyes"; then
14610 CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
14611 fi
14612
14613 # Select more compiler warnings?
14614 # Check whether --enable-more-warnings was given.
14615 if test ${enable_more_warnings+y}
14616 then :
14617 enableval=$enable_more_warnings;
14618 fi
14619
14620 if test "$GCC" = "yes" -a x$enable_more_warnings = "xyes"; then
14621 WARN_CFLAGS="\
14622 -Wcomment -Wformat -Wnonnull -Wimplicit-int -Wimplicit \
14623 -Wmain -Wmissing-braces -Wparentheses -Wsequence-point \
14624 -Wreturn-type -Wswitch -Wtrigraphs -Wunused-function \
14625 -Wunused-label -Wunused-value \
14626 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
14627 -Wnested-externs -Wpointer-arith \
14628 -Wformat-security -Wall \
14629 -Werror -Wno-deprecated-declarations -std=gnu89"
14630
14631 if echo "$CFLAGS" | grep -q -- '-O' && echo "$CFLAGS" | grep -q -v -- '-O0'; then
14632 WARN_CFLAGS="-Wuninitialized $WARN_CFLAGS"
14633 fi
14634
14635 for option in $WARN_CFLAGS; do
14636
14637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $option" >&5
14638 printf %s "checking to see if compiler understands $option... " >&6; }
14639
14640 save_CFLAGS="$CFLAGS"
14641 CFLAGS="$CFLAGS $option"
14642
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645
14646 int
14647 main (void)
14648 {
14649
14650 ;
14651 return 0;
14652 }
14653 _ACEOF
14654 if ac_fn_c_try_compile "$LINENO"
14655 then :
14656 flag_ok=yes
14657 else case e in #(
14658 e) flag_ok=no ;;
14659 esac
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14662 CFLAGS="$save_CFLAGS"
14663
14664 if test "X$flag_ok" = Xyes ; then
14665 has_option=yes
14666 true
14667 else
14668 has_option=no
14669 true
14670 fi
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
14672 printf "%s\n" "$flag_ok" >&6; }
14673
14674 if test x$has_option = xyes; then
14675 OK_CFLAGS="$OK_CFLAGS $option"
14676 fi
14677 unset has_option
14678 done
14679
14680 WARN_CFLAGS="$OK_CFLAGS"
14681 fi
14682
14683
14684
14685 # Build test code?
14686 # Check whether --enable-tests was given.
14687 if test ${enable_tests+y}
14688 then :
14689 enableval=$enable_tests; tests=$enableval
14690 else case e in #(
14691 e) tests=yes ;;
14692 esac
14693 fi
14694
14695 if test x$tests = xyes; then
14696
14697 pkg_failed=no
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.4" >&5
14699 printf %s "checking for check >= 0.9.4... " >&6; }
14700
14701 if test -n "$CHECK_CFLAGS"; then
14702 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
14703 elif test -n "$PKG_CONFIG"; then
14704 if test -n "$PKG_CONFIG" && \
14705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14706 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14707 ac_status=$?
14708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709 test $ac_status = 0; }; then
14710 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
14711 test "x$?" != "x0" && pkg_failed=yes
14712 else
14713 pkg_failed=yes
14714 fi
14715 else
14716 pkg_failed=untried
14717 fi
14718 if test -n "$CHECK_LIBS"; then
14719 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
14720 elif test -n "$PKG_CONFIG"; then
14721 if test -n "$PKG_CONFIG" && \
14722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14723 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14724 ac_status=$?
14725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726 test $ac_status = 0; }; then
14727 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
14728 test "x$?" != "x0" && pkg_failed=yes
14729 else
14730 pkg_failed=yes
14731 fi
14732 else
14733 pkg_failed=untried
14734 fi
14735
14736
14737
14738 if test $pkg_failed = yes; then
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 printf "%s\n" "no" >&6; }
14741
14742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14743 _pkg_short_errors_supported=yes
14744 else
14745 _pkg_short_errors_supported=no
14746 fi
14747 if test $_pkg_short_errors_supported = yes; then
14748 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14749 else
14750 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14751 fi
14752 # Put the nasty error message in config.log where it belongs
14753 echo "$CHECK_PKG_ERRORS" >&5
14754
14755 have_check=no
14756 elif test $pkg_failed = untried; then
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 printf "%s\n" "no" >&6; }
14759 have_check=no
14760 else
14761 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
14762 CHECK_LIBS=$pkg_cv_CHECK_LIBS
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14764 printf "%s\n" "yes" >&6; }
14765 have_check=yes
14766 fi
14767 if test x"$have_check" = "xyes"; then
14768 HAVE_CHECK_TRUE=
14769 HAVE_CHECK_FALSE='#'
14770 else
14771 HAVE_CHECK_TRUE='#'
14772 HAVE_CHECK_FALSE=
14773 fi
14774
14775 if test "x$have_check" = "xyes"; then
14776
14777 printf "%s\n" "#define HAVE_CHECK 1" >>confdefs.h
14778
14779 else
14780 as_fn_error $? "Must have check library present when tests enabled" "$LINENO" 5
14781 fi
14782
14783
14784 printf "%s\n" "#define TESTS_ENABLED 1" >>confdefs.h
14785
14786 if true; then
14787 TESTS_ENABLED_TRUE=
14788 TESTS_ENABLED_FALSE='#'
14789 else
14790 TESTS_ENABLED_TRUE='#'
14791 TESTS_ENABLED_FALSE=
14792 fi
14793
14794 else
14795 if false; then
14796 TESTS_ENABLED_TRUE=
14797 TESTS_ENABLED_FALSE='#'
14798 else
14799 TESTS_ENABLED_TRUE='#'
14800 TESTS_ENABLED_FALSE=
14801 fi
14802
14803 if false; then
14804 HAVE_CHECK_TRUE=
14805 HAVE_CHECK_FALSE='#'
14806 else
14807 HAVE_CHECK_TRUE='#'
14808 HAVE_CHECK_FALSE=
14809 fi
14810
14811 fi
14812
14813 # Have libz?
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
14815 printf %s "checking for uncompress in -lz... " >&6; }
14816 if test ${ac_cv_lib_z_uncompress+y}
14817 then :
14818 printf %s "(cached) " >&6
14819 else case e in #(
14820 e) ac_check_lib_save_LIBS=$LIBS
14821 LIBS="-lz $LIBS"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply.
14828 The 'extern "C"' is for builds by C++ compilers;
14829 although this is not generally supported in C code supporting it here
14830 has little cost and some practical benefit (sr 110532). */
14831 #ifdef __cplusplus
14832 extern "C"
14833 #endif
14834 char uncompress (void);
14835 int
14836 main (void)
14837 {
14838 return uncompress ();
14839 ;
14840 return 0;
14841 }
14842 _ACEOF
14843 if ac_fn_c_try_link "$LINENO"
14844 then :
14845 ac_cv_lib_z_uncompress=yes
14846 else case e in #(
14847 e) ac_cv_lib_z_uncompress=no ;;
14848 esac
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14851 conftest$ac_exeext conftest.$ac_ext
14852 LIBS=$ac_check_lib_save_LIBS ;;
14853 esac
14854 fi
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
14856 printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; }
14857 if test "x$ac_cv_lib_z_uncompress" = xyes
14858 then :
14859 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14860
14861 LIBS="-lz $LIBS"
14862
14863 fi
14864
14865
14866 # Have pkg-config?
14867 # Extract the first word of "pkg-config", so it can be a program name with args.
14868 set dummy pkg-config; ac_word=$2
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14870 printf %s "checking for $ac_word... " >&6; }
14871 if test ${ac_cv_prog_HAVE_PKGCONFIG+y}
14872 then :
14873 printf %s "(cached) " >&6
14874 else case e in #(
14875 e) if test -n "$HAVE_PKGCONFIG"; then
14876 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
14877 else
14878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14880 do
14881 IFS=$as_save_IFS
14882 case $as_dir in #(((
14883 '') as_dir=./ ;;
14884 */) ;;
14885 *) as_dir=$as_dir/ ;;
14886 esac
14887 for ac_exec_ext in '' $ac_executable_extensions; do
14888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14889 ac_cv_prog_HAVE_PKGCONFIG="yes"
14890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14891 break 2
14892 fi
14893 done
14894 done
14895 IFS=$as_save_IFS
14896
14897 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
14898 fi ;;
14899 esac
14900 fi
14901 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
14902 if test -n "$HAVE_PKGCONFIG"; then
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
14904 printf "%s\n" "$HAVE_PKGCONFIG" >&6; }
14905 else
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907 printf "%s\n" "no" >&6; }
14908 fi
14909
14910
14911 if test "x$HAVE_PKGCONFIG" = "xno"; then
14912 as_fn_error $? "Must have pkgconfig installed" "$LINENO" 5
14913 fi
14914
14915 # Have glib?
14916
14917 pkg_failed=no
14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.66" >&5
14919 printf %s "checking for glib-2.0 >= 2.66... " >&6; }
14920
14921 if test -n "$GLIB_CFLAGS"; then
14922 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
14923 elif test -n "$PKG_CONFIG"; then
14924 if test -n "$PKG_CONFIG" && \
14925 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.66\""; } >&5
14926 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.66") 2>&5
14927 ac_status=$?
14928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14929 test $ac_status = 0; }; then
14930 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.66" 2>/dev/null`
14931 test "x$?" != "x0" && pkg_failed=yes
14932 else
14933 pkg_failed=yes
14934 fi
14935 else
14936 pkg_failed=untried
14937 fi
14938 if test -n "$GLIB_LIBS"; then
14939 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
14940 elif test -n "$PKG_CONFIG"; then
14941 if test -n "$PKG_CONFIG" && \
14942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.66\""; } >&5
14943 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.66") 2>&5
14944 ac_status=$?
14945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14946 test $ac_status = 0; }; then
14947 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.66" 2>/dev/null`
14948 test "x$?" != "x0" && pkg_failed=yes
14949 else
14950 pkg_failed=yes
14951 fi
14952 else
14953 pkg_failed=untried
14954 fi
14955
14956
14957
14958 if test $pkg_failed = yes; then
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 printf "%s\n" "no" >&6; }
14961
14962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14963 _pkg_short_errors_supported=yes
14964 else
14965 _pkg_short_errors_supported=no
14966 fi
14967 if test $_pkg_short_errors_supported = yes; then
14968 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.66" 2>&1`
14969 else
14970 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.66" 2>&1`
14971 fi
14972 # Put the nasty error message in config.log where it belongs
14973 echo "$GLIB_PKG_ERRORS" >&5
14974
14975 HAVE_GLIB=no
14976 elif test $pkg_failed = untried; then
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 printf "%s\n" "no" >&6; }
14979 HAVE_GLIB=no
14980 else
14981 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
14982 GLIB_LIBS=$pkg_cv_GLIB_LIBS
14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14984 printf "%s\n" "yes" >&6; }
14985 HAVE_GLIB=yes
14986 fi
14987 if test "x$HAVE_GLIB" = "xno"; then
14988 as_fn_error $? "Must have glib-2.0 installed" "$LINENO" 5
14989 fi
14990
14991
14992 printf "%s\n" "#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_66" >>confdefs.h
14993
14994
14995 printf "%s\n" "#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_66" >>confdefs.h
14996
14997
14998
14999
15000
15001 # Have gthread?
15002
15003 pkg_failed=no
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0" >&5
15005 printf %s "checking for gthread-2.0... " >&6; }
15006
15007 if test -n "$GTHREAD_CFLAGS"; then
15008 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
15009 elif test -n "$PKG_CONFIG"; then
15010 if test -n "$PKG_CONFIG" && \
15011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
15012 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
15013 ac_status=$?
15014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015 test $ac_status = 0; }; then
15016 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
15017 test "x$?" != "x0" && pkg_failed=yes
15018 else
15019 pkg_failed=yes
15020 fi
15021 else
15022 pkg_failed=untried
15023 fi
15024 if test -n "$GTHREAD_LIBS"; then
15025 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
15026 elif test -n "$PKG_CONFIG"; then
15027 if test -n "$PKG_CONFIG" && \
15028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
15029 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
15030 ac_status=$?
15031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15032 test $ac_status = 0; }; then
15033 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
15034 test "x$?" != "x0" && pkg_failed=yes
15035 else
15036 pkg_failed=yes
15037 fi
15038 else
15039 pkg_failed=untried
15040 fi
15041
15042
15043
15044 if test $pkg_failed = yes; then
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046 printf "%s\n" "no" >&6; }
15047
15048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15049 _pkg_short_errors_supported=yes
15050 else
15051 _pkg_short_errors_supported=no
15052 fi
15053 if test $_pkg_short_errors_supported = yes; then
15054 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
15055 else
15056 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
15057 fi
15058 # Put the nasty error message in config.log where it belongs
15059 echo "$GTHREAD_PKG_ERRORS" >&5
15060
15061 HAVE_GTHREAD=no
15062 elif test $pkg_failed = untried; then
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064 printf "%s\n" "no" >&6; }
15065 HAVE_GTHREAD=no
15066 else
15067 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
15068 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
15069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15070 printf "%s\n" "yes" >&6; }
15071 HAVE_GTHREAD=yes
15072 fi
15073 if test "x$HAVE_GTHREAD" = "xno"; then
15074 as_fn_error $? "Must have gthread-2.0 installed" "$LINENO" 5
15075 fi
15076
15077
15078
15079
15080 # Have gobject?
15081
15082 pkg_failed=no
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0" >&5
15084 printf %s "checking for gobject-2.0... " >&6; }
15085
15086 if test -n "$GOBJECT_CFLAGS"; then
15087 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
15088 elif test -n "$PKG_CONFIG"; then
15089 if test -n "$PKG_CONFIG" && \
15090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
15091 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
15092 ac_status=$?
15093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15094 test $ac_status = 0; }; then
15095 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
15096 test "x$?" != "x0" && pkg_failed=yes
15097 else
15098 pkg_failed=yes
15099 fi
15100 else
15101 pkg_failed=untried
15102 fi
15103 if test -n "$GOBJECT_LIBS"; then
15104 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
15105 elif test -n "$PKG_CONFIG"; then
15106 if test -n "$PKG_CONFIG" && \
15107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
15108 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
15109 ac_status=$?
15110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15111 test $ac_status = 0; }; then
15112 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
15113 test "x$?" != "x0" && pkg_failed=yes
15114 else
15115 pkg_failed=yes
15116 fi
15117 else
15118 pkg_failed=untried
15119 fi
15120
15121
15122
15123 if test $pkg_failed = yes; then
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 printf "%s\n" "no" >&6; }
15126
15127 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15128 _pkg_short_errors_supported=yes
15129 else
15130 _pkg_short_errors_supported=no
15131 fi
15132 if test $_pkg_short_errors_supported = yes; then
15133 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
15134 else
15135 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
15136 fi
15137 # Put the nasty error message in config.log where it belongs
15138 echo "$GOBJECT_PKG_ERRORS" >&5
15139
15140 HAVE_GOBJECT=no
15141 elif test $pkg_failed = untried; then
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15143 printf "%s\n" "no" >&6; }
15144 HAVE_GOBJECT=no
15145 else
15146 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
15147 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
15148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15149 printf "%s\n" "yes" >&6; }
15150 HAVE_GOBJECT=yes
15151 fi
15152 if test "x$HAVE_GOBJECT" = "xno"; then
15153 as_fn_error $? "Must have gobject-2.0 installed" "$LINENO" 5
15154 fi
15155
15156
15157
15158
15159 # Have gdkpixbuf?
15160
15161 pkg_failed=no
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
15163 printf %s "checking for gdk-pixbuf-2.0... " >&6; }
15164
15165 if test -n "$GDKPIXBUF_CFLAGS"; then
15166 pkg_cv_GDKPIXBUF_CFLAGS="$GDKPIXBUF_CFLAGS"
15167 elif test -n "$PKG_CONFIG"; then
15168 if test -n "$PKG_CONFIG" && \
15169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
15170 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
15171 ac_status=$?
15172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15173 test $ac_status = 0; }; then
15174 pkg_cv_GDKPIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null`
15175 test "x$?" != "x0" && pkg_failed=yes
15176 else
15177 pkg_failed=yes
15178 fi
15179 else
15180 pkg_failed=untried
15181 fi
15182 if test -n "$GDKPIXBUF_LIBS"; then
15183 pkg_cv_GDKPIXBUF_LIBS="$GDKPIXBUF_LIBS"
15184 elif test -n "$PKG_CONFIG"; then
15185 if test -n "$PKG_CONFIG" && \
15186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
15187 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
15188 ac_status=$?
15189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15190 test $ac_status = 0; }; then
15191 pkg_cv_GDKPIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null`
15192 test "x$?" != "x0" && pkg_failed=yes
15193 else
15194 pkg_failed=yes
15195 fi
15196 else
15197 pkg_failed=untried
15198 fi
15199
15200
15201
15202 if test $pkg_failed = yes; then
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204 printf "%s\n" "no" >&6; }
15205
15206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15207 _pkg_short_errors_supported=yes
15208 else
15209 _pkg_short_errors_supported=no
15210 fi
15211 if test $_pkg_short_errors_supported = yes; then
15212 GDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0" 2>&1`
15213 else
15214 GDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0" 2>&1`
15215 fi
15216 # Put the nasty error message in config.log where it belongs
15217 echo "$GDKPIXBUF_PKG_ERRORS" >&5
15218
15219 HAVE_GDKPIXBUF=no
15220 elif test $pkg_failed = untried; then
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 printf "%s\n" "no" >&6; }
15223 HAVE_GDKPIXBUF=no
15224 else
15225 GDKPIXBUF_CFLAGS=$pkg_cv_GDKPIXBUF_CFLAGS
15226 GDKPIXBUF_LIBS=$pkg_cv_GDKPIXBUF_LIBS
15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15228 printf "%s\n" "yes" >&6; }
15229 HAVE_GDKPIXBUF=yes
15230 fi
15231 if test x"$HAVE_GDKPIXBUF" = "xyes"; then
15232
15233 printf "%s\n" "#define HAVE_GDKPIXBUF 1" >>confdefs.h
15234
15235 else
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Gdk-pixbuf library not present; now-playing artwork might be affected" >&5
15237 printf "%s\n" "$as_me: WARNING: Gdk-pixbuf library not present; now-playing artwork might be affected" >&2;}
15238 fi
15239
15240 if test x"$HAVE_GDKPIXBUF" = "xyes"; then
15241 USE_GDKPIXBUF_TRUE=
15242 USE_GDKPIXBUF_FALSE='#'
15243 else
15244 USE_GDKPIXBUF_TRUE='#'
15245 USE_GDKPIXBUF_FALSE=
15246 fi
15247
15248
15249
15250
15251
15252 # Have libsoup?
15253
15254 pkg_failed=no
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsoup-3.0" >&5
15256 printf %s "checking for libsoup-3.0... " >&6; }
15257
15258 if test -n "$SOUP_CFLAGS"; then
15259 pkg_cv_SOUP_CFLAGS="$SOUP_CFLAGS"
15260 elif test -n "$PKG_CONFIG"; then
15261 if test -n "$PKG_CONFIG" && \
15262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-3.0\""; } >&5
15263 ($PKG_CONFIG --exists --print-errors "libsoup-3.0") 2>&5
15264 ac_status=$?
15265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 test $ac_status = 0; }; then
15267 pkg_cv_SOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-3.0" 2>/dev/null`
15268 test "x$?" != "x0" && pkg_failed=yes
15269 else
15270 pkg_failed=yes
15271 fi
15272 else
15273 pkg_failed=untried
15274 fi
15275 if test -n "$SOUP_LIBS"; then
15276 pkg_cv_SOUP_LIBS="$SOUP_LIBS"
15277 elif test -n "$PKG_CONFIG"; then
15278 if test -n "$PKG_CONFIG" && \
15279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-3.0\""; } >&5
15280 ($PKG_CONFIG --exists --print-errors "libsoup-3.0") 2>&5
15281 ac_status=$?
15282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15283 test $ac_status = 0; }; then
15284 pkg_cv_SOUP_LIBS=`$PKG_CONFIG --libs "libsoup-3.0" 2>/dev/null`
15285 test "x$?" != "x0" && pkg_failed=yes
15286 else
15287 pkg_failed=yes
15288 fi
15289 else
15290 pkg_failed=untried
15291 fi
15292
15293
15294
15295 if test $pkg_failed = yes; then
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 printf "%s\n" "no" >&6; }
15298
15299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15300 _pkg_short_errors_supported=yes
15301 else
15302 _pkg_short_errors_supported=no
15303 fi
15304 if test $_pkg_short_errors_supported = yes; then
15305 SOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-3.0" 2>&1`
15306 else
15307 SOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-3.0" 2>&1`
15308 fi
15309 # Put the nasty error message in config.log where it belongs
15310 echo "$SOUP_PKG_ERRORS" >&5
15311
15312 HAVE_LIBSOUP=no
15313 elif test $pkg_failed = untried; then
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 printf "%s\n" "no" >&6; }
15316 HAVE_LIBSOUP=no
15317 else
15318 SOUP_CFLAGS=$pkg_cv_SOUP_CFLAGS
15319 SOUP_LIBS=$pkg_cv_SOUP_LIBS
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15321 printf "%s\n" "yes" >&6; }
15322 HAVE_LIBSOUP=yes
15323 fi
15324 if test x"$HAVE_LIBSOUP" = "xno"; then
15325 as_fn_error $? "Must have libsoup installed" "$LINENO" 5
15326 fi
15327
15328
15329
15330
15331 # Have GTK3?
15332
15333 pkg_failed=no
15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0" >&5
15335 printf %s "checking for gtk+-3.0... " >&6; }
15336
15337 if test -n "$GTK_CFLAGS"; then
15338 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15339 elif test -n "$PKG_CONFIG"; then
15340 if test -n "$PKG_CONFIG" && \
15341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
15342 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
15343 ac_status=$?
15344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15345 test $ac_status = 0; }; then
15346 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
15347 test "x$?" != "x0" && pkg_failed=yes
15348 else
15349 pkg_failed=yes
15350 fi
15351 else
15352 pkg_failed=untried
15353 fi
15354 if test -n "$GTK_LIBS"; then
15355 pkg_cv_GTK_LIBS="$GTK_LIBS"
15356 elif test -n "$PKG_CONFIG"; then
15357 if test -n "$PKG_CONFIG" && \
15358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
15359 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
15360 ac_status=$?
15361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15362 test $ac_status = 0; }; then
15363 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
15364 test "x$?" != "x0" && pkg_failed=yes
15365 else
15366 pkg_failed=yes
15367 fi
15368 else
15369 pkg_failed=untried
15370 fi
15371
15372
15373
15374 if test $pkg_failed = yes; then
15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376 printf "%s\n" "no" >&6; }
15377
15378 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15379 _pkg_short_errors_supported=yes
15380 else
15381 _pkg_short_errors_supported=no
15382 fi
15383 if test $_pkg_short_errors_supported = yes; then
15384 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
15385 else
15386 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
15387 fi
15388 # Put the nasty error message in config.log where it belongs
15389 echo "$GTK_PKG_ERRORS" >&5
15390
15391 HAVE_GTK=no
15392 elif test $pkg_failed = untried; then
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 printf "%s\n" "no" >&6; }
15395 HAVE_GTK=no
15396 else
15397 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15398 GTK_LIBS=$pkg_cv_GTK_LIBS
15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15400 printf "%s\n" "yes" >&6; }
15401 HAVE_GTK=yes
15402 fi
15403
15404
15405
15406
15407 # Have libgee?
15408
15409 pkg_failed=no
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gee-0.8" >&5
15411 printf %s "checking for gee-0.8... " >&6; }
15412
15413 if test -n "$GEE_CFLAGS"; then
15414 pkg_cv_GEE_CFLAGS="$GEE_CFLAGS"
15415 elif test -n "$PKG_CONFIG"; then
15416 if test -n "$PKG_CONFIG" && \
15417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8\""; } >&5
15418 ($PKG_CONFIG --exists --print-errors "gee-0.8") 2>&5
15419 ac_status=$?
15420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15421 test $ac_status = 0; }; then
15422 pkg_cv_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-0.8" 2>/dev/null`
15423 test "x$?" != "x0" && pkg_failed=yes
15424 else
15425 pkg_failed=yes
15426 fi
15427 else
15428 pkg_failed=untried
15429 fi
15430 if test -n "$GEE_LIBS"; then
15431 pkg_cv_GEE_LIBS="$GEE_LIBS"
15432 elif test -n "$PKG_CONFIG"; then
15433 if test -n "$PKG_CONFIG" && \
15434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8\""; } >&5
15435 ($PKG_CONFIG --exists --print-errors "gee-0.8") 2>&5
15436 ac_status=$?
15437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15438 test $ac_status = 0; }; then
15439 pkg_cv_GEE_LIBS=`$PKG_CONFIG --libs "gee-0.8" 2>/dev/null`
15440 test "x$?" != "x0" && pkg_failed=yes
15441 else
15442 pkg_failed=yes
15443 fi
15444 else
15445 pkg_failed=untried
15446 fi
15447
15448
15449
15450 if test $pkg_failed = yes; then
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 printf "%s\n" "no" >&6; }
15453
15454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15455 _pkg_short_errors_supported=yes
15456 else
15457 _pkg_short_errors_supported=no
15458 fi
15459 if test $_pkg_short_errors_supported = yes; then
15460 GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-0.8" 2>&1`
15461 else
15462 GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-0.8" 2>&1`
15463 fi
15464 # Put the nasty error message in config.log where it belongs
15465 echo "$GEE_PKG_ERRORS" >&5
15466
15467 HAVE_GEE=no
15468 elif test $pkg_failed = untried; then
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470 printf "%s\n" "no" >&6; }
15471 HAVE_GEE=no
15472 else
15473 GEE_CFLAGS=$pkg_cv_GEE_CFLAGS
15474 GEE_LIBS=$pkg_cv_GEE_LIBS
15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15476 printf "%s\n" "yes" >&6; }
15477 HAVE_GEE=yes
15478 fi
15479
15480
15481
15482
15483 # Have gstreamer-app?
15484
15485 pkg_failed=no
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-app-1.0
15487 gstreamer-plugins-base-1.0 >= 0.10.23.2" >&5
15488 printf %s "checking for gstreamer-app-1.0
15489 gstreamer-plugins-base-1.0 >= 0.10.23.2... " >&6; }
15490
15491 if test -n "$GSTREAMERAPP_CFLAGS"; then
15492 pkg_cv_GSTREAMERAPP_CFLAGS="$GSTREAMERAPP_CFLAGS"
15493 elif test -n "$PKG_CONFIG"; then
15494 if test -n "$PKG_CONFIG" && \
15495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-app-1.0
15496 gstreamer-plugins-base-1.0 >= 0.10.23.2\""; } >&5
15497 ($PKG_CONFIG --exists --print-errors "gstreamer-app-1.0
15498 gstreamer-plugins-base-1.0 >= 0.10.23.2") 2>&5
15499 ac_status=$?
15500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15501 test $ac_status = 0; }; then
15502 pkg_cv_GSTREAMERAPP_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-app-1.0
15503 gstreamer-plugins-base-1.0 >= 0.10.23.2" 2>/dev/null`
15504 test "x$?" != "x0" && pkg_failed=yes
15505 else
15506 pkg_failed=yes
15507 fi
15508 else
15509 pkg_failed=untried
15510 fi
15511 if test -n "$GSTREAMERAPP_LIBS"; then
15512 pkg_cv_GSTREAMERAPP_LIBS="$GSTREAMERAPP_LIBS"
15513 elif test -n "$PKG_CONFIG"; then
15514 if test -n "$PKG_CONFIG" && \
15515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-app-1.0
15516 gstreamer-plugins-base-1.0 >= 0.10.23.2\""; } >&5
15517 ($PKG_CONFIG --exists --print-errors "gstreamer-app-1.0
15518 gstreamer-plugins-base-1.0 >= 0.10.23.2") 2>&5
15519 ac_status=$?
15520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15521 test $ac_status = 0; }; then
15522 pkg_cv_GSTREAMERAPP_LIBS=`$PKG_CONFIG --libs "gstreamer-app-1.0
15523 gstreamer-plugins-base-1.0 >= 0.10.23.2" 2>/dev/null`
15524 test "x$?" != "x0" && pkg_failed=yes
15525 else
15526 pkg_failed=yes
15527 fi
15528 else
15529 pkg_failed=untried
15530 fi
15531
15532
15533
15534 if test $pkg_failed = yes; then
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15536 printf "%s\n" "no" >&6; }
15537
15538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15539 _pkg_short_errors_supported=yes
15540 else
15541 _pkg_short_errors_supported=no
15542 fi
15543 if test $_pkg_short_errors_supported = yes; then
15544 GSTREAMERAPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-app-1.0
15545 gstreamer-plugins-base-1.0 >= 0.10.23.2" 2>&1`
15546 else
15547 GSTREAMERAPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-app-1.0
15548 gstreamer-plugins-base-1.0 >= 0.10.23.2" 2>&1`
15549 fi
15550 # Put the nasty error message in config.log where it belongs
15551 echo "$GSTREAMERAPP_PKG_ERRORS" >&5
15552
15553 HAVE_GSTREAMERAPP=no
15554
15555 elif test $pkg_failed = untried; then
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 printf "%s\n" "no" >&6; }
15558 HAVE_GSTREAMERAPP=no
15559
15560 else
15561 GSTREAMERAPP_CFLAGS=$pkg_cv_GSTREAMERAPP_CFLAGS
15562 GSTREAMERAPP_LIBS=$pkg_cv_GSTREAMERAPP_LIBS
15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15564 printf "%s\n" "yes" >&6; }
15565 HAVE_GSTREAMERAPP=yes
15566 fi
15567
15568 if test x"$HAVE_GSTREAMERAPP" = "xyes"; then
15569
15570 printf "%s\n" "#define HAVE_GSTREAMERAPP 1" >>confdefs.h
15571
15572 GSTLIB="gstreamer-1.0 gstreamer-app-1.0"
15573
15574 else
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer app element not present; transcoding will not be supported" >&5
15576 printf "%s\n" "$as_me: WARNING: GStreamer app element not present; transcoding will not be supported" >&2;}
15577 fi
15578
15579 if test x"$HAVE_GSTREAMERAPP" = "xyes"; then
15580 USE_GSTREAMERAPP_TRUE=
15581 USE_GSTREAMERAPP_FALSE='#'
15582 else
15583 USE_GSTREAMERAPP_TRUE='#'
15584 USE_GSTREAMERAPP_FALSE=
15585 fi
15586
15587
15588
15589
15590
15591 # Have Vala compiler?
15592 # Extract the first word of "valac", so it can be a program name with args.
15593 set dummy valac; ac_word=$2
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15595 printf %s "checking for $ac_word... " >&6; }
15596 if test ${ac_cv_path_VALAC+y}
15597 then :
15598 printf %s "(cached) " >&6
15599 else case e in #(
15600 e) case $VALAC in
15601 [\\/]* | ?:[\\/]*)
15602 ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
15603 ;;
15604 *)
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15607 do
15608 IFS=$as_save_IFS
15609 case $as_dir in #(((
15610 '') as_dir=./ ;;
15611 */) ;;
15612 *) as_dir=$as_dir/ ;;
15613 esac
15614 for ac_exec_ext in '' $ac_executable_extensions; do
15615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15616 ac_cv_path_VALAC="$as_dir$ac_word$ac_exec_ext"
15617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15618 break 2
15619 fi
15620 done
15621 done
15622 IFS=$as_save_IFS
15623
15624 test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
15625 ;;
15626 esac ;;
15627 esac
15628 fi
15629 VALAC=$ac_cv_path_VALAC
15630 if test -n "$VALAC"; then
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
15632 printf "%s\n" "$VALAC" >&6; }
15633 else
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635 printf "%s\n" "no" >&6; }
15636 fi
15637
15638
15639 if test "$VALAC" != valac && test -n "0.11.4"
15640 then :
15641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $VALAC supports at least API version 0.11.4" >&5
15642 printf %s "checking whether $VALAC supports at least API version 0.11.4... " >&6; }
15643 am__vala_version=`$VALAC --api-version`
15644 as_arg_v1=0.11.4
15645 as_arg_v2="$am__vala_version"
15646 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
15647 case $? in #(
15648 1) :
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15650 printf "%s\n" "yes" >&6; } ;; #(
15651 0) :
15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15653 printf "%s\n" "yes" >&6; } ;; #(
15654 2) :
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 printf "%s\n" "no" >&6; }
15657 VALAC=valac ;; #(
15658 *) :
15659 ;;
15660 esac
15661 fi
15662 if test "$VALAC" = valac; then
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vala compiler not found or too old" >&5
15664 printf "%s\n" "$as_me: WARNING: Vala compiler not found or too old" >&2;}
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile Vala source files" >&5
15666 printf "%s\n" "$as_me: WARNING: you will not be able to compile Vala source files" >&2;}
15667 else
15668 :
15669 fi
15670 if test -x "$VALAC"; then
15671 HAVE_VALAC_TRUE=
15672 HAVE_VALAC_FALSE='#'
15673 else
15674 HAVE_VALAC_TRUE='#'
15675 HAVE_VALAC_FALSE=
15676 fi
15677
15678
15679 # Have vapigen?
15680 # Extract the first word of "vapigen", so it can be a program name with args.
15681 set dummy vapigen; ac_word=$2
15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15683 printf %s "checking for $ac_word... " >&6; }
15684 if test ${ac_cv_path_VAPIGEN+y}
15685 then :
15686 printf %s "(cached) " >&6
15687 else case e in #(
15688 e) case $VAPIGEN in
15689 [\\/]* | ?:[\\/]*)
15690 ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
15691 ;;
15692 *)
15693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 for as_dir in $PATH
15695 do
15696 IFS=$as_save_IFS
15697 case $as_dir in #(((
15698 '') as_dir=./ ;;
15699 */) ;;
15700 *) as_dir=$as_dir/ ;;
15701 esac
15702 for ac_exec_ext in '' $ac_executable_extensions; do
15703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15704 ac_cv_path_VAPIGEN="$as_dir$ac_word$ac_exec_ext"
15705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15706 break 2
15707 fi
15708 done
15709 done
15710 IFS=$as_save_IFS
15711
15712 ;;
15713 esac ;;
15714 esac
15715 fi
15716 VAPIGEN=$ac_cv_path_VAPIGEN
15717 if test -n "$VAPIGEN"; then
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
15719 printf "%s\n" "$VAPIGEN" >&6; }
15720 else
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15722 printf "%s\n" "no" >&6; }
15723 fi
15724
15725
15726 if test -n "$VAPIGEN" -a xyes = x"$found_introspection"; then
15727 BUILD_VAPI_TRUE=
15728 BUILD_VAPI_FALSE='#'
15729 else
15730 BUILD_VAPI_TRUE='#'
15731 BUILD_VAPI_FALSE=
15732 fi
15733
15734 if ! test -n "$VAPIGEN" -a xyes = x"$found_introspection"; then
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Will not build vapi" >&5
15736 printf "%s\n" "$as_me: WARNING: Will not build vapi" >&2;}
15737 fi
15738
15739 if test -x "$VALAC" -a "x$HAVE_GEE" = "xyes"; then
15740 BUILD_VALATESTS_TRUE=
15741 BUILD_VALATESTS_FALSE='#'
15742 else
15743 BUILD_VALATESTS_TRUE='#'
15744 BUILD_VALATESTS_FALSE=
15745 fi
15746
15747 if test -n "$BUILD_VALATESTS" ; then
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Will not build Vala tests" >&5
15749 printf "%s\n" "$as_me: WARNING: Will not build Vala tests" >&2;}
15750 fi
15751
15752 if test -x "$VALAC" -a "x$HAVE_GEE" = "xyes" -a "x$HAVE_GTK" = "xyes"; then
15753 BUILD_DPAPVIEW_TRUE=
15754 BUILD_DPAPVIEW_FALSE='#'
15755 else
15756 BUILD_DPAPVIEW_TRUE='#'
15757 BUILD_DPAPVIEW_FALSE=
15758 fi
15759
15760 if test -n "$BUILD_DPAPVIEW" ; then
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Will not build dpapview" >&5
15762 printf "%s\n" "$as_me: WARNING: Will not build dpapview" >&2;}
15763 fi
15764
15765 if test x${as_cv_unaligned_access} = xyes ; then
15766 DMAP_HAVE_UNALIGNED_ACCESS_DEFINE="#define DMAP_HAVE_UNALIGNED_ACCESS 1"
15767 else
15768 DMAP_HAVE_UNALIGNED_ACCESS_DEFINE="#define DMAP_HAVE_UNALIGNED_ACCESS 0"
15769 fi
15770
15771
15772 # Select mDNS library.
15773
15774 # Check whether --with-mdns was given.
15775 if test ${with_mdns+y}
15776 then :
15777 withval=$with_mdns; WITH_MDNS=$withval
15778 else case e in #(
15779 e) WITH_MDNS=auto
15780 ;;
15781 esac
15782 fi
15783
15784
15785 HAVE_AVAHI=no
15786 HAVE_DNS_SD=no # Apple's DNSSD library.
15787 USE_AVAHI=no
15788 USE_DNS_SD=no
15789
15790 if test x"$WITH_MDNS" = xauto || test x"$WITH_MDNS" = xavahi; then
15791
15792 pkg_failed=no
15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avahi-client >= 0.6
15794 avahi-glib >= 0.6" >&5
15795 printf %s "checking for avahi-client >= 0.6
15796 avahi-glib >= 0.6... " >&6; }
15797
15798 if test -n "$AVAHI_CFLAGS"; then
15799 pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
15800 elif test -n "$PKG_CONFIG"; then
15801 if test -n "$PKG_CONFIG" && \
15802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6
15803 avahi-glib >= 0.6\""; } >&5
15804 ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6
15805 avahi-glib >= 0.6") 2>&5
15806 ac_status=$?
15807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15808 test $ac_status = 0; }; then
15809 pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client >= 0.6
15810 avahi-glib >= 0.6" 2>/dev/null`
15811 test "x$?" != "x0" && pkg_failed=yes
15812 else
15813 pkg_failed=yes
15814 fi
15815 else
15816 pkg_failed=untried
15817 fi
15818 if test -n "$AVAHI_LIBS"; then
15819 pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
15820 elif test -n "$PKG_CONFIG"; then
15821 if test -n "$PKG_CONFIG" && \
15822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6
15823 avahi-glib >= 0.6\""; } >&5
15824 ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6
15825 avahi-glib >= 0.6") 2>&5
15826 ac_status=$?
15827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15828 test $ac_status = 0; }; then
15829 pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client >= 0.6
15830 avahi-glib >= 0.6" 2>/dev/null`
15831 test "x$?" != "x0" && pkg_failed=yes
15832 else
15833 pkg_failed=yes
15834 fi
15835 else
15836 pkg_failed=untried
15837 fi
15838
15839
15840
15841 if test $pkg_failed = yes; then
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 printf "%s\n" "no" >&6; }
15844
15845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15846 _pkg_short_errors_supported=yes
15847 else
15848 _pkg_short_errors_supported=no
15849 fi
15850 if test $_pkg_short_errors_supported = yes; then
15851 AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client >= 0.6
15852 avahi-glib >= 0.6" 2>&1`
15853 else
15854 AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client >= 0.6
15855 avahi-glib >= 0.6" 2>&1`
15856 fi
15857 # Put the nasty error message in config.log where it belongs
15858 echo "$AVAHI_PKG_ERRORS" >&5
15859
15860 HAVE_AVAHI=no
15861
15862 elif test $pkg_failed = untried; then
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 printf "%s\n" "no" >&6; }
15865 HAVE_AVAHI=no
15866
15867 else
15868 AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
15869 AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15871 printf "%s\n" "yes" >&6; }
15872 HAVE_AVAHI=yes
15873 fi
15874 fi
15875
15876 if test x"$HAVE_AVAHI" = xno; then
15877 if test x"$WITH_MDNS" = xauto || test x"$WITH_MDNS" = xdns_sd; then
15878 for ac_header in dns_sd.h
15879 do :
15880 ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
15881 if test "x$ac_cv_header_dns_sd_h" = xyes
15882 then :
15883 printf "%s\n" "#define HAVE_DNS_SD_H 1" >>confdefs.h
15884 HAVE_DNS_SD=yes
15885 fi
15886
15887 done
15888 if test x"$HAVE_DNS_SD" = xyes; then
15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
15890 printf %s "checking for DNSServiceRegister in -ldns_sd... " >&6; }
15891 if test ${ac_cv_lib_dns_sd_DNSServiceRegister+y}
15892 then :
15893 printf %s "(cached) " >&6
15894 else case e in #(
15895 e) ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-ldns_sd $LIBS"
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899
15900 /* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply.
15903 The 'extern "C"' is for builds by C++ compilers;
15904 although this is not generally supported in C code supporting it here
15905 has little cost and some practical benefit (sr 110532). */
15906 #ifdef __cplusplus
15907 extern "C"
15908 #endif
15909 char DNSServiceRegister (void);
15910 int
15911 main (void)
15912 {
15913 return DNSServiceRegister ();
15914 ;
15915 return 0;
15916 }
15917 _ACEOF
15918 if ac_fn_c_try_link "$LINENO"
15919 then :
15920 ac_cv_lib_dns_sd_DNSServiceRegister=yes
15921 else case e in #(
15922 e) ac_cv_lib_dns_sd_DNSServiceRegister=no ;;
15923 esac
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15926 conftest$ac_exeext conftest.$ac_ext
15927 LIBS=$ac_check_lib_save_LIBS ;;
15928 esac
15929 fi
15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
15931 printf "%s\n" "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
15932 if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes
15933 then :
15934 DNS_SD_LIBS="-ldns_sd"
15935 fi
15936
15937 fi
15938 fi
15939 fi
15940
15941 if test x"$WITH_MDNS" = xauto; then
15942 if test x"$HAVE_AVAHI" = xyes; then
15943 MDNS_CFLAGS=$AVAHI_CFLAGS
15944 MDNS_LIBS=$AVAHI_LIBS
15945 USE_AVAHI=yes
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected Avahi; using it for mDNS/DNS-SD" >&5
15947 printf "%s\n" "$as_me: Detected Avahi; using it for mDNS/DNS-SD" >&6;}
15948 elif test x"$HAVE_DNS_SD" = xyes; then
15949 MDNS_CFLAGS=$DNS_SD_CFLAGS
15950 MDNS_LIBS=$DNS_SD_LIBS
15951 USE_DNS_SD=yes
15952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected Apple's DNSSD; using it for mDNS/DNS-SD" >&5
15953 printf "%s\n" "$as_me: Detected Apple's DNSSD; using it for mDNS/DNS-SD" >&6;}
15954 else
15955 as_fn_error $? "Must have avahi or dns_sd.h development files installed" "$LINENO" 5
15956 fi
15957 elif test x"$WITH_MDNS" = xavahi; then
15958 if test x"$HAVE_AVAHI" = xno; then
15959 as_fn_error $? "Avahi explicitly requested but not found. Install Avahi, or try --with-mdns=dns_sd" "$LINENO" 5
15960 fi
15961
15962 MDNS_CFLAGS=$AVAHI_CFLAGS
15963 MDNS_LIBS=$AVAHI_LIBS
15964 USE_AVAHI=yes
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using Avahi for mDNS/DNS-SD" >&5
15966 printf "%s\n" "$as_me: Using Avahi for mDNS/DNS-SD" >&6;}
15967 elif test x"$WITH_MDNS" = xdns_sd; then
15968 if test x"$HAVE_DNS_SD" = xno; then
15969 as_fn_error $? "Apple DNSSD explicitly requested but not found. Install Apple DNSSD, or try --with-mdns=avahi" "$LINENO" 5
15970 fi
15971
15972 MDNS_CFLAGS=$DNS_SD_CFLAGS
15973 MDNS_LIBS=$DNS_SD_LIBS
15974 USE_DNS_SD=yes
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using Apple's DNSSD for mDNS/DNS-SD" >&5
15976 printf "%s\n" "$as_me: Using Apple's DNSSD for mDNS/DNS-SD" >&6;}
15977 fi
15978
15979 if test "x$USE_AVAHI" = "xyes"; then
15980 USE_AVAHI_TRUE=
15981 USE_AVAHI_FALSE='#'
15982 else
15983 USE_AVAHI_TRUE='#'
15984 USE_AVAHI_FALSE=
15985 fi
15986
15987 if test "x$USE_DNS_SD" = "xyes"; then
15988 USE_DNS_SD_TRUE=
15989 USE_DNS_SD_FALSE='#'
15990 else
15991 USE_DNS_SD_TRUE='#'
15992 USE_DNS_SD_FALSE=
15993 fi
15994
15995
15996
15997
15998
15999 # Enable silent build when available (Automake 1.11)
16000 AM_DEFAULT_VERBOSITY=1
16001 # Check whether --enable-silent-rules was given.
16002 if test ${enable_silent_rules+y}
16003 then :
16004 enableval=$enable_silent_rules;
16005 fi
16006
16007 am_make=${MAKE-make}
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16009 printf %s "checking whether $am_make supports nested variables... " >&6; }
16010 if test ${am_cv_make_support_nested_variables+y}
16011 then :
16012 printf %s "(cached) " >&6
16013 else case e in #(
16014 e) if printf "%s\n" 'TRUE=$(BAR$(V))
16015 BAR0=false
16016 BAR1=true
16017 V=1
16018 am__doit:
16019 @$(TRUE)
16020 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16021 am_cv_make_support_nested_variables=yes
16022 else
16023 am_cv_make_support_nested_variables=no
16024 fi ;;
16025 esac
16026 fi
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16028 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
16029 AM_BACKSLASH='\'
16030
16031
16032 AM_DEFAULT_VERBOSITY=0
16033
16034
16035
16036 am__api_version='1.18'
16037
16038
16039 # Find a good install program. We prefer a C program (faster),
16040 # so one script is as good as another. But avoid the broken or
16041 # incompatible versions:
16042 # SysV /etc/install, /usr/sbin/install
16043 # SunOS /usr/etc/install
16044 # IRIX /sbin/install
16045 # AIX /bin/install
16046 # AmigaOS /C/install, which installs bootblocks on floppy discs
16047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16050 # OS/2's system install, which has a completely different semantic
16051 # ./install, which can be erroneously created by make from ./install.sh.
16052 # Reject install programs that cannot install multiple files.
16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
16054 printf %s "checking for a BSD-compatible install... " >&6; }
16055 if test -z "$INSTALL"; then
16056 if test ${ac_cv_path_install+y}
16057 then :
16058 printf %s "(cached) " >&6
16059 else case e in #(
16060 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16061 for as_dir in $PATH
16062 do
16063 IFS=$as_save_IFS
16064 case $as_dir in #(((
16065 '') as_dir=./ ;;
16066 */) ;;
16067 *) as_dir=$as_dir/ ;;
16068 esac
16069 # Account for fact that we put trailing slashes in our PATH walk.
16070 case $as_dir in #((
16071 ./ | /[cC]/* | \
16072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16073 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
16074 /usr/ucb/* ) ;;
16075 *)
16076 # OSF1 and SCO ODT 3.0 have their own names for install.
16077 # Don't use installbsd from OSF since it installs stuff as root
16078 # by default.
16079 for ac_prog in ginstall scoinst install; do
16080 for ac_exec_ext in '' $ac_executable_extensions; do
16081 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
16082 if test $ac_prog = install &&
16083 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16084 # AIX install. It has an incompatible calling convention.
16085 :
16086 elif test $ac_prog = install &&
16087 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16088 # program-specific install script used by HP pwplus--don't use.
16089 :
16090 else
16091 rm -rf conftest.one conftest.two conftest.dir
16092 echo one > conftest.one
16093 echo two > conftest.two
16094 mkdir conftest.dir
16095 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
16096 test -s conftest.one && test -s conftest.two &&
16097 test -s conftest.dir/conftest.one &&
16098 test -s conftest.dir/conftest.two
16099 then
16100 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
16101 break 3
16102 fi
16103 fi
16104 fi
16105 done
16106 done
16107 ;;
16108 esac
16109
16110 done
16111 IFS=$as_save_IFS
16112
16113 rm -rf conftest.one conftest.two conftest.dir
16114 ;;
16115 esac
16116 fi
16117 if test ${ac_cv_path_install+y}; then
16118 INSTALL=$ac_cv_path_install
16119 else
16120 # As a last resort, use the slow shell script. Don't cache a
16121 # value for INSTALL within a source directory, because that will
16122 # break other packages using the cache if that directory is
16123 # removed, or if the value is a relative name.
16124 INSTALL=$ac_install_sh
16125 fi
16126 fi
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16128 printf "%s\n" "$INSTALL" >&6; }
16129
16130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16131 # It thinks the first close brace ends the variable substitution.
16132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16133
16134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16135
16136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16137
16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
16139 printf %s "checking whether sleep supports fractional seconds... " >&6; }
16140 if test ${am_cv_sleep_fractional_seconds+y}
16141 then :
16142 printf %s "(cached) " >&6
16143 else case e in #(
16144 e) if sleep 0.001 2>/dev/null
16145 then :
16146 am_cv_sleep_fractional_seconds=yes
16147 else case e in #(
16148 e) am_cv_sleep_fractional_seconds=no ;;
16149 esac
16150 fi
16151 ;;
16152 esac
16153 fi
16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
16155 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
16156
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
16158 printf %s "checking filesystem timestamp resolution... " >&6; }
16159 if test ${am_cv_filesystem_timestamp_resolution+y}
16160 then :
16161 printf %s "(cached) " >&6
16162 else case e in #(
16163 e) # Default to the worst case.
16164 am_cv_filesystem_timestamp_resolution=2
16165
16166 # Only try to go finer than 1 sec if sleep can do it.
16167 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
16168 # - 1 sec is not much of a win compared to 2 sec, and
16169 # - it takes 2 seconds to perform the test whether 1 sec works.
16170 #
16171 # Instead, just use the default 2s on platforms that have 1s resolution,
16172 # accept the extra 1s delay when using $sleep in the Automake tests, in
16173 # exchange for not incurring the 2s delay for running the test for all
16174 # packages.
16175 #
16176 am_try_resolutions=
16177 if test "$am_cv_sleep_fractional_seconds" = yes; then
16178 # Even a millisecond often causes a bunch of false positives,
16179 # so just try a hundredth of a second. The time saved between .001 and
16180 # .01 is not terribly consequential.
16181 am_try_resolutions="0.01 0.1 $am_try_resolutions"
16182 fi
16183
16184 # In order to catch current-generation FAT out, we must *modify* files
16185 # that already exist; the *creation* timestamp is finer. Use names
16186 # that make ls -t sort them differently when they have equal
16187 # timestamps than when they have distinct timestamps, keeping
16188 # in mind that ls -t prints the *newest* file first.
16189 rm -f conftest.ts?
16190 : > conftest.ts1
16191 : > conftest.ts2
16192 : > conftest.ts3
16193
16194 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
16195 # clobber the current shell's arguments. (Outer-level square brackets
16196 # are removed by m4; they're present so that m4 does not expand
16197 # <dollar><star>; be careful, easy to get confused.)
16198 if (
16199 set X `ls -t conftest.ts[12]` &&
16200 {
16201 test "$*" != "X conftest.ts1 conftest.ts2" ||
16202 test "$*" != "X conftest.ts2 conftest.ts1";
16203 }
16204 ); then :; else
16205 # If neither matched, then we have a broken ls. This can happen
16206 # if, for instance, CONFIG_SHELL is bash and it inherits a
16207 # broken ls alias from the environment. This has actually
16208 # happened. Such a system could not be considered "sane".
16209 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
16210 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16211 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16212 as_fn_error $? "ls -t produces unexpected output.
16213 Make sure there is not a broken ls alias in your environment.
16214 See 'config.log' for more details" "$LINENO" 5; }
16215 fi
16216
16217 for am_try_res in $am_try_resolutions; do
16218 # Any one fine-grained sleep might happen to cross the boundary
16219 # between two values of a coarser actual resolution, but if we do
16220 # two fine-grained sleeps in a row, at least one of them will fall
16221 # entirely within a coarse interval.
16222 echo alpha > conftest.ts1
16223 sleep $am_try_res
16224 echo beta > conftest.ts2
16225 sleep $am_try_res
16226 echo gamma > conftest.ts3
16227
16228 # We assume that 'ls -t' will make use of high-resolution
16229 # timestamps if the operating system supports them at all.
16230 if (set X `ls -t conftest.ts?` &&
16231 test "$2" = conftest.ts3 &&
16232 test "$3" = conftest.ts2 &&
16233 test "$4" = conftest.ts1); then
16234 #
16235 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
16236 # because we don't need to test make.
16237 make_ok=true
16238 if test $am_try_res != 1; then
16239 # But if we've succeeded so far with a subsecond resolution, we
16240 # have one more thing to check: make. It can happen that
16241 # everything else supports the subsecond mtimes, but make doesn't;
16242 # notably on macOS, which ships make 3.81 from 2006 (the last one
16243 # released under GPLv2). https://bugs.gnu.org/68808
16244 #
16245 # We test $MAKE if it is defined in the environment, else "make".
16246 # It might get overridden later, but our hope is that in practice
16247 # it does not matter: it is the system "make" which is (by far)
16248 # the most likely to be broken, whereas if the user overrides it,
16249 # probably they did so with a better, or at least not worse, make.
16250 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
16251 #
16252 # Create a Makefile (real tab character here):
16253 rm -f conftest.mk
16254 echo 'conftest.ts1: conftest.ts2' >conftest.mk
16255 echo ' touch conftest.ts2' >>conftest.mk
16256 #
16257 # Now, running
16258 # touch conftest.ts1; touch conftest.ts2; make
16259 # should touch ts1 because ts2 is newer. This could happen by luck,
16260 # but most often, it will fail if make's support is insufficient. So
16261 # test for several consecutive successes.
16262 #
16263 # (We reuse conftest.ts[12] because we still want to modify existing
16264 # files, not create new ones, per above.)
16265 n=0
16266 make=${MAKE-make}
16267 until test $n -eq 3; do
16268 echo one > conftest.ts1
16269 sleep $am_try_res
16270 echo two > conftest.ts2 # ts2 should now be newer than ts1
16271 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
16272 make_ok=false
16273 break # out of $n loop
16274 fi
16275 n=`expr $n + 1`
16276 done
16277 fi
16278 #
16279 if $make_ok; then
16280 # Everything we know to check worked out, so call this resolution good.
16281 am_cv_filesystem_timestamp_resolution=$am_try_res
16282 break # out of $am_try_res loop
16283 fi
16284 # Otherwise, we'll go on to check the next resolution.
16285 fi
16286 done
16287 rm -f conftest.ts?
16288 # (end _am_filesystem_timestamp_resolution)
16289 ;;
16290 esac
16291 fi
16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
16293 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
16294
16295 # This check should not be cached, as it may vary across builds of
16296 # different projects.
16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16298 printf %s "checking whether build environment is sane... " >&6; }
16299 # Reject unsafe characters in $srcdir or the absolute working directory
16300 # name. Accept space and tab only in the latter.
16301 am_lf='
16302 '
16303 case `pwd` in
16304 *[\\\"\#\$\&\'\`$am_lf]*)
16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16306 printf "%s\n" "no" >&6; }
16307 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
16308 esac
16309 case $srcdir in
16310 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 printf "%s\n" "no" >&6; }
16313 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
16314 esac
16315
16316 # Do 'set' in a subshell so we don't clobber the current shell's
16317 # arguments. Must try -L first in case configure is actually a
16318 # symlink; some systems play weird games with the mod time of symlinks
16319 # (eg FreeBSD returns the mod time of the symlink's containing
16320 # directory).
16321 am_build_env_is_sane=no
16322 am_has_slept=no
16323 rm -f conftest.file
16324 for am_try in 1 2; do
16325 echo "timestamp, slept: $am_has_slept" > conftest.file
16326 if (
16327 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16328 if test "$*" = "X"; then
16329 # -L didn't work.
16330 set X `ls -t "$srcdir/configure" conftest.file`
16331 fi
16332 test "$2" = conftest.file
16333 ); then
16334 am_build_env_is_sane=yes
16335 break
16336 fi
16337 # Just in case.
16338 sleep "$am_cv_filesystem_timestamp_resolution"
16339 am_has_slept=yes
16340 done
16341
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
16343 printf "%s\n" "$am_build_env_is_sane" >&6; }
16344 if test "$am_build_env_is_sane" = no; then
16345 as_fn_error $? "newly created file is older than distributed files!
16346 Check your system clock" "$LINENO" 5
16347 fi
16348
16349 # If we didn't sleep, we still need to ensure time stamps of config.status and
16350 # generated files are strictly newer.
16351 am_sleep_pid=
16352 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
16353 then :
16354
16355 else case e in #(
16356 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
16357 am_sleep_pid=$!
16358 ;;
16359 esac
16360 fi
16361
16362 rm -f conftest.file
16363
16364 test "$program_prefix" != NONE &&
16365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16366 # Use a double $ so make ignores it.
16367 test "$program_suffix" != NONE &&
16368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
16369 # Double any \ or $.
16370 # By default was 's,x,x', remove it if useless.
16371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16372 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
16373
16374
16375 if test x"${MISSING+set}" != xset; then
16376 MISSING="\${SHELL} '$am_aux_dir/missing'"
16377 fi
16378 # Use eval to expand $SHELL
16379 if eval "$MISSING --is-lightweight"; then
16380 am_missing_run="$MISSING "
16381 else
16382 am_missing_run=
16383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
16384 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
16385 fi
16386
16387 if test x"${install_sh+set}" != xset; then
16388 case $am_aux_dir in
16389 *\ * | *\ *)
16390 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16391 *)
16392 install_sh="\${SHELL} $am_aux_dir/install-sh"
16393 esac
16394 fi
16395
16396 # Installed binaries are usually stripped using 'strip' when the user
16397 # run "make install-strip". However 'strip' might not be the right
16398 # tool to use in cross-compilation environments, therefore Automake
16399 # will honor the 'STRIP' environment variable to overrule this program.
16400 if test "$cross_compiling" != no; then
16401 if test -n "$ac_tool_prefix"; then
16402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16403 set dummy ${ac_tool_prefix}strip; ac_word=$2
16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16405 printf %s "checking for $ac_word... " >&6; }
16406 if test ${ac_cv_prog_STRIP+y}
16407 then :
16408 printf %s "(cached) " >&6
16409 else case e in #(
16410 e) if test -n "$STRIP"; then
16411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16412 else
16413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16414 for as_dir in $PATH
16415 do
16416 IFS=$as_save_IFS
16417 case $as_dir in #(((
16418 '') as_dir=./ ;;
16419 */) ;;
16420 *) as_dir=$as_dir/ ;;
16421 esac
16422 for ac_exec_ext in '' $ac_executable_extensions; do
16423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16426 break 2
16427 fi
16428 done
16429 done
16430 IFS=$as_save_IFS
16431
16432 fi ;;
16433 esac
16434 fi
16435 STRIP=$ac_cv_prog_STRIP
16436 if test -n "$STRIP"; then
16437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16438 printf "%s\n" "$STRIP" >&6; }
16439 else
16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16441 printf "%s\n" "no" >&6; }
16442 fi
16443
16444
16445 fi
16446 if test -z "$ac_cv_prog_STRIP"; then
16447 ac_ct_STRIP=$STRIP
16448 # Extract the first word of "strip", so it can be a program name with args.
16449 set dummy strip; ac_word=$2
16450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16451 printf %s "checking for $ac_word... " >&6; }
16452 if test ${ac_cv_prog_ac_ct_STRIP+y}
16453 then :
16454 printf %s "(cached) " >&6
16455 else case e in #(
16456 e) if test -n "$ac_ct_STRIP"; then
16457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16458 else
16459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16460 for as_dir in $PATH
16461 do
16462 IFS=$as_save_IFS
16463 case $as_dir in #(((
16464 '') as_dir=./ ;;
16465 */) ;;
16466 *) as_dir=$as_dir/ ;;
16467 esac
16468 for ac_exec_ext in '' $ac_executable_extensions; do
16469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16470 ac_cv_prog_ac_ct_STRIP="strip"
16471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16472 break 2
16473 fi
16474 done
16475 done
16476 IFS=$as_save_IFS
16477
16478 fi ;;
16479 esac
16480 fi
16481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16482 if test -n "$ac_ct_STRIP"; then
16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16484 printf "%s\n" "$ac_ct_STRIP" >&6; }
16485 else
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487 printf "%s\n" "no" >&6; }
16488 fi
16489
16490 if test "x$ac_ct_STRIP" = x; then
16491 STRIP=":"
16492 else
16493 case $cross_compiling:$ac_tool_warned in
16494 yes:)
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16497 ac_tool_warned=yes ;;
16498 esac
16499 STRIP=$ac_ct_STRIP
16500 fi
16501 else
16502 STRIP="$ac_cv_prog_STRIP"
16503 fi
16504
16505 fi
16506 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16507
16508
16509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
16510 printf %s "checking for a race-free mkdir -p... " >&6; }
16511 if test -z "$MKDIR_P"; then
16512 if test ${ac_cv_path_mkdir+y}
16513 then :
16514 printf %s "(cached) " >&6
16515 else case e in #(
16516 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16517 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16518 do
16519 IFS=$as_save_IFS
16520 case $as_dir in #(((
16521 '') as_dir=./ ;;
16522 */) ;;
16523 *) as_dir=$as_dir/ ;;
16524 esac
16525 for ac_prog in mkdir gmkdir; do
16526 for ac_exec_ext in '' $ac_executable_extensions; do
16527 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
16528 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
16529 'mkdir ('*'coreutils) '* | \
16530 *'BusyBox '* | \
16531 'mkdir (fileutils) '4.1*)
16532 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
16533 break 3;;
16534 esac
16535 done
16536 done
16537 done
16538 IFS=$as_save_IFS
16539 ;;
16540 esac
16541 fi
16542
16543 test -d ./--version && rmdir ./--version
16544 if test ${ac_cv_path_mkdir+y}; then
16545 MKDIR_P="$ac_cv_path_mkdir -p"
16546 else
16547 # As a last resort, use plain mkdir -p,
16548 # in the hope it doesn't have the bugs of ancient mkdir.
16549 MKDIR_P='mkdir -p'
16550 fi
16551 fi
16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
16553 printf "%s\n" "$MKDIR_P" >&6; }
16554
16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16556 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16557 set x ${MAKE-make}
16558 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16559 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
16560 then :
16561 printf %s "(cached) " >&6
16562 else case e in #(
16563 e) cat >conftest.make <<\_ACEOF
16564 SHELL = /bin/sh
16565 all:
16566 @echo '@@@%%%=$(MAKE)=@@@%%%'
16567 _ACEOF
16568 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16569 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16570 *@@@%%%=?*=@@@%%%*)
16571 eval ac_cv_prog_make_${ac_make}_set=yes;;
16572 *)
16573 eval ac_cv_prog_make_${ac_make}_set=no;;
16574 esac
16575 rm -f conftest.make ;;
16576 esac
16577 fi
16578 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16580 printf "%s\n" "yes" >&6; }
16581 SET_MAKE=
16582 else
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 printf "%s\n" "no" >&6; }
16585 SET_MAKE="MAKE=${MAKE-make}"
16586 fi
16587
16588 rm -rf .tst 2>/dev/null
16589 mkdir .tst 2>/dev/null
16590 if test -d .tst; then
16591 am__leading_dot=.
16592 else
16593 am__leading_dot=_
16594 fi
16595 rmdir .tst 2>/dev/null
16596
16597 DEPDIR="${am__leading_dot}deps"
16598
16599 ac_config_commands="$ac_config_commands depfiles"
16600
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
16602 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
16603 cat > confinc.mk << 'END'
16604 am__doit:
16605 @echo this is the am__doit target >confinc.out
16606 .PHONY: am__doit
16607 END
16608 am__include="#"
16609 am__quote=
16610 # BSD make does it like this.
16611 echo '.include "confinc.mk" # ignored' > confmf.BSD
16612 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
16613 echo 'include confinc.mk # ignored' > confmf.GNU
16614 _am_result=no
16615 for s in GNU BSD; do
16616 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
16617 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }
16621 case $?:`cat confinc.out 2>/dev/null` in #(
16622 '0:this is the am__doit target') :
16623 case $s in #(
16624 BSD) :
16625 am__include='.include' am__quote='"' ;; #(
16626 *) :
16627 am__include='include' am__quote='' ;;
16628 esac ;; #(
16629 *) :
16630 ;;
16631 esac
16632 if test "$am__include" != "#"; then
16633 _am_result="yes ($s style)"
16634 break
16635 fi
16636 done
16637 rm -f confinc.* confmf.*
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
16639 printf "%s\n" "${_am_result}" >&6; }
16640
16641 # Check whether --enable-dependency-tracking was given.
16642 if test ${enable_dependency_tracking+y}
16643 then :
16644 enableval=$enable_dependency_tracking;
16645 fi
16646
16647 if test "x$enable_dependency_tracking" != xno; then
16648 am_depcomp="$ac_aux_dir/depcomp"
16649 AMDEPBACKSLASH='\'
16650 am__nodep='_no'
16651 fi
16652 if test "x$enable_dependency_tracking" != xno; then
16653 AMDEP_TRUE=
16654 AMDEP_FALSE='#'
16655 else
16656 AMDEP_TRUE='#'
16657 AMDEP_FALSE=
16658 fi
16659
16660
16661 am__rm_f_notfound=
16662 if (rm -f && rm -fr && rm -rf) 2>/dev/null
16663 then :
16664
16665 else case e in #(
16666 e) am__rm_f_notfound='""' ;;
16667 esac
16668 fi
16669
16670
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
16672 printf %s "checking xargs -n works... " >&6; }
16673 if test ${am_cv_xargs_n_works+y}
16674 then :
16675 printf %s "(cached) " >&6
16676 else case e in #(
16677 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
16678 3"
16679 then :
16680 am_cv_xargs_n_works=yes
16681 else case e in #(
16682 e) am_cv_xargs_n_works=no ;;
16683 esac
16684 fi ;;
16685 esac
16686 fi
16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
16688 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
16689 if test "$am_cv_xargs_n_works" = yes
16690 then :
16691 am__xargs_n='xargs -n'
16692 else case e in #(
16693 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
16694 ;;
16695 esac
16696 fi
16697
16698 if test "`cd $srcdir && pwd`" != "`pwd`"; then
16699 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16700 # is not polluted with repeated "-I."
16701 am__isrc=' -I$(srcdir)'
16702 # test to see if srcdir already configured
16703 if test -f $srcdir/config.status; then
16704 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16705 fi
16706 fi
16707
16708 # test whether we have cygpath
16709 if test -z "$CYGPATH_W"; then
16710 if (cygpath --version) >/dev/null 2>/dev/null; then
16711 CYGPATH_W='cygpath -w'
16712 else
16713 CYGPATH_W=echo
16714 fi
16715 fi
16716
16717
16718 # Define the identity of the package.
16719 PACKAGE='libdmapsharing'
16720 VERSION='3.9.14'
16721
16722
16723 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
16724
16725
16726 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
16727
16728 # Some tools Automake needs.
16729
16730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16731
16732
16733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16734
16735
16736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16737
16738
16739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16740
16741
16742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16743
16744 # For better backward compatibility. To be removed once Automake 1.9.x
16745 # dies out for good. For more background, see:
16746 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16747 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16748 mkdir_p='$(MKDIR_P)'
16749
16750 # We need awk for the "check" target (and possibly the TAP driver). The
16751 # system "awk" is bad on some platforms.
16752 # Always define AMTAR for backward compatibility. Yes, it's still used
16753 # in the wild :-( We should find a proper way to deprecate it ...
16754 AMTAR='$${TAR-tar}'
16755
16756
16757 # We'll loop over all known methods to create a tar archive until one works.
16758 _am_tools='gnutar plaintar pax cpio none'
16759
16760 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
16761 # There is notably a 21 bits limit for the UID and the GID. In fact,
16762 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
16763 # and bug#13588).
16764 am_max_uid=2097151 # 2^21 - 1
16765 am_max_gid=$am_max_uid
16766 # The $UID and $GID variables are not portable, so we need to resort
16767 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
16768 # below are definitely unexpected, so allow the users to see them
16769 # (that is, avoid stderr redirection).
16770 am_uid=`id -u || echo unknown`
16771 am_gid=`id -g || echo unknown`
16772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
16773 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
16774 if test x$am_uid = xunknown; then
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
16776 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
16777 elif test $am_uid -le $am_max_uid; then
16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16779 printf "%s\n" "yes" >&6; }
16780 else
16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 printf "%s\n" "no" >&6; }
16783 _am_tools=none
16784 fi
16785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
16786 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
16787 if test x$gm_gid = xunknown; then
16788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
16789 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
16790 elif test $am_gid -le $am_max_gid; then
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792 printf "%s\n" "yes" >&6; }
16793 else
16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16795 printf "%s\n" "no" >&6; }
16796 _am_tools=none
16797 fi
16798
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
16800 printf %s "checking how to create a ustar tar archive... " >&6; }
16801
16802 # Go ahead even if we have the value already cached. We do so because we
16803 # need to set the values for the 'am__tar' and 'am__untar' variables.
16804 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
16805
16806 for _am_tool in $_am_tools; do
16807 case $_am_tool in
16808 gnutar)
16809 for _am_tar in tar gnutar gtar; do
16810 { echo "$as_me:$LINENO: $_am_tar --version" >&5
16811 ($_am_tar --version) >&5 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && break
16815 done
16816 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
16817 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
16818 am__untar="$_am_tar -xf -"
16819 ;;
16820 plaintar)
16821 # Must skip GNU tar: if it does not support --format= it doesn't create
16822 # ustar tarball either.
16823 (tar --version) >/dev/null 2>&1 && continue
16824 am__tar='tar chf - "$$tardir"'
16825 am__tar_='tar chf - "$tardir"'
16826 am__untar='tar xf -'
16827 ;;
16828 pax)
16829 am__tar='pax -L -x ustar -w "$$tardir"'
16830 am__tar_='pax -L -x ustar -w "$tardir"'
16831 am__untar='pax -r'
16832 ;;
16833 cpio)
16834 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
16835 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
16836 am__untar='cpio -i -H ustar -d'
16837 ;;
16838 none)
16839 am__tar=false
16840 am__tar_=false
16841 am__untar=false
16842 ;;
16843 esac
16844
16845 # If the value was cached, stop now. We just wanted to have am__tar
16846 # and am__untar set.
16847 test -n "${am_cv_prog_tar_ustar}" && break
16848
16849 # tar/untar a dummy directory, and stop if the command works.
16850 rm -rf conftest.dir
16851 mkdir conftest.dir
16852 echo GrepMe > conftest.dir/file
16853 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
16854 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }
16858 rm -rf conftest.dir
16859 if test -s conftest.tar; then
16860 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
16861 ($am__untar <conftest.tar) >&5 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }
16865 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
16866 (cat conftest.dir/file) >&5 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }
16870 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
16871 fi
16872 done
16873 rm -rf conftest.dir
16874
16875 if test ${am_cv_prog_tar_ustar+y}
16876 then :
16877 printf %s "(cached) " >&6
16878 else case e in #(
16879 e) am_cv_prog_tar_ustar=$_am_tool ;;
16880 esac
16881 fi
16882
16883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
16884 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
16885
16886
16887
16888
16889
16890 depcc="$CC" am_compiler_list=
16891
16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16893 printf %s "checking dependency style of $depcc... " >&6; }
16894 if test ${am_cv_CC_dependencies_compiler_type+y}
16895 then :
16896 printf %s "(cached) " >&6
16897 else case e in #(
16898 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16899 # We make a subdir and do the tests there. Otherwise we can end up
16900 # making bogus files that we don't know about and never remove. For
16901 # instance it was reported that on HP-UX the gcc test will end up
16902 # making a dummy file named 'D' -- because '-MD' means "put the output
16903 # in D".
16904 rm -rf conftest.dir
16905 mkdir conftest.dir
16906 # Copy depcomp to subdir because otherwise we won't find it if we're
16907 # using a relative directory.
16908 cp "$am_depcomp" conftest.dir
16909 cd conftest.dir
16910 # We will build objects and dependencies in a subdirectory because
16911 # it helps to detect inapplicable dependency modes. For instance
16912 # both Tru64's cc and ICC support -MD to output dependencies as a
16913 # side effect of compilation, but ICC will put the dependencies in
16914 # the current directory while Tru64 will put them in the object
16915 # directory.
16916 mkdir sub
16917
16918 am_cv_CC_dependencies_compiler_type=none
16919 if test "$am_compiler_list" = ""; then
16920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16921 fi
16922 am__universal=false
16923 case " $depcc " in #(
16924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16925 esac
16926
16927 for depmode in $am_compiler_list; do
16928 # Setup a source with many dependencies, because some compilers
16929 # like to wrap large dependency lists on column 80 (with \), and
16930 # we should not choose a depcomp mode which is confused by this.
16931 #
16932 # We need to recreate these files for each test, as the compiler may
16933 # overwrite some of them when testing with obscure command lines.
16934 # This happens at least with the AIX C compiler.
16935 : > sub/conftest.c
16936 for i in 1 2 3 4 5 6; do
16937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16939 # Solaris 10 /bin/sh.
16940 echo '/* dummy */' > sub/conftst$i.h
16941 done
16942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16943
16944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16945 # mode. It turns out that the SunPro C++ compiler does not properly
16946 # handle '-M -o', and we need to detect this. Also, some Intel
16947 # versions had trouble with output in subdirs.
16948 am__obj=sub/conftest.${OBJEXT-o}
16949 am__minus_obj="-o $am__obj"
16950 case $depmode in
16951 gcc)
16952 # This depmode causes a compiler race in universal mode.
16953 test "$am__universal" = false || continue
16954 ;;
16955 nosideeffect)
16956 # After this tag, mechanisms are not by side-effect, so they'll
16957 # only be used when explicitly requested.
16958 if test "x$enable_dependency_tracking" = xyes; then
16959 continue
16960 else
16961 break
16962 fi
16963 ;;
16964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16965 # This compiler won't grok '-c -o', but also, the minuso test has
16966 # not run yet. These depmodes are late enough in the game, and
16967 # so weak that their functioning should not be impacted.
16968 am__obj=conftest.${OBJEXT-o}
16969 am__minus_obj=
16970 ;;
16971 none) break ;;
16972 esac
16973 if depmode=$depmode \
16974 source=sub/conftest.c object=$am__obj \
16975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16977 >/dev/null 2>conftest.err &&
16978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16982 # icc doesn't choke on unknown options, it will just issue warnings
16983 # or remarks (even with -Werror). So we grep stderr for any message
16984 # that says an option was ignored or not supported.
16985 # When given -MP, icc 7.0 and 7.1 complain thus:
16986 # icc: Command line warning: ignoring option '-M'; no argument required
16987 # The diagnosis changed in icc 8.0:
16988 # icc: Command line remark: option '-MP' not supported
16989 if (grep 'ignoring option' conftest.err ||
16990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16991 am_cv_CC_dependencies_compiler_type=$depmode
16992 break
16993 fi
16994 fi
16995 done
16996
16997 cd ..
16998 rm -rf conftest.dir
16999 else
17000 am_cv_CC_dependencies_compiler_type=none
17001 fi
17002 ;;
17003 esac
17004 fi
17005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17006 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
17007 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17008
17009 if
17010 test "x$enable_dependency_tracking" != xno \
17011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17012 am__fastdepCC_TRUE=
17013 am__fastdepCC_FALSE='#'
17014 else
17015 am__fastdepCC_TRUE='#'
17016 am__fastdepCC_FALSE=
17017 fi
17018
17019
17020 # Variables for tags utilities; see am/tags.am
17021 if test -z "$CTAGS"; then
17022 CTAGS=ctags
17023 fi
17024
17025 if test -z "$ETAGS"; then
17026 ETAGS=etags
17027 fi
17028
17029 if test -z "$CSCOPE"; then
17030 CSCOPE=cscope
17031 fi
17032
17033
17034
17035
17036
17037
17038
17039
17040 ac_config_files="$ac_config_files Makefile doc/Makefile libdmapsharing-${API_VERSION}-uninstalled.pc libdmapsharing-${API_VERSION}.pc libdmapsharing/Makefile libdmapsharing/dmap-config.h tests/Makefile m4/Makefile media/Makefile vala/Makefile"
17041
17042
17043 cat >confcache <<\_ACEOF
17044 # This file is a shell script that caches the results of configure
17045 # tests run on this system so they can be shared between configure
17046 # scripts and configure runs, see configure's option --config-cache.
17047 # It is not useful on other systems. If it contains results you don't
17048 # want to keep, you may remove or edit it.
17049 #
17050 # config.status only pays attention to the cache file if you give it
17051 # the --recheck option to rerun configure.
17052 #
17053 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17054 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17055 # following values.
17056
17057 _ACEOF
17058
17059 # The following way of writing the cache mishandles newlines in values,
17060 # but we know of no workaround that is simple, portable, and efficient.
17061 # So, we kill variables containing newlines.
17062 # Ultrix sh set writes to stderr and can't be redirected directly,
17063 # and sets the high bit in the cache file unless we assign to the vars.
17064 (
17065 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17066 eval ac_val=\$$ac_var
17067 case $ac_val in #(
17068 *${as_nl}*)
17069 case $ac_var in #(
17070 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17071 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17072 esac
17073 case $ac_var in #(
17074 _ | IFS | as_nl) ;; #(
17075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17076 *) { eval $ac_var=; unset $ac_var;} ;;
17077 esac ;;
17078 esac
17079 done
17080
17081 (set) 2>&1 |
17082 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17083 *${as_nl}ac_space=\ *)
17084 # 'set' does not quote correctly, so add quotes: double-quote
17085 # substitution turns \\\\ into \\, and sed turns \\ into \.
17086 sed -n \
17087 "s/'/'\\\\''/g;
17088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17089 ;; #(
17090 *)
17091 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17093 ;;
17094 esac |
17095 sort
17096 ) |
17097 sed '
17098 /^ac_cv_env_/b end
17099 t clear
17100 :clear
17101 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17102 t end
17103 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17104 :end' >>confcache
17105 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17106 if test -w "$cache_file"; then
17107 if test "x$cache_file" != "x/dev/null"; then
17108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17109 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17110 if test ! -f "$cache_file" || test -h "$cache_file"; then
17111 cat confcache >"$cache_file"
17112 else
17113 case $cache_file in #(
17114 */* | ?:*)
17115 mv -f confcache "$cache_file"$$ &&
17116 mv -f "$cache_file"$$ "$cache_file" ;; #(
17117 *)
17118 mv -f confcache "$cache_file" ;;
17119 esac
17120 fi
17121 fi
17122 else
17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17124 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17125 fi
17126 fi
17127 rm -f confcache
17128
17129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17130 # Let make expand exec_prefix.
17131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17132
17133 DEFS=-DHAVE_CONFIG_H
17134
17135 ac_libobjs=
17136 ac_ltlibobjs=
17137 U=
17138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17139 # 1. Remove the extension, and $U if already installed.
17140 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17141 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17142 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17143 # will be set to the directory where LIBOBJS objects are built.
17144 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17145 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17146 done
17147 LIBOBJS=$ac_libobjs
17148
17149 LTLIBOBJS=$ac_ltlibobjs
17150
17151
17152 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
17153 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17155 fi
17156 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
17157 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17159 fi
17160 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
17161 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17163 fi
17164 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
17165 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17167 fi
17168 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
17169 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17171 fi
17172 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
17173 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17175 fi
17176 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
17177 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17179 fi
17180 if test -z "${HAVE_PEDANSEE_TRUE}" && test -z "${HAVE_PEDANSEE_FALSE}"; then
17181 as_fn_error $? "conditional \"HAVE_PEDANSEE\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17183 fi
17184 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
17185 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
17186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17187 fi
17188 if test -z "${TESTS_ENABLED_TRUE}" && test -z "${TESTS_ENABLED_FALSE}"; then
17189 as_fn_error $? "conditional \"TESTS_ENABLED\" was never defined.
17190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17191 fi
17192 if test -z "${TESTS_ENABLED_TRUE}" && test -z "${TESTS_ENABLED_FALSE}"; then
17193 as_fn_error $? "conditional \"TESTS_ENABLED\" was never defined.
17194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17195 fi
17196 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
17197 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
17198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17199 fi
17200 if test -z "${USE_GDKPIXBUF_TRUE}" && test -z "${USE_GDKPIXBUF_FALSE}"; then
17201 as_fn_error $? "conditional \"USE_GDKPIXBUF\" was never defined.
17202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17203 fi
17204 if test -z "${USE_GSTREAMERAPP_TRUE}" && test -z "${USE_GSTREAMERAPP_FALSE}"; then
17205 as_fn_error $? "conditional \"USE_GSTREAMERAPP\" was never defined.
17206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17207 fi
17208 if test -z "${HAVE_VALAC_TRUE}" && test -z "${HAVE_VALAC_FALSE}"; then
17209 as_fn_error $? "conditional \"HAVE_VALAC\" was never defined.
17210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17211 fi
17212 if test -z "${BUILD_VAPI_TRUE}" && test -z "${BUILD_VAPI_FALSE}"; then
17213 as_fn_error $? "conditional \"BUILD_VAPI\" was never defined.
17214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17215 fi
17216 if test -z "${BUILD_VALATESTS_TRUE}" && test -z "${BUILD_VALATESTS_FALSE}"; then
17217 as_fn_error $? "conditional \"BUILD_VALATESTS\" was never defined.
17218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17219 fi
17220 if test -z "${BUILD_DPAPVIEW_TRUE}" && test -z "${BUILD_DPAPVIEW_FALSE}"; then
17221 as_fn_error $? "conditional \"BUILD_DPAPVIEW\" was never defined.
17222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17223 fi
17224 if test -z "${USE_AVAHI_TRUE}" && test -z "${USE_AVAHI_FALSE}"; then
17225 as_fn_error $? "conditional \"USE_AVAHI\" was never defined.
17226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17227 fi
17228 if test -z "${USE_DNS_SD_TRUE}" && test -z "${USE_DNS_SD_FALSE}"; then
17229 as_fn_error $? "conditional \"USE_DNS_SD\" was never defined.
17230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17231 fi
17232 case $enable_silent_rules in # (((
17233 yes) AM_DEFAULT_VERBOSITY=0;;
17234 no) AM_DEFAULT_VERBOSITY=1;;
17235 esac
17236 if test $am_cv_make_support_nested_variables = yes; then
17237 AM_V='$(V)'
17238 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17239 else
17240 AM_V=$AM_DEFAULT_VERBOSITY
17241 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17242 fi
17243
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17245 printf %s "checking that generated files are newer than configure... " >&6; }
17246 if test -n "$am_sleep_pid"; then
17247 # Hide warnings about reused PIDs.
17248 wait $am_sleep_pid 2>/dev/null
17249 fi
17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17251 printf "%s\n" "done" >&6; }
17252 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17253 as_fn_error $? "conditional \"AMDEP\" was never defined.
17254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17255 fi
17256 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17257 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17259 fi
17260 if test -n "$EXEEXT"; then
17261 am__EXEEXT_TRUE=
17262 am__EXEEXT_FALSE='#'
17263 else
17264 am__EXEEXT_TRUE='#'
17265 am__EXEEXT_FALSE=
17266 fi
17267
17268
17269 : "${CONFIG_STATUS=./config.status}"
17270 ac_write_fail=0
17271 ac_clean_files_save=$ac_clean_files
17272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17274 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17275 as_write_fail=0
17276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17277 #! $SHELL
17278 # Generated by $as_me.
17279 # Run this file to recreate the current configuration.
17280 # Compiler output produced by configure, useful for debugging
17281 # configure, is in config.log if it exists.
17282
17283 debug=false
17284 ac_cs_recheck=false
17285 ac_cs_silent=false
17286
17287 SHELL=\${CONFIG_SHELL-$SHELL}
17288 export SHELL
17289 _ASEOF
17290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17291 ## -------------------- ##
17292 ## M4sh Initialization. ##
17293 ## -------------------- ##
17294
17295 # Be more Bourne compatible
17296 DUALCASE=1; export DUALCASE # for MKS sh
17297 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17298 then :
17299 emulate sh
17300 NULLCMD=:
17301 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17302 # is contrary to our usage. Disable this feature.
17303 alias -g '${1+"$@"}'='"$@"'
17304 setopt NO_GLOB_SUBST
17305 else case e in #(
17306 e) case `(set -o) 2>/dev/null` in #(
17307 *posix*) :
17308 set -o posix ;; #(
17309 *) :
17310 ;;
17311 esac ;;
17312 esac
17313 fi
17314
17315
17316
17317 # Reset variables that may have inherited troublesome values from
17318 # the environment.
17319
17320 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17321 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17322 # side effect of setting IFS to empty, thus disabling word splitting.)
17323 # Quoting is to prevent editors from complaining about space-tab.
17324 as_nl='
17325 '
17326 export as_nl
17327 IFS=" "" $as_nl"
17328
17329 PS1='$ '
17330 PS2='> '
17331 PS4='+ '
17332
17333 # Ensure predictable behavior from utilities with locale-dependent output.
17334 LC_ALL=C
17335 export LC_ALL
17336 LANGUAGE=C
17337 export LANGUAGE
17338
17339 # We cannot yet rely on "unset" to work, but we need these variables
17340 # to be unset--not just set to an empty or harmless value--now, to
17341 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17342 # also avoids known problems related to "unset" and subshell syntax
17343 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17344 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17345 do eval test \${$as_var+y} \
17346 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17347 done
17348
17349 # Ensure that fds 0, 1, and 2 are open.
17350 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17351 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17352 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17353
17354 # The user is always right.
17355 if ${PATH_SEPARATOR+false} :; then
17356 PATH_SEPARATOR=:
17357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17359 PATH_SEPARATOR=';'
17360 }
17361 fi
17362
17363
17364 # Find who we are. Look in the path if we contain no directory separator.
17365 as_myself=
17366 case $0 in #((
17367 *[\\/]* ) as_myself=$0 ;;
17368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17370 do
17371 IFS=$as_save_IFS
17372 case $as_dir in #(((
17373 '') as_dir=./ ;;
17374 */) ;;
17375 *) as_dir=$as_dir/ ;;
17376 esac
17377 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17378 done
17379 IFS=$as_save_IFS
17380
17381 ;;
17382 esac
17383 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17384 # in which case we are not to be found in the path.
17385 if test "x$as_myself" = x; then
17386 as_myself=$0
17387 fi
17388 if test ! -f "$as_myself"; then
17389 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17390 exit 1
17391 fi
17392
17393
17394
17395 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17396 # ----------------------------------------
17397 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17398 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17399 # script with STATUS, using 1 if that was 0.
17400 as_fn_error ()
17401 {
17402 as_status=$1; test $as_status -eq 0 && as_status=1
17403 if test "$4"; then
17404 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17406 fi
17407 printf "%s\n" "$as_me: error: $2" >&2
17408 as_fn_exit $as_status
17409 } # as_fn_error
17410
17411
17412 # as_fn_set_status STATUS
17413 # -----------------------
17414 # Set $? to STATUS, without forking.
17415 as_fn_set_status ()
17416 {
17417 return $1
17418 } # as_fn_set_status
17419
17420 # as_fn_exit STATUS
17421 # -----------------
17422 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17423 as_fn_exit ()
17424 {
17425 set +e
17426 as_fn_set_status $1
17427 exit $1
17428 } # as_fn_exit
17429
17430 # as_fn_unset VAR
17431 # ---------------
17432 # Portably unset VAR.
17433 as_fn_unset ()
17434 {
17435 { eval $1=; unset $1;}
17436 }
17437 as_unset=as_fn_unset
17438
17439 # as_fn_append VAR VALUE
17440 # ----------------------
17441 # Append the text in VALUE to the end of the definition contained in VAR. Take
17442 # advantage of any shell optimizations that allow amortized linear growth over
17443 # repeated appends, instead of the typical quadratic growth present in naive
17444 # implementations.
17445 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17446 then :
17447 eval 'as_fn_append ()
17448 {
17449 eval $1+=\$2
17450 }'
17451 else case e in #(
17452 e) as_fn_append ()
17453 {
17454 eval $1=\$$1\$2
17455 } ;;
17456 esac
17457 fi # as_fn_append
17458
17459 # as_fn_arith ARG...
17460 # ------------------
17461 # Perform arithmetic evaluation on the ARGs, and store the result in the
17462 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17463 # must be portable across $(()) and expr.
17464 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17465 then :
17466 eval 'as_fn_arith ()
17467 {
17468 as_val=$(( $* ))
17469 }'
17470 else case e in #(
17471 e) as_fn_arith ()
17472 {
17473 as_val=`expr "$@" || test $? -eq 1`
17474 } ;;
17475 esac
17476 fi # as_fn_arith
17477
17478
17479 if expr a : '\(a\)' >/dev/null 2>&1 &&
17480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17481 as_expr=expr
17482 else
17483 as_expr=false
17484 fi
17485
17486 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17487 as_basename=basename
17488 else
17489 as_basename=false
17490 fi
17491
17492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17493 as_dirname=dirname
17494 else
17495 as_dirname=false
17496 fi
17497
17498 as_me=`$as_basename -- "$0" ||
17499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17500 X"$0" : 'X\(//\)$' \| \
17501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17502 printf "%s\n" X/"$0" |
17503 sed '/^.*\/\([^/][^/]*\)\/*$/{
17504 s//\1/
17505 q
17506 }
17507 /^X\/\(\/\/\)$/{
17508 s//\1/
17509 q
17510 }
17511 /^X\/\(\/\).*/{
17512 s//\1/
17513 q
17514 }
17515 s/.*/./; q'`
17516
17517 # Avoid depending upon Character Ranges.
17518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17521 as_cr_digits='0123456789'
17522 as_cr_alnum=$as_cr_Letters$as_cr_digits
17523
17524
17525 # Determine whether it's possible to make 'echo' print without a newline.
17526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17527 # for compatibility with existing Makefiles.
17528 ECHO_C= ECHO_N= ECHO_T=
17529 case `echo -n x` in #(((((
17530 -n*)
17531 case `echo 'xy\c'` in
17532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17533 xy) ECHO_C='\c';;
17534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17535 ECHO_T=' ';;
17536 esac;;
17537 *)
17538 ECHO_N='-n';;
17539 esac
17540
17541 # For backward compatibility with old third-party macros, we provide
17542 # the shell variables $as_echo and $as_echo_n. New code should use
17543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17544 as_echo='printf %s\n'
17545 as_echo_n='printf %s'
17546
17547 rm -f conf$$ conf$$.exe conf$$.file
17548 if test -d conf$$.dir; then
17549 rm -f conf$$.dir/conf$$.file
17550 else
17551 rm -f conf$$.dir
17552 mkdir conf$$.dir 2>/dev/null
17553 fi
17554 if (echo >conf$$.file) 2>/dev/null; then
17555 if ln -s conf$$.file conf$$ 2>/dev/null; then
17556 as_ln_s='ln -s'
17557 # ... but there are two gotchas:
17558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17560 # In both cases, we have to default to 'cp -pR'.
17561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17562 as_ln_s='cp -pR'
17563 elif ln conf$$.file conf$$ 2>/dev/null; then
17564 as_ln_s=ln
17565 else
17566 as_ln_s='cp -pR'
17567 fi
17568 else
17569 as_ln_s='cp -pR'
17570 fi
17571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17572 rmdir conf$$.dir 2>/dev/null
17573
17574
17575 # as_fn_mkdir_p
17576 # -------------
17577 # Create "$as_dir" as a directory, including parents if necessary.
17578 as_fn_mkdir_p ()
17579 {
17580
17581 case $as_dir in #(
17582 -*) as_dir=./$as_dir;;
17583 esac
17584 test -d "$as_dir" || eval $as_mkdir_p || {
17585 as_dirs=
17586 while :; do
17587 case $as_dir in #(
17588 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17589 *) as_qdir=$as_dir;;
17590 esac
17591 as_dirs="'$as_qdir' $as_dirs"
17592 as_dir=`$as_dirname -- "$as_dir" ||
17593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17594 X"$as_dir" : 'X\(//\)[^/]' \| \
17595 X"$as_dir" : 'X\(//\)$' \| \
17596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17597 printf "%s\n" X"$as_dir" |
17598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17599 s//\1/
17600 q
17601 }
17602 /^X\(\/\/\)[^/].*/{
17603 s//\1/
17604 q
17605 }
17606 /^X\(\/\/\)$/{
17607 s//\1/
17608 q
17609 }
17610 /^X\(\/\).*/{
17611 s//\1/
17612 q
17613 }
17614 s/.*/./; q'`
17615 test -d "$as_dir" && break
17616 done
17617 test -z "$as_dirs" || eval "mkdir $as_dirs"
17618 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17619
17620
17621 } # as_fn_mkdir_p
17622 if mkdir -p . 2>/dev/null; then
17623 as_mkdir_p='mkdir -p "$as_dir"'
17624 else
17625 test -d ./-p && rmdir ./-p
17626 as_mkdir_p=false
17627 fi
17628
17629
17630 # as_fn_executable_p FILE
17631 # -----------------------
17632 # Test if FILE is an executable regular file.
17633 as_fn_executable_p ()
17634 {
17635 test -f "$1" && test -x "$1"
17636 } # as_fn_executable_p
17637 as_test_x='test -x'
17638 as_executable_p=as_fn_executable_p
17639
17640 # Sed expression to map a string onto a valid CPP name.
17641 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17642 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17643
17644 # Sed expression to map a string onto a valid variable name.
17645 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17646 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17647
17648
17649 exec 6>&1
17650 ## ----------------------------------- ##
17651 ## Main body of $CONFIG_STATUS script. ##
17652 ## ----------------------------------- ##
17653 _ASEOF
17654 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17655
17656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17657 # Save the log message, to keep $0 and so on meaningful, and to
17658 # report actual input values of CONFIG_FILES etc. instead of their
17659 # values after options handling.
17660 ac_log="
17661 This file was extended by libdmapsharing $as_me 3.9.14, which was
17662 generated by GNU Autoconf 2.72. Invocation command line was
17663
17664 CONFIG_FILES = $CONFIG_FILES
17665 CONFIG_HEADERS = $CONFIG_HEADERS
17666 CONFIG_LINKS = $CONFIG_LINKS
17667 CONFIG_COMMANDS = $CONFIG_COMMANDS
17668 $ $0 $@
17669
17670 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17671 "
17672
17673 _ACEOF
17674
17675 case $ac_config_files in *"
17676 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17677 esac
17678
17679 case $ac_config_headers in *"
17680 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17681 esac
17682
17683
17684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17685 # Files that config.status was made for.
17686 config_files="$ac_config_files"
17687 config_headers="$ac_config_headers"
17688 config_commands="$ac_config_commands"
17689
17690 _ACEOF
17691
17692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17693 ac_cs_usage="\
17694 '$as_me' instantiates files and other configuration actions
17695 from templates according to the current configuration. Unless the files
17696 and actions are specified as TAGs, all are instantiated by default.
17697
17698 Usage: $0 [OPTION]... [TAG]...
17699
17700 -h, --help print this help, then exit
17701 -V, --version print version number and configuration settings, then exit
17702 --config print configuration, then exit
17703 -q, --quiet, --silent
17704 do not print progress messages
17705 -d, --debug don't remove temporary files
17706 --recheck update $as_me by reconfiguring in the same conditions
17707 --file=FILE[:TEMPLATE]
17708 instantiate the configuration file FILE
17709 --header=FILE[:TEMPLATE]
17710 instantiate the configuration header FILE
17711
17712 Configuration files:
17713 $config_files
17714
17715 Configuration headers:
17716 $config_headers
17717
17718 Configuration commands:
17719 $config_commands
17720
17721 Report bugs to <https://www.flyn.org/projects/libdmapsharing/>."
17722
17723 _ACEOF
17724 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17725 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17727 ac_cs_config='$ac_cs_config_escaped'
17728 ac_cs_version="\\
17729 libdmapsharing config.status 3.9.14
17730 configured by $0, generated by GNU Autoconf 2.72,
17731 with options \\"\$ac_cs_config\\"
17732
17733 Copyright (C) 2023 Free Software Foundation, Inc.
17734 This config.status script is free software; the Free Software Foundation
17735 gives unlimited permission to copy, distribute and modify it."
17736
17737 ac_pwd='$ac_pwd'
17738 srcdir='$srcdir'
17739 INSTALL='$INSTALL'
17740 MKDIR_P='$MKDIR_P'
17741 AWK='$AWK'
17742 test -n "\$AWK" || AWK=awk
17743 _ACEOF
17744
17745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17746 # The default lists apply if the user does not specify any file.
17747 ac_need_defaults=:
17748 while test $# != 0
17749 do
17750 case $1 in
17751 --*=?*)
17752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17754 ac_shift=:
17755 ;;
17756 --*=)
17757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17758 ac_optarg=
17759 ac_shift=:
17760 ;;
17761 *)
17762 ac_option=$1
17763 ac_optarg=$2
17764 ac_shift=shift
17765 ;;
17766 esac
17767
17768 case $ac_option in
17769 # Handling of the options.
17770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17771 ac_cs_recheck=: ;;
17772 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17773 printf "%s\n" "$ac_cs_version"; exit ;;
17774 --config | --confi | --conf | --con | --co | --c )
17775 printf "%s\n" "$ac_cs_config"; exit ;;
17776 --debug | --debu | --deb | --de | --d | -d )
17777 debug=: ;;
17778 --file | --fil | --fi | --f )
17779 $ac_shift
17780 case $ac_optarg in
17781 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17782 '') as_fn_error $? "missing file argument" ;;
17783 esac
17784 as_fn_append CONFIG_FILES " '$ac_optarg'"
17785 ac_need_defaults=false;;
17786 --header | --heade | --head | --hea )
17787 $ac_shift
17788 case $ac_optarg in
17789 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17790 esac
17791 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17792 ac_need_defaults=false;;
17793 --he | --h)
17794 # Conflict between --help and --header
17795 as_fn_error $? "ambiguous option: '$1'
17796 Try '$0 --help' for more information.";;
17797 --help | --hel | -h )
17798 printf "%s\n" "$ac_cs_usage"; exit ;;
17799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17801 ac_cs_silent=: ;;
17802
17803 # This is an error.
17804 -*) as_fn_error $? "unrecognized option: '$1'
17805 Try '$0 --help' for more information." ;;
17806
17807 *) as_fn_append ac_config_targets " $1"
17808 ac_need_defaults=false ;;
17809
17810 esac
17811 shift
17812 done
17813
17814 ac_configure_extra_args=
17815
17816 if $ac_cs_silent; then
17817 exec 6>/dev/null
17818 ac_configure_extra_args="$ac_configure_extra_args --silent"
17819 fi
17820
17821 _ACEOF
17822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17823 if \$ac_cs_recheck; then
17824 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17825 shift
17826 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17827 CONFIG_SHELL='$SHELL'
17828 export CONFIG_SHELL
17829 exec "\$@"
17830 fi
17831
17832 _ACEOF
17833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17834 exec 5>>config.log
17835 {
17836 echo
17837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17838 ## Running $as_me. ##
17839 _ASBOX
17840 printf "%s\n" "$ac_log"
17841 } >&5
17842
17843 _ACEOF
17844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17845 #
17846 # INIT-COMMANDS
17847 #
17848
17849
17850 # The HP-UX ksh and POSIX shell print the target directory to stdout
17851 # if CDPATH is set.
17852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17853
17854 sed_quote_subst='$sed_quote_subst'
17855 double_quote_subst='$double_quote_subst'
17856 delay_variable_subst='$delay_variable_subst'
17857 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17858 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17859 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17860 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17861 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17862 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17863 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17864 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17865 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17866 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17867 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17868 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17869 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17870 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17871 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17872 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17873 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17874 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17875 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17876 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17877 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17878 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17879 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17880 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17881 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17882 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17883 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17884 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17885 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17886 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17887 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17888 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17889 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17890 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17891 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17892 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17893 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17894 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17895 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17896 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17897 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17898 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17899 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17900 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17901 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17902 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17903 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17904 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17905 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17906 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17907 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17908 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17909 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17910 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17911 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17912 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17913 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17914 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17915 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17916 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17917 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"`'
17918 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17919 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17920 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17921 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17922 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17923 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17924 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17925 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17926 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17927 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17928 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17929 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17930 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17931 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17932 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17933 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17934 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17935 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17936 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17937 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17938 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17939 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17940 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17941 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17942 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17943 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17944 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17945 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17946 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17947 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17948 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17949 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17950 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17951 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17952 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17953 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17954 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17955 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17956 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17957 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17958 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17959 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17960 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17961 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17962 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17963 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17964 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17965 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17966 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17967 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17968 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17969 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17970 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17971 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17972 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17973 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17974 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17975 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17976 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17977 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17978 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17979 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17980 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17981 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17982 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17983 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17984 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17985 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17986 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17987 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17988 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17989 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17990 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17991 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17992 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17993 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17994
17995 LTCC='$LTCC'
17996 LTCFLAGS='$LTCFLAGS'
17997 compiler='$compiler_DEFAULT'
17998
17999 # A function that is used when there is no print builtin or printf.
18000 func_fallback_echo ()
18001 {
18002 eval 'cat <<_LTECHO_EOF
18003 \$1
18004 _LTECHO_EOF'
18005 }
18006
18007 # Quote evaled strings.
18008 for var in SHELL \
18009 ECHO \
18010 PATH_SEPARATOR \
18011 SED \
18012 GREP \
18013 EGREP \
18014 FGREP \
18015 LD \
18016 NM \
18017 LN_S \
18018 lt_SP2NL \
18019 lt_NL2SP \
18020 reload_flag \
18021 FILECMD \
18022 OBJDUMP \
18023 deplibs_check_method \
18024 file_magic_cmd \
18025 file_magic_glob \
18026 want_nocaseglob \
18027 DLLTOOL \
18028 sharedlib_from_linklib_cmd \
18029 AR \
18030 archiver_list_spec \
18031 STRIP \
18032 RANLIB \
18033 CC \
18034 CFLAGS \
18035 compiler \
18036 lt_cv_sys_global_symbol_pipe \
18037 lt_cv_sys_global_symbol_to_cdecl \
18038 lt_cv_sys_global_symbol_to_import \
18039 lt_cv_sys_global_symbol_to_c_name_address \
18040 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18041 lt_cv_nm_interface \
18042 nm_file_list_spec \
18043 lt_cv_truncate_bin \
18044 lt_prog_compiler_no_builtin_flag \
18045 lt_prog_compiler_pic \
18046 lt_prog_compiler_wl \
18047 lt_prog_compiler_static \
18048 lt_cv_prog_compiler_c_o \
18049 need_locks \
18050 MANIFEST_TOOL \
18051 DSYMUTIL \
18052 NMEDIT \
18053 LIPO \
18054 OTOOL \
18055 OTOOL64 \
18056 shrext_cmds \
18057 export_dynamic_flag_spec \
18058 whole_archive_flag_spec \
18059 compiler_needs_object \
18060 with_gnu_ld \
18061 allow_undefined_flag \
18062 no_undefined_flag \
18063 hardcode_libdir_flag_spec \
18064 hardcode_libdir_separator \
18065 exclude_expsyms \
18066 include_expsyms \
18067 file_list_spec \
18068 variables_saved_for_relink \
18069 libname_spec \
18070 library_names_spec \
18071 soname_spec \
18072 install_override_mode \
18073 finish_eval \
18074 old_striplib \
18075 striplib; do
18076 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18077 *[\\\\\\\`\\"\\\$]*)
18078 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18079 ;;
18080 *)
18081 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18082 ;;
18083 esac
18084 done
18085
18086 # Double-quote double-evaled strings.
18087 for var in reload_cmds \
18088 old_postinstall_cmds \
18089 old_postuninstall_cmds \
18090 old_archive_cmds \
18091 extract_expsyms_cmds \
18092 old_archive_from_new_cmds \
18093 old_archive_from_expsyms_cmds \
18094 archive_cmds \
18095 archive_expsym_cmds \
18096 module_cmds \
18097 module_expsym_cmds \
18098 export_symbols_cmds \
18099 prelink_cmds \
18100 postlink_cmds \
18101 postinstall_cmds \
18102 postuninstall_cmds \
18103 finish_cmds \
18104 sys_lib_search_path_spec \
18105 configure_time_dlsearch_path \
18106 configure_time_lt_sys_library_path; do
18107 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18108 *[\\\\\\\`\\"\\\$]*)
18109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18110 ;;
18111 *)
18112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18113 ;;
18114 esac
18115 done
18116
18117 ac_aux_dir='$ac_aux_dir'
18118
18119 # See if we are running on zsh, and set the options that allow our
18120 # commands through without removal of \ escapes INIT.
18121 if test -n "\${ZSH_VERSION+set}"; then
18122 setopt NO_GLOB_SUBST
18123 fi
18124
18125
18126 PACKAGE='$PACKAGE'
18127 VERSION='$VERSION'
18128 RM='$RM'
18129 ofile='$ofile'
18130
18131
18132
18133 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18134
18135 _ACEOF
18136
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18138
18139 # Handling of arguments.
18140 for ac_config_target in $ac_config_targets
18141 do
18142 case $ac_config_target in
18143 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18144 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18145 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18147 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18148 "libdmapsharing-${API_VERSION}-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libdmapsharing-${API_VERSION}-uninstalled.pc" ;;
18149 "libdmapsharing-${API_VERSION}.pc") CONFIG_FILES="$CONFIG_FILES libdmapsharing-${API_VERSION}.pc" ;;
18150 "libdmapsharing/Makefile") CONFIG_FILES="$CONFIG_FILES libdmapsharing/Makefile" ;;
18151 "libdmapsharing/dmap-config.h") CONFIG_FILES="$CONFIG_FILES libdmapsharing/dmap-config.h" ;;
18152 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18153 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18154 "media/Makefile") CONFIG_FILES="$CONFIG_FILES media/Makefile" ;;
18155 "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
18156
18157 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18158 esac
18159 done
18160
18161
18162 # If the user did not use the arguments to specify the items to instantiate,
18163 # then the envvar interface is used. Set only those that are not.
18164 # We use the long form for the default assignment because of an extremely
18165 # bizarre bug on SunOS 4.1.3.
18166 if $ac_need_defaults; then
18167 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18168 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18169 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18170 fi
18171
18172 # Have a temporary directory for convenience. Make it in the build tree
18173 # simply because there is no reason against having it here, and in addition,
18174 # creating and moving files from /tmp can sometimes cause problems.
18175 # Hook for its removal unless debugging.
18176 # Note that there is a small window in which the directory will not be cleaned:
18177 # after its creation but before its name has been assigned to '$tmp'.
18178 $debug ||
18179 {
18180 tmp= ac_tmp=
18181 trap 'exit_status=$?
18182 : "${ac_tmp:=$tmp}"
18183 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18184 ' 0
18185 trap 'as_fn_exit 1' 1 2 13 15
18186 }
18187 # Create a (secure) tmp directory for tmp files.
18188
18189 {
18190 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18191 test -d "$tmp"
18192 } ||
18193 {
18194 tmp=./conf$$-$RANDOM
18195 (umask 077 && mkdir "$tmp")
18196 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18197 ac_tmp=$tmp
18198
18199 # Set up the scripts for CONFIG_FILES section.
18200 # No need to generate them if there are no CONFIG_FILES.
18201 # This happens for instance with './config.status config.h'.
18202 if test -n "$CONFIG_FILES"; then
18203
18204
18205 ac_cr=`echo X | tr X '\015'`
18206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18207 # But we know of no other shell where ac_cr would be empty at this
18208 # point, so we can use a bashism as a fallback.
18209 if test "x$ac_cr" = x; then
18210 eval ac_cr=\$\'\\r\'
18211 fi
18212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18214 ac_cs_awk_cr='\\r'
18215 else
18216 ac_cs_awk_cr=$ac_cr
18217 fi
18218
18219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18220 _ACEOF
18221
18222
18223 {
18224 echo "cat >conf$$subs.awk <<_ACEOF" &&
18225 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18226 echo "_ACEOF"
18227 } >conf$$subs.sh ||
18228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18229 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18230 ac_delim='%!_!# '
18231 for ac_last_try in false false false false false :; do
18232 . ./conf$$subs.sh ||
18233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18234
18235 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18236 if test $ac_delim_n = $ac_delim_num; then
18237 break
18238 elif $ac_last_try; then
18239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18240 else
18241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18242 fi
18243 done
18244 rm -f conf$$subs.sh
18245
18246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18247 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18248 _ACEOF
18249 sed -n '
18250 h
18251 s/^/S["/; s/!.*/"]=/
18252 p
18253 g
18254 s/^[^!]*!//
18255 :repl
18256 t repl
18257 s/'"$ac_delim"'$//
18258 t delim
18259 :nl
18260 h
18261 s/\(.\{148\}\)..*/\1/
18262 t more1
18263 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18264 p
18265 n
18266 b repl
18267 :more1
18268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18269 p
18270 g
18271 s/.\{148\}//
18272 t nl
18273 :delim
18274 h
18275 s/\(.\{148\}\)..*/\1/
18276 t more2
18277 s/["\\]/\\&/g; s/^/"/; s/$/"/
18278 p
18279 b
18280 :more2
18281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18282 p
18283 g
18284 s/.\{148\}//
18285 t delim
18286 ' <conf$$subs.awk | sed '
18287 /^[^""]/{
18288 N
18289 s/\n//
18290 }
18291 ' >>$CONFIG_STATUS || ac_write_fail=1
18292 rm -f conf$$subs.awk
18293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18294 _ACAWK
18295 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18296 for (key in S) S_is_set[key] = 1
18297 FS = ""
18298
18299 }
18300 {
18301 line = $ 0
18302 nfields = split(line, field, "@")
18303 substed = 0
18304 len = length(field[1])
18305 for (i = 2; i < nfields; i++) {
18306 key = field[i]
18307 keylen = length(key)
18308 if (S_is_set[key]) {
18309 value = S[key]
18310 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18311 len += length(value) + length(field[++i])
18312 substed = 1
18313 } else
18314 len += 1 + keylen
18315 }
18316
18317 print line
18318 }
18319
18320 _ACAWK
18321 _ACEOF
18322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18323 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18324 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18325 else
18326 cat
18327 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18328 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18329 _ACEOF
18330
18331 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18332 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18333 # trailing colons and then remove the whole line if VPATH becomes empty
18334 # (actually we leave an empty line to preserve line numbers).
18335 if test "x$srcdir" = x.; then
18336 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18337 h
18338 s///
18339 s/^/:/
18340 s/[ ]*$/:/
18341 s/:\$(srcdir):/:/g
18342 s/:\${srcdir}:/:/g
18343 s/:@srcdir@:/:/g
18344 s/^:*//
18345 s/:*$//
18346 x
18347 s/\(=[ ]*\).*/\1/
18348 G
18349 s/\n//
18350 s/^[^=]*=[ ]*$//
18351 }'
18352 fi
18353
18354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18355 fi # test -n "$CONFIG_FILES"
18356
18357 # Set up the scripts for CONFIG_HEADERS section.
18358 # No need to generate them if there are no CONFIG_HEADERS.
18359 # This happens for instance with './config.status Makefile'.
18360 if test -n "$CONFIG_HEADERS"; then
18361 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18362 BEGIN {
18363 _ACEOF
18364
18365 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18366 # here-document in config.status, that substitutes the proper values into
18367 # config.h.in to produce config.h.
18368
18369 # Create a delimiter string that does not exist in confdefs.h, to ease
18370 # handling of long lines.
18371 ac_delim='%!_!# '
18372 for ac_last_try in false false :; do
18373 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18374 if test -z "$ac_tt"; then
18375 break
18376 elif $ac_last_try; then
18377 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18378 else
18379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18380 fi
18381 done
18382
18383 # For the awk script, D is an array of macro values keyed by name,
18384 # likewise P contains macro parameters if any. Preserve backslash
18385 # newline sequences.
18386
18387 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18388 sed -n '
18389 s/.\{148\}/&'"$ac_delim"'/g
18390 t rset
18391 :rset
18392 s/^[ ]*#[ ]*define[ ][ ]*/ /
18393 t def
18394 d
18395 :def
18396 s/\\$//
18397 t bsnl
18398 s/["\\]/\\&/g
18399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18400 D["\1"]=" \3"/p
18401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18402 d
18403 :bsnl
18404 s/["\\]/\\&/g
18405 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18406 D["\1"]=" \3\\\\\\n"\\/p
18407 t cont
18408 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18409 t cont
18410 d
18411 :cont
18412 n
18413 s/.\{148\}/&'"$ac_delim"'/g
18414 t clear
18415 :clear
18416 s/\\$//
18417 t bsnlc
18418 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18419 d
18420 :bsnlc
18421 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18422 b cont
18423 ' <confdefs.h | sed '
18424 s/'"$ac_delim"'/"\\\
18425 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18426
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428 for (key in D) D_is_set[key] = 1
18429 FS = ""
18430 }
18431 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18432 line = \$ 0
18433 split(line, arg, " ")
18434 if (arg[1] == "#") {
18435 defundef = arg[2]
18436 mac1 = arg[3]
18437 } else {
18438 defundef = substr(arg[1], 2)
18439 mac1 = arg[2]
18440 }
18441 split(mac1, mac2, "(") #)
18442 macro = mac2[1]
18443 prefix = substr(line, 1, index(line, defundef) - 1)
18444 if (D_is_set[macro]) {
18445 # Preserve the white space surrounding the "#".
18446 print prefix "define", macro P[macro] D[macro]
18447 next
18448 } else {
18449 # Replace #undef with comments. This is necessary, for example,
18450 # in the case of _POSIX_SOURCE, which is predefined and required
18451 # on some systems where configure will not decide to define it.
18452 if (defundef == "undef") {
18453 print "/*", prefix defundef, macro, "*/"
18454 next
18455 }
18456 }
18457 }
18458 { print }
18459 _ACAWK
18460 _ACEOF
18461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18462 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18463 fi # test -n "$CONFIG_HEADERS"
18464
18465
18466 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18467 shift
18468 for ac_tag
18469 do
18470 case $ac_tag in
18471 :[FHLC]) ac_mode=$ac_tag; continue;;
18472 esac
18473 case $ac_mode$ac_tag in
18474 :[FHL]*:*);;
18475 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18476 :[FH]-) ac_tag=-:-;;
18477 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18478 esac
18479 ac_save_IFS=$IFS
18480 IFS=:
18481 set x $ac_tag
18482 IFS=$ac_save_IFS
18483 shift
18484 ac_file=$1
18485 shift
18486
18487 case $ac_mode in
18488 :L) ac_source=$1;;
18489 :[FH])
18490 ac_file_inputs=
18491 for ac_f
18492 do
18493 case $ac_f in
18494 -) ac_f="$ac_tmp/stdin";;
18495 *) # Look for the file first in the build tree, then in the source tree
18496 # (if the path is not absolute). The absolute path cannot be DOS-style,
18497 # because $ac_f cannot contain ':'.
18498 test -f "$ac_f" ||
18499 case $ac_f in
18500 [\\/$]*) false;;
18501 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18502 esac ||
18503 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18504 esac
18505 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18506 as_fn_append ac_file_inputs " '$ac_f'"
18507 done
18508
18509 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18510 # use $as_me), people would be surprised to read:
18511 # /* config.h. Generated by config.status. */
18512 configure_input='Generated from '`
18513 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18514 `' by configure.'
18515 if test x"$ac_file" != x-; then
18516 configure_input="$ac_file. $configure_input"
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18518 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18519 fi
18520 # Neutralize special characters interpreted by sed in replacement strings.
18521 case $configure_input in #(
18522 *\&* | *\|* | *\\* )
18523 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18524 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18525 *) ac_sed_conf_input=$configure_input;;
18526 esac
18527
18528 case $ac_tag in
18529 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18531 esac
18532 ;;
18533 esac
18534
18535 ac_dir=`$as_dirname -- "$ac_file" ||
18536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18537 X"$ac_file" : 'X\(//\)[^/]' \| \
18538 X"$ac_file" : 'X\(//\)$' \| \
18539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18540 printf "%s\n" X"$ac_file" |
18541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18542 s//\1/
18543 q
18544 }
18545 /^X\(\/\/\)[^/].*/{
18546 s//\1/
18547 q
18548 }
18549 /^X\(\/\/\)$/{
18550 s//\1/
18551 q
18552 }
18553 /^X\(\/\).*/{
18554 s//\1/
18555 q
18556 }
18557 s/.*/./; q'`
18558 as_dir="$ac_dir"; as_fn_mkdir_p
18559 ac_builddir=.
18560
18561 case "$ac_dir" in
18562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18563 *)
18564 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18565 # A ".." for each directory in $ac_dir_suffix.
18566 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18567 case $ac_top_builddir_sub in
18568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18570 esac ;;
18571 esac
18572 ac_abs_top_builddir=$ac_pwd
18573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18574 # for backward compatibility:
18575 ac_top_builddir=$ac_top_build_prefix
18576
18577 case $srcdir in
18578 .) # We are building in place.
18579 ac_srcdir=.
18580 ac_top_srcdir=$ac_top_builddir_sub
18581 ac_abs_top_srcdir=$ac_pwd ;;
18582 [\\/]* | ?:[\\/]* ) # Absolute name.
18583 ac_srcdir=$srcdir$ac_dir_suffix;
18584 ac_top_srcdir=$srcdir
18585 ac_abs_top_srcdir=$srcdir ;;
18586 *) # Relative name.
18587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18588 ac_top_srcdir=$ac_top_build_prefix$srcdir
18589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18590 esac
18591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18592
18593
18594 case $ac_mode in
18595 :F)
18596 #
18597 # CONFIG_FILE
18598 #
18599
18600 case $INSTALL in
18601 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18602 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18603 esac
18604 ac_MKDIR_P=$MKDIR_P
18605 case $MKDIR_P in
18606 [\\/$]* | ?:[\\/]* ) ;;
18607 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18608 esac
18609 _ACEOF
18610
18611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18612 # If the template does not know about datarootdir, expand it.
18613 # FIXME: This hack should be removed a few years after 2.60.
18614 ac_datarootdir_hack=; ac_datarootdir_seen=
18615 ac_sed_dataroot='
18616 /datarootdir/ {
18617 p
18618 q
18619 }
18620 /@datadir@/p
18621 /@docdir@/p
18622 /@infodir@/p
18623 /@localedir@/p
18624 /@mandir@/p'
18625 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18626 *datarootdir*) ac_datarootdir_seen=yes;;
18627 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18629 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18630 _ACEOF
18631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18632 ac_datarootdir_hack='
18633 s&@datadir@&$datadir&g
18634 s&@docdir@&$docdir&g
18635 s&@infodir@&$infodir&g
18636 s&@localedir@&$localedir&g
18637 s&@mandir@&$mandir&g
18638 s&\\\${datarootdir}&$datarootdir&g' ;;
18639 esac
18640 _ACEOF
18641
18642 # Neutralize VPATH when '$srcdir' = '.'.
18643 # Shell code in configure.ac might set extrasub.
18644 # FIXME: do we really want to maintain this feature?
18645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18646 ac_sed_extra="$ac_vpsub
18647 $extrasub
18648 _ACEOF
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18650 :t
18651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18652 s|@configure_input@|$ac_sed_conf_input|;t t
18653 s&@top_builddir@&$ac_top_builddir_sub&;t t
18654 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18655 s&@srcdir@&$ac_srcdir&;t t
18656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18657 s&@top_srcdir@&$ac_top_srcdir&;t t
18658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18659 s&@builddir@&$ac_builddir&;t t
18660 s&@abs_builddir@&$ac_abs_builddir&;t t
18661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18662 s&@INSTALL@&$ac_INSTALL&;t t
18663 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18664 $ac_datarootdir_hack
18665 "
18666 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18667 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18668
18669 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18670 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18671 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18672 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18674 which seems to be undefined. Please make sure it is defined" >&5
18675 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18676 which seems to be undefined. Please make sure it is defined" >&2;}
18677
18678 rm -f "$ac_tmp/stdin"
18679 case $ac_file in
18680 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18681 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18682 esac \
18683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18684 ;;
18685 :H)
18686 #
18687 # CONFIG_HEADER
18688 #
18689 if test x"$ac_file" != x-; then
18690 {
18691 printf "%s\n" "/* $configure_input */" >&1 \
18692 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18693 } >"$ac_tmp/config.h" \
18694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18695 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18697 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18698 else
18699 rm -f "$ac_file"
18700 mv "$ac_tmp/config.h" "$ac_file" \
18701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18702 fi
18703 else
18704 printf "%s\n" "/* $configure_input */" >&1 \
18705 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18706 || as_fn_error $? "could not create -" "$LINENO" 5
18707 fi
18708 # Compute "$ac_file"'s index in $config_headers.
18709 _am_arg="$ac_file"
18710 _am_stamp_count=1
18711 for _am_header in $config_headers :; do
18712 case $_am_header in
18713 $_am_arg | $_am_arg:* )
18714 break ;;
18715 * )
18716 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18717 esac
18718 done
18719 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18720 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18721 X"$_am_arg" : 'X\(//\)[^/]' \| \
18722 X"$_am_arg" : 'X\(//\)$' \| \
18723 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18724 printf "%s\n" X"$_am_arg" |
18725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18726 s//\1/
18727 q
18728 }
18729 /^X\(\/\/\)[^/].*/{
18730 s//\1/
18731 q
18732 }
18733 /^X\(\/\/\)$/{
18734 s//\1/
18735 q
18736 }
18737 /^X\(\/\).*/{
18738 s//\1/
18739 q
18740 }
18741 s/.*/./; q'`/stamp-h$_am_stamp_count
18742 ;;
18743
18744 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18745 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18746 ;;
18747 esac
18748
18749
18750 case $ac_file$ac_mode in
18751 "libtool":C)
18752
18753 # See if we are running on zsh, and set the options that allow our
18754 # commands through without removal of \ escapes.
18755 if test -n "${ZSH_VERSION+set}"; then
18756 setopt NO_GLOB_SUBST
18757 fi
18758
18759 cfgfile=${ofile}T
18760 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18761 $RM "$cfgfile"
18762
18763 cat <<_LT_EOF >> "$cfgfile"
18764 #! $SHELL
18765 # Generated automatically by $as_me ($PACKAGE) $VERSION
18766 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18767
18768 # Provide generalized library-building support services.
18769 # Written by Gordon Matzigkeit, 1996
18770
18771 # Copyright (C) 2024 Free Software Foundation, Inc.
18772 # This is free software; see the source for copying conditions. There is NO
18773 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18774
18775 # GNU Libtool is free software; you can redistribute it and/or modify
18776 # it under the terms of the GNU General Public License as published by
18777 # the Free Software Foundation; either version 2 of the License, or
18778 # (at your option) any later version.
18779 #
18780 # As a special exception to the GNU General Public License, if you
18781 # distribute this file as part of a program or library that is built
18782 # using GNU Libtool, you may include this file under the same
18783 # distribution terms that you use for the rest of that program.
18784 #
18785 # GNU Libtool is distributed in the hope that it will be useful, but
18786 # WITHOUT ANY WARRANTY; without even the implied warranty of
18787 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18788 # GNU General Public License for more details.
18789 #
18790 # You should have received a copy of the GNU General Public License
18791 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18792
18793
18794 # The names of the tagged configurations supported by this script.
18795 available_tags=''
18796
18797 # Configured defaults for sys_lib_dlsearch_path munging.
18798 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18799
18800 # ### BEGIN LIBTOOL CONFIG
18801
18802 # Which release of libtool.m4 was used?
18803 macro_version=$macro_version
18804 macro_revision=$macro_revision
18805
18806 # Whether or not to build shared libraries.
18807 build_libtool_libs=$enable_shared
18808
18809 # Whether or not to build static libraries.
18810 build_old_libs=$enable_static
18811
18812 # What type of objects to build.
18813 pic_mode=$pic_mode
18814
18815 # Whether or not to optimize for fast installation.
18816 fast_install=$enable_fast_install
18817
18818 # Shared archive member basename,for filename based shared library versioning on AIX.
18819 shared_archive_member_spec=$shared_archive_member_spec
18820
18821 # Shell to use when invoking shell scripts.
18822 SHELL=$lt_SHELL
18823
18824 # An echo program that protects backslashes.
18825 ECHO=$lt_ECHO
18826
18827 # The PATH separator for the build system.
18828 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18829
18830 # The host system.
18831 host_alias=$host_alias
18832 host=$host
18833 host_os=$host_os
18834
18835 # The build system.
18836 build_alias=$build_alias
18837 build=$build
18838 build_os=$build_os
18839
18840 # A sed program that does not truncate output.
18841 SED=$lt_SED
18842
18843 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18844 Xsed="\$SED -e 1s/^X//"
18845
18846 # A grep program that handles long lines.
18847 GREP=$lt_GREP
18848
18849 # An ERE matcher.
18850 EGREP=$lt_EGREP
18851
18852 # A literal string matcher.
18853 FGREP=$lt_FGREP
18854
18855 # A BSD- or MS-compatible name lister.
18856 NM=$lt_NM
18857
18858 # Whether we need soft or hard links.
18859 LN_S=$lt_LN_S
18860
18861 # What is the maximum length of a command?
18862 max_cmd_len=$max_cmd_len
18863
18864 # Object file suffix (normally "o").
18865 objext=$ac_objext
18866
18867 # Executable file suffix (normally "").
18868 exeext=$exeext
18869
18870 # whether the shell understands "unset".
18871 lt_unset=$lt_unset
18872
18873 # turn spaces into newlines.
18874 SP2NL=$lt_lt_SP2NL
18875
18876 # turn newlines into spaces.
18877 NL2SP=$lt_lt_NL2SP
18878
18879 # convert \$build file names to \$host format.
18880 to_host_file_cmd=$lt_cv_to_host_file_cmd
18881
18882 # convert \$build files to toolchain format.
18883 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18884
18885 # A file(cmd) program that detects file types.
18886 FILECMD=$lt_FILECMD
18887
18888 # An object symbol dumper.
18889 OBJDUMP=$lt_OBJDUMP
18890
18891 # Method to check whether dependent libraries are shared objects.
18892 deplibs_check_method=$lt_deplibs_check_method
18893
18894 # Command to use when deplibs_check_method = "file_magic".
18895 file_magic_cmd=$lt_file_magic_cmd
18896
18897 # How to find potential files when deplibs_check_method = "file_magic".
18898 file_magic_glob=$lt_file_magic_glob
18899
18900 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18901 want_nocaseglob=$lt_want_nocaseglob
18902
18903 # DLL creation program.
18904 DLLTOOL=$lt_DLLTOOL
18905
18906 # Command to associate shared and link libraries.
18907 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18908
18909 # The archiver.
18910 AR=$lt_AR
18911
18912 # Flags to create an archive (by configure).
18913 lt_ar_flags=$lt_ar_flags
18914
18915 # Flags to create an archive.
18916 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18917
18918 # How to feed a file listing to the archiver.
18919 archiver_list_spec=$lt_archiver_list_spec
18920
18921 # A symbol stripping program.
18922 STRIP=$lt_STRIP
18923
18924 # Commands used to install an old-style archive.
18925 RANLIB=$lt_RANLIB
18926 old_postinstall_cmds=$lt_old_postinstall_cmds
18927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928
18929 # Whether to use a lock for old archive extraction.
18930 lock_old_archive_extraction=$lock_old_archive_extraction
18931
18932 # A C compiler.
18933 LTCC=$lt_CC
18934
18935 # LTCC compiler flags.
18936 LTCFLAGS=$lt_CFLAGS
18937
18938 # Take the output of nm and produce a listing of raw symbols and C names.
18939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18940
18941 # Transform the output of nm in a proper C declaration.
18942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18943
18944 # Transform the output of nm into a list of symbols to manually relocate.
18945 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18946
18947 # Transform the output of nm in a C name address pair.
18948 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18949
18950 # Transform the output of nm in a C name address pair when lib prefix is needed.
18951 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18952
18953 # The name lister interface.
18954 nm_interface=$lt_lt_cv_nm_interface
18955
18956 # Specify filename containing input files for \$NM.
18957 nm_file_list_spec=$lt_nm_file_list_spec
18958
18959 # The root where to search for dependent libraries,and where our libraries should be installed.
18960 lt_sysroot=$lt_sysroot
18961
18962 # Command to truncate a binary pipe.
18963 lt_truncate_bin=$lt_lt_cv_truncate_bin
18964
18965 # The name of the directory that contains temporary libtool files.
18966 objdir=$objdir
18967
18968 # Used to examine libraries when file_magic_cmd begins with "file".
18969 MAGIC_CMD=$MAGIC_CMD
18970
18971 # Must we lock files when doing compilation?
18972 need_locks=$lt_need_locks
18973
18974 # Manifest tool.
18975 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18976
18977 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18978 DSYMUTIL=$lt_DSYMUTIL
18979
18980 # Tool to change global to local symbols on Mac OS X.
18981 NMEDIT=$lt_NMEDIT
18982
18983 # Tool to manipulate fat objects and archives on Mac OS X.
18984 LIPO=$lt_LIPO
18985
18986 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18987 OTOOL=$lt_OTOOL
18988
18989 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18990 OTOOL64=$lt_OTOOL64
18991
18992 # Old archive suffix (normally "a").
18993 libext=$libext
18994
18995 # Shared library suffix (normally ".so").
18996 shrext_cmds=$lt_shrext_cmds
18997
18998 # The commands to extract the exported symbol list from a shared archive.
18999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19000
19001 # Variables whose values should be saved in libtool wrapper scripts and
19002 # restored at link time.
19003 variables_saved_for_relink=$lt_variables_saved_for_relink
19004
19005 # Do we need the "lib" prefix for modules?
19006 need_lib_prefix=$need_lib_prefix
19007
19008 # Do we need a version for libraries?
19009 need_version=$need_version
19010
19011 # Library versioning type.
19012 version_type=$version_type
19013
19014 # Shared library runtime path variable.
19015 runpath_var=$runpath_var
19016
19017 # Shared library path variable.
19018 shlibpath_var=$shlibpath_var
19019
19020 # Is shlibpath searched before the hard-coded library search path?
19021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19022
19023 # Format of library name prefix.
19024 libname_spec=$lt_libname_spec
19025
19026 # List of archive names. First name is the real one, the rest are links.
19027 # The last name is the one that the linker finds with -lNAME
19028 library_names_spec=$lt_library_names_spec
19029
19030 # The coded name of the library, if different from the real name.
19031 soname_spec=$lt_soname_spec
19032
19033 # Permission mode override for installation of shared libraries.
19034 install_override_mode=$lt_install_override_mode
19035
19036 # Command to use after installation of a shared archive.
19037 postinstall_cmds=$lt_postinstall_cmds
19038
19039 # Command to use after uninstallation of a shared archive.
19040 postuninstall_cmds=$lt_postuninstall_cmds
19041
19042 # Commands used to finish a libtool library installation in a directory.
19043 finish_cmds=$lt_finish_cmds
19044
19045 # As "finish_cmds", except a single script fragment to be evaled but
19046 # not shown.
19047 finish_eval=$lt_finish_eval
19048
19049 # Whether we should hardcode library paths into libraries.
19050 hardcode_into_libs=$hardcode_into_libs
19051
19052 # Compile-time system search path for libraries.
19053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19054
19055 # Detected run-time system search path for libraries.
19056 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19057
19058 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19059 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19060
19061 # Whether dlopen is supported.
19062 dlopen_support=$enable_dlopen
19063
19064 # Whether dlopen of programs is supported.
19065 dlopen_self=$enable_dlopen_self
19066
19067 # Whether dlopen of statically linked programs is supported.
19068 dlopen_self_static=$enable_dlopen_self_static
19069
19070 # Commands to strip libraries.
19071 old_striplib=$lt_old_striplib
19072 striplib=$lt_striplib
19073
19074
19075 # The linker used to build libraries.
19076 LD=$lt_LD
19077
19078 # How to create reloadable object files.
19079 reload_flag=$lt_reload_flag
19080 reload_cmds=$lt_reload_cmds
19081
19082 # Commands used to build an old-style archive.
19083 old_archive_cmds=$lt_old_archive_cmds
19084
19085 # A language specific compiler.
19086 CC=$lt_compiler
19087
19088 # Is the compiler the GNU compiler?
19089 with_gcc=$GCC
19090
19091 # Compiler flag to turn off builtin functions.
19092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19093
19094 # Additional compiler flags for building library objects.
19095 pic_flag=$lt_lt_prog_compiler_pic
19096
19097 # How to pass a linker flag through the compiler.
19098 wl=$lt_lt_prog_compiler_wl
19099
19100 # Compiler flag to prevent dynamic linking.
19101 link_static_flag=$lt_lt_prog_compiler_static
19102
19103 # Does compiler simultaneously support -c and -o options?
19104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19105
19106 # Whether or not to add -lc for building shared libraries.
19107 build_libtool_need_lc=$archive_cmds_need_lc
19108
19109 # Whether or not to disallow shared libs when runtime libs are static.
19110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19111
19112 # Compiler flag to allow reflexive dlopens.
19113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19114
19115 # Compiler flag to generate shared objects directly from archives.
19116 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19117
19118 # Whether the compiler copes with passing no objects directly.
19119 compiler_needs_object=$lt_compiler_needs_object
19120
19121 # Create an old-style archive from a shared archive.
19122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19123
19124 # Create a temporary old-style archive to link instead of a shared archive.
19125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19126
19127 # Commands used to build a shared archive.
19128 archive_cmds=$lt_archive_cmds
19129 archive_expsym_cmds=$lt_archive_expsym_cmds
19130
19131 # Commands used to build a loadable module if different from building
19132 # a shared archive.
19133 module_cmds=$lt_module_cmds
19134 module_expsym_cmds=$lt_module_expsym_cmds
19135
19136 # Whether we are building with GNU ld or not.
19137 with_gnu_ld=$lt_with_gnu_ld
19138
19139 # Flag that allows shared libraries with undefined symbols to be built.
19140 allow_undefined_flag=$lt_allow_undefined_flag
19141
19142 # Flag that enforces no undefined symbols.
19143 no_undefined_flag=$lt_no_undefined_flag
19144
19145 # Flag to hardcode \$libdir into a binary during linking.
19146 # This must work even if \$libdir does not exist
19147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19148
19149 # Whether we need a single "-rpath" flag with a separated argument.
19150 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19151
19152 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19153 # DIR into the resulting binary.
19154 hardcode_direct=$hardcode_direct
19155
19156 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19157 # DIR into the resulting binary and the resulting library dependency is
19158 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19159 # library is relocated.
19160 hardcode_direct_absolute=$hardcode_direct_absolute
19161
19162 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19163 # into the resulting binary.
19164 hardcode_minus_L=$hardcode_minus_L
19165
19166 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19167 # into the resulting binary.
19168 hardcode_shlibpath_var=$hardcode_shlibpath_var
19169
19170 # Set to "yes" if building a shared library automatically hardcodes DIR
19171 # into the library and all subsequent libraries and executables linked
19172 # against it.
19173 hardcode_automatic=$hardcode_automatic
19174
19175 # Set to yes if linker adds runtime paths of dependent libraries
19176 # to runtime path list.
19177 inherit_rpath=$inherit_rpath
19178
19179 # Whether libtool must link a program against all its dependency libraries.
19180 link_all_deplibs=$link_all_deplibs
19181
19182 # Set to "yes" if exported symbols are required.
19183 always_export_symbols=$always_export_symbols
19184
19185 # The commands to list exported symbols.
19186 export_symbols_cmds=$lt_export_symbols_cmds
19187
19188 # Symbols that should not be listed in the preloaded symbols.
19189 exclude_expsyms=$lt_exclude_expsyms
19190
19191 # Symbols that must always be exported.
19192 include_expsyms=$lt_include_expsyms
19193
19194 # Commands necessary for linking programs (against libraries) with templates.
19195 prelink_cmds=$lt_prelink_cmds
19196
19197 # Commands necessary for finishing linking programs.
19198 postlink_cmds=$lt_postlink_cmds
19199
19200 # Specify filename containing input files.
19201 file_list_spec=$lt_file_list_spec
19202
19203 # How to hardcode a shared library path into an executable.
19204 hardcode_action=$hardcode_action
19205
19206 # ### END LIBTOOL CONFIG
19207
19208 _LT_EOF
19209
19210 cat <<'_LT_EOF' >> "$cfgfile"
19211
19212 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19213
19214 # func_munge_path_list VARIABLE PATH
19215 # -----------------------------------
19216 # VARIABLE is name of variable containing _space_ separated list of
19217 # directories to be munged by the contents of PATH, which is string
19218 # having a format:
19219 # "DIR[:DIR]:"
19220 # string "DIR[ DIR]" will be prepended to VARIABLE
19221 # ":DIR[:DIR]"
19222 # string "DIR[ DIR]" will be appended to VARIABLE
19223 # "DIRP[:DIRP]::[DIRA:]DIRA"
19224 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19225 # "DIRA[ DIRA]" will be appended to VARIABLE
19226 # "DIR[:DIR]"
19227 # VARIABLE will be replaced by "DIR[ DIR]"
19228 func_munge_path_list ()
19229 {
19230 case x$2 in
19231 x)
19232 ;;
19233 *:)
19234 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19235 ;;
19236 x:*)
19237 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19238 ;;
19239 *::*)
19240 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19241 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19242 ;;
19243 *)
19244 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19245 ;;
19246 esac
19247 }
19248
19249
19250 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19251 func_cc_basename ()
19252 {
19253 for cc_temp in $*""; do
19254 case $cc_temp in
19255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19257 \-*) ;;
19258 *) break;;
19259 esac
19260 done
19261 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19262 }
19263
19264
19265 # ### END FUNCTIONS SHARED WITH CONFIGURE
19266
19267 _LT_EOF
19268
19269 case $host_os in
19270 aix3*)
19271 cat <<\_LT_EOF >> "$cfgfile"
19272 # AIX sometimes has problems with the GCC collect2 program. For some
19273 # reason, if we set the COLLECT_NAMES environment variable, the problems
19274 # vanish in a puff of smoke.
19275 if test set != "${COLLECT_NAMES+set}"; then
19276 COLLECT_NAMES=
19277 export COLLECT_NAMES
19278 fi
19279 _LT_EOF
19280 ;;
19281 esac
19282
19283
19284
19285 ltmain=$ac_aux_dir/ltmain.sh
19286
19287
19288 # We use sed instead of cat because bash on DJGPP gets confused if
19289 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19290 # text mode, it properly converts lines to CR/LF. This bash problem
19291 # is reportedly fixed, but why not run on old versions too?
19292 $SED '$q' "$ltmain" >> "$cfgfile" \
19293 || (rm -f "$cfgfile"; exit 1)
19294
19295 mv -f "$cfgfile" "$ofile" ||
19296 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19297 chmod +x "$ofile"
19298
19299 ;;
19300 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19301 # Older Autoconf quotes --file arguments for eval, but not when files
19302 # are listed without --file. Let's play safe and only enable the eval
19303 # if we detect the quoting.
19304 # TODO: see whether this extra hack can be removed once we start
19305 # requiring Autoconf 2.70 or later.
19306 case $CONFIG_FILES in #(
19307 *\'*) :
19308 eval set x "$CONFIG_FILES" ;; #(
19309 *) :
19310 set x $CONFIG_FILES ;; #(
19311 *) :
19312 ;;
19313 esac
19314 shift
19315 # Used to flag and report bootstrapping failures.
19316 am_rc=0
19317 for am_mf
19318 do
19319 # Strip MF so we end up with the name of the file.
19320 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19321 # Check whether this is an Automake generated Makefile which includes
19322 # dependency-tracking related rules and includes.
19323 # Grep'ing the whole file directly is not great: AIX grep has a line
19324 # limit of 2048, but all sed's we know have understand at least 4000.
19325 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19326 || continue
19327 am_dirpart=`$as_dirname -- "$am_mf" ||
19328 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19329 X"$am_mf" : 'X\(//\)[^/]' \| \
19330 X"$am_mf" : 'X\(//\)$' \| \
19331 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19332 printf "%s\n" X"$am_mf" |
19333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19334 s//\1/
19335 q
19336 }
19337 /^X\(\/\/\)[^/].*/{
19338 s//\1/
19339 q
19340 }
19341 /^X\(\/\/\)$/{
19342 s//\1/
19343 q
19344 }
19345 /^X\(\/\).*/{
19346 s//\1/
19347 q
19348 }
19349 s/.*/./; q'`
19350 am_filepart=`$as_basename -- "$am_mf" ||
19351 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19352 X"$am_mf" : 'X\(//\)$' \| \
19353 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19354 printf "%s\n" X/"$am_mf" |
19355 sed '/^.*\/\([^/][^/]*\)\/*$/{
19356 s//\1/
19357 q
19358 }
19359 /^X\/\(\/\/\)$/{
19360 s//\1/
19361 q
19362 }
19363 /^X\/\(\/\).*/{
19364 s//\1/
19365 q
19366 }
19367 s/.*/./; q'`
19368 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19369 && sed -e '/# am--include-marker/d' "$am_filepart" \
19370 | $MAKE -f - am--depfiles" >&5
19371 (cd "$am_dirpart" \
19372 && sed -e '/# am--include-marker/d' "$am_filepart" \
19373 | $MAKE -f - am--depfiles) >&5 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } || am_rc=$?
19377 done
19378 if test $am_rc -ne 0; then
19379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19380 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19381 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19382 for automatic dependency tracking. If GNU make was not used, consider
19383 re-running the configure script with MAKE=\"gmake\" (or whatever is
19384 necessary). You can also try re-running configure with the
19385 '--disable-dependency-tracking' option to at least be able to build
19386 the package (albeit without support for automatic dependency tracking).
19387 See 'config.log' for more details" "$LINENO" 5; }
19388 fi
19389 { am_dirpart=; unset am_dirpart;}
19390 { am_filepart=; unset am_filepart;}
19391 { am_mf=; unset am_mf;}
19392 { am_rc=; unset am_rc;}
19393 rm -f conftest-deps.mk
19394 }
19395 ;;
19396
19397 esac
19398 done # for ac_tag
19399
19400
19401 as_fn_exit 0
19402 _ACEOF
19403 ac_clean_files=$ac_clean_files_save
19404
19405 test $ac_write_fail = 0 ||
19406 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19407
19408
19409 # configure is writing to config.log, and then calls config.status.
19410 # config.status does its own redirection, appending to config.log.
19411 # Unfortunately, on DOS this fails, as config.log is still kept open
19412 # by configure, so config.status won't be able to write to it; its
19413 # output is simply discarded. So we exec the FD to /dev/null,
19414 # effectively closing config.log, so it can be properly (re)opened and
19415 # appended to by config.status. When coming back to configure, we
19416 # need to make the FD available again.
19417 if test "$no_create" != yes; then
19418 ac_cs_success=:
19419 ac_config_status_args=
19420 test "$silent" = yes &&
19421 ac_config_status_args="$ac_config_status_args --quiet"
19422 exec 5>/dev/null
19423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19424 exec 5>>config.log
19425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19426 # would make configure fail if this is the last instruction.
19427 $ac_cs_success || as_fn_exit 1
19428 fi
19429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19431 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19432 fi
19433
19434