Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dbus-test-runner 19.04.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright 2009-2019 Canonical
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1
204
205 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
206 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
209 PATH=/empty FPATH=/empty; export PATH FPATH
210 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
211 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell [email protected] and [email protected]
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='dbus-test-runner'
594 PACKAGE_TARNAME='dbus-test-runner'
595 PACKAGE_VERSION='19.04.0'
596 PACKAGE_STRING='dbus-test-runner 19.04.0'
597 PACKAGE_BUGREPORT='[email protected]'
598 PACKAGE_URL=''
599
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 TEST_BUSTLE_FALSE
641 TEST_BUSTLE_TRUE
642 have_bustle
643 COVERAGE_LDFLAGS
644 COVERAGE_CXXFLAGS
645 COVERAGE_CFLAGS
646 HAVE_GCOVR_FALSE
647 HAVE_GCOVR_TRUE
648 HAVE_LCOV_FALSE
649 HAVE_LCOV_TRUE
650 HAVE_GCOV_FALSE
651 HAVE_GCOV_TRUE
652 GCOVR
653 GENHTML
654 LCOV
655 SHTOOL
656 MKINSTALLDIRS
657 POSUB
658 POFILES
659 PO_IN_DATADIR_FALSE
660 PO_IN_DATADIR_TRUE
661 INTLLIBS
662 INSTOBJEXT
663 GMOFILES
664 DATADIRNAME
665 CATOBJEXT
666 CATALOGS
667 MSGFMT_OPTS
668 INTL_MACOSX_LIBS
669 GETTEXT_PACKAGE
670 DBUS_TEST_RUNNER_LIBS
671 DBUS_TEST_RUNNER_CFLAGS
672 PKG_CONFIG_LIBDIR
673 PKG_CONFIG_PATH
674 PKG_CONFIG
675 LT_SYS_LIBRARY_PATH
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 RANLIB
683 ac_ct_AR
684 AR
685 DLLTOOL
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 EGREP
704 GREP
705 CPP
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 ALL_LINGUAS
723 INTLTOOL_PERL
724 GMSGFMT
725 MSGFMT
726 MSGMERGE
727 XGETTEXT
728 INTLTOOL_POLICY_RULE
729 INTLTOOL_SERVICE_RULE
730 INTLTOOL_THEME_RULE
731 INTLTOOL_SCHEMAS_RULE
732 INTLTOOL_CAVES_RULE
733 INTLTOOL_XML_NOMERGE_RULE
734 INTLTOOL_XML_RULE
735 INTLTOOL_KBD_RULE
736 INTLTOOL_XAM_RULE
737 INTLTOOL_UI_RULE
738 INTLTOOL_SOUNDLIST_RULE
739 INTLTOOL_SHEET_RULE
740 INTLTOOL_SERVER_RULE
741 INTLTOOL_PONG_RULE
742 INTLTOOL_OAF_RULE
743 INTLTOOL_PROP_RULE
744 INTLTOOL_KEYS_RULE
745 INTLTOOL_DIRECTORY_RULE
746 INTLTOOL_DESKTOP_RULE
747 intltool__v_merge_options_0
748 intltool__v_merge_options_
749 INTLTOOL_V_MERGE_OPTIONS
750 INTLTOOL__v_MERGE_0
751 INTLTOOL__v_MERGE_
752 INTLTOOL_V_MERGE
753 INTLTOOL_EXTRACT
754 INTLTOOL_MERGE
755 INTLTOOL_UPDATE
756 USE_NLS
757 MAINT
758 MAINTAINER_MODE_FALSE
759 MAINTAINER_MODE_TRUE
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 runstatedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL
826 am__quote'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_silent_rules
831 enable_maintainer_mode
832 enable_nls
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_aix_soname
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 enable_gcov
843 '
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
847 CC
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
852 CPP
853 LT_SYS_LIBRARY_PATH
854 PKG_CONFIG
855 PKG_CONFIG_PATH
856 PKG_CONFIG_LIBDIR
857 DBUS_TEST_RUNNER_CFLAGS
858 DBUS_TEST_RUNNER_LIBS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 runstatedir='${localstatedir}/run'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
980
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
985
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
990
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -runstatedir | --runstatedir | --runstatedi | --runstated \
1151 | --runstate | --runstat | --runsta | --runst | --runs \
1152 | --run | --ru | --r)
1153 ac_prev=runstatedir ;;
1154 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1155 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1156 | --run=* | --ru=* | --r=*)
1157 runstatedir=$ac_optarg ;;
1158
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 ac_prev=sbindir ;;
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 | --sbi=* | --sb=*)
1163 sbindir=$ac_optarg ;;
1164
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1168 | --sha | --sh)
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 | --sha=* | --sh=*)
1174 sharedstatedir=$ac_optarg ;;
1175
1176 -site | --site | --sit)
1177 ac_prev=site ;;
1178 -site=* | --site=* | --sit=*)
1179 site=$ac_optarg ;;
1180
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 ac_prev=srcdir ;;
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1185
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1192
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1197
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 verbose=yes ;;
1200
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1203
1204 -with-* | --with-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=\$ac_optarg ;;
1219
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=no ;;
1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1256 ;;
1257
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' | [0-9]* | *[!_$as_cr_alnum]* )
1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 esac
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274 ;;
1275
1276 esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $? "missing argument to $ac_option"
1282 fi
1283
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1286 no) ;;
1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir runstatedir
1297 do
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1300 case $ac_val in
1301 */ )
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1304 esac
1305 # Be sure to have absolute directory names.
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 $as_echo X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374 else
1375 ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1388 fi
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1401
1402 #
1403 # Report the --help message.
1404 #
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures dbus-test-runner 19.04.0 to adapt to many kinds of systems.
1410
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1415
1416 Defaults for the options are specified in brackets.
1417
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1434
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1439
1440 For better control, use the options below.
1441
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root
1459 [DATAROOTDIR/doc/dbus-test-runner]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1465
1466 cat <<\_ACEOF
1467
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of dbus-test-runner 19.04.0:";;
1482 esac
1483 cat <<\_ACEOF
1484
1485 Optional Features:
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --enable-silent-rules less verbose build output (undo: "make V=1")
1490 --disable-silent-rules verbose build output (undo: "make V=0")
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful (and
1493 sometimes confusing) to the casual installer
1494 --disable-nls do not use Native Language Support
1495 --enable-dependency-tracking
1496 do not reject slow dependency extractors
1497 --disable-dependency-tracking
1498 speeds up one-time build
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --enable-gcov enable coverage testing with gcov
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-aix-soname=aix|svr4|both
1512 shared library versioning (aka "SONAME") variant to
1513 provide on AIX, [default=aix].
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1516 compiler's sysroot if not specified).
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CPP C preprocessor
1527 LT_SYS_LIBRARY_PATH
1528 User-defined run-time library search path.
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 DBUS_TEST_RUNNER_CFLAGS
1535 C compiler flags for DBUS_TEST_RUNNER, overriding pkg-config
1536 DBUS_TEST_RUNNER_LIBS
1537 linker flags for DBUS_TEST_RUNNER, overriding pkg-config
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <[email protected]>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 dbus-test-runner configure 19.04.0
1606 generated by GNU Autoconf 2.69
1607
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611
1612 Copyright 2009-2019 Canonical
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_cpp ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736 fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_cpp
1741
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1746 ac_fn_c_try_run ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=$ac_status
1777 fi
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_run
1783
1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists and can be compiled using the include files in
1787 # INCLUDES, setting the cache variable VAR accordingly.
1788 ac_fn_c_check_header_compile ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_header_compile
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1886 # accordingly.
1887 ac_fn_c_check_header_mongrel ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if eval \${$3+:} false; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 else
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_header_compiler=yes
1910 else
1911 ac_header_compiler=no
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1916
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_cpp "$LINENO"; then :
1925 ac_header_preproc=yes
1926 else
1927 ac_header_preproc=no
1928 fi
1929 rm -f conftest.err conftest.i conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1932
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935 yes:no: )
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ;;
1941 no:yes:* )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952 ( $as_echo "## -------------------------------- ##
1953 ## Report this to [email protected] ##
1954 ## -------------------------------- ##"
1955 ) | sed "s/^/$as_me: WARNING: /" >&2
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_header_mongrel
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1975
1976 It was created by dbus-test-runner $as_me 19.04.0, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1978
1979 $ $0 $@
1980
1981 _ACEOF
1982 exec 5>>config.log
1983 {
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1988
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006 _ASUNAME
2007
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2016
2017 } >&5
2018
2019 cat >&5 <<_ACEOF
2020
2021
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2025
2026 _ACEOF
2027
2028
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2039 do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2076
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092 (
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120 )
2121 echo
2122
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2126 echo
2127 for ac_var in $ac_subst_vars
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2155 ## confdefs.h. ##
2156 ## ----------- ##"
2157 echo
2158 cat confdefs.h
2159 echo
2160 fi
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2164 } >&5
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 exit $exit_status
2168 ' 0
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171 done
2172 ac_signal=0
2173
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2176
2177 $as_echo "/* confdefs.h */" > confdefs.h
2178
2179 # Predefined preprocessor variables.
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2203 _ACEOF
2204
2205
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2208 ac_site_file1=NONE
2209 ac_site_file2=NONE
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2216 esac
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220 else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223 fi
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file" \
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2236 fi
2237 done
2238
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2254 fi
2255
2256 # Check that the precious variables saved in the cache have kept the same
2257 # value.
2258 ac_cache_corrupted=false
2259 for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,set)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,);;
2274 *)
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303 esac
2304 fi
2305 done
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 fi
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325
2326
2327
2328 ac_config_headers="$ac_config_headers config.h"
2329
2330 am__api_version='1.16'
2331
2332 ac_aux_dir=
2333 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2334 if test -f "$ac_dir/install-sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install-sh -c"
2337 break
2338 elif test -f "$ac_dir/install.sh"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/install.sh -c"
2341 break
2342 elif test -f "$ac_dir/shtool"; then
2343 ac_aux_dir=$ac_dir
2344 ac_install_sh="$ac_aux_dir/shtool install -c"
2345 break
2346 fi
2347 done
2348 if test -z "$ac_aux_dir"; then
2349 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2350 fi
2351
2352 # These three variables are undocumented and unsupported,
2353 # and are intended to be withdrawn in a future Autoconf release.
2354 # They can cause serious problems if a builder's source tree is in a directory
2355 # whose full name contains unusual characters.
2356 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2357 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2358 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2359
2360
2361 # Find a good install program. We prefer a C program (faster),
2362 # so one script is as good as another. But avoid the broken or
2363 # incompatible versions:
2364 # SysV /etc/install, /usr/sbin/install
2365 # SunOS /usr/etc/install
2366 # IRIX /sbin/install
2367 # AIX /bin/install
2368 # AmigaOS /C/install, which installs bootblocks on floppy discs
2369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2372 # OS/2's system install, which has a completely different semantic
2373 # ./install, which can be erroneously created by make from ./install.sh.
2374 # Reject install programs that cannot install multiple files.
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2376 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2377 if test -z "$INSTALL"; then
2378 if ${ac_cv_path_install+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 # Account for people who put trailing slashes in PATH elements.
2387 case $as_dir/ in #((
2388 ./ | .// | /[cC]/* | \
2389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2390 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2391 /usr/ucb/* ) ;;
2392 *)
2393 # OSF1 and SCO ODT 3.0 have their own names for install.
2394 # Don't use installbsd from OSF since it installs stuff as root
2395 # by default.
2396 for ac_prog in ginstall scoinst install; do
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2399 if test $ac_prog = install &&
2400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # AIX install. It has an incompatible calling convention.
2402 :
2403 elif test $ac_prog = install &&
2404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2405 # program-specific install script used by HP pwplus--don't use.
2406 :
2407 else
2408 rm -rf conftest.one conftest.two conftest.dir
2409 echo one > conftest.one
2410 echo two > conftest.two
2411 mkdir conftest.dir
2412 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2413 test -s conftest.one && test -s conftest.two &&
2414 test -s conftest.dir/conftest.one &&
2415 test -s conftest.dir/conftest.two
2416 then
2417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2418 break 3
2419 fi
2420 fi
2421 fi
2422 done
2423 done
2424 ;;
2425 esac
2426
2427 done
2428 IFS=$as_save_IFS
2429
2430 rm -rf conftest.one conftest.two conftest.dir
2431
2432 fi
2433 if test "${ac_cv_path_install+set}" = set; then
2434 INSTALL=$ac_cv_path_install
2435 else
2436 # As a last resort, use the slow shell script. Don't cache a
2437 # value for INSTALL within a source directory, because that will
2438 # break other packages using the cache if that directory is
2439 # removed, or if the value is a relative name.
2440 INSTALL=$ac_install_sh
2441 fi
2442 fi
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2444 $as_echo "$INSTALL" >&6; }
2445
2446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2447 # It thinks the first close brace ends the variable substitution.
2448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2449
2450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2451
2452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2455 $as_echo_n "checking whether build environment is sane... " >&6; }
2456 # Reject unsafe characters in $srcdir or the absolute working directory
2457 # name. Accept space and tab only in the latter.
2458 am_lf='
2459 '
2460 case `pwd` in
2461 *[\\\"\#\$\&\'\`$am_lf]*)
2462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463 esac
2464 case $srcdir in
2465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2466 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2467 esac
2468
2469 # Do 'set' in a subshell so we don't clobber the current shell's
2470 # arguments. Must try -L first in case configure is actually a
2471 # symlink; some systems play weird games with the mod time of symlinks
2472 # (eg FreeBSD returns the mod time of the symlink's containing
2473 # directory).
2474 if (
2475 am_has_slept=no
2476 for am_try in 1 2; do
2477 echo "timestamp, slept: $am_has_slept" > conftest.file
2478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2479 if test "$*" = "X"; then
2480 # -L didn't work.
2481 set X `ls -t "$srcdir/configure" conftest.file`
2482 fi
2483 if test "$*" != "X $srcdir/configure conftest.file" \
2484 && test "$*" != "X conftest.file $srcdir/configure"; then
2485
2486 # If neither matched, then we have a broken ls. This can happen
2487 # if, for instance, CONFIG_SHELL is bash and it inherits a
2488 # broken ls alias from the environment. This has actually
2489 # happened. Such a system could not be considered "sane".
2490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2491 alias in your environment" "$LINENO" 5
2492 fi
2493 if test "$2" = conftest.file || test $am_try -eq 2; then
2494 break
2495 fi
2496 # Just in case.
2497 sleep 1
2498 am_has_slept=yes
2499 done
2500 test "$2" = conftest.file
2501 )
2502 then
2503 # Ok.
2504 :
2505 else
2506 as_fn_error $? "newly created file is older than distributed files!
2507 Check your system clock" "$LINENO" 5
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2510 $as_echo "yes" >&6; }
2511 # If we didn't sleep, we still need to ensure time stamps of config.status and
2512 # generated files are strictly newer.
2513 am_sleep_pid=
2514 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2515 ( sleep 1 ) &
2516 am_sleep_pid=$!
2517 fi
2518
2519 rm -f conftest.file
2520
2521 test "$program_prefix" != NONE &&
2522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523 # Use a double $ so make ignores it.
2524 test "$program_suffix" != NONE &&
2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526 # Double any \ or $.
2527 # By default was `s,x,x', remove it if useless.
2528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530
2531 # Expand $ac_aux_dir to an absolute path.
2532 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2533
2534 if test x"${MISSING+set}" != xset; then
2535 case $am_aux_dir in
2536 *\ * | *\ *)
2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538 *)
2539 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2540 esac
2541 fi
2542 # Use eval to expand $SHELL
2543 if eval "$MISSING --is-lightweight"; then
2544 am_missing_run="$MISSING "
2545 else
2546 am_missing_run=
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2548 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2549 fi
2550
2551 if test x"${install_sh+set}" != xset; then
2552 case $am_aux_dir in
2553 *\ * | *\ *)
2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555 *)
2556 install_sh="\${SHELL} $am_aux_dir/install-sh"
2557 esac
2558 fi
2559
2560 # Installed binaries are usually stripped using 'strip' when the user
2561 # run "make install-strip". However 'strip' might not be the right
2562 # tool to use in cross-compilation environments, therefore Automake
2563 # will honor the 'STRIP' environment variable to overrule this program.
2564 if test "$cross_compiling" != no; then
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_STRIP+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test -n "$STRIP"; then
2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 STRIP=$ac_cv_prog_STRIP
2594 if test -n "$STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596 $as_echo "$STRIP" >&6; }
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602
2603 fi
2604 if test -z "$ac_cv_prog_STRIP"; then
2605 ac_ct_STRIP=$STRIP
2606 # Extract the first word of "strip", so it can be a program name with args.
2607 set dummy strip; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$ac_ct_STRIP"; then
2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_ac_ct_STRIP="strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2634 if test -n "$ac_ct_STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636 $as_echo "$ac_ct_STRIP" >&6; }
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642 if test "x$ac_ct_STRIP" = x; then
2643 STRIP=":"
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2650 esac
2651 STRIP=$ac_ct_STRIP
2652 fi
2653 else
2654 STRIP="$ac_cv_prog_STRIP"
2655 fi
2656
2657 fi
2658 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662 if test -z "$MKDIR_P"; then
2663 if ${ac_cv_path_mkdir+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in mkdir gmkdir; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675 'mkdir (GNU coreutils) '* | \
2676 'mkdir (coreutils) '* | \
2677 'mkdir (fileutils) '4.1*)
2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2679 break 3;;
2680 esac
2681 done
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687
2688 test -d ./--version && rmdir ./--version
2689 if test "${ac_cv_path_mkdir+set}" = set; then
2690 MKDIR_P="$ac_cv_path_mkdir -p"
2691 else
2692 # As a last resort, use the slow shell script. Don't cache a
2693 # value for MKDIR_P within a source directory, because that will
2694 # break other packages using the cache if that directory is
2695 # removed, or if the value is a relative name.
2696 MKDIR_P="$ac_install_sh -d"
2697 fi
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700 $as_echo "$MKDIR_P" >&6; }
2701
2702 for ac_prog in gawk mawk nawk awk
2703 do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_AWK+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 AWK=$ac_cv_prog_AWK
2732 if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741 test -n "$AWK" && break
2742 done
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2746 set x ${MAKE-make}
2747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 cat >conftest.make <<\_ACEOF
2752 SHELL = /bin/sh
2753 all:
2754 @echo '@@@%%%=$(MAKE)=@@@%%%'
2755 _ACEOF
2756 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2758 *@@@%%%=?*=@@@%%%*)
2759 eval ac_cv_prog_make_${ac_make}_set=yes;;
2760 *)
2761 eval ac_cv_prog_make_${ac_make}_set=no;;
2762 esac
2763 rm -f conftest.make
2764 fi
2765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 SET_MAKE=
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 SET_MAKE="MAKE=${MAKE-make}"
2773 fi
2774
2775 rm -rf .tst 2>/dev/null
2776 mkdir .tst 2>/dev/null
2777 if test -d .tst; then
2778 am__leading_dot=.
2779 else
2780 am__leading_dot=_
2781 fi
2782 rmdir .tst 2>/dev/null
2783
2784 # Check whether --enable-silent-rules was given.
2785 if test "${enable_silent_rules+set}" = set; then :
2786 enableval=$enable_silent_rules;
2787 fi
2788
2789 case $enable_silent_rules in # (((
2790 yes) AM_DEFAULT_VERBOSITY=0;;
2791 no) AM_DEFAULT_VERBOSITY=1;;
2792 *) AM_DEFAULT_VERBOSITY=1;;
2793 esac
2794 am_make=${MAKE-make}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2796 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2797 if ${am_cv_make_support_nested_variables+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if $as_echo 'TRUE=$(BAR$(V))
2801 BAR0=false
2802 BAR1=true
2803 V=1
2804 am__doit:
2805 @$(TRUE)
2806 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2807 am_cv_make_support_nested_variables=yes
2808 else
2809 am_cv_make_support_nested_variables=no
2810 fi
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2813 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2814 if test $am_cv_make_support_nested_variables = yes; then
2815 AM_V='$(V)'
2816 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2817 else
2818 AM_V=$AM_DEFAULT_VERBOSITY
2819 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2820 fi
2821 AM_BACKSLASH='\'
2822
2823 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2824 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2825 # is not polluted with repeated "-I."
2826 am__isrc=' -I$(srcdir)'
2827 # test to see if srcdir already configured
2828 if test -f $srcdir/config.status; then
2829 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2830 fi
2831 fi
2832
2833 # test whether we have cygpath
2834 if test -z "$CYGPATH_W"; then
2835 if (cygpath --version) >/dev/null 2>/dev/null; then
2836 CYGPATH_W='cygpath -w'
2837 else
2838 CYGPATH_W=echo
2839 fi
2840 fi
2841
2842
2843 # Define the identity of the package.
2844
2845 PACKAGE=dbus-test-runner
2846 VERSION=19.04.0
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE "$PACKAGE"
2851 _ACEOF
2852
2853
2854 cat >>confdefs.h <<_ACEOF
2855 #define VERSION "$VERSION"
2856 _ACEOF
2857
2858 # Some tools Automake needs.
2859
2860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2861
2862
2863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2864
2865
2866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2867
2868
2869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2870
2871
2872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2873
2874 # For better backward compatibility. To be removed once Automake 1.9.x
2875 # dies out for good. For more background, see:
2876 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2877 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2878 mkdir_p='$(MKDIR_P)'
2879
2880 # We need awk for the "check" target (and possibly the TAP driver). The
2881 # system "awk" is bad on some platforms.
2882 # Always define AMTAR for backward compatibility. Yes, it's still used
2883 # in the wild :-( We should find a proper way to deprecate it ...
2884 AMTAR='$${TAR-tar}'
2885
2886
2887 # We'll loop over all known methods to create a tar archive until one works.
2888 _am_tools='gnutar pax cpio none'
2889
2890 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2891
2892
2893
2894
2895
2896
2897 # POSIX will say in a future version that running "rm -f" with no argument
2898 # is OK; and we want to be able to make that assumption in our Makefile
2899 # recipes. So use an aggressive probe to check that the usage we want is
2900 # actually supported "in the wild" to an acceptable degree.
2901 # See automake bug#10828.
2902 # To make any issue more visible, cause the running configure to be aborted
2903 # by default if the 'rm' program in use doesn't match our expectations; the
2904 # user can still override this though.
2905 if rm -f && rm -fr && rm -rf; then : OK; else
2906 cat >&2 <<'END'
2907 Oops!
2908
2909 Your 'rm' program seems unable to run without file operands specified
2910 on the command line, even when the '-f' option is present. This is contrary
2911 to the behaviour of most rm programs out there, and not conforming with
2912 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2913
2914 Please tell [email protected] about your system, including the value
2915 of your $PATH and any error possibly output before this message. This
2916 can help us improve future automake versions.
2917
2918 END
2919 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2920 echo 'Configuration will proceed anyway, since you have set the' >&2
2921 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2922 echo >&2
2923 else
2924 cat >&2 <<'END'
2925 Aborting the configuration process, to ensure you take notice of the issue.
2926
2927 You can download and install GNU coreutils to get an 'rm' implementation
2928 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2929
2930 If you want to complete the configuration process using your problematic
2931 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2932 to "yes", and re-run configure.
2933
2934 END
2935 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2936 fi
2937 fi
2938
2939
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2942 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2943 # Check whether --enable-maintainer-mode was given.
2944 if test "${enable_maintainer_mode+set}" = set; then :
2945 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2946 else
2947 USE_MAINTAINER_MODE=no
2948 fi
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2951 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2952 if test $USE_MAINTAINER_MODE = yes; then
2953 MAINTAINER_MODE_TRUE=
2954 MAINTAINER_MODE_FALSE='#'
2955 else
2956 MAINTAINER_MODE_TRUE='#'
2957 MAINTAINER_MODE_FALSE=
2958 fi
2959
2960 MAINT=$MAINTAINER_MODE_TRUE
2961
2962
2963
2964
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2966 $as_echo_n "checking whether NLS is requested... " >&6; }
2967 # Check whether --enable-nls was given.
2968 if test "${enable_nls+set}" = set; then :
2969 enableval=$enable_nls; USE_NLS=$enableval
2970 else
2971 USE_NLS=yes
2972 fi
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2975 $as_echo "$USE_NLS" >&6; }
2976
2977
2978
2979
2980 case "$am__api_version" in
2981 1.01234)
2982 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
2983 ;;
2984 *)
2985 ;;
2986 esac
2987
2988 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
2989 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
2990 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
2991 if test -n "0.35.0"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
2993 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
2995 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
2996 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
2997 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
2998 fi
2999
3000 # Extract the first word of "intltool-update", so it can be a program name with args.
3001 set dummy intltool-update; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 case $INTLTOOL_UPDATE in
3008 [\\/]* | ?:[\\/]*)
3009 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
3010 ;;
3011 *)
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 ;;
3028 esac
3029 fi
3030 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
3031 if test -n "$INTLTOOL_UPDATE"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
3033 $as_echo "$INTLTOOL_UPDATE" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040 # Extract the first word of "intltool-merge", so it can be a program name with args.
3041 set dummy intltool-merge; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 case $INTLTOOL_MERGE in
3048 [\\/]* | ?:[\\/]*)
3049 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
3050 ;;
3051 *)
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 ;;
3068 esac
3069 fi
3070 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
3071 if test -n "$INTLTOOL_MERGE"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
3073 $as_echo "$INTLTOOL_MERGE" >&6; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079
3080 # Extract the first word of "intltool-extract", so it can be a program name with args.
3081 set dummy intltool-extract; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 case $INTLTOOL_EXTRACT in
3088 [\\/]* | ?:[\\/]*)
3089 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
3090 ;;
3091 *)
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 ;;
3108 esac
3109 fi
3110 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
3111 if test -n "$INTLTOOL_EXTRACT"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
3113 $as_echo "$INTLTOOL_EXTRACT" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
3121 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
3122 fi
3123
3124 if test -z "$AM_DEFAULT_VERBOSITY"; then
3125 AM_DEFAULT_VERBOSITY=1
3126 fi
3127
3128
3129 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
3130 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
3131 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
3132
3133
3134
3135
3136 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
3137 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
3138 intltool__v_merge_options_0='-q'
3139
3140
3141
3142
3143 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3144 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3145 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3146 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3147 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
3148 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3149 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3150 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3151 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3152 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3153 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3154 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
3155 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
3156 else
3157 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
3158 fi
3159 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3160 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3161 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3162 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3163 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3164 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3165 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263 # Check the gettext tools to make sure they are GNU
3264 # Extract the first word of "xgettext", so it can be a program name with args.
3265 set dummy xgettext; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_path_XGETTEXT+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 case $XGETTEXT in
3272 [\\/]* | ?:[\\/]*)
3273 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3274 ;;
3275 *)
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 ;;
3292 esac
3293 fi
3294 XGETTEXT=$ac_cv_path_XGETTEXT
3295 if test -n "$XGETTEXT"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3297 $as_echo "$XGETTEXT" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304 # Extract the first word of "msgmerge", so it can be a program name with args.
3305 set dummy msgmerge; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_path_MSGMERGE+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 case $MSGMERGE in
3312 [\\/]* | ?:[\\/]*)
3313 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3314 ;;
3315 *)
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 ;;
3332 esac
3333 fi
3334 MSGMERGE=$ac_cv_path_MSGMERGE
3335 if test -n "$MSGMERGE"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3337 $as_echo "$MSGMERGE" >&6; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 # Extract the first word of "msgfmt", so it can be a program name with args.
3345 set dummy msgfmt; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_path_MSGFMT+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 case $MSGFMT in
3352 [\\/]* | ?:[\\/]*)
3353 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3354 ;;
3355 *)
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 ;;
3372 esac
3373 fi
3374 MSGFMT=$ac_cv_path_MSGFMT
3375 if test -n "$MSGFMT"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3377 $as_echo "$MSGFMT" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3385 set dummy gmsgfmt; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_path_GMSGFMT+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 case $GMSGFMT in
3392 [\\/]* | ?:[\\/]*)
3393 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3394 ;;
3395 *)
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3406 fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3412 ;;
3413 esac
3414 fi
3415 GMSGFMT=$ac_cv_path_GMSGFMT
3416 if test -n "$GMSGFMT"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3418 $as_echo "$GMSGFMT" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
3426 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
3427 fi
3428 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
3429 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
3430 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
3431 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
3432 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
3433 fi
3434
3435 # Extract the first word of "perl", so it can be a program name with args.
3436 set dummy perl; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 case $INTLTOOL_PERL in
3443 [\\/]* | ?:[\\/]*)
3444 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
3445 ;;
3446 *)
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 ;;
3463 esac
3464 fi
3465 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
3466 if test -n "$INTLTOOL_PERL"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
3468 $as_echo "$INTLTOOL_PERL" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474
3475 if test -z "$INTLTOOL_PERL"; then
3476 as_fn_error $? "perl not found" "$LINENO" 5
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
3479 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
3480 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
3481 if test $? -ne 0; then
3482 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
3483 else
3484 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
3486 $as_echo "$IT_PERL_VERSION" >&6; }
3487 fi
3488 if test "x" != "xno-xml"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
3490 $as_echo_n "checking for XML::Parser... " >&6; }
3491 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3493 $as_echo "ok" >&6; }
3494 else
3495 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
3496 fi
3497 fi
3498
3499 # Substitute ALL_LINGUAS so we can use it in po/Makefile
3500
3501
3502
3503
3504
3505 DEPDIR="${am__leading_dot}deps"
3506
3507 ac_config_commands="$ac_config_commands depfiles"
3508
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3510 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3511 cat > confinc.mk << 'END'
3512 am__doit:
3513 @echo this is the am__doit target >confinc.out
3514 .PHONY: am__doit
3515 END
3516 am__include="#"
3517 am__quote=
3518 # BSD make does it like this.
3519 echo '.include "confinc.mk" # ignored' > confmf.BSD
3520 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3521 echo 'include confinc.mk # ignored' > confmf.GNU
3522 _am_result=no
3523 for s in GNU BSD; do
3524 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3525 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }
3529 case $?:`cat confinc.out 2>/dev/null` in #(
3530 '0:this is the am__doit target') :
3531 case $s in #(
3532 BSD) :
3533 am__include='.include' am__quote='"' ;; #(
3534 *) :
3535 am__include='include' am__quote='' ;;
3536 esac ;; #(
3537 *) :
3538 ;;
3539 esac
3540 if test "$am__include" != "#"; then
3541 _am_result="yes ($s style)"
3542 break
3543 fi
3544 done
3545 rm -f confinc.* confmf.*
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3547 $as_echo "${_am_result}" >&6; }
3548
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551 enableval=$enable_dependency_tracking;
3552 fi
3553
3554 if test "x$enable_dependency_tracking" != xno; then
3555 am_depcomp="$ac_aux_dir/depcomp"
3556 AMDEPBACKSLASH='\'
3557 am__nodep='_no'
3558 fi
3559 if test "x$enable_dependency_tracking" != xno; then
3560 AMDEP_TRUE=
3561 AMDEP_FALSE='#'
3562 else
3563 AMDEP_TRUE='#'
3564 AMDEP_FALSE=
3565 fi
3566
3567
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595 done
3596 done
3597 IFS=$as_save_IFS
3598
3599 fi
3600 fi
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3605 else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 fi
3609
3610
3611 fi
3612 if test -z "$ac_cv_prog_CC"; then
3613 ac_ct_CC=$CC
3614 # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC="gcc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3660 fi
3661 else
3662 CC="$ac_cv_prog_CC"
3663 fi
3664
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy ${ac_tool_prefix}cc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC="${ac_tool_prefix}cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688 done
3689 done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703
3704 fi
3705 fi
3706 if test -z "$CC"; then
3707 # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 ac_prog_rejected=no
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected=yes
3727 continue
3728 fi
3729 ac_cv_prog_CC="cc"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy $ac_cv_prog_CC
3740 shift
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3745 shift
3746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3747 fi
3748 fi
3749 fi
3750 fi
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761 fi
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog in cl.exe
3765 do
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803 test -n "$CC" && break
3804 done
3805 fi
3806 if test -z "$CC"; then
3807 ac_ct_CC=$CC
3808 for ac_prog in cl.exe
3809 do
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847 test -n "$ac_ct_CC" && break
3848 done
3849
3850 if test "x$ac_ct_CC" = x; then
3851 CC=""
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CC=$ac_ct_CC
3860 fi
3861 fi
3862
3863 fi
3864
3865
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3870
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 ac_status=$?
3885 if test -s conftest.err; then
3886 sed '10a\
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3890 fi
3891 rm -f conftest.er1 conftest.err
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 done
3895
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 int
3900 main ()
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3921 do
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3928
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3944 # Autoconf.
3945 for ac_file in $ac_files ''
3946 do
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3950 ;;
3951 [ab].out )
3952 # We found the default executable, but exeext='' is most
3953 # certainly right.
3954 break;;
3955 *.* )
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 then :; else
3958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 fi
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3964 # actually working.
3965 break;;
3966 * )
3967 break;;
3968 esac
3969 done
3970 test "$ac_cv_exeext" = no && ac_cv_exeext=
3971
3972 else
3973 ac_file=''
3974 fi
3975 if test -z "$ac_file"; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3994
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 break;;
4020 * ) break;;
4021 esac
4022 done
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4028 fi
4029 rm -f conftest conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4032
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <stdio.h>
4039 int
4040 main ()
4041 {
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4077 cross_compiling=no
4078 else
4079 if test "$cross_compiling" = maybe; then
4080 cross_compiling=yes
4081 else
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $? "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4087 fi
4088 fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4092
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if ${ac_cv_objext+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main ()
4105 {
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 for ac_file in conftest.o conftest.obj conftest.*; do
4124 test -f "$ac_file" || continue;
4125 case $ac_file in
4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128 break;;
4129 esac
4130 done
4131 else
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files: cannot compile
4138 See \`config.log' for more details" "$LINENO" 5; }
4139 fi
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4145 ac_objext=$OBJEXT
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main ()
4156 {
4157 #ifndef __GNUC__
4158 choke me
4159 #endif
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_compiler_gnu=yes
4167 else
4168 ac_compiler_gnu=no
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4177 GCC=yes
4178 else
4179 GCC=
4180 fi
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4190 ac_cv_prog_cc_g=no
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_g=yes
4205 else
4206 CFLAGS=""
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 int
4211 main ()
4212 {
4213
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219
4220 else
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4222 CFLAGS="-g"
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225
4226 int
4227 main ()
4228 {
4229
4230 ;
4231 return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_prog_cc_g=yes
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4250 CFLAGS="-g -O2"
4251 else
4252 CFLAGS="-g"
4253 fi
4254 else
4255 if test "$GCC" = yes; then
4256 CFLAGS="-O2"
4257 else
4258 CFLAGS=
4259 fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 ac_cv_prog_cc_c89=no
4267 ac_save_CC=$CC
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <stdarg.h>
4271 #include <stdio.h>
4272 struct stat;
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4277 char **p;
4278 int i;
4279 {
4280 return p[i];
4281 }
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4283 {
4284 char *s;
4285 va_list v;
4286 va_start (v,p);
4287 s = g (p, va_arg (v,int));
4288 va_end (v);
4289 return s;
4290 }
4291
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4300
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4303 #define FOO(x) 'x'
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4305
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310 int argc;
4311 char **argv;
4312 int
4313 main ()
4314 {
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4322 do
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_c89=$ac_arg
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext
4328 test "x$ac_cv_prog_cc_c89" != "xno" && break
4329 done
4330 rm -f conftest.$ac_ext
4331 CC=$ac_save_CC
4332
4333 fi
4334 # AC_CACHE_VAL
4335 case "x$ac_cv_prog_cc_c89" in
4336 x)
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4339 xno)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4342 *)
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346 esac
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4348
4349 fi
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 int
4371 main ()
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 # Make sure it works both with $CC and with simple cc.
4379 # Following AC_PROG_CC_C_O, we do the test twice because some
4380 # compilers refuse to overwrite an existing .o file with -o,
4381 # though they will create one.
4382 am_cv_prog_cc_c_o=yes
4383 for am_i in 1 2; do
4384 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } \
4389 && test -f conftest2.$ac_objext; then
4390 : OK
4391 else
4392 am_cv_prog_cc_c_o=no
4393 break
4394 fi
4395 done
4396 rm -f core conftest*
4397 unset am_i
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4401 if test "$am_cv_prog_cc_c_o" != yes; then
4402 # Losing compiler, so override with the script.
4403 # FIXME: It is wrong to rewrite CC.
4404 # But if we don't then we get into trouble of one sort or another.
4405 # A longer-term fix would be to have automake use am__CC in this case,
4406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407 CC="$am_aux_dir/compile $CC"
4408 fi
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
4415
4416 depcc="$CC" am_compiler_list=
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419 $as_echo_n "checking dependency style of $depcc... " >&6; }
4420 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4424 # We make a subdir and do the tests there. Otherwise we can end up
4425 # making bogus files that we don't know about and never remove. For
4426 # instance it was reported that on HP-UX the gcc test will end up
4427 # making a dummy file named 'D' -- because '-MD' means "put the output
4428 # in D".
4429 rm -rf conftest.dir
4430 mkdir conftest.dir
4431 # Copy depcomp to subdir because otherwise we won't find it if we're
4432 # using a relative directory.
4433 cp "$am_depcomp" conftest.dir
4434 cd conftest.dir
4435 # We will build objects and dependencies in a subdirectory because
4436 # it helps to detect inapplicable dependency modes. For instance
4437 # both Tru64's cc and ICC support -MD to output dependencies as a
4438 # side effect of compilation, but ICC will put the dependencies in
4439 # the current directory while Tru64 will put them in the object
4440 # directory.
4441 mkdir sub
4442
4443 am_cv_CC_dependencies_compiler_type=none
4444 if test "$am_compiler_list" = ""; then
4445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4446 fi
4447 am__universal=false
4448 case " $depcc " in #(
4449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4450 esac
4451
4452 for depmode in $am_compiler_list; do
4453 # Setup a source with many dependencies, because some compilers
4454 # like to wrap large dependency lists on column 80 (with \), and
4455 # we should not choose a depcomp mode which is confused by this.
4456 #
4457 # We need to recreate these files for each test, as the compiler may
4458 # overwrite some of them when testing with obscure command lines.
4459 # This happens at least with the AIX C compiler.
4460 : > sub/conftest.c
4461 for i in 1 2 3 4 5 6; do
4462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4464 # Solaris 10 /bin/sh.
4465 echo '/* dummy */' > sub/conftst$i.h
4466 done
4467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4468
4469 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4470 # mode. It turns out that the SunPro C++ compiler does not properly
4471 # handle '-M -o', and we need to detect this. Also, some Intel
4472 # versions had trouble with output in subdirs.
4473 am__obj=sub/conftest.${OBJEXT-o}
4474 am__minus_obj="-o $am__obj"
4475 case $depmode in
4476 gcc)
4477 # This depmode causes a compiler race in universal mode.
4478 test "$am__universal" = false || continue
4479 ;;
4480 nosideeffect)
4481 # After this tag, mechanisms are not by side-effect, so they'll
4482 # only be used when explicitly requested.
4483 if test "x$enable_dependency_tracking" = xyes; then
4484 continue
4485 else
4486 break
4487 fi
4488 ;;
4489 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4490 # This compiler won't grok '-c -o', but also, the minuso test has
4491 # not run yet. These depmodes are late enough in the game, and
4492 # so weak that their functioning should not be impacted.
4493 am__obj=conftest.${OBJEXT-o}
4494 am__minus_obj=
4495 ;;
4496 none) break ;;
4497 esac
4498 if depmode=$depmode \
4499 source=sub/conftest.c object=$am__obj \
4500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502 >/dev/null 2>conftest.err &&
4503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507 # icc doesn't choke on unknown options, it will just issue warnings
4508 # or remarks (even with -Werror). So we grep stderr for any message
4509 # that says an option was ignored or not supported.
4510 # When given -MP, icc 7.0 and 7.1 complain thusly:
4511 # icc: Command line warning: ignoring option '-M'; no argument required
4512 # The diagnosis changed in icc 8.0:
4513 # icc: Command line remark: option '-MP' not supported
4514 if (grep 'ignoring option' conftest.err ||
4515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516 am_cv_CC_dependencies_compiler_type=$depmode
4517 break
4518 fi
4519 fi
4520 done
4521
4522 cd ..
4523 rm -rf conftest.dir
4524 else
4525 am_cv_CC_dependencies_compiler_type=none
4526 fi
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4532
4533 if
4534 test "x$enable_dependency_tracking" != xno \
4535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4536 am__fastdepCC_TRUE=
4537 am__fastdepCC_FALSE='#'
4538 else
4539 am__fastdepCC_TRUE='#'
4540 am__fastdepCC_FALSE=
4541 fi
4542
4543
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4546 $as_echo_n "checking for library containing strerror... " >&6; }
4547 if ${ac_cv_search_strerror+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 ac_func_search_save_LIBS=$LIBS
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553
4554 /* Override any GCC internal prototype to avoid an error.
4555 Use char because int might match the return type of a GCC
4556 builtin and then its argument prototype would still apply. */
4557 #ifdef __cplusplus
4558 extern "C"
4559 #endif
4560 char strerror ();
4561 int
4562 main ()
4563 {
4564 return strerror ();
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 for ac_lib in '' cposix; do
4570 if test -z "$ac_lib"; then
4571 ac_res="none required"
4572 else
4573 ac_res=-l$ac_lib
4574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4575 fi
4576 if ac_fn_c_try_link "$LINENO"; then :
4577 ac_cv_search_strerror=$ac_res
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext \
4580 conftest$ac_exeext
4581 if ${ac_cv_search_strerror+:} false; then :
4582 break
4583 fi
4584 done
4585 if ${ac_cv_search_strerror+:} false; then :
4586
4587 else
4588 ac_cv_search_strerror=no
4589 fi
4590 rm conftest.$ac_ext
4591 LIBS=$ac_func_search_save_LIBS
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4594 $as_echo "$ac_cv_search_strerror" >&6; }
4595 ac_res=$ac_cv_search_strerror
4596 if test "$ac_res" != no; then :
4597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4598
4599 fi
4600
4601 ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_prog_CC+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 CC=$ac_cv_prog_CC
4635 if test -n "$CC"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4637 $as_echo "$CC" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_CC"; then
4646 ac_ct_CC=$CC
4647 # Extract the first word of "gcc", so it can be a program name with args.
4648 set dummy gcc; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$ac_ct_CC"; then
4655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_CC="gcc"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675 if test -n "$ac_ct_CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4677 $as_echo "$ac_ct_CC" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683 if test "x$ac_ct_CC" = x; then
4684 CC=""
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692 CC=$ac_ct_CC
4693 fi
4694 else
4695 CC="$ac_cv_prog_CC"
4696 fi
4697
4698 if test -z "$CC"; then
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}cc; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_CC+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$CC"; then
4708 ac_cv_prog_CC="$CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_CC="${ac_tool_prefix}cc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 CC=$ac_cv_prog_CC
4728 if test -n "$CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4730 $as_echo "$CC" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737 fi
4738 fi
4739 if test -z "$CC"; then
4740 # Extract the first word of "cc", so it can be a program name with args.
4741 set dummy cc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4749 else
4750 ac_prog_rejected=no
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4759 ac_prog_rejected=yes
4760 continue
4761 fi
4762 ac_cv_prog_CC="cc"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770 if test $ac_prog_rejected = yes; then
4771 # We found a bogon in the path, so make sure we never use it.
4772 set dummy $ac_cv_prog_CC
4773 shift
4774 if test $# != 0; then
4775 # We chose a different compiler from the bogus one.
4776 # However, it has the same basename, so the bogon will be chosen
4777 # first if we set CC to just the basename; use the full file name.
4778 shift
4779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4780 fi
4781 fi
4782 fi
4783 fi
4784 CC=$ac_cv_prog_CC
4785 if test -n "$CC"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4787 $as_echo "$CC" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793
4794 fi
4795 if test -z "$CC"; then
4796 if test -n "$ac_tool_prefix"; then
4797 for ac_prog in cl.exe
4798 do
4799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_CC+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -n "$CC"; then
4807 ac_cv_prog_CC="$CC" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4819 fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 CC=$ac_cv_prog_CC
4827 if test -n "$CC"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4829 $as_echo "$CC" >&6; }
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 fi
4834
4835
4836 test -n "$CC" && break
4837 done
4838 fi
4839 if test -z "$CC"; then
4840 ac_ct_CC=$CC
4841 for ac_prog in cl.exe
4842 do
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$ac_ct_CC"; then
4851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_CC="$ac_prog"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864 done
4865 done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4871 if test -n "$ac_ct_CC"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4873 $as_echo "$ac_ct_CC" >&6; }
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879
4880 test -n "$ac_ct_CC" && break
4881 done
4882
4883 if test "x$ac_ct_CC" = x; then
4884 CC=""
4885 else
4886 case $cross_compiling:$ac_tool_warned in
4887 yes:)
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890 ac_tool_warned=yes ;;
4891 esac
4892 CC=$ac_ct_CC
4893 fi
4894 fi
4895
4896 fi
4897
4898
4899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4901 as_fn_error $? "no acceptable C compiler found in \$PATH
4902 See \`config.log' for more details" "$LINENO" 5; }
4903
4904 # Provide some information about the compiler.
4905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4906 set X $ac_compile
4907 ac_compiler=$2
4908 for ac_option in --version -v -V -qversion; do
4909 { { ac_try="$ac_compiler $ac_option >&5"
4910 case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913 esac
4914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915 $as_echo "$ac_try_echo"; } >&5
4916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4917 ac_status=$?
4918 if test -s conftest.err; then
4919 sed '10a\
4920 ... rest of stderr output deleted ...
4921 10q' conftest.err >conftest.er1
4922 cat conftest.er1 >&5
4923 fi
4924 rm -f conftest.er1 conftest.err
4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926 test $ac_status = 0; }
4927 done
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4930 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4931 if ${ac_cv_c_compiler_gnu+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936
4937 int
4938 main ()
4939 {
4940 #ifndef __GNUC__
4941 choke me
4942 #endif
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 ac_compiler_gnu=yes
4950 else
4951 ac_compiler_gnu=no
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4955
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4958 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4959 if test $ac_compiler_gnu = yes; then
4960 GCC=yes
4961 else
4962 GCC=
4963 fi
4964 ac_test_CFLAGS=${CFLAGS+set}
4965 ac_save_CFLAGS=$CFLAGS
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4967 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4968 if ${ac_cv_prog_cc_g+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 ac_save_c_werror_flag=$ac_c_werror_flag
4972 ac_c_werror_flag=yes
4973 ac_cv_prog_cc_g=no
4974 CFLAGS="-g"
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977
4978 int
4979 main ()
4980 {
4981
4982 ;
4983 return 0;
4984 }
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 ac_cv_prog_cc_g=yes
4988 else
4989 CFLAGS=""
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992
4993 int
4994 main ()
4995 {
4996
4997 ;
4998 return 0;
4999 }
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002
5003 else
5004 ac_c_werror_flag=$ac_save_c_werror_flag
5005 CFLAGS="-g"
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 ac_cv_prog_cc_g=yes
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 ac_c_werror_flag=$ac_save_c_werror_flag
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5028 $as_echo "$ac_cv_prog_cc_g" >&6; }
5029 if test "$ac_test_CFLAGS" = set; then
5030 CFLAGS=$ac_save_CFLAGS
5031 elif test $ac_cv_prog_cc_g = yes; then
5032 if test "$GCC" = yes; then
5033 CFLAGS="-g -O2"
5034 else
5035 CFLAGS="-g"
5036 fi
5037 else
5038 if test "$GCC" = yes; then
5039 CFLAGS="-O2"
5040 else
5041 CFLAGS=
5042 fi
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5045 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5046 if ${ac_cv_prog_cc_c89+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 ac_cv_prog_cc_c89=no
5050 ac_save_CC=$CC
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <stdarg.h>
5054 #include <stdio.h>
5055 struct stat;
5056 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5057 struct buf { int x; };
5058 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5059 static char *e (p, i)
5060 char **p;
5061 int i;
5062 {
5063 return p[i];
5064 }
5065 static char *f (char * (*g) (char **, int), char **p, ...)
5066 {
5067 char *s;
5068 va_list v;
5069 va_start (v,p);
5070 s = g (p, va_arg (v,int));
5071 va_end (v);
5072 return s;
5073 }
5074
5075 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5076 function prototypes and stuff, but not '\xHH' hex character constants.
5077 These don't provoke an error unfortunately, instead are silently treated
5078 as 'x'. The following induces an error, until -std is added to get
5079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5080 array size at least. It's necessary to write '\x00'==0 to get something
5081 that's true only with -std. */
5082 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5083
5084 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5085 inside strings and character constants. */
5086 #define FOO(x) 'x'
5087 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5088
5089 int test (int i, double x);
5090 struct s1 {int (*f) (int a);};
5091 struct s2 {int (*f) (double a);};
5092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5093 int argc;
5094 char **argv;
5095 int
5096 main ()
5097 {
5098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5104 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5105 do
5106 CC="$ac_save_CC $ac_arg"
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_prog_cc_c89=$ac_arg
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext
5111 test "x$ac_cv_prog_cc_c89" != "xno" && break
5112 done
5113 rm -f conftest.$ac_ext
5114 CC=$ac_save_CC
5115
5116 fi
5117 # AC_CACHE_VAL
5118 case "x$ac_cv_prog_cc_c89" in
5119 x)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5121 $as_echo "none needed" >&6; } ;;
5122 xno)
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5124 $as_echo "unsupported" >&6; } ;;
5125 *)
5126 CC="$CC $ac_cv_prog_cc_c89"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5129 esac
5130 if test "x$ac_cv_prog_cc_c89" != xno; then :
5131
5132 fi
5133
5134 ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5146 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5147 if ${am_cv_prog_cc_c_o+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152
5153 int
5154 main ()
5155 {
5156
5157 ;
5158 return 0;
5159 }
5160 _ACEOF
5161 # Make sure it works both with $CC and with simple cc.
5162 # Following AC_PROG_CC_C_O, we do the test twice because some
5163 # compilers refuse to overwrite an existing .o file with -o,
5164 # though they will create one.
5165 am_cv_prog_cc_c_o=yes
5166 for am_i in 1 2; do
5167 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5168 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } \
5172 && test -f conftest2.$ac_objext; then
5173 : OK
5174 else
5175 am_cv_prog_cc_c_o=no
5176 break
5177 fi
5178 done
5179 rm -f core conftest*
5180 unset am_i
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5183 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5184 if test "$am_cv_prog_cc_c_o" != yes; then
5185 # Losing compiler, so override with the script.
5186 # FIXME: It is wrong to rewrite CC.
5187 # But if we don't then we get into trouble of one sort or another.
5188 # A longer-term fix would be to have automake use am__CC in this case,
5189 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5190 CC="$am_aux_dir/compile $CC"
5191 fi
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197
5198
5199 depcc="$CC" am_compiler_list=
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5202 $as_echo_n "checking dependency style of $depcc... " >&6; }
5203 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5207 # We make a subdir and do the tests there. Otherwise we can end up
5208 # making bogus files that we don't know about and never remove. For
5209 # instance it was reported that on HP-UX the gcc test will end up
5210 # making a dummy file named 'D' -- because '-MD' means "put the output
5211 # in D".
5212 rm -rf conftest.dir
5213 mkdir conftest.dir
5214 # Copy depcomp to subdir because otherwise we won't find it if we're
5215 # using a relative directory.
5216 cp "$am_depcomp" conftest.dir
5217 cd conftest.dir
5218 # We will build objects and dependencies in a subdirectory because
5219 # it helps to detect inapplicable dependency modes. For instance
5220 # both Tru64's cc and ICC support -MD to output dependencies as a
5221 # side effect of compilation, but ICC will put the dependencies in
5222 # the current directory while Tru64 will put them in the object
5223 # directory.
5224 mkdir sub
5225
5226 am_cv_CC_dependencies_compiler_type=none
5227 if test "$am_compiler_list" = ""; then
5228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5229 fi
5230 am__universal=false
5231 case " $depcc " in #(
5232 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5233 esac
5234
5235 for depmode in $am_compiler_list; do
5236 # Setup a source with many dependencies, because some compilers
5237 # like to wrap large dependency lists on column 80 (with \), and
5238 # we should not choose a depcomp mode which is confused by this.
5239 #
5240 # We need to recreate these files for each test, as the compiler may
5241 # overwrite some of them when testing with obscure command lines.
5242 # This happens at least with the AIX C compiler.
5243 : > sub/conftest.c
5244 for i in 1 2 3 4 5 6; do
5245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5246 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5247 # Solaris 10 /bin/sh.
5248 echo '/* dummy */' > sub/conftst$i.h
5249 done
5250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5251
5252 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5253 # mode. It turns out that the SunPro C++ compiler does not properly
5254 # handle '-M -o', and we need to detect this. Also, some Intel
5255 # versions had trouble with output in subdirs.
5256 am__obj=sub/conftest.${OBJEXT-o}
5257 am__minus_obj="-o $am__obj"
5258 case $depmode in
5259 gcc)
5260 # This depmode causes a compiler race in universal mode.
5261 test "$am__universal" = false || continue
5262 ;;
5263 nosideeffect)
5264 # After this tag, mechanisms are not by side-effect, so they'll
5265 # only be used when explicitly requested.
5266 if test "x$enable_dependency_tracking" = xyes; then
5267 continue
5268 else
5269 break
5270 fi
5271 ;;
5272 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5273 # This compiler won't grok '-c -o', but also, the minuso test has
5274 # not run yet. These depmodes are late enough in the game, and
5275 # so weak that their functioning should not be impacted.
5276 am__obj=conftest.${OBJEXT-o}
5277 am__minus_obj=
5278 ;;
5279 none) break ;;
5280 esac
5281 if depmode=$depmode \
5282 source=sub/conftest.c object=$am__obj \
5283 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5284 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5285 >/dev/null 2>conftest.err &&
5286 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5287 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5288 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5289 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5290 # icc doesn't choke on unknown options, it will just issue warnings
5291 # or remarks (even with -Werror). So we grep stderr for any message
5292 # that says an option was ignored or not supported.
5293 # When given -MP, icc 7.0 and 7.1 complain thusly:
5294 # icc: Command line warning: ignoring option '-M'; no argument required
5295 # The diagnosis changed in icc 8.0:
5296 # icc: Command line remark: option '-MP' not supported
5297 if (grep 'ignoring option' conftest.err ||
5298 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5299 am_cv_CC_dependencies_compiler_type=$depmode
5300 break
5301 fi
5302 fi
5303 done
5304
5305 cd ..
5306 rm -rf conftest.dir
5307 else
5308 am_cv_CC_dependencies_compiler_type=none
5309 fi
5310
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5313 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5314 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5315
5316 if
5317 test "x$enable_dependency_tracking" != xno \
5318 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5319 am__fastdepCC_TRUE=
5320 am__fastdepCC_FALSE='#'
5321 else
5322 am__fastdepCC_TRUE='#'
5323 am__fastdepCC_FALSE=
5324 fi
5325
5326
5327
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5334 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5335 # On Suns, sometimes $CPP names a directory.
5336 if test -n "$CPP" && test -d "$CPP"; then
5337 CPP=
5338 fi
5339 if test -z "$CPP"; then
5340 if ${ac_cv_prog_CPP+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 # Double quotes because CPP needs to be expanded
5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5345 do
5346 ac_preproc_ok=false
5347 for ac_c_preproc_warn_flag in '' yes
5348 do
5349 # Use a header file that comes with gcc, so configuring glibc
5350 # with a fresh cross-compiler works.
5351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352 # <limits.h> exists even on freestanding compilers.
5353 # On the NeXT, cc -E runs the code through the compiler's parser,
5354 # not just through cpp. "Syntax error" is here to catch this case.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #ifdef __STDC__
5358 # include <limits.h>
5359 #else
5360 # include <assert.h>
5361 #endif
5362 Syntax error
5363 _ACEOF
5364 if ac_fn_c_try_cpp "$LINENO"; then :
5365
5366 else
5367 # Broken: fails on valid input.
5368 continue
5369 fi
5370 rm -f conftest.err conftest.i conftest.$ac_ext
5371
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <ac_nonexistent.h>
5377 _ACEOF
5378 if ac_fn_c_try_cpp "$LINENO"; then :
5379 # Broken: success on invalid input.
5380 continue
5381 else
5382 # Passes both tests.
5383 ac_preproc_ok=:
5384 break
5385 fi
5386 rm -f conftest.err conftest.i conftest.$ac_ext
5387
5388 done
5389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390 rm -f conftest.i conftest.err conftest.$ac_ext
5391 if $ac_preproc_ok; then :
5392 break
5393 fi
5394
5395 done
5396 ac_cv_prog_CPP=$CPP
5397
5398 fi
5399 CPP=$ac_cv_prog_CPP
5400 else
5401 ac_cv_prog_CPP=$CPP
5402 fi
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5404 $as_echo "$CPP" >&6; }
5405 ac_preproc_ok=false
5406 for ac_c_preproc_warn_flag in '' yes
5407 do
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421 Syntax error
5422 _ACEOF
5423 if ac_fn_c_try_cpp "$LINENO"; then :
5424
5425 else
5426 # Broken: fails on valid input.
5427 continue
5428 fi
5429 rm -f conftest.err conftest.i conftest.$ac_ext
5430
5431 # OK, works on sane cases. Now check whether nonexistent headers
5432 # can be detected and how.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <ac_nonexistent.h>
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"; then :
5438 # Broken: success on invalid input.
5439 continue
5440 else
5441 # Passes both tests.
5442 ac_preproc_ok=:
5443 break
5444 fi
5445 rm -f conftest.err conftest.i conftest.$ac_ext
5446
5447 done
5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449 rm -f conftest.i conftest.err conftest.$ac_ext
5450 if $ac_preproc_ok; then :
5451
5452 else
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5455 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details" "$LINENO" 5; }
5457 fi
5458
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5467 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5468 if ${ac_cv_path_GREP+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -z "$GREP"; then
5472 ac_path_GREP_found=false
5473 # Loop through the user's path and test for each of PROGNAME-LIST
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5476 do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_prog in grep ggrep; do
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5482 as_fn_executable_p "$ac_path_GREP" || continue
5483 # Check for GNU ac_path_GREP and select it if it is found.
5484 # Check for GNU $ac_path_GREP
5485 case `"$ac_path_GREP" --version 2>&1` in
5486 *GNU*)
5487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5488 *)
5489 ac_count=0
5490 $as_echo_n 0123456789 >"conftest.in"
5491 while :
5492 do
5493 cat "conftest.in" "conftest.in" >"conftest.tmp"
5494 mv "conftest.tmp" "conftest.in"
5495 cp "conftest.in" "conftest.nl"
5496 $as_echo 'GREP' >> "conftest.nl"
5497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5499 as_fn_arith $ac_count + 1 && ac_count=$as_val
5500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5501 # Best one so far, save it but keep looking for a better one
5502 ac_cv_path_GREP="$ac_path_GREP"
5503 ac_path_GREP_max=$ac_count
5504 fi
5505 # 10*(2^10) chars as input seems more than enough
5506 test $ac_count -gt 10 && break
5507 done
5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5509 esac
5510
5511 $ac_path_GREP_found && break 3
5512 done
5513 done
5514 done
5515 IFS=$as_save_IFS
5516 if test -z "$ac_cv_path_GREP"; then
5517 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5518 fi
5519 else
5520 ac_cv_path_GREP=$GREP
5521 fi
5522
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5525 $as_echo "$ac_cv_path_GREP" >&6; }
5526 GREP="$ac_cv_path_GREP"
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5530 $as_echo_n "checking for egrep... " >&6; }
5531 if ${ac_cv_path_EGREP+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5535 then ac_cv_path_EGREP="$GREP -E"
5536 else
5537 if test -z "$EGREP"; then
5538 ac_path_EGREP_found=false
5539 # Loop through the user's path and test for each of PROGNAME-LIST
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_prog in egrep; do
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5548 as_fn_executable_p "$ac_path_EGREP" || continue
5549 # Check for GNU ac_path_EGREP and select it if it is found.
5550 # Check for GNU $ac_path_EGREP
5551 case `"$ac_path_EGREP" --version 2>&1` in
5552 *GNU*)
5553 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5554 *)
5555 ac_count=0
5556 $as_echo_n 0123456789 >"conftest.in"
5557 while :
5558 do
5559 cat "conftest.in" "conftest.in" >"conftest.tmp"
5560 mv "conftest.tmp" "conftest.in"
5561 cp "conftest.in" "conftest.nl"
5562 $as_echo 'EGREP' >> "conftest.nl"
5563 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5565 as_fn_arith $ac_count + 1 && ac_count=$as_val
5566 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5567 # Best one so far, save it but keep looking for a better one
5568 ac_cv_path_EGREP="$ac_path_EGREP"
5569 ac_path_EGREP_max=$ac_count
5570 fi
5571 # 10*(2^10) chars as input seems more than enough
5572 test $ac_count -gt 10 && break
5573 done
5574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5575 esac
5576
5577 $ac_path_EGREP_found && break 3
5578 done
5579 done
5580 done
5581 IFS=$as_save_IFS
5582 if test -z "$ac_cv_path_EGREP"; then
5583 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5584 fi
5585 else
5586 ac_cv_path_EGREP=$EGREP
5587 fi
5588
5589 fi
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5592 $as_echo "$ac_cv_path_EGREP" >&6; }
5593 EGREP="$ac_cv_path_EGREP"
5594
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5597 $as_echo_n "checking for ANSI C header files... " >&6; }
5598 if ${ac_cv_header_stdc+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <stdlib.h>
5604 #include <stdarg.h>
5605 #include <string.h>
5606 #include <float.h>
5607
5608 int
5609 main ()
5610 {
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_header_stdc=yes
5618 else
5619 ac_cv_header_stdc=no
5620 fi
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622
5623 if test $ac_cv_header_stdc = yes; then
5624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <string.h>
5628
5629 _ACEOF
5630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631 $EGREP "memchr" >/dev/null 2>&1; then :
5632
5633 else
5634 ac_cv_header_stdc=no
5635 fi
5636 rm -f conftest*
5637
5638 fi
5639
5640 if test $ac_cv_header_stdc = yes; then
5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <stdlib.h>
5645
5646 _ACEOF
5647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "free" >/dev/null 2>&1; then :
5649
5650 else
5651 ac_cv_header_stdc=no
5652 fi
5653 rm -f conftest*
5654
5655 fi
5656
5657 if test $ac_cv_header_stdc = yes; then
5658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5659 if test "$cross_compiling" = yes; then :
5660 :
5661 else
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <ctype.h>
5665 #include <stdlib.h>
5666 #if ((' ' & 0x0FF) == 0x020)
5667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5669 #else
5670 # define ISLOWER(c) \
5671 (('a' <= (c) && (c) <= 'i') \
5672 || ('j' <= (c) && (c) <= 'r') \
5673 || ('s' <= (c) && (c) <= 'z'))
5674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5675 #endif
5676
5677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5678 int
5679 main ()
5680 {
5681 int i;
5682 for (i = 0; i < 256; i++)
5683 if (XOR (islower (i), ISLOWER (i))
5684 || toupper (i) != TOUPPER (i))
5685 return 2;
5686 return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_run "$LINENO"; then :
5690
5691 else
5692 ac_cv_header_stdc=no
5693 fi
5694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5695 conftest.$ac_objext conftest.beam conftest.$ac_ext
5696 fi
5697
5698 fi
5699 fi
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5701 $as_echo "$ac_cv_header_stdc" >&6; }
5702 if test $ac_cv_header_stdc = yes; then
5703
5704 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5705
5706 fi
5707
5708 case `pwd` in
5709 *\ * | *\ *)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5711 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5712 esac
5713
5714
5715
5716 macro_version='2.4.6'
5717 macro_revision='2.4.6'
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 ltmain=$ac_aux_dir/ltmain.sh
5732
5733 # Make sure we can run config.sub.
5734 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5735 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5738 $as_echo_n "checking build system type... " >&6; }
5739 if ${ac_cv_build+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 ac_build_alias=$build_alias
5743 test "x$ac_build_alias" = x &&
5744 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5745 test "x$ac_build_alias" = x &&
5746 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5747 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5752 $as_echo "$ac_cv_build" >&6; }
5753 case $ac_cv_build in
5754 *-*-*) ;;
5755 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5756 esac
5757 build=$ac_cv_build
5758 ac_save_IFS=$IFS; IFS='-'
5759 set x $ac_cv_build
5760 shift
5761 build_cpu=$1
5762 build_vendor=$2
5763 shift; shift
5764 # Remember, the first character of IFS is used to create $*,
5765 # except with old shells:
5766 build_os=$*
5767 IFS=$ac_save_IFS
5768 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5769
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5772 $as_echo_n "checking host system type... " >&6; }
5773 if ${ac_cv_host+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test "x$host_alias" = x; then
5777 ac_cv_host=$ac_cv_build
5778 else
5779 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5781 fi
5782
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5785 $as_echo "$ac_cv_host" >&6; }
5786 case $ac_cv_host in
5787 *-*-*) ;;
5788 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5789 esac
5790 host=$ac_cv_host
5791 ac_save_IFS=$IFS; IFS='-'
5792 set x $ac_cv_host
5793 shift
5794 host_cpu=$1
5795 host_vendor=$2
5796 shift; shift
5797 # Remember, the first character of IFS is used to create $*,
5798 # except with old shells:
5799 host_os=$*
5800 IFS=$ac_save_IFS
5801 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5802
5803
5804 # Backslashify metacharacters that are still active within
5805 # double-quoted strings.
5806 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5807
5808 # Same as above, but do not quote variable references.
5809 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5810
5811 # Sed substitution to delay expansion of an escaped shell variable in a
5812 # double_quote_subst'ed string.
5813 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5814
5815 # Sed substitution to delay expansion of an escaped single quote.
5816 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5817
5818 # Sed substitution to avoid accidental globbing in evaled expressions
5819 no_glob_subst='s/\*/\\\*/g'
5820
5821 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5823 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5826 $as_echo_n "checking how to print strings... " >&6; }
5827 # Test print first, because it will be a builtin if present.
5828 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5829 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5830 ECHO='print -r --'
5831 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5832 ECHO='printf %s\n'
5833 else
5834 # Use this function as a fallback that always works.
5835 func_fallback_echo ()
5836 {
5837 eval 'cat <<_LTECHO_EOF
5838 $1
5839 _LTECHO_EOF'
5840 }
5841 ECHO='func_fallback_echo'
5842 fi
5843
5844 # func_echo_all arg...
5845 # Invoke $ECHO with all args, space-separated.
5846 func_echo_all ()
5847 {
5848 $ECHO ""
5849 }
5850
5851 case $ECHO in
5852 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5853 $as_echo "printf" >&6; } ;;
5854 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5855 $as_echo "print -r" >&6; } ;;
5856 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5857 $as_echo "cat" >&6; } ;;
5858 esac
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5874 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5875 if ${ac_cv_path_SED+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5879 for ac_i in 1 2 3 4 5 6 7; do
5880 ac_script="$ac_script$as_nl$ac_script"
5881 done
5882 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5883 { ac_script=; unset ac_script;}
5884 if test -z "$SED"; then
5885 ac_path_SED_found=false
5886 # Loop through the user's path and test for each of PROGNAME-LIST
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_prog in sed gsed; do
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5895 as_fn_executable_p "$ac_path_SED" || continue
5896 # Check for GNU ac_path_SED and select it if it is found.
5897 # Check for GNU $ac_path_SED
5898 case `"$ac_path_SED" --version 2>&1` in
5899 *GNU*)
5900 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5901 *)
5902 ac_count=0
5903 $as_echo_n 0123456789 >"conftest.in"
5904 while :
5905 do
5906 cat "conftest.in" "conftest.in" >"conftest.tmp"
5907 mv "conftest.tmp" "conftest.in"
5908 cp "conftest.in" "conftest.nl"
5909 $as_echo '' >> "conftest.nl"
5910 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5912 as_fn_arith $ac_count + 1 && ac_count=$as_val
5913 if test $ac_count -gt ${ac_path_SED_max-0}; then
5914 # Best one so far, save it but keep looking for a better one
5915 ac_cv_path_SED="$ac_path_SED"
5916 ac_path_SED_max=$ac_count
5917 fi
5918 # 10*(2^10) chars as input seems more than enough
5919 test $ac_count -gt 10 && break
5920 done
5921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5922 esac
5923
5924 $ac_path_SED_found && break 3
5925 done
5926 done
5927 done
5928 IFS=$as_save_IFS
5929 if test -z "$ac_cv_path_SED"; then
5930 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5931 fi
5932 else
5933 ac_cv_path_SED=$SED
5934 fi
5935
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5938 $as_echo "$ac_cv_path_SED" >&6; }
5939 SED="$ac_cv_path_SED"
5940 rm -f conftest.sed
5941
5942 test -z "$SED" && SED=sed
5943 Xsed="$SED -e 1s/^X//"
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5956 $as_echo_n "checking for fgrep... " >&6; }
5957 if ${ac_cv_path_FGREP+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5961 then ac_cv_path_FGREP="$GREP -F"
5962 else
5963 if test -z "$FGREP"; then
5964 ac_path_FGREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_prog in fgrep; do
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5974 as_fn_executable_p "$ac_path_FGREP" || continue
5975 # Check for GNU ac_path_FGREP and select it if it is found.
5976 # Check for GNU $ac_path_FGREP
5977 case `"$ac_path_FGREP" --version 2>&1` in
5978 *GNU*)
5979 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5980 *)
5981 ac_count=0
5982 $as_echo_n 0123456789 >"conftest.in"
5983 while :
5984 do
5985 cat "conftest.in" "conftest.in" >"conftest.tmp"
5986 mv "conftest.tmp" "conftest.in"
5987 cp "conftest.in" "conftest.nl"
5988 $as_echo 'FGREP' >> "conftest.nl"
5989 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5991 as_fn_arith $ac_count + 1 && ac_count=$as_val
5992 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5993 # Best one so far, save it but keep looking for a better one
5994 ac_cv_path_FGREP="$ac_path_FGREP"
5995 ac_path_FGREP_max=$ac_count
5996 fi
5997 # 10*(2^10) chars as input seems more than enough
5998 test $ac_count -gt 10 && break
5999 done
6000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6001 esac
6002
6003 $ac_path_FGREP_found && break 3
6004 done
6005 done
6006 done
6007 IFS=$as_save_IFS
6008 if test -z "$ac_cv_path_FGREP"; then
6009 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6010 fi
6011 else
6012 ac_cv_path_FGREP=$FGREP
6013 fi
6014
6015 fi
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6018 $as_echo "$ac_cv_path_FGREP" >&6; }
6019 FGREP="$ac_cv_path_FGREP"
6020
6021
6022 test -z "$GREP" && GREP=grep
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 # Check whether --with-gnu-ld was given.
6043 if test "${with_gnu_ld+set}" = set; then :
6044 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6045 else
6046 with_gnu_ld=no
6047 fi
6048
6049 ac_prog=ld
6050 if test yes = "$GCC"; then
6051 # Check if gcc -print-prog-name=ld gives a path.
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6053 $as_echo_n "checking for ld used by $CC... " >&6; }
6054 case $host in
6055 *-*-mingw*)
6056 # gcc leaves a trailing carriage return, which upsets mingw
6057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6058 *)
6059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6060 esac
6061 case $ac_prog in
6062 # Accept absolute paths.
6063 [\\/]* | ?:[\\/]*)
6064 re_direlt='/[^/][^/]*/\.\./'
6065 # Canonicalize the pathname of ld
6066 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6067 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6068 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6069 done
6070 test -z "$LD" && LD=$ac_prog
6071 ;;
6072 "")
6073 # If it fails, then pretend we aren't using GCC.
6074 ac_prog=ld
6075 ;;
6076 *)
6077 # If it is relative, then search for the first ld in PATH.
6078 with_gnu_ld=unknown
6079 ;;
6080 esac
6081 elif test yes = "$with_gnu_ld"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6083 $as_echo_n "checking for GNU ld... " >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6086 $as_echo_n "checking for non-GNU ld... " >&6; }
6087 fi
6088 if ${lt_cv_path_LD+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 if test -z "$LD"; then
6092 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6093 for ac_dir in $PATH; do
6094 IFS=$lt_save_ifs
6095 test -z "$ac_dir" && ac_dir=.
6096 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6097 lt_cv_path_LD=$ac_dir/$ac_prog
6098 # Check to see if the program is GNU ld. I'd rather use --version,
6099 # but apparently some variants of GNU ld only accept -v.
6100 # Break only if it was the GNU/non-GNU ld that we prefer.
6101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6102 *GNU* | *'with BFD'*)
6103 test no != "$with_gnu_ld" && break
6104 ;;
6105 *)
6106 test yes != "$with_gnu_ld" && break
6107 ;;
6108 esac
6109 fi
6110 done
6111 IFS=$lt_save_ifs
6112 else
6113 lt_cv_path_LD=$LD # Let the user override the test with a path.
6114 fi
6115 fi
6116
6117 LD=$lt_cv_path_LD
6118 if test -n "$LD"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6120 $as_echo "$LD" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6127 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6128 if ${lt_cv_prog_gnu_ld+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6132 case `$LD -v 2>&1 </dev/null` in
6133 *GNU* | *'with BFD'*)
6134 lt_cv_prog_gnu_ld=yes
6135 ;;
6136 *)
6137 lt_cv_prog_gnu_ld=no
6138 ;;
6139 esac
6140 fi
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6142 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6143 with_gnu_ld=$lt_cv_prog_gnu_ld
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6154 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6155 if ${lt_cv_path_NM+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$NM"; then
6159 # Let the user override the test.
6160 lt_cv_path_NM=$NM
6161 else
6162 lt_nm_to_check=${ac_tool_prefix}nm
6163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6164 lt_nm_to_check="$lt_nm_to_check nm"
6165 fi
6166 for lt_tmp_nm in $lt_nm_to_check; do
6167 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6169 IFS=$lt_save_ifs
6170 test -z "$ac_dir" && ac_dir=.
6171 tmp_nm=$ac_dir/$lt_tmp_nm
6172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6173 # Check to see if the nm accepts a BSD-compat flag.
6174 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6175 # nm: unknown option "B" ignored
6176 # Tru64's nm complains that /dev/null is an invalid object file
6177 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6178 case $build_os in
6179 mingw*) lt_bad_file=conftest.nm/nofile ;;
6180 *) lt_bad_file=/dev/null ;;
6181 esac
6182 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6183 *$lt_bad_file* | *'Invalid file or object type'*)
6184 lt_cv_path_NM="$tmp_nm -B"
6185 break 2
6186 ;;
6187 *)
6188 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6189 */dev/null*)
6190 lt_cv_path_NM="$tmp_nm -p"
6191 break 2
6192 ;;
6193 *)
6194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6195 continue # so that we can try to find one that supports BSD flags
6196 ;;
6197 esac
6198 ;;
6199 esac
6200 fi
6201 done
6202 IFS=$lt_save_ifs
6203 done
6204 : ${lt_cv_path_NM=no}
6205 fi
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6208 $as_echo "$lt_cv_path_NM" >&6; }
6209 if test no != "$lt_cv_path_NM"; then
6210 NM=$lt_cv_path_NM
6211 else
6212 # Didn't find any BSD compatible name lister, look for dumpbin.
6213 if test -n "$DUMPBIN"; then :
6214 # Let the user override the test.
6215 else
6216 if test -n "$ac_tool_prefix"; then
6217 for ac_prog in dumpbin "link -dump"
6218 do
6219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_DUMPBIN+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -n "$DUMPBIN"; then
6227 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 DUMPBIN=$ac_cv_prog_DUMPBIN
6247 if test -n "$DUMPBIN"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6249 $as_echo "$DUMPBIN" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255
6256 test -n "$DUMPBIN" && break
6257 done
6258 fi
6259 if test -z "$DUMPBIN"; then
6260 ac_ct_DUMPBIN=$DUMPBIN
6261 for ac_prog in dumpbin "link -dump"
6262 do
6263 # Extract the first word of "$ac_prog", so it can be a program name with args.
6264 set dummy $ac_prog; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$ac_ct_DUMPBIN"; then
6271 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6291 if test -n "$ac_ct_DUMPBIN"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6293 $as_echo "$ac_ct_DUMPBIN" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299
6300 test -n "$ac_ct_DUMPBIN" && break
6301 done
6302
6303 if test "x$ac_ct_DUMPBIN" = x; then
6304 DUMPBIN=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 DUMPBIN=$ac_ct_DUMPBIN
6313 fi
6314 fi
6315
6316 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6317 *COFF*)
6318 DUMPBIN="$DUMPBIN -symbols -headers"
6319 ;;
6320 *)
6321 DUMPBIN=:
6322 ;;
6323 esac
6324 fi
6325
6326 if test : != "$DUMPBIN"; then
6327 NM=$DUMPBIN
6328 fi
6329 fi
6330 test -z "$NM" && NM=nm
6331
6332
6333
6334
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6338 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6339 if ${lt_cv_nm_interface+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 lt_cv_nm_interface="BSD nm"
6343 echo "int some_variable = 0;" > conftest.$ac_ext
6344 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6345 (eval "$ac_compile" 2>conftest.err)
6346 cat conftest.err >&5
6347 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6348 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6349 cat conftest.err >&5
6350 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6351 cat conftest.out >&5
6352 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6353 lt_cv_nm_interface="MS dumpbin"
6354 fi
6355 rm -f conftest*
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6358 $as_echo "$lt_cv_nm_interface" >&6; }
6359
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6361 $as_echo_n "checking whether ln -s works... " >&6; }
6362 LN_S=$as_ln_s
6363 if test "$LN_S" = "ln -s"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6365 $as_echo "yes" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6368 $as_echo "no, using $LN_S" >&6; }
6369 fi
6370
6371 # find the maximum length of command line arguments
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6373 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6374 if ${lt_cv_sys_max_cmd_len+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 i=0
6378 teststring=ABCD
6379
6380 case $build_os in
6381 msdosdjgpp*)
6382 # On DJGPP, this test can blow up pretty badly due to problems in libc
6383 # (any single argument exceeding 2000 bytes causes a buffer overrun
6384 # during glob expansion). Even if it were fixed, the result of this
6385 # check would be larger than it should be.
6386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6387 ;;
6388
6389 gnu*)
6390 # Under GNU Hurd, this test is not required because there is
6391 # no limit to the length of command line arguments.
6392 # Libtool will interpret -1 as no limit whatsoever
6393 lt_cv_sys_max_cmd_len=-1;
6394 ;;
6395
6396 cygwin* | mingw* | cegcc*)
6397 # On Win9x/ME, this test blows up -- it succeeds, but takes
6398 # about 5 minutes as the teststring grows exponentially.
6399 # Worse, since 9x/ME are not pre-emptively multitasking,
6400 # you end up with a "frozen" computer, even though with patience
6401 # the test eventually succeeds (with a max line length of 256k).
6402 # Instead, let's just punt: use the minimum linelength reported by
6403 # all of the supported platforms: 8192 (on NT/2K/XP).
6404 lt_cv_sys_max_cmd_len=8192;
6405 ;;
6406
6407 mint*)
6408 # On MiNT this can take a long time and run out of memory.
6409 lt_cv_sys_max_cmd_len=8192;
6410 ;;
6411
6412 amigaos*)
6413 # On AmigaOS with pdksh, this test takes hours, literally.
6414 # So we just punt and use a minimum line length of 8192.
6415 lt_cv_sys_max_cmd_len=8192;
6416 ;;
6417
6418 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6419 # This has been around since 386BSD, at least. Likely further.
6420 if test -x /sbin/sysctl; then
6421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6422 elif test -x /usr/sbin/sysctl; then
6423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6424 else
6425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6426 fi
6427 # And add a safety zone
6428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6430 ;;
6431
6432 interix*)
6433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6434 lt_cv_sys_max_cmd_len=196608
6435 ;;
6436
6437 os2*)
6438 # The test takes a long time on OS/2.
6439 lt_cv_sys_max_cmd_len=8192
6440 ;;
6441
6442 osf*)
6443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6445 # nice to cause kernel panics so lets avoid the loop below.
6446 # First set a reasonable default.
6447 lt_cv_sys_max_cmd_len=16384
6448 #
6449 if test -x /sbin/sysconfig; then
6450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6452 esac
6453 fi
6454 ;;
6455 sco3.2v5*)
6456 lt_cv_sys_max_cmd_len=102400
6457 ;;
6458 sysv5* | sco5v6* | sysv4.2uw2*)
6459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6460 if test -n "$kargmax"; then
6461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6462 else
6463 lt_cv_sys_max_cmd_len=32768
6464 fi
6465 ;;
6466 *)
6467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6468 if test -n "$lt_cv_sys_max_cmd_len" && \
6469 test undefined != "$lt_cv_sys_max_cmd_len"; then
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6472 else
6473 # Make teststring a little bigger before we do anything with it.
6474 # a 1K string should be a reasonable start.
6475 for i in 1 2 3 4 5 6 7 8; do
6476 teststring=$teststring$teststring
6477 done
6478 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6479 # If test is not a shell built-in, we'll probably end up computing a
6480 # maximum length that is only half of the actual maximum length, but
6481 # we can't tell.
6482 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6483 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6484 test 17 != "$i" # 1/2 MB should be enough
6485 do
6486 i=`expr $i + 1`
6487 teststring=$teststring$teststring
6488 done
6489 # Only check the string length outside the loop.
6490 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6491 teststring=
6492 # Add a significant safety factor because C++ compilers can tack on
6493 # massive amounts of additional arguments before passing them to the
6494 # linker. It appears as though 1/2 is a usable value.
6495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6496 fi
6497 ;;
6498 esac
6499
6500 fi
6501
6502 if test -n "$lt_cv_sys_max_cmd_len"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6504 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6505 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6507 $as_echo "none" >&6; }
6508 fi
6509 max_cmd_len=$lt_cv_sys_max_cmd_len
6510
6511
6512
6513
6514
6515
6516 : ${CP="cp -f"}
6517 : ${MV="mv -f"}
6518 : ${RM="rm -f"}
6519
6520 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6521 lt_unset=unset
6522 else
6523 lt_unset=false
6524 fi
6525
6526
6527
6528
6529
6530 # test EBCDIC or ASCII
6531 case `echo X|tr X '\101'` in
6532 A) # ASCII based system
6533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6534 lt_SP2NL='tr \040 \012'
6535 lt_NL2SP='tr \015\012 \040\040'
6536 ;;
6537 *) # EBCDIC based system
6538 lt_SP2NL='tr \100 \n'
6539 lt_NL2SP='tr \r\n \100\100'
6540 ;;
6541 esac
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6552 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6553 if ${lt_cv_to_host_file_cmd+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 case $host in
6557 *-*-mingw* )
6558 case $build in
6559 *-*-mingw* ) # actually msys
6560 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6561 ;;
6562 *-*-cygwin* )
6563 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6564 ;;
6565 * ) # otherwise, assume *nix
6566 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6567 ;;
6568 esac
6569 ;;
6570 *-*-cygwin* )
6571 case $build in
6572 *-*-mingw* ) # actually msys
6573 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6574 ;;
6575 *-*-cygwin* )
6576 lt_cv_to_host_file_cmd=func_convert_file_noop
6577 ;;
6578 * ) # otherwise, assume *nix
6579 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6580 ;;
6581 esac
6582 ;;
6583 * ) # unhandled hosts (and "normal" native builds)
6584 lt_cv_to_host_file_cmd=func_convert_file_noop
6585 ;;
6586 esac
6587
6588 fi
6589
6590 to_host_file_cmd=$lt_cv_to_host_file_cmd
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6592 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6593
6594
6595
6596
6597
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6599 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6600 if ${lt_cv_to_tool_file_cmd+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 #assume ordinary cross tools, or native build.
6604 lt_cv_to_tool_file_cmd=func_convert_file_noop
6605 case $host in
6606 *-*-mingw* )
6607 case $build in
6608 *-*-mingw* ) # actually msys
6609 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6610 ;;
6611 esac
6612 ;;
6613 esac
6614
6615 fi
6616
6617 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6619 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6620
6621
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6627 if ${lt_cv_ld_reload_flag+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 lt_cv_ld_reload_flag='-r'
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6634 reload_flag=$lt_cv_ld_reload_flag
6635 case $reload_flag in
6636 "" | " "*) ;;
6637 *) reload_flag=" $reload_flag" ;;
6638 esac
6639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6640 case $host_os in
6641 cygwin* | mingw* | pw32* | cegcc*)
6642 if test yes != "$GCC"; then
6643 reload_cmds=false
6644 fi
6645 ;;
6646 darwin*)
6647 if test yes = "$GCC"; then
6648 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6649 else
6650 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6651 fi
6652 ;;
6653 esac
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663 if test -n "$ac_tool_prefix"; then
6664 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_OBJDUMP+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$OBJDUMP"; then
6672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 OBJDUMP=$ac_cv_prog_OBJDUMP
6692 if test -n "$OBJDUMP"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6694 $as_echo "$OBJDUMP" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_OBJDUMP"; then
6703 ac_ct_OBJDUMP=$OBJDUMP
6704 # Extract the first word of "objdump", so it can be a program name with args.
6705 set dummy objdump; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$ac_ct_OBJDUMP"; then
6712 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6732 if test -n "$ac_ct_OBJDUMP"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6734 $as_echo "$ac_ct_OBJDUMP" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740 if test "x$ac_ct_OBJDUMP" = x; then
6741 OBJDUMP="false"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749 OBJDUMP=$ac_ct_OBJDUMP
6750 fi
6751 else
6752 OBJDUMP="$ac_cv_prog_OBJDUMP"
6753 fi
6754
6755 test -z "$OBJDUMP" && OBJDUMP=objdump
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6766 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6767 if ${lt_cv_deplibs_check_method+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 lt_cv_file_magic_cmd='$MAGIC_CMD'
6771 lt_cv_file_magic_test_file=
6772 lt_cv_deplibs_check_method='unknown'
6773 # Need to set the preceding variable on all platforms that support
6774 # interlibrary dependencies.
6775 # 'none' -- dependencies not supported.
6776 # 'unknown' -- same as none, but documents that we really don't know.
6777 # 'pass_all' -- all dependencies passed with no checks.
6778 # 'test_compile' -- check by making test program.
6779 # 'file_magic [[regex]]' -- check by looking for files in library path
6780 # that responds to the $file_magic_cmd with a given extended regex.
6781 # If you have 'file' or equivalent on your system and you're not sure
6782 # whether 'pass_all' will *always* work, you probably want this one.
6783
6784 case $host_os in
6785 aix[4-9]*)
6786 lt_cv_deplibs_check_method=pass_all
6787 ;;
6788
6789 beos*)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792
6793 bsdi[45]*)
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6795 lt_cv_file_magic_cmd='/usr/bin/file -L'
6796 lt_cv_file_magic_test_file=/shlib/libc.so
6797 ;;
6798
6799 cygwin*)
6800 # func_win32_libid is a shell function defined in ltmain.sh
6801 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6802 lt_cv_file_magic_cmd='func_win32_libid'
6803 ;;
6804
6805 mingw* | pw32*)
6806 # Base MSYS/MinGW do not provide the 'file' command needed by
6807 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6808 # unless we find 'file', for example because we are cross-compiling.
6809 if ( file / ) >/dev/null 2>&1; then
6810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6811 lt_cv_file_magic_cmd='func_win32_libid'
6812 else
6813 # Keep this pattern in sync with the one in func_win32_libid.
6814 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6815 lt_cv_file_magic_cmd='$OBJDUMP -f'
6816 fi
6817 ;;
6818
6819 cegcc*)
6820 # use the weaker test based on 'objdump'. See mingw*.
6821 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6822 lt_cv_file_magic_cmd='$OBJDUMP -f'
6823 ;;
6824
6825 darwin* | rhapsody*)
6826 lt_cv_deplibs_check_method=pass_all
6827 ;;
6828
6829 freebsd* | dragonfly*)
6830 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6831 case $host_cpu in
6832 i*86 )
6833 # Not sure whether the presence of OpenBSD here was a mistake.
6834 # Let's accept both of them until this is cleared up.
6835 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6836 lt_cv_file_magic_cmd=/usr/bin/file
6837 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6838 ;;
6839 esac
6840 else
6841 lt_cv_deplibs_check_method=pass_all
6842 fi
6843 ;;
6844
6845 haiku*)
6846 lt_cv_deplibs_check_method=pass_all
6847 ;;
6848
6849 hpux10.20* | hpux11*)
6850 lt_cv_file_magic_cmd=/usr/bin/file
6851 case $host_cpu in
6852 ia64*)
6853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6854 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6855 ;;
6856 hppa*64*)
6857 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]'
6858 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6859 ;;
6860 *)
6861 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6862 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6863 ;;
6864 esac
6865 ;;
6866
6867 interix[3-9]*)
6868 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6870 ;;
6871
6872 irix5* | irix6* | nonstopux*)
6873 case $LD in
6874 *-32|*"-32 ") libmagic=32-bit;;
6875 *-n32|*"-n32 ") libmagic=N32;;
6876 *-64|*"-64 ") libmagic=64-bit;;
6877 *) libmagic=never-match;;
6878 esac
6879 lt_cv_deplibs_check_method=pass_all
6880 ;;
6881
6882 # This must be glibc/ELF.
6883 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6884 lt_cv_deplibs_check_method=pass_all
6885 ;;
6886
6887 netbsd* | netbsdelf*-gnu)
6888 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6890 else
6891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6892 fi
6893 ;;
6894
6895 newos6*)
6896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6897 lt_cv_file_magic_cmd=/usr/bin/file
6898 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6899 ;;
6900
6901 *nto* | *qnx*)
6902 lt_cv_deplibs_check_method=pass_all
6903 ;;
6904
6905 openbsd* | bitrig*)
6906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6908 else
6909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6910 fi
6911 ;;
6912
6913 osf3* | osf4* | osf5*)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916
6917 rdos*)
6918 lt_cv_deplibs_check_method=pass_all
6919 ;;
6920
6921 solaris*)
6922 lt_cv_deplibs_check_method=pass_all
6923 ;;
6924
6925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6926 lt_cv_deplibs_check_method=pass_all
6927 ;;
6928
6929 sysv4 | sysv4.3*)
6930 case $host_vendor in
6931 motorola)
6932 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]'
6933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6934 ;;
6935 ncr)
6936 lt_cv_deplibs_check_method=pass_all
6937 ;;
6938 sequent)
6939 lt_cv_file_magic_cmd='/bin/file'
6940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6941 ;;
6942 sni)
6943 lt_cv_file_magic_cmd='/bin/file'
6944 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6945 lt_cv_file_magic_test_file=/lib/libc.so
6946 ;;
6947 siemens)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950 pc)
6951 lt_cv_deplibs_check_method=pass_all
6952 ;;
6953 esac
6954 ;;
6955
6956 tpf*)
6957 lt_cv_deplibs_check_method=pass_all
6958 ;;
6959 os2*)
6960 lt_cv_deplibs_check_method=pass_all
6961 ;;
6962 esac
6963
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6966 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6967
6968 file_magic_glob=
6969 want_nocaseglob=no
6970 if test "$build" = "$host"; then
6971 case $host_os in
6972 mingw* | pw32*)
6973 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6974 want_nocaseglob=yes
6975 else
6976 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6977 fi
6978 ;;
6979 esac
6980 fi
6981
6982 file_magic_cmd=$lt_cv_file_magic_cmd
6983 deplibs_check_method=$lt_cv_deplibs_check_method
6984 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if ${ac_cv_prog_DLLTOOL+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$DLLTOOL"; then
7016 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 DLLTOOL=$ac_cv_prog_DLLTOOL
7036 if test -n "$DLLTOOL"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7038 $as_echo "$DLLTOOL" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045 fi
7046 if test -z "$ac_cv_prog_DLLTOOL"; then
7047 ac_ct_DLLTOOL=$DLLTOOL
7048 # Extract the first word of "dlltool", so it can be a program name with args.
7049 set dummy dlltool; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_DLLTOOL"; then
7056 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7076 if test -n "$ac_ct_DLLTOOL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7078 $as_echo "$ac_ct_DLLTOOL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084 if test "x$ac_ct_DLLTOOL" = x; then
7085 DLLTOOL="false"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 DLLTOOL=$ac_ct_DLLTOOL
7094 fi
7095 else
7096 DLLTOOL="$ac_cv_prog_DLLTOOL"
7097 fi
7098
7099 test -z "$DLLTOOL" && DLLTOOL=dlltool
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7111 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7112 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 lt_cv_sharedlib_from_linklib_cmd='unknown'
7116
7117 case $host_os in
7118 cygwin* | mingw* | pw32* | cegcc*)
7119 # two different shell functions defined in ltmain.sh;
7120 # decide which one to use based on capabilities of $DLLTOOL
7121 case `$DLLTOOL --help 2>&1` in
7122 *--identify-strict*)
7123 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7124 ;;
7125 *)
7126 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7127 ;;
7128 esac
7129 ;;
7130 *)
7131 # fallback: assume linklib IS sharedlib
7132 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7133 ;;
7134 esac
7135
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7138 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7139 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7140 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7141
7142
7143
7144
7145
7146
7147
7148 if test -n "$ac_tool_prefix"; then
7149 for ac_prog in ar
7150 do
7151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_AR+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$AR"; then
7159 ac_cv_prog_AR="$AR" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 AR=$ac_cv_prog_AR
7179 if test -n "$AR"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7181 $as_echo "$AR" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 test -n "$AR" && break
7189 done
7190 fi
7191 if test -z "$AR"; then
7192 ac_ct_AR=$AR
7193 for ac_prog in ar
7194 do
7195 # Extract the first word of "$ac_prog", so it can be a program name with args.
7196 set dummy $ac_prog; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$ac_ct_AR"; then
7203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_ac_ct_AR="$ac_prog"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7223 if test -n "$ac_ct_AR"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7225 $as_echo "$ac_ct_AR" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232 test -n "$ac_ct_AR" && break
7233 done
7234
7235 if test "x$ac_ct_AR" = x; then
7236 AR="false"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7243 esac
7244 AR=$ac_ct_AR
7245 fi
7246 fi
7247
7248 : ${AR=ar}
7249 : ${AR_FLAGS=cru}
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7262 $as_echo_n "checking for archiver @FILE support... " >&6; }
7263 if ${lt_cv_ar_at_file+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_ar_at_file=no
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269
7270 int
7271 main ()
7272 {
7273
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 echo conftest.$ac_objext > conftest.lst
7280 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7282 (eval $lt_ar_try) 2>&5
7283 ac_status=$?
7284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7285 test $ac_status = 0; }
7286 if test 0 -eq "$ac_status"; then
7287 # Ensure the archiver fails upon bogus file names.
7288 rm -f conftest.$ac_objext libconftest.a
7289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7290 (eval $lt_ar_try) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }
7294 if test 0 -ne "$ac_status"; then
7295 lt_cv_ar_at_file=@
7296 fi
7297 fi
7298 rm -f conftest.* libconftest.a
7299
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7305 $as_echo "$lt_cv_ar_at_file" >&6; }
7306
7307 if test no = "$lt_cv_ar_at_file"; then
7308 archiver_list_spec=
7309 else
7310 archiver_list_spec=$lt_cv_ar_at_file
7311 fi
7312
7313
7314
7315
7316
7317
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}strip; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_STRIP+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$STRIP"; then
7328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 STRIP=$ac_cv_prog_STRIP
7348 if test -n "$STRIP"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7350 $as_echo "$STRIP" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_STRIP"; then
7359 ac_ct_STRIP=$STRIP
7360 # Extract the first word of "strip", so it can be a program name with args.
7361 set dummy strip; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_STRIP"; then
7368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_ac_ct_STRIP="strip"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7388 if test -n "$ac_ct_STRIP"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7390 $as_echo "$ac_ct_STRIP" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_STRIP" = x; then
7397 STRIP=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 STRIP=$ac_ct_STRIP
7406 fi
7407 else
7408 STRIP="$ac_cv_prog_STRIP"
7409 fi
7410
7411 test -z "$STRIP" && STRIP=:
7412
7413
7414
7415
7416
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_RANLIB+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$RANLIB"; then
7427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 RANLIB=$ac_cv_prog_RANLIB
7447 if test -n "$RANLIB"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7449 $as_echo "$RANLIB" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_RANLIB"; then
7458 ac_ct_RANLIB=$RANLIB
7459 # Extract the first word of "ranlib", so it can be a program name with args.
7460 set dummy ranlib; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$ac_ct_RANLIB"; then
7467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_RANLIB="ranlib"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7487 if test -n "$ac_ct_RANLIB"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7489 $as_echo "$ac_ct_RANLIB" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495 if test "x$ac_ct_RANLIB" = x; then
7496 RANLIB=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 RANLIB=$ac_ct_RANLIB
7505 fi
7506 else
7507 RANLIB="$ac_cv_prog_RANLIB"
7508 fi
7509
7510 test -z "$RANLIB" && RANLIB=:
7511
7512
7513
7514
7515
7516
7517 # Determine commands to create old-style static archives.
7518 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7519 old_postinstall_cmds='chmod 644 $oldlib'
7520 old_postuninstall_cmds=
7521
7522 if test -n "$RANLIB"; then
7523 case $host_os in
7524 bitrig* | openbsd*)
7525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7526 ;;
7527 *)
7528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7529 ;;
7530 esac
7531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7532 fi
7533
7534 case $host_os in
7535 darwin*)
7536 lock_old_archive_extraction=yes ;;
7537 *)
7538 lock_old_archive_extraction=no ;;
7539 esac
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579 # If no C compiler was specified, use CC.
7580 LTCC=${LTCC-"$CC"}
7581
7582 # If no C compiler flags were specified, use CFLAGS.
7583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7584
7585 # Allow CC to be a program name with arguments.
7586 compiler=$CC
7587
7588
7589 # Check for command to grab the raw symbol name followed by C symbol from nm.
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7591 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7592 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595
7596 # These are sane defaults that work on at least a few old systems.
7597 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7598
7599 # Character class describing NM global symbol codes.
7600 symcode='[BCDEGRST]'
7601
7602 # Regexp to match symbols that can be accessed directly from C.
7603 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7604
7605 # Define system-specific variables.
7606 case $host_os in
7607 aix*)
7608 symcode='[BCDT]'
7609 ;;
7610 cygwin* | mingw* | pw32* | cegcc*)
7611 symcode='[ABCDGISTW]'
7612 ;;
7613 hpux*)
7614 if test ia64 = "$host_cpu"; then
7615 symcode='[ABCDEGRST]'
7616 fi
7617 ;;
7618 irix* | nonstopux*)
7619 symcode='[BCDEGRST]'
7620 ;;
7621 osf*)
7622 symcode='[BCDEGQRST]'
7623 ;;
7624 solaris*)
7625 symcode='[BDRT]'
7626 ;;
7627 sco3.2v5*)
7628 symcode='[DT]'
7629 ;;
7630 sysv4.2uw2*)
7631 symcode='[DT]'
7632 ;;
7633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7634 symcode='[ABDT]'
7635 ;;
7636 sysv4)
7637 symcode='[DFNSTU]'
7638 ;;
7639 esac
7640
7641 # If we're using GNU nm, then use its standard symbol codes.
7642 case `$NM -V 2>&1` in
7643 *GNU* | *'with BFD'*)
7644 symcode='[ABCDGIRSTW]' ;;
7645 esac
7646
7647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7648 # Gets list of data symbols to import.
7649 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7650 # Adjust the below global symbol transforms to fixup imported variables.
7651 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7652 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7653 lt_c_name_lib_hook="\
7654 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7655 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7656 else
7657 # Disable hooks by default.
7658 lt_cv_sys_global_symbol_to_import=
7659 lt_cdecl_hook=
7660 lt_c_name_hook=
7661 lt_c_name_lib_hook=
7662 fi
7663
7664 # Transform an extracted symbol line into a proper C declaration.
7665 # Some systems (esp. on ia64) link data and code symbols differently,
7666 # so use this general approach.
7667 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7668 $lt_cdecl_hook\
7669 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7670 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7671
7672 # Transform an extracted symbol line into symbol name and symbol address
7673 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7674 $lt_c_name_hook\
7675 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7676 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7677
7678 # Transform an extracted symbol line into symbol name with lib prefix and
7679 # symbol address.
7680 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7681 $lt_c_name_lib_hook\
7682 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7683 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7684 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7685
7686 # Handle CRLF in mingw tool chain
7687 opt_cr=
7688 case $build_os in
7689 mingw*)
7690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7691 ;;
7692 esac
7693
7694 # Try without a prefix underscore, then with it.
7695 for ac_symprfx in "" "_"; do
7696
7697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7698 symxfrm="\\1 $ac_symprfx\\2 \\2"
7699
7700 # Write the raw and C identifiers.
7701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7702 # Fake it for dumpbin and say T for any non-static function,
7703 # D for any global variable and I for any imported variable.
7704 # Also find C++ and __fastcall symbols from MSVC++,
7705 # which start with @ or ?.
7706 lt_cv_sys_global_symbol_pipe="$AWK '"\
7707 " {last_section=section; section=\$ 3};"\
7708 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7709 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7710 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7711 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7712 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7713 " \$ 0!~/External *\|/{next};"\
7714 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7715 " {if(hide[section]) next};"\
7716 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7717 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7718 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7719 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7720 " ' prfx=^$ac_symprfx"
7721 else
7722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7723 fi
7724 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7725
7726 # Check to see that the pipe works correctly.
7727 pipe_works=no
7728
7729 rm -f conftest*
7730 cat > conftest.$ac_ext <<_LT_EOF
7731 #ifdef __cplusplus
7732 extern "C" {
7733 #endif
7734 char nm_test_var;
7735 void nm_test_func(void);
7736 void nm_test_func(void){}
7737 #ifdef __cplusplus
7738 }
7739 #endif
7740 int main(){nm_test_var='a';nm_test_func();return(0);}
7741 _LT_EOF
7742
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744 (eval $ac_compile) 2>&5
7745 ac_status=$?
7746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; }; then
7748 # Now try to grab the symbols.
7749 nlist=conftest.nm
7750 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7751 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7752 # Try sorting and uniquifying the output.
7753 if sort "$nlist" | uniq > "$nlist"T; then
7754 mv -f "$nlist"T "$nlist"
7755 else
7756 rm -f "$nlist"T
7757 fi
7758
7759 # Make sure that we snagged all the symbols we need.
7760 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7761 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7762 cat <<_LT_EOF > conftest.$ac_ext
7763 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7764 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7765 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7766 relocations are performed -- see ld's documentation on pseudo-relocs. */
7767 # define LT_DLSYM_CONST
7768 #elif defined __osf__
7769 /* This system does not cope well with relocations in const data. */
7770 # define LT_DLSYM_CONST
7771 #else
7772 # define LT_DLSYM_CONST const
7773 #endif
7774
7775 #ifdef __cplusplus
7776 extern "C" {
7777 #endif
7778
7779 _LT_EOF
7780 # Now generate the symbol file.
7781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7782
7783 cat <<_LT_EOF >> conftest.$ac_ext
7784
7785 /* The mapping between symbol names and symbols. */
7786 LT_DLSYM_CONST struct {
7787 const char *name;
7788 void *address;
7789 }
7790 lt__PROGRAM__LTX_preloaded_symbols[] =
7791 {
7792 { "@PROGRAM@", (void *) 0 },
7793 _LT_EOF
7794 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7795 cat <<\_LT_EOF >> conftest.$ac_ext
7796 {0, (void *) 0}
7797 };
7798
7799 /* This works around a problem in FreeBSD linker */
7800 #ifdef FREEBSD_WORKAROUND
7801 static const void *lt_preloaded_setup() {
7802 return lt__PROGRAM__LTX_preloaded_symbols;
7803 }
7804 #endif
7805
7806 #ifdef __cplusplus
7807 }
7808 #endif
7809 _LT_EOF
7810 # Now try linking the two files.
7811 mv conftest.$ac_objext conftstm.$ac_objext
7812 lt_globsym_save_LIBS=$LIBS
7813 lt_globsym_save_CFLAGS=$CFLAGS
7814 LIBS=conftstm.$ac_objext
7815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7817 (eval $ac_link) 2>&5
7818 ac_status=$?
7819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7821 pipe_works=yes
7822 fi
7823 LIBS=$lt_globsym_save_LIBS
7824 CFLAGS=$lt_globsym_save_CFLAGS
7825 else
7826 echo "cannot find nm_test_func in $nlist" >&5
7827 fi
7828 else
7829 echo "cannot find nm_test_var in $nlist" >&5
7830 fi
7831 else
7832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7833 fi
7834 else
7835 echo "$progname: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 fi
7838 rm -rf conftest* conftst*
7839
7840 # Do not use the global_symbol_pipe unless it works.
7841 if test yes = "$pipe_works"; then
7842 break
7843 else
7844 lt_cv_sys_global_symbol_pipe=
7845 fi
7846 done
7847
7848 fi
7849
7850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7851 lt_cv_sys_global_symbol_to_cdecl=
7852 fi
7853 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7855 $as_echo "failed" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7858 $as_echo "ok" >&6; }
7859 fi
7860
7861 # Response file support.
7862 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7863 nm_file_list_spec='@'
7864 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7865 nm_file_list_spec='@'
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7905 $as_echo_n "checking for sysroot... " >&6; }
7906
7907 # Check whether --with-sysroot was given.
7908 if test "${with_sysroot+set}" = set; then :
7909 withval=$with_sysroot;
7910 else
7911 with_sysroot=no
7912 fi
7913
7914
7915 lt_sysroot=
7916 case $with_sysroot in #(
7917 yes)
7918 if test yes = "$GCC"; then
7919 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7920 fi
7921 ;; #(
7922 /*)
7923 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7924 ;; #(
7925 no|'')
7926 ;; #(
7927 *)
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7929 $as_echo "$with_sysroot" >&6; }
7930 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7931 ;;
7932 esac
7933
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7935 $as_echo "${lt_sysroot:-no}" >&6; }
7936
7937
7938
7939
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7942 $as_echo_n "checking for a working dd... " >&6; }
7943 if ${ac_cv_path_lt_DD+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 printf 0123456789abcdef0123456789abcdef >conftest.i
7947 cat conftest.i conftest.i >conftest2.i
7948 : ${lt_DD:=$DD}
7949 if test -z "$lt_DD"; then
7950 ac_path_lt_DD_found=false
7951 # Loop through the user's path and test for each of PROGNAME-LIST
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_prog in dd; do
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7960 as_fn_executable_p "$ac_path_lt_DD" || continue
7961 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7962 cmp -s conftest.i conftest.out \
7963 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7964 fi
7965 $ac_path_lt_DD_found && break 3
7966 done
7967 done
7968 done
7969 IFS=$as_save_IFS
7970 if test -z "$ac_cv_path_lt_DD"; then
7971 :
7972 fi
7973 else
7974 ac_cv_path_lt_DD=$lt_DD
7975 fi
7976
7977 rm -f conftest.i conftest2.i conftest.out
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7980 $as_echo "$ac_cv_path_lt_DD" >&6; }
7981
7982
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7984 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7985 if ${lt_cv_truncate_bin+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 printf 0123456789abcdef0123456789abcdef >conftest.i
7989 cat conftest.i conftest.i >conftest2.i
7990 lt_cv_truncate_bin=
7991 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7992 cmp -s conftest.i conftest.out \
7993 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7994 fi
7995 rm -f conftest.i conftest2.i conftest.out
7996 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7999 $as_echo "$lt_cv_truncate_bin" >&6; }
8000
8001
8002
8003
8004
8005
8006
8007 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8008 func_cc_basename ()
8009 {
8010 for cc_temp in $*""; do
8011 case $cc_temp in
8012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8014 \-*) ;;
8015 *) break;;
8016 esac
8017 done
8018 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8019 }
8020
8021 # Check whether --enable-libtool-lock was given.
8022 if test "${enable_libtool_lock+set}" = set; then :
8023 enableval=$enable_libtool_lock;
8024 fi
8025
8026 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8027
8028 # Some flags need to be propagated to the compiler or linker for good
8029 # libtool support.
8030 case $host in
8031 ia64-*-hpux*)
8032 # Find out what ABI is being produced by ac_compile, and set mode
8033 # options accordingly.
8034 echo 'int i;' > conftest.$ac_ext
8035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036 (eval $ac_compile) 2>&5
8037 ac_status=$?
8038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039 test $ac_status = 0; }; then
8040 case `/usr/bin/file conftest.$ac_objext` in
8041 *ELF-32*)
8042 HPUX_IA64_MODE=32
8043 ;;
8044 *ELF-64*)
8045 HPUX_IA64_MODE=64
8046 ;;
8047 esac
8048 fi
8049 rm -rf conftest*
8050 ;;
8051 *-*-irix6*)
8052 # Find out what ABI is being produced by ac_compile, and set linker
8053 # options accordingly.
8054 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8056 (eval $ac_compile) 2>&5
8057 ac_status=$?
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
8060 if test yes = "$lt_cv_prog_gnu_ld"; then
8061 case `/usr/bin/file conftest.$ac_objext` in
8062 *32-bit*)
8063 LD="${LD-ld} -melf32bsmip"
8064 ;;
8065 *N32*)
8066 LD="${LD-ld} -melf32bmipn32"
8067 ;;
8068 *64-bit*)
8069 LD="${LD-ld} -melf64bmip"
8070 ;;
8071 esac
8072 else
8073 case `/usr/bin/file conftest.$ac_objext` in
8074 *32-bit*)
8075 LD="${LD-ld} -32"
8076 ;;
8077 *N32*)
8078 LD="${LD-ld} -n32"
8079 ;;
8080 *64-bit*)
8081 LD="${LD-ld} -64"
8082 ;;
8083 esac
8084 fi
8085 fi
8086 rm -rf conftest*
8087 ;;
8088
8089 mips64*-*linux*)
8090 # Find out what ABI is being produced by ac_compile, and set linker
8091 # options accordingly.
8092 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8094 (eval $ac_compile) 2>&5
8095 ac_status=$?
8096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097 test $ac_status = 0; }; then
8098 emul=elf
8099 case `/usr/bin/file conftest.$ac_objext` in
8100 *32-bit*)
8101 emul="${emul}32"
8102 ;;
8103 *64-bit*)
8104 emul="${emul}64"
8105 ;;
8106 esac
8107 case `/usr/bin/file conftest.$ac_objext` in
8108 *MSB*)
8109 emul="${emul}btsmip"
8110 ;;
8111 *LSB*)
8112 emul="${emul}ltsmip"
8113 ;;
8114 esac
8115 case `/usr/bin/file conftest.$ac_objext` in
8116 *N32*)
8117 emul="${emul}n32"
8118 ;;
8119 esac
8120 LD="${LD-ld} -m $emul"
8121 fi
8122 rm -rf conftest*
8123 ;;
8124
8125 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8126 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8127 # Find out what ABI is being produced by ac_compile, and set linker
8128 # options accordingly. Note that the listed cases only cover the
8129 # situations where additional linker options are needed (such as when
8130 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8131 # vice versa); the common cases where no linker options are needed do
8132 # not appear in the list.
8133 echo 'int i;' > conftest.$ac_ext
8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8135 (eval $ac_compile) 2>&5
8136 ac_status=$?
8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8138 test $ac_status = 0; }; then
8139 case `/usr/bin/file conftest.o` in
8140 *32-bit*)
8141 case $host in
8142 x86_64-*kfreebsd*-gnu)
8143 LD="${LD-ld} -m elf_i386_fbsd"
8144 ;;
8145 x86_64-*linux*)
8146 case `/usr/bin/file conftest.o` in
8147 *x86-64*)
8148 LD="${LD-ld} -m elf32_x86_64"
8149 ;;
8150 *)
8151 LD="${LD-ld} -m elf_i386"
8152 ;;
8153 esac
8154 ;;
8155 powerpc64le-*linux*)
8156 LD="${LD-ld} -m elf32lppclinux"
8157 ;;
8158 powerpc64-*linux*)
8159 LD="${LD-ld} -m elf32ppclinux"
8160 ;;
8161 s390x-*linux*)
8162 LD="${LD-ld} -m elf_s390"
8163 ;;
8164 sparc64-*linux*)
8165 LD="${LD-ld} -m elf32_sparc"
8166 ;;
8167 esac
8168 ;;
8169 *64-bit*)
8170 case $host in
8171 x86_64-*kfreebsd*-gnu)
8172 LD="${LD-ld} -m elf_x86_64_fbsd"
8173 ;;
8174 x86_64-*linux*)
8175 LD="${LD-ld} -m elf_x86_64"
8176 ;;
8177 powerpcle-*linux*)
8178 LD="${LD-ld} -m elf64lppc"
8179 ;;
8180 powerpc-*linux*)
8181 LD="${LD-ld} -m elf64ppc"
8182 ;;
8183 s390*-*linux*|s390*-*tpf*)
8184 LD="${LD-ld} -m elf64_s390"
8185 ;;
8186 sparc*-*linux*)
8187 LD="${LD-ld} -m elf64_sparc"
8188 ;;
8189 esac
8190 ;;
8191 esac
8192 fi
8193 rm -rf conftest*
8194 ;;
8195
8196 *-*-sco3.2v5*)
8197 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8198 SAVE_CFLAGS=$CFLAGS
8199 CFLAGS="$CFLAGS -belf"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8201 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8202 if ${lt_cv_cc_needs_belf+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 ac_ext=c
8206 ac_cpp='$CPP $CPPFLAGS'
8207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8210
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213
8214 int
8215 main ()
8216 {
8217
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"; then :
8223 lt_cv_cc_needs_belf=yes
8224 else
8225 lt_cv_cc_needs_belf=no
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
8229 ac_ext=c
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
8235 fi
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8237 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8238 if test yes != "$lt_cv_cc_needs_belf"; then
8239 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8240 CFLAGS=$SAVE_CFLAGS
8241 fi
8242 ;;
8243 *-*solaris*)
8244 # Find out what ABI is being produced by ac_compile, and set linker
8245 # options accordingly.
8246 echo 'int i;' > conftest.$ac_ext
8247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8248 (eval $ac_compile) 2>&5
8249 ac_status=$?
8250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8251 test $ac_status = 0; }; then
8252 case `/usr/bin/file conftest.o` in
8253 *64-bit*)
8254 case $lt_cv_prog_gnu_ld in
8255 yes*)
8256 case $host in
8257 i?86-*-solaris*|x86_64-*-solaris*)
8258 LD="${LD-ld} -m elf_x86_64"
8259 ;;
8260 sparc*-*-solaris*)
8261 LD="${LD-ld} -m elf64_sparc"
8262 ;;
8263 esac
8264 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8265 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8266 LD=${LD-ld}_sol2
8267 fi
8268 ;;
8269 *)
8270 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8271 LD="${LD-ld} -64"
8272 fi
8273 ;;
8274 esac
8275 ;;
8276 esac
8277 fi
8278 rm -rf conftest*
8279 ;;
8280 esac
8281
8282 need_locks=$enable_libtool_lock
8283
8284 if test -n "$ac_tool_prefix"; then
8285 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}mt; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$MANIFEST_TOOL"; then
8293 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8313 if test -n "$MANIFEST_TOOL"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8315 $as_echo "$MANIFEST_TOOL" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320
8321
8322 fi
8323 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8324 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8325 # Extract the first word of "mt", so it can be a program name with args.
8326 set dummy mt; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$ac_ct_MANIFEST_TOOL"; then
8333 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8353 if test -n "$ac_ct_MANIFEST_TOOL"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8355 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8362 MANIFEST_TOOL=":"
8363 else
8364 case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8371 fi
8372 else
8373 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8374 fi
8375
8376 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8378 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8379 if ${lt_cv_path_mainfest_tool+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 lt_cv_path_mainfest_tool=no
8383 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8384 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8385 cat conftest.err >&5
8386 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8387 lt_cv_path_mainfest_tool=yes
8388 fi
8389 rm -f conftest*
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8392 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8393 if test yes != "$lt_cv_path_mainfest_tool"; then
8394 MANIFEST_TOOL=:
8395 fi
8396
8397
8398
8399
8400
8401
8402 case $host_os in
8403 rhapsody* | darwin*)
8404 if test -n "$ac_tool_prefix"; then
8405 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8406 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$DSYMUTIL"; then
8413 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8433 if test -n "$DSYMUTIL"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8435 $as_echo "$DSYMUTIL" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440
8441
8442 fi
8443 if test -z "$ac_cv_prog_DSYMUTIL"; then
8444 ac_ct_DSYMUTIL=$DSYMUTIL
8445 # Extract the first word of "dsymutil", so it can be a program name with args.
8446 set dummy dsymutil; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$ac_ct_DSYMUTIL"; then
8453 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8473 if test -n "$ac_ct_DSYMUTIL"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8475 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8479 fi
8480
8481 if test "x$ac_ct_DSYMUTIL" = x; then
8482 DSYMUTIL=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485 yes:)
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488 ac_tool_warned=yes ;;
8489 esac
8490 DSYMUTIL=$ac_ct_DSYMUTIL
8491 fi
8492 else
8493 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8494 fi
8495
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_NMEDIT+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$NMEDIT"; then
8505 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 NMEDIT=$ac_cv_prog_NMEDIT
8525 if test -n "$NMEDIT"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8527 $as_echo "$NMEDIT" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534 fi
8535 if test -z "$ac_cv_prog_NMEDIT"; then
8536 ac_ct_NMEDIT=$NMEDIT
8537 # Extract the first word of "nmedit", so it can be a program name with args.
8538 set dummy nmedit; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$ac_ct_NMEDIT"; then
8545 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558 done
8559 done
8560 IFS=$as_save_IFS
8561
8562 fi
8563 fi
8564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8565 if test -n "$ac_ct_NMEDIT"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8567 $as_echo "$ac_ct_NMEDIT" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573 if test "x$ac_ct_NMEDIT" = x; then
8574 NMEDIT=":"
8575 else
8576 case $cross_compiling:$ac_tool_warned in
8577 yes:)
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8580 ac_tool_warned=yes ;;
8581 esac
8582 NMEDIT=$ac_ct_NMEDIT
8583 fi
8584 else
8585 NMEDIT="$ac_cv_prog_NMEDIT"
8586 fi
8587
8588 if test -n "$ac_tool_prefix"; then
8589 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8590 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_LIPO+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test -n "$LIPO"; then
8597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8601 do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610 done
8611 done
8612 IFS=$as_save_IFS
8613
8614 fi
8615 fi
8616 LIPO=$ac_cv_prog_LIPO
8617 if test -n "$LIPO"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8619 $as_echo "$LIPO" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624
8625
8626 fi
8627 if test -z "$ac_cv_prog_LIPO"; then
8628 ac_ct_LIPO=$LIPO
8629 # Extract the first word of "lipo", so it can be a program name with args.
8630 set dummy lipo; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 if test -n "$ac_ct_LIPO"; then
8637 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_ac_ct_LIPO="lipo"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650 done
8651 done
8652 IFS=$as_save_IFS
8653
8654 fi
8655 fi
8656 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8657 if test -n "$ac_ct_LIPO"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8659 $as_echo "$ac_ct_LIPO" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8663 fi
8664
8665 if test "x$ac_ct_LIPO" = x; then
8666 LIPO=":"
8667 else
8668 case $cross_compiling:$ac_tool_warned in
8669 yes:)
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8672 ac_tool_warned=yes ;;
8673 esac
8674 LIPO=$ac_ct_LIPO
8675 fi
8676 else
8677 LIPO="$ac_cv_prog_LIPO"
8678 fi
8679
8680 if test -n "$ac_tool_prefix"; then
8681 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8682 set dummy ${ac_tool_prefix}otool; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_OTOOL+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 if test -n "$OTOOL"; then
8689 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702 done
8703 done
8704 IFS=$as_save_IFS
8705
8706 fi
8707 fi
8708 OTOOL=$ac_cv_prog_OTOOL
8709 if test -n "$OTOOL"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8711 $as_echo "$OTOOL" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 fi
8716
8717
8718 fi
8719 if test -z "$ac_cv_prog_OTOOL"; then
8720 ac_ct_OTOOL=$OTOOL
8721 # Extract the first word of "otool", so it can be a program name with args.
8722 set dummy otool; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 if test -n "$ac_ct_OTOOL"; then
8729 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_OTOOL="otool"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8741 fi
8742 done
8743 done
8744 IFS=$as_save_IFS
8745
8746 fi
8747 fi
8748 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8749 if test -n "$ac_ct_OTOOL"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8751 $as_echo "$ac_ct_OTOOL" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8755 fi
8756
8757 if test "x$ac_ct_OTOOL" = x; then
8758 OTOOL=":"
8759 else
8760 case $cross_compiling:$ac_tool_warned in
8761 yes:)
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764 ac_tool_warned=yes ;;
8765 esac
8766 OTOOL=$ac_ct_OTOOL
8767 fi
8768 else
8769 OTOOL="$ac_cv_prog_OTOOL"
8770 fi
8771
8772 if test -n "$ac_tool_prefix"; then
8773 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8774 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_OTOOL64+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 if test -n "$OTOOL64"; then
8781 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796 IFS=$as_save_IFS
8797
8798 fi
8799 fi
8800 OTOOL64=$ac_cv_prog_OTOOL64
8801 if test -n "$OTOOL64"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8803 $as_echo "$OTOOL64" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8807 fi
8808
8809
8810 fi
8811 if test -z "$ac_cv_prog_OTOOL64"; then
8812 ac_ct_OTOOL64=$OTOOL64
8813 # Extract the first word of "otool64", so it can be a program name with args.
8814 set dummy otool64; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 if test -n "$ac_ct_OTOOL64"; then
8821 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_ac_ct_OTOOL64="otool64"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834 done
8835 done
8836 IFS=$as_save_IFS
8837
8838 fi
8839 fi
8840 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8841 if test -n "$ac_ct_OTOOL64"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8843 $as_echo "$ac_ct_OTOOL64" >&6; }
8844 else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8847 fi
8848
8849 if test "x$ac_ct_OTOOL64" = x; then
8850 OTOOL64=":"
8851 else
8852 case $cross_compiling:$ac_tool_warned in
8853 yes:)
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8856 ac_tool_warned=yes ;;
8857 esac
8858 OTOOL64=$ac_ct_OTOOL64
8859 fi
8860 else
8861 OTOOL64="$ac_cv_prog_OTOOL64"
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8891 $as_echo_n "checking for -single_module linker flag... " >&6; }
8892 if ${lt_cv_apple_cc_single_mod+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 lt_cv_apple_cc_single_mod=no
8896 if test -z "$LT_MULTI_MODULE"; then
8897 # By default we will add the -single_module flag. You can override
8898 # by either setting the environment variable LT_MULTI_MODULE
8899 # non-empty at configure time, or by adding -multi_module to the
8900 # link flags.
8901 rm -rf libconftest.dylib*
8902 echo "int foo(void){return 1;}" > conftest.c
8903 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8904 -dynamiclib -Wl,-single_module conftest.c" >&5
8905 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8906 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8907 _lt_result=$?
8908 # If there is a non-empty error log, and "single_module"
8909 # appears in it, assume the flag caused a linker warning
8910 if test -s conftest.err && $GREP single_module conftest.err; then
8911 cat conftest.err >&5
8912 # Otherwise, if the output was created with a 0 exit code from
8913 # the compiler, it worked.
8914 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8915 lt_cv_apple_cc_single_mod=yes
8916 else
8917 cat conftest.err >&5
8918 fi
8919 rm -rf libconftest.dylib*
8920 rm -f conftest.*
8921 fi
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8927 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8928 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 lt_cv_ld_exported_symbols_list=no
8932 save_LDFLAGS=$LDFLAGS
8933 echo "_main" > conftest.sym
8934 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937
8938 int
8939 main ()
8940 {
8941
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 lt_cv_ld_exported_symbols_list=yes
8948 else
8949 lt_cv_ld_exported_symbols_list=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LDFLAGS=$save_LDFLAGS
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8957 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8960 $as_echo_n "checking for -force_load linker flag... " >&6; }
8961 if ${lt_cv_ld_force_load+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 lt_cv_ld_force_load=no
8965 cat > conftest.c << _LT_EOF
8966 int forced_loaded() { return 2;}
8967 _LT_EOF
8968 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8969 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8970 echo "$AR cru libconftest.a conftest.o" >&5
8971 $AR cru libconftest.a conftest.o 2>&5
8972 echo "$RANLIB libconftest.a" >&5
8973 $RANLIB libconftest.a 2>&5
8974 cat > conftest.c << _LT_EOF
8975 int main() { return 0;}
8976 _LT_EOF
8977 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8978 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8979 _lt_result=$?
8980 if test -s conftest.err && $GREP force_load conftest.err; then
8981 cat conftest.err >&5
8982 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8983 lt_cv_ld_force_load=yes
8984 else
8985 cat conftest.err >&5
8986 fi
8987 rm -f conftest.err libconftest.a conftest conftest.c
8988 rm -rf conftest.dSYM
8989
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8992 $as_echo "$lt_cv_ld_force_load" >&6; }
8993 case $host_os in
8994 rhapsody* | darwin1.[012])
8995 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8996 darwin1.*)
8997 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8998 darwin*) # darwin 5.x on
8999 # if running on 10.5 or later, the deployment target defaults
9000 # to the OS version, if on x86, and 10.4, the deployment
9001 # target defaults to 10.4. Don't you love it?
9002 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9003 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9004 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9005 10.[012][,.]*)
9006 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9007 10.*)
9008 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9009 esac
9010 ;;
9011 esac
9012 if test yes = "$lt_cv_apple_cc_single_mod"; then
9013 _lt_dar_single_mod='$single_module'
9014 fi
9015 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9016 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9017 else
9018 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9019 fi
9020 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9021 _lt_dsymutil='~$DSYMUTIL $lib || :'
9022 else
9023 _lt_dsymutil=
9024 fi
9025 ;;
9026 esac
9027
9028 # func_munge_path_list VARIABLE PATH
9029 # -----------------------------------
9030 # VARIABLE is name of variable containing _space_ separated list of
9031 # directories to be munged by the contents of PATH, which is string
9032 # having a format:
9033 # "DIR[:DIR]:"
9034 # string "DIR[ DIR]" will be prepended to VARIABLE
9035 # ":DIR[:DIR]"
9036 # string "DIR[ DIR]" will be appended to VARIABLE
9037 # "DIRP[:DIRP]::[DIRA:]DIRA"
9038 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9039 # "DIRA[ DIRA]" will be appended to VARIABLE
9040 # "DIR[:DIR]"
9041 # VARIABLE will be replaced by "DIR[ DIR]"
9042 func_munge_path_list ()
9043 {
9044 case x$2 in
9045 x)
9046 ;;
9047 *:)
9048 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9049 ;;
9050 x:*)
9051 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9052 ;;
9053 *::*)
9054 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9055 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9056 ;;
9057 *)
9058 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9059 ;;
9060 esac
9061 }
9062
9063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9065 inttypes.h stdint.h unistd.h
9066 do :
9067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9069 "
9070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9071 cat >>confdefs.h <<_ACEOF
9072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 _ACEOF
9074
9075 fi
9076
9077 done
9078
9079
9080 for ac_header in dlfcn.h
9081 do :
9082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9083 "
9084 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DLFCN_H 1
9087 _ACEOF
9088
9089 fi
9090
9091 done
9092
9093
9094
9095
9096
9097 # Set options
9098
9099
9100
9101 enable_dlopen=no
9102
9103
9104 enable_win32_dll=no
9105
9106
9107 # Check whether --enable-shared was given.
9108 if test "${enable_shared+set}" = set; then :
9109 enableval=$enable_shared; p=${PACKAGE-default}
9110 case $enableval in
9111 yes) enable_shared=yes ;;
9112 no) enable_shared=no ;;
9113 *)
9114 enable_shared=no
9115 # Look at the argument we got. We use all the common list separators.
9116 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9117 for pkg in $enableval; do
9118 IFS=$lt_save_ifs
9119 if test "X$pkg" = "X$p"; then
9120 enable_shared=yes
9121 fi
9122 done
9123 IFS=$lt_save_ifs
9124 ;;
9125 esac
9126 else
9127 enable_shared=yes
9128 fi
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138 # Check whether --enable-static was given.
9139 if test "${enable_static+set}" = set; then :
9140 enableval=$enable_static; p=${PACKAGE-default}
9141 case $enableval in
9142 yes) enable_static=yes ;;
9143 no) enable_static=no ;;
9144 *)
9145 enable_static=no
9146 # Look at the argument we got. We use all the common list separators.
9147 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9148 for pkg in $enableval; do
9149 IFS=$lt_save_ifs
9150 if test "X$pkg" = "X$p"; then
9151 enable_static=yes
9152 fi
9153 done
9154 IFS=$lt_save_ifs
9155 ;;
9156 esac
9157 else
9158 enable_static=yes
9159 fi
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170 # Check whether --with-pic was given.
9171 if test "${with_pic+set}" = set; then :
9172 withval=$with_pic; lt_p=${PACKAGE-default}
9173 case $withval in
9174 yes|no) pic_mode=$withval ;;
9175 *)
9176 pic_mode=default
9177 # Look at the argument we got. We use all the common list separators.
9178 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9179 for lt_pkg in $withval; do
9180 IFS=$lt_save_ifs
9181 if test "X$lt_pkg" = "X$lt_p"; then
9182 pic_mode=yes
9183 fi
9184 done
9185 IFS=$lt_save_ifs
9186 ;;
9187 esac
9188 else
9189 pic_mode=default
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199 # Check whether --enable-fast-install was given.
9200 if test "${enable_fast_install+set}" = set; then :
9201 enableval=$enable_fast_install; p=${PACKAGE-default}
9202 case $enableval in
9203 yes) enable_fast_install=yes ;;
9204 no) enable_fast_install=no ;;
9205 *)
9206 enable_fast_install=no
9207 # Look at the argument we got. We use all the common list separators.
9208 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9209 for pkg in $enableval; do
9210 IFS=$lt_save_ifs
9211 if test "X$pkg" = "X$p"; then
9212 enable_fast_install=yes
9213 fi
9214 done
9215 IFS=$lt_save_ifs
9216 ;;
9217 esac
9218 else
9219 enable_fast_install=yes
9220 fi
9221
9222
9223
9224
9225
9226
9227
9228
9229 shared_archive_member_spec=
9230 case $host,$enable_shared in
9231 power*-*-aix[5-9]*,yes)
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9233 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9234
9235 # Check whether --with-aix-soname was given.
9236 if test "${with_aix_soname+set}" = set; then :
9237 withval=$with_aix_soname; case $withval in
9238 aix|svr4|both)
9239 ;;
9240 *)
9241 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9242 ;;
9243 esac
9244 lt_cv_with_aix_soname=$with_aix_soname
9245 else
9246 if ${lt_cv_with_aix_soname+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 lt_cv_with_aix_soname=aix
9250 fi
9251
9252 with_aix_soname=$lt_cv_with_aix_soname
9253 fi
9254
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9256 $as_echo "$with_aix_soname" >&6; }
9257 if test aix != "$with_aix_soname"; then
9258 # For the AIX way of multilib, we name the shared archive member
9259 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9260 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9261 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9262 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9263 if test 64 = "${OBJECT_MODE-32}"; then
9264 shared_archive_member_spec=shr_64
9265 else
9266 shared_archive_member_spec=shr
9267 fi
9268 fi
9269 ;;
9270 *)
9271 with_aix_soname=aix
9272 ;;
9273 esac
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 # This can be used to rebuild libtool when needed
9285 LIBTOOL_DEPS=$ltmain
9286
9287 # Always use our own libtool.
9288 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319 test -z "$LN_S" && LN_S="ln -s"
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334 if test -n "${ZSH_VERSION+set}"; then
9335 setopt NO_GLOB_SUBST
9336 fi
9337
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9339 $as_echo_n "checking for objdir... " >&6; }
9340 if ${lt_cv_objdir+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 rm -f .libs 2>/dev/null
9344 mkdir .libs 2>/dev/null
9345 if test -d .libs; then
9346 lt_cv_objdir=.libs
9347 else
9348 # MS-DOS does not allow filenames that begin with a dot.
9349 lt_cv_objdir=_libs
9350 fi
9351 rmdir .libs 2>/dev/null
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9354 $as_echo "$lt_cv_objdir" >&6; }
9355 objdir=$lt_cv_objdir
9356
9357
9358
9359
9360
9361 cat >>confdefs.h <<_ACEOF
9362 #define LT_OBJDIR "$lt_cv_objdir/"
9363 _ACEOF
9364
9365
9366
9367
9368 case $host_os in
9369 aix3*)
9370 # AIX sometimes has problems with the GCC collect2 program. For some
9371 # reason, if we set the COLLECT_NAMES environment variable, the problems
9372 # vanish in a puff of smoke.
9373 if test set != "${COLLECT_NAMES+set}"; then
9374 COLLECT_NAMES=
9375 export COLLECT_NAMES
9376 fi
9377 ;;
9378 esac
9379
9380 # Global variables:
9381 ofile=libtool
9382 can_build_shared=yes
9383
9384 # All known linkers require a '.a' archive for static linking (except MSVC,
9385 # which needs '.lib').
9386 libext=a
9387
9388 with_gnu_ld=$lt_cv_prog_gnu_ld
9389
9390 old_CC=$CC
9391 old_CFLAGS=$CFLAGS
9392
9393 # Set sane defaults for various variables
9394 test -z "$CC" && CC=cc
9395 test -z "$LTCC" && LTCC=$CC
9396 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9397 test -z "$LD" && LD=ld
9398 test -z "$ac_objext" && ac_objext=o
9399
9400 func_cc_basename $compiler
9401 cc_basename=$func_cc_basename_result
9402
9403
9404 # Only perform the check for file, if the check method requires it
9405 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9406 case $deplibs_check_method in
9407 file_magic*)
9408 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9410 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9411 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 case $MAGIC_CMD in
9415 [\\/*] | ?:[\\/]*)
9416 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9417 ;;
9418 *)
9419 lt_save_MAGIC_CMD=$MAGIC_CMD
9420 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9422 for ac_dir in $ac_dummy; do
9423 IFS=$lt_save_ifs
9424 test -z "$ac_dir" && ac_dir=.
9425 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9426 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9427 if test -n "$file_magic_test_file"; then
9428 case $deplibs_check_method in
9429 "file_magic "*)
9430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9431 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9433 $EGREP "$file_magic_regex" > /dev/null; then
9434 :
9435 else
9436 cat <<_LT_EOF 1>&2
9437
9438 *** Warning: the command libtool uses to detect shared libraries,
9439 *** $file_magic_cmd, produces output that libtool cannot recognize.
9440 *** The result is that libtool may fail to recognize shared libraries
9441 *** as such. This will affect the creation of libtool libraries that
9442 *** depend on shared libraries, but programs linked with such libtool
9443 *** libraries will work regardless of this problem. Nevertheless, you
9444 *** may want to report the problem to your system manager and/or to
9445 *** [email protected]
9446
9447 _LT_EOF
9448 fi ;;
9449 esac
9450 fi
9451 break
9452 fi
9453 done
9454 IFS=$lt_save_ifs
9455 MAGIC_CMD=$lt_save_MAGIC_CMD
9456 ;;
9457 esac
9458 fi
9459
9460 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9461 if test -n "$MAGIC_CMD"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9463 $as_echo "$MAGIC_CMD" >&6; }
9464 else
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 $as_echo "no" >&6; }
9467 fi
9468
9469
9470
9471
9472
9473 if test -z "$lt_cv_path_MAGIC_CMD"; then
9474 if test -n "$ac_tool_prefix"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9476 $as_echo_n "checking for file... " >&6; }
9477 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 case $MAGIC_CMD in
9481 [\\/*] | ?:[\\/]*)
9482 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9483 ;;
9484 *)
9485 lt_save_MAGIC_CMD=$MAGIC_CMD
9486 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9488 for ac_dir in $ac_dummy; do
9489 IFS=$lt_save_ifs
9490 test -z "$ac_dir" && ac_dir=.
9491 if test -f "$ac_dir/file"; then
9492 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9493 if test -n "$file_magic_test_file"; then
9494 case $deplibs_check_method in
9495 "file_magic "*)
9496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9497 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9499 $EGREP "$file_magic_regex" > /dev/null; then
9500 :
9501 else
9502 cat <<_LT_EOF 1>&2
9503
9504 *** Warning: the command libtool uses to detect shared libraries,
9505 *** $file_magic_cmd, produces output that libtool cannot recognize.
9506 *** The result is that libtool may fail to recognize shared libraries
9507 *** as such. This will affect the creation of libtool libraries that
9508 *** depend on shared libraries, but programs linked with such libtool
9509 *** libraries will work regardless of this problem. Nevertheless, you
9510 *** may want to report the problem to your system manager and/or to
9511 *** [email protected]
9512
9513 _LT_EOF
9514 fi ;;
9515 esac
9516 fi
9517 break
9518 fi
9519 done
9520 IFS=$lt_save_ifs
9521 MAGIC_CMD=$lt_save_MAGIC_CMD
9522 ;;
9523 esac
9524 fi
9525
9526 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9527 if test -n "$MAGIC_CMD"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9529 $as_echo "$MAGIC_CMD" >&6; }
9530 else
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533 fi
9534
9535
9536 else
9537 MAGIC_CMD=:
9538 fi
9539 fi
9540
9541 fi
9542 ;;
9543 esac
9544
9545 # Use C for the default configuration in the libtool script
9546
9547 lt_save_CC=$CC
9548 ac_ext=c
9549 ac_cpp='$CPP $CPPFLAGS'
9550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553
9554
9555 # Source file extension for C test sources.
9556 ac_ext=c
9557
9558 # Object file extension for compiled C test sources.
9559 objext=o
9560 objext=$objext
9561
9562 # Code to be used in simple compile tests
9563 lt_simple_compile_test_code="int some_variable = 0;"
9564
9565 # Code to be used in simple link tests
9566 lt_simple_link_test_code='int main(){return(0);}'
9567
9568
9569
9570
9571
9572
9573
9574 # If no C compiler was specified, use CC.
9575 LTCC=${LTCC-"$CC"}
9576
9577 # If no C compiler flags were specified, use CFLAGS.
9578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9579
9580 # Allow CC to be a program name with arguments.
9581 compiler=$CC
9582
9583 # Save the default compiler, since it gets overwritten when the other
9584 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9585 compiler_DEFAULT=$CC
9586
9587 # save warnings/boilerplate of simple test code
9588 ac_outfile=conftest.$ac_objext
9589 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9590 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9591 _lt_compiler_boilerplate=`cat conftest.err`
9592 $RM conftest*
9593
9594 ac_outfile=conftest.$ac_objext
9595 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9596 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9597 _lt_linker_boilerplate=`cat conftest.err`
9598 $RM -r conftest*
9599
9600
9601 ## CAVEAT EMPTOR:
9602 ## There is no encapsulation within the following macros, do not change
9603 ## the running order or otherwise move them around unless you know exactly
9604 ## what you are doing...
9605 if test -n "$compiler"; then
9606
9607 lt_prog_compiler_no_builtin_flag=
9608
9609 if test yes = "$GCC"; then
9610 case $cc_basename in
9611 nvcc*)
9612 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9613 *)
9614 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9615 esac
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9618 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9619 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 lt_cv_prog_compiler_rtti_exceptions=no
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9625 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9626 # Insert the option either (1) after the last *FLAGS variable, or
9627 # (2) before a word containing "conftest.", or (3) at the end.
9628 # Note that $ac_compile itself does not contain backslashes and begins
9629 # with a dollar sign (not a hyphen), so the echo should work correctly.
9630 # The option is referenced via a variable to avoid confusing sed.
9631 lt_compile=`echo "$ac_compile" | $SED \
9632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9634 -e 's:$: $lt_compiler_flag:'`
9635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9636 (eval "$lt_compile" 2>conftest.err)
9637 ac_status=$?
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 if (exit $ac_status) && test -s "$ac_outfile"; then
9641 # The compiler can only warn and ignore the option if not recognized
9642 # So say no if there are warnings other than the usual output.
9643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9646 lt_cv_prog_compiler_rtti_exceptions=yes
9647 fi
9648 fi
9649 $RM conftest*
9650
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9653 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9654
9655 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9656 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9657 else
9658 :
9659 fi
9660
9661 fi
9662
9663
9664
9665
9666
9667
9668 lt_prog_compiler_wl=
9669 lt_prog_compiler_pic=
9670 lt_prog_compiler_static=
9671
9672
9673 if test yes = "$GCC"; then
9674 lt_prog_compiler_wl='-Wl,'
9675 lt_prog_compiler_static='-static'
9676
9677 case $host_os in
9678 aix*)
9679 # All AIX code is PIC.
9680 if test ia64 = "$host_cpu"; then
9681 # AIX 5 now supports IA64 processor
9682 lt_prog_compiler_static='-Bstatic'
9683 fi
9684 lt_prog_compiler_pic='-fPIC'
9685 ;;
9686
9687 amigaos*)
9688 case $host_cpu in
9689 powerpc)
9690 # see comment about AmigaOS4 .so support
9691 lt_prog_compiler_pic='-fPIC'
9692 ;;
9693 m68k)
9694 # FIXME: we need at least 68020 code to build shared libraries, but
9695 # adding the '-m68020' flag to GCC prevents building anything better,
9696 # like '-m68040'.
9697 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9698 ;;
9699 esac
9700 ;;
9701
9702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9703 # PIC is the default for these OSes.
9704 ;;
9705
9706 mingw* | cygwin* | pw32* | os2* | cegcc*)
9707 # This hack is so that the source file can tell whether it is being
9708 # built for inclusion in a dll (and should export symbols for example).
9709 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9710 # (--disable-auto-import) libraries
9711 lt_prog_compiler_pic='-DDLL_EXPORT'
9712 case $host_os in
9713 os2*)
9714 lt_prog_compiler_static='$wl-static'
9715 ;;
9716 esac
9717 ;;
9718
9719 darwin* | rhapsody*)
9720 # PIC is the default on this platform
9721 # Common symbols not allowed in MH_DYLIB files
9722 lt_prog_compiler_pic='-fno-common'
9723 ;;
9724
9725 haiku*)
9726 # PIC is the default for Haiku.
9727 # The "-static" flag exists, but is broken.
9728 lt_prog_compiler_static=
9729 ;;
9730
9731 hpux*)
9732 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9733 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9734 # sets the default TLS model and affects inlining.
9735 case $host_cpu in
9736 hppa*64*)
9737 # +Z the default
9738 ;;
9739 *)
9740 lt_prog_compiler_pic='-fPIC'
9741 ;;
9742 esac
9743 ;;
9744
9745 interix[3-9]*)
9746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9747 # Instead, we relocate shared libraries at runtime.
9748 ;;
9749
9750 msdosdjgpp*)
9751 # Just because we use GCC doesn't mean we suddenly get shared libraries
9752 # on systems that don't support them.
9753 lt_prog_compiler_can_build_shared=no
9754 enable_shared=no
9755 ;;
9756
9757 *nto* | *qnx*)
9758 # QNX uses GNU C++, but need to define -shared option too, otherwise
9759 # it will coredump.
9760 lt_prog_compiler_pic='-fPIC -shared'
9761 ;;
9762
9763 sysv4*MP*)
9764 if test -d /usr/nec; then
9765 lt_prog_compiler_pic=-Kconform_pic
9766 fi
9767 ;;
9768
9769 *)
9770 lt_prog_compiler_pic='-fPIC'
9771 ;;
9772 esac
9773
9774 case $cc_basename in
9775 nvcc*) # Cuda Compiler Driver 2.2
9776 lt_prog_compiler_wl='-Xlinker '
9777 if test -n "$lt_prog_compiler_pic"; then
9778 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9779 fi
9780 ;;
9781 esac
9782 else
9783 # PORTME Check for flag to pass linker flags through the system compiler.
9784 case $host_os in
9785 aix*)
9786 lt_prog_compiler_wl='-Wl,'
9787 if test ia64 = "$host_cpu"; then
9788 # AIX 5 now supports IA64 processor
9789 lt_prog_compiler_static='-Bstatic'
9790 else
9791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9792 fi
9793 ;;
9794
9795 darwin* | rhapsody*)
9796 # PIC is the default on this platform
9797 # Common symbols not allowed in MH_DYLIB files
9798 lt_prog_compiler_pic='-fno-common'
9799 case $cc_basename in
9800 nagfor*)
9801 # NAG Fortran compiler
9802 lt_prog_compiler_wl='-Wl,-Wl,,'
9803 lt_prog_compiler_pic='-PIC'
9804 lt_prog_compiler_static='-Bstatic'
9805 ;;
9806 esac
9807 ;;
9808
9809 mingw* | cygwin* | pw32* | os2* | cegcc*)
9810 # This hack is so that the source file can tell whether it is being
9811 # built for inclusion in a dll (and should export symbols for example).
9812 lt_prog_compiler_pic='-DDLL_EXPORT'
9813 case $host_os in
9814 os2*)
9815 lt_prog_compiler_static='$wl-static'
9816 ;;
9817 esac
9818 ;;
9819
9820 hpux9* | hpux10* | hpux11*)
9821 lt_prog_compiler_wl='-Wl,'
9822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9823 # not for PA HP-UX.
9824 case $host_cpu in
9825 hppa*64*|ia64*)
9826 # +Z the default
9827 ;;
9828 *)
9829 lt_prog_compiler_pic='+Z'
9830 ;;
9831 esac
9832 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9833 lt_prog_compiler_static='$wl-a ${wl}archive'
9834 ;;
9835
9836 irix5* | irix6* | nonstopux*)
9837 lt_prog_compiler_wl='-Wl,'
9838 # PIC (with -KPIC) is the default.
9839 lt_prog_compiler_static='-non_shared'
9840 ;;
9841
9842 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9843 case $cc_basename in
9844 # old Intel for x86_64, which still supported -KPIC.
9845 ecc*)
9846 lt_prog_compiler_wl='-Wl,'
9847 lt_prog_compiler_pic='-KPIC'
9848 lt_prog_compiler_static='-static'
9849 ;;
9850 # icc used to be incompatible with GCC.
9851 # ICC 10 doesn't accept -KPIC any more.
9852 icc* | ifort*)
9853 lt_prog_compiler_wl='-Wl,'
9854 lt_prog_compiler_pic='-fPIC'
9855 lt_prog_compiler_static='-static'
9856 ;;
9857 # Lahey Fortran 8.1.
9858 lf95*)
9859 lt_prog_compiler_wl='-Wl,'
9860 lt_prog_compiler_pic='--shared'
9861 lt_prog_compiler_static='--static'
9862 ;;
9863 nagfor*)
9864 # NAG Fortran compiler
9865 lt_prog_compiler_wl='-Wl,-Wl,,'
9866 lt_prog_compiler_pic='-PIC'
9867 lt_prog_compiler_static='-Bstatic'
9868 ;;
9869 tcc*)
9870 # Fabrice Bellard et al's Tiny C Compiler
9871 lt_prog_compiler_wl='-Wl,'
9872 lt_prog_compiler_pic='-fPIC'
9873 lt_prog_compiler_static='-static'
9874 ;;
9875 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9876 # Portland Group compilers (*not* the Pentium gcc compiler,
9877 # which looks to be a dead project)
9878 lt_prog_compiler_wl='-Wl,'
9879 lt_prog_compiler_pic='-fpic'
9880 lt_prog_compiler_static='-Bstatic'
9881 ;;
9882 ccc*)
9883 lt_prog_compiler_wl='-Wl,'
9884 # All Alpha code is PIC.
9885 lt_prog_compiler_static='-non_shared'
9886 ;;
9887 xl* | bgxl* | bgf* | mpixl*)
9888 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-qpic'
9891 lt_prog_compiler_static='-qstaticlink'
9892 ;;
9893 *)
9894 case `$CC -V 2>&1 | sed 5q` in
9895 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9897 lt_prog_compiler_pic='-KPIC'
9898 lt_prog_compiler_static='-Bstatic'
9899 lt_prog_compiler_wl=''
9900 ;;
9901 *Sun\ F* | *Sun*Fortran*)
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl='-Qoption ld '
9905 ;;
9906 *Sun\ C*)
9907 # Sun C 5.9
9908 lt_prog_compiler_pic='-KPIC'
9909 lt_prog_compiler_static='-Bstatic'
9910 lt_prog_compiler_wl='-Wl,'
9911 ;;
9912 *Intel*\ [CF]*Compiler*)
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-fPIC'
9915 lt_prog_compiler_static='-static'
9916 ;;
9917 *Portland\ Group*)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fpic'
9920 lt_prog_compiler_static='-Bstatic'
9921 ;;
9922 esac
9923 ;;
9924 esac
9925 ;;
9926
9927 newsos6)
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-Bstatic'
9930 ;;
9931
9932 *nto* | *qnx*)
9933 # QNX uses GNU C++, but need to define -shared option too, otherwise
9934 # it will coredump.
9935 lt_prog_compiler_pic='-fPIC -shared'
9936 ;;
9937
9938 osf3* | osf4* | osf5*)
9939 lt_prog_compiler_wl='-Wl,'
9940 # All OSF/1 code is PIC.
9941 lt_prog_compiler_static='-non_shared'
9942 ;;
9943
9944 rdos*)
9945 lt_prog_compiler_static='-non_shared'
9946 ;;
9947
9948 solaris*)
9949 lt_prog_compiler_pic='-KPIC'
9950 lt_prog_compiler_static='-Bstatic'
9951 case $cc_basename in
9952 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9953 lt_prog_compiler_wl='-Qoption ld ';;
9954 *)
9955 lt_prog_compiler_wl='-Wl,';;
9956 esac
9957 ;;
9958
9959 sunos4*)
9960 lt_prog_compiler_wl='-Qoption ld '
9961 lt_prog_compiler_pic='-PIC'
9962 lt_prog_compiler_static='-Bstatic'
9963 ;;
9964
9965 sysv4 | sysv4.2uw2* | sysv4.3*)
9966 lt_prog_compiler_wl='-Wl,'
9967 lt_prog_compiler_pic='-KPIC'
9968 lt_prog_compiler_static='-Bstatic'
9969 ;;
9970
9971 sysv4*MP*)
9972 if test -d /usr/nec; then
9973 lt_prog_compiler_pic='-Kconform_pic'
9974 lt_prog_compiler_static='-Bstatic'
9975 fi
9976 ;;
9977
9978 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9979 lt_prog_compiler_wl='-Wl,'
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9982 ;;
9983
9984 unicos*)
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_can_build_shared=no
9987 ;;
9988
9989 uts4*)
9990 lt_prog_compiler_pic='-pic'
9991 lt_prog_compiler_static='-Bstatic'
9992 ;;
9993
9994 *)
9995 lt_prog_compiler_can_build_shared=no
9996 ;;
9997 esac
9998 fi
9999
10000 case $host_os in
10001 # For platforms that do not support PIC, -DPIC is meaningless:
10002 *djgpp*)
10003 lt_prog_compiler_pic=
10004 ;;
10005 *)
10006 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10007 ;;
10008 esac
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10012 if ${lt_cv_prog_compiler_pic+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10018 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10019 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10020
10021 #
10022 # Check to make sure the PIC flag actually works.
10023 #
10024 if test -n "$lt_prog_compiler_pic"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10027 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 lt_cv_prog_compiler_pic_works=no
10031 ac_outfile=conftest.$ac_objext
10032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 # The option is referenced via a variable to avoid confusing sed.
10039 lt_compile=`echo "$ac_compile" | $SED \
10040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10042 -e 's:$: $lt_compiler_flag:'`
10043 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10044 (eval "$lt_compile" 2>conftest.err)
10045 ac_status=$?
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 if (exit $ac_status) && test -s "$ac_outfile"; then
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings other than the usual output.
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_pic_works=yes
10055 fi
10056 fi
10057 $RM conftest*
10058
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10061 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10062
10063 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10064 case $lt_prog_compiler_pic in
10065 "" | " "*) ;;
10066 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10067 esac
10068 else
10069 lt_prog_compiler_pic=
10070 lt_prog_compiler_can_build_shared=no
10071 fi
10072
10073 fi
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 #
10086 # Check to make sure the static flag actually works.
10087 #
10088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10090 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10091 if ${lt_cv_prog_compiler_static_works+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 lt_cv_prog_compiler_static_works=no
10095 save_LDFLAGS=$LDFLAGS
10096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099 # The linker can only warn and ignore the option if not recognized
10100 # So say no if there are warnings
10101 if test -s conftest.err; then
10102 # Append any errors to the config.log.
10103 cat conftest.err 1>&5
10104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106 if diff conftest.exp conftest.er2 >/dev/null; then
10107 lt_cv_prog_compiler_static_works=yes
10108 fi
10109 else
10110 lt_cv_prog_compiler_static_works=yes
10111 fi
10112 fi
10113 $RM -r conftest*
10114 LDFLAGS=$save_LDFLAGS
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10119
10120 if test yes = "$lt_cv_prog_compiler_static_works"; then
10121 :
10122 else
10123 lt_prog_compiler_static=
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10134 if ${lt_cv_prog_compiler_c_o+:} false; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 lt_cv_prog_compiler_c_o=no
10138 $RM -r conftest 2>/dev/null
10139 mkdir conftest
10140 cd conftest
10141 mkdir out
10142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143
10144 lt_compiler_flag="-o out/conftest2.$ac_objext"
10145 # Insert the option either (1) after the last *FLAGS variable, or
10146 # (2) before a word containing "conftest.", or (3) at the end.
10147 # Note that $ac_compile itself does not contain backslashes and begins
10148 # with a dollar sign (not a hyphen), so the echo should work correctly.
10149 lt_compile=`echo "$ac_compile" | $SED \
10150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152 -e 's:$: $lt_compiler_flag:'`
10153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154 (eval "$lt_compile" 2>out/conftest.err)
10155 ac_status=$?
10156 cat out/conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10159 then
10160 # The compiler can only warn and ignore the option if not recognized
10161 # So say no if there are warnings
10162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10165 lt_cv_prog_compiler_c_o=yes
10166 fi
10167 fi
10168 chmod u+w . 2>&5
10169 $RM conftest*
10170 # SGI C++ compiler will create directory out/ii_files/ for
10171 # template instantiation
10172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10173 $RM out/* && rmdir out
10174 cd ..
10175 $RM -r conftest
10176 $RM conftest*
10177
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10181
10182
10183
10184
10185
10186
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 lt_cv_prog_compiler_c_o=no
10193 $RM -r conftest 2>/dev/null
10194 mkdir conftest
10195 cd conftest
10196 mkdir out
10197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199 lt_compiler_flag="-o out/conftest2.$ac_objext"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 lt_compile=`echo "$ac_compile" | $SED \
10205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207 -e 's:$: $lt_compiler_flag:'`
10208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209 (eval "$lt_compile" 2>out/conftest.err)
10210 ac_status=$?
10211 cat out/conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214 then
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_c_o=yes
10221 fi
10222 fi
10223 chmod u+w . 2>&5
10224 $RM conftest*
10225 # SGI C++ compiler will create directory out/ii_files/ for
10226 # template instantiation
10227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228 $RM out/* && rmdir out
10229 cd ..
10230 $RM -r conftest
10231 $RM conftest*
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10236
10237
10238
10239
10240 hard_links=nottested
10241 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10242 # do not overwrite the value of need_locks provided by the user
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10244 $as_echo_n "checking if we can lock with hard links... " >&6; }
10245 hard_links=yes
10246 $RM conftest*
10247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10248 touch conftest.a
10249 ln conftest.a conftest.b 2>&5 || hard_links=no
10250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10252 $as_echo "$hard_links" >&6; }
10253 if test no = "$hard_links"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10255 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10256 need_locks=warn
10257 fi
10258 else
10259 need_locks=no
10260 fi
10261
10262
10263
10264
10265
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10269
10270 runpath_var=
10271 allow_undefined_flag=
10272 always_export_symbols=no
10273 archive_cmds=
10274 archive_expsym_cmds=
10275 compiler_needs_object=no
10276 enable_shared_with_static_runtimes=no
10277 export_dynamic_flag_spec=
10278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279 hardcode_automatic=no
10280 hardcode_direct=no
10281 hardcode_direct_absolute=no
10282 hardcode_libdir_flag_spec=
10283 hardcode_libdir_separator=
10284 hardcode_minus_L=no
10285 hardcode_shlibpath_var=unsupported
10286 inherit_rpath=no
10287 link_all_deplibs=unknown
10288 module_cmds=
10289 module_expsym_cmds=
10290 old_archive_from_new_cmds=
10291 old_archive_from_expsyms_cmds=
10292 thread_safe_flag_spec=
10293 whole_archive_flag_spec=
10294 # include_expsyms should be a list of space-separated symbols to be *always*
10295 # included in the symbol list
10296 include_expsyms=
10297 # exclude_expsyms can be an extended regexp of symbols to exclude
10298 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10299 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10300 # as well as any symbol that contains 'd'.
10301 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10302 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10303 # platforms (ab)use it in PIC code, but their linkers get confused if
10304 # the symbol is explicitly referenced. Since portable code cannot
10305 # rely on this symbol name, it's probably fine to never include it in
10306 # preloaded symbol tables.
10307 # Exclude shared library initialization/finalization symbols.
10308 extract_expsyms_cmds=
10309
10310 case $host_os in
10311 cygwin* | mingw* | pw32* | cegcc*)
10312 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10313 # When not using gcc, we currently assume that we are using
10314 # Microsoft Visual C++.
10315 if test yes != "$GCC"; then
10316 with_gnu_ld=no
10317 fi
10318 ;;
10319 interix*)
10320 # we just hope/assume this is gcc and not c89 (= MSVC++)
10321 with_gnu_ld=yes
10322 ;;
10323 openbsd* | bitrig*)
10324 with_gnu_ld=no
10325 ;;
10326 linux* | k*bsd*-gnu | gnu*)
10327 link_all_deplibs=no
10328 ;;
10329 esac
10330
10331 ld_shlibs=yes
10332
10333 # On some targets, GNU ld is compatible enough with the native linker
10334 # that we're better off using the native interface for both.
10335 lt_use_gnu_ld_interface=no
10336 if test yes = "$with_gnu_ld"; then
10337 case $host_os in
10338 aix*)
10339 # The AIX port of GNU ld has always aspired to compatibility
10340 # with the native linker. However, as the warning in the GNU ld
10341 # block says, versions before 2.19.5* couldn't really create working
10342 # shared libraries, regardless of the interface used.
10343 case `$LD -v 2>&1` in
10344 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10345 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10346 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10347 *)
10348 lt_use_gnu_ld_interface=yes
10349 ;;
10350 esac
10351 ;;
10352 *)
10353 lt_use_gnu_ld_interface=yes
10354 ;;
10355 esac
10356 fi
10357
10358 if test yes = "$lt_use_gnu_ld_interface"; then
10359 # If archive_cmds runs LD, not CC, wlarc should be empty
10360 wlarc='$wl'
10361
10362 # Set some defaults for GNU ld with shared library support. These
10363 # are reset later if shared libraries are not supported. Putting them
10364 # here allows them to be overridden if necessary.
10365 runpath_var=LD_RUN_PATH
10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10367 export_dynamic_flag_spec='$wl--export-dynamic'
10368 # ancient GNU ld didn't support --whole-archive et. al.
10369 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10370 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10371 else
10372 whole_archive_flag_spec=
10373 fi
10374 supports_anon_versioning=no
10375 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10376 *GNU\ gold*) supports_anon_versioning=yes ;;
10377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10380 *\ 2.11.*) ;; # other 2.11 versions
10381 *) supports_anon_versioning=yes ;;
10382 esac
10383
10384 # See if GNU ld supports shared libraries.
10385 case $host_os in
10386 aix[3-9]*)
10387 # On AIX/PPC, the GNU linker is very broken
10388 if test ia64 != "$host_cpu"; then
10389 ld_shlibs=no
10390 cat <<_LT_EOF 1>&2
10391
10392 *** Warning: the GNU linker, at least up to release 2.19, is reported
10393 *** to be unable to reliably create shared libraries on AIX.
10394 *** Therefore, libtool is disabling shared libraries support. If you
10395 *** really care for shared libraries, you may want to install binutils
10396 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10397 *** You will then need to restart the configuration process.
10398
10399 _LT_EOF
10400 fi
10401 ;;
10402
10403 amigaos*)
10404 case $host_cpu in
10405 powerpc)
10406 # see comment about AmigaOS4 .so support
10407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10408 archive_expsym_cmds=''
10409 ;;
10410 m68k)
10411 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)'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_minus_L=yes
10414 ;;
10415 esac
10416 ;;
10417
10418 beos*)
10419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10420 allow_undefined_flag=unsupported
10421 # Joseph Beckenbach <[email protected]> says some releases of gcc
10422 # support --undefined. This deserves some investigation. FIXME
10423 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10424 else
10425 ld_shlibs=no
10426 fi
10427 ;;
10428
10429 cygwin* | mingw* | pw32* | cegcc*)
10430 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10431 # as there is no search path for DLLs.
10432 hardcode_libdir_flag_spec='-L$libdir'
10433 export_dynamic_flag_spec='$wl--export-all-symbols'
10434 allow_undefined_flag=unsupported
10435 always_export_symbols=no
10436 enable_shared_with_static_runtimes=yes
10437 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'
10438 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10439
10440 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10442 # If the export-symbols file already is a .def file, use it as
10443 # is; otherwise, prepend EXPORTS...
10444 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10445 cp $export_symbols $output_objdir/$soname.def;
10446 else
10447 echo EXPORTS > $output_objdir/$soname.def;
10448 cat $export_symbols >> $output_objdir/$soname.def;
10449 fi~
10450 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10451 else
10452 ld_shlibs=no
10453 fi
10454 ;;
10455
10456 haiku*)
10457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10458 link_all_deplibs=yes
10459 ;;
10460
10461 os2*)
10462 hardcode_libdir_flag_spec='-L$libdir'
10463 hardcode_minus_L=yes
10464 allow_undefined_flag=unsupported
10465 shrext_cmds=.dll
10466 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469 $ECHO EXPORTS >> $output_objdir/$libname.def~
10470 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10471 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10472 emximp -o $lib $output_objdir/$libname.def'
10473 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476 $ECHO EXPORTS >> $output_objdir/$libname.def~
10477 prefix_cmds="$SED"~
10478 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10479 prefix_cmds="$prefix_cmds -e 1d";
10480 fi~
10481 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10482 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10483 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10484 emximp -o $lib $output_objdir/$libname.def'
10485 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10486 enable_shared_with_static_runtimes=yes
10487 ;;
10488
10489 interix[3-9]*)
10490 hardcode_direct=no
10491 hardcode_shlibpath_var=no
10492 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10493 export_dynamic_flag_spec='$wl-E'
10494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10495 # Instead, shared libraries are loaded at an image base (0x10000000 by
10496 # default) and relocated if they conflict, which is a slow very memory
10497 # consuming and fragmenting process. To avoid this, we pick a random,
10498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10501 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'
10502 ;;
10503
10504 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10505 tmp_diet=no
10506 if test linux-dietlibc = "$host_os"; then
10507 case $cc_basename in
10508 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10509 esac
10510 fi
10511 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10512 && test no = "$tmp_diet"
10513 then
10514 tmp_addflag=' $pic_flag'
10515 tmp_sharedflag='-shared'
10516 case $cc_basename,$host_cpu in
10517 pgcc*) # Portland Group C compiler
10518 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'
10519 tmp_addflag=' $pic_flag'
10520 ;;
10521 pgf77* | pgf90* | pgf95* | pgfortran*)
10522 # Portland Group f77 and f90 compilers
10523 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'
10524 tmp_addflag=' $pic_flag -Mnomain' ;;
10525 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10526 tmp_addflag=' -i_dynamic' ;;
10527 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10528 tmp_addflag=' -i_dynamic -nofor_main' ;;
10529 ifc* | ifort*) # Intel Fortran compiler
10530 tmp_addflag=' -nofor_main' ;;
10531 lf95*) # Lahey Fortran 8.1
10532 whole_archive_flag_spec=
10533 tmp_sharedflag='--shared' ;;
10534 nagfor*) # NAGFOR 5.3
10535 tmp_sharedflag='-Wl,-shared' ;;
10536 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10537 tmp_sharedflag='-qmkshrobj'
10538 tmp_addflag= ;;
10539 nvcc*) # Cuda Compiler Driver 2.2
10540 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'
10541 compiler_needs_object=yes
10542 ;;
10543 esac
10544 case `$CC -V 2>&1 | sed 5q` in
10545 *Sun\ C*) # Sun C 5.9
10546 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'
10547 compiler_needs_object=yes
10548 tmp_sharedflag='-G' ;;
10549 *Sun\ F*) # Sun Fortran 8.3
10550 tmp_sharedflag='-G' ;;
10551 esac
10552 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553
10554 if test yes = "$supports_anon_versioning"; then
10555 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10557 echo "local: *; };" >> $output_objdir/$libname.ver~
10558 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10559 fi
10560
10561 case $cc_basename in
10562 tcc*)
10563 export_dynamic_flag_spec='-rdynamic'
10564 ;;
10565 xlf* | bgf* | bgxlf* | mpixlf*)
10566 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10567 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10569 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10570 if test yes = "$supports_anon_versioning"; then
10571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10573 echo "local: *; };" >> $output_objdir/$libname.ver~
10574 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10575 fi
10576 ;;
10577 esac
10578 else
10579 ld_shlibs=no
10580 fi
10581 ;;
10582
10583 netbsd* | netbsdelf*-gnu)
10584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10585 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10586 wlarc=
10587 else
10588 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10589 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10590 fi
10591 ;;
10592
10593 solaris*)
10594 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10595 ld_shlibs=no
10596 cat <<_LT_EOF 1>&2
10597
10598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10599 *** create shared libraries on Solaris systems. Therefore, libtool
10600 *** is disabling shared libraries support. We urge you to upgrade GNU
10601 *** binutils to release 2.9.1 or newer. Another option is to modify
10602 *** your PATH or compiler configuration so that the native linker is
10603 *** used, and then restart.
10604
10605 _LT_EOF
10606 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10609 else
10610 ld_shlibs=no
10611 fi
10612 ;;
10613
10614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10615 case `$LD -v 2>&1` in
10616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10617 ld_shlibs=no
10618 cat <<_LT_EOF 1>&2
10619
10620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10621 *** reliably create shared libraries on SCO systems. Therefore, libtool
10622 *** is disabling shared libraries support. We urge you to upgrade GNU
10623 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10624 *** your PATH or compiler configuration so that the native linker is
10625 *** used, and then restart.
10626
10627 _LT_EOF
10628 ;;
10629 *)
10630 # For security reasons, it is highly recommended that you always
10631 # use absolute paths for naming shared libraries, and exclude the
10632 # DT_RUNPATH tag from executables and libraries. But doing so
10633 # requires that you compile everything twice, which is a pain.
10634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10638 else
10639 ld_shlibs=no
10640 fi
10641 ;;
10642 esac
10643 ;;
10644
10645 sunos4*)
10646 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10647 wlarc=
10648 hardcode_direct=yes
10649 hardcode_shlibpath_var=no
10650 ;;
10651
10652 *)
10653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10654 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10655 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10656 else
10657 ld_shlibs=no
10658 fi
10659 ;;
10660 esac
10661
10662 if test no = "$ld_shlibs"; then
10663 runpath_var=
10664 hardcode_libdir_flag_spec=
10665 export_dynamic_flag_spec=
10666 whole_archive_flag_spec=
10667 fi
10668 else
10669 # PORTME fill in a description of your system's linker (not GNU ld)
10670 case $host_os in
10671 aix3*)
10672 allow_undefined_flag=unsupported
10673 always_export_symbols=yes
10674 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'
10675 # Note: this linker hardcodes the directories in LIBPATH if there
10676 # are no directories specified by -L.
10677 hardcode_minus_L=yes
10678 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10679 # Neither direct hardcoding nor static linking is supported with a
10680 # broken collect2.
10681 hardcode_direct=unsupported
10682 fi
10683 ;;
10684
10685 aix[4-9]*)
10686 if test ia64 = "$host_cpu"; then
10687 # On IA64, the linker does run time linking by default, so we don't
10688 # have to do anything special.
10689 aix_use_runtimelinking=no
10690 exp_sym_flag='-Bexport'
10691 no_entry_flag=
10692 else
10693 # If we're using GNU nm, then we don't want the "-C" option.
10694 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10695 # Without the "-l" option, or with the "-B" option, AIX nm treats
10696 # weak defined symbols like other global defined symbols, whereas
10697 # GNU nm marks them as "W".
10698 # While the 'weak' keyword is ignored in the Export File, we need
10699 # it in the Import File for the 'aix-soname' feature, so we have
10700 # to replace the "-B" option with "-P" for AIX nm.
10701 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10702 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'
10703 else
10704 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10705 fi
10706 aix_use_runtimelinking=no
10707
10708 # Test if we are trying to use run time linking or normal
10709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10710 # have runtime linking enabled, and use it for executables.
10711 # For shared libraries, we enable/disable runtime linking
10712 # depending on the kind of the shared library created -
10713 # when "with_aix_soname,aix_use_runtimelinking" is:
10714 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10715 # "aix,yes" lib.so shared, rtl:yes, for executables
10716 # lib.a static archive
10717 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10718 # lib.a(lib.so.V) shared, rtl:no, for executables
10719 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10720 # lib.a(lib.so.V) shared, rtl:no
10721 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10722 # lib.a static archive
10723 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10724 for ld_flag in $LDFLAGS; do
10725 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10726 aix_use_runtimelinking=yes
10727 break
10728 fi
10729 done
10730 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10731 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10732 # so we don't have lib.a shared libs to link our executables.
10733 # We have to force runtime linking in this case.
10734 aix_use_runtimelinking=yes
10735 LDFLAGS="$LDFLAGS -Wl,-brtl"
10736 fi
10737 ;;
10738 esac
10739
10740 exp_sym_flag='-bexport'
10741 no_entry_flag='-bnoentry'
10742 fi
10743
10744 # When large executables or shared objects are built, AIX ld can
10745 # have problems creating the table of contents. If linking a library
10746 # or program results in "error TOC overflow" add -mminimal-toc to
10747 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10748 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10749
10750 archive_cmds=''
10751 hardcode_direct=yes
10752 hardcode_direct_absolute=yes
10753 hardcode_libdir_separator=':'
10754 link_all_deplibs=yes
10755 file_list_spec='$wl-f,'
10756 case $with_aix_soname,$aix_use_runtimelinking in
10757 aix,*) ;; # traditional, no import file
10758 svr4,* | *,yes) # use import file
10759 # The Import File defines what to hardcode.
10760 hardcode_direct=no
10761 hardcode_direct_absolute=no
10762 ;;
10763 esac
10764
10765 if test yes = "$GCC"; then
10766 case $host_os in aix4.[012]|aix4.[012].*)
10767 # We only want to do this on AIX 4.2 and lower, the check
10768 # below for broken collect2 doesn't work under 4.3+
10769 collect2name=`$CC -print-prog-name=collect2`
10770 if test -f "$collect2name" &&
10771 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10772 then
10773 # We have reworked collect2
10774 :
10775 else
10776 # We have old collect2
10777 hardcode_direct=unsupported
10778 # It fails to find uninstalled libraries when the uninstalled
10779 # path is not listed in the libpath. Setting hardcode_minus_L
10780 # to unsupported forces relinking
10781 hardcode_minus_L=yes
10782 hardcode_libdir_flag_spec='-L$libdir'
10783 hardcode_libdir_separator=
10784 fi
10785 ;;
10786 esac
10787 shared_flag='-shared'
10788 if test yes = "$aix_use_runtimelinking"; then
10789 shared_flag="$shared_flag "'$wl-G'
10790 fi
10791 # Need to ensure runtime linking is disabled for the traditional
10792 # shared library, or the linker may eventually find shared libraries
10793 # /with/ Import File - we do not want to mix them.
10794 shared_flag_aix='-shared'
10795 shared_flag_svr4='-shared $wl-G'
10796 else
10797 # not using gcc
10798 if test ia64 = "$host_cpu"; then
10799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10800 # chokes on -Wl,-G. The following line is correct:
10801 shared_flag='-G'
10802 else
10803 if test yes = "$aix_use_runtimelinking"; then
10804 shared_flag='$wl-G'
10805 else
10806 shared_flag='$wl-bM:SRE'
10807 fi
10808 shared_flag_aix='$wl-bM:SRE'
10809 shared_flag_svr4='$wl-G'
10810 fi
10811 fi
10812
10813 export_dynamic_flag_spec='$wl-bexpall'
10814 # It seems that -bexpall does not export symbols beginning with
10815 # underscore (_), so it is better to generate a list of symbols to export.
10816 always_export_symbols=yes
10817 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10818 # Warning - without using the other runtime loading flags (-brtl),
10819 # -berok will link without error, but may produce a broken library.
10820 allow_undefined_flag='-berok'
10821 # Determine the default libpath from the value encoded in an
10822 # empty executable.
10823 if test set = "${lt_cv_aix_libpath+set}"; then
10824 aix_libpath=$lt_cv_aix_libpath
10825 else
10826 if ${lt_cv_aix_libpath_+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831
10832 int
10833 main ()
10834 {
10835
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841
10842 lt_aix_libpath_sed='
10843 /Import File Strings/,/^$/ {
10844 /^0/ {
10845 s/^0 *\([^ ]*\) *$/\1/
10846 p
10847 }
10848 }'
10849 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10850 # Check for a 64-bit object if we didn't find anything.
10851 if test -z "$lt_cv_aix_libpath_"; then
10852 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10853 fi
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 if test -z "$lt_cv_aix_libpath_"; then
10858 lt_cv_aix_libpath_=/usr/lib:/lib
10859 fi
10860
10861 fi
10862
10863 aix_libpath=$lt_cv_aix_libpath_
10864 fi
10865
10866 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10867 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
10868 else
10869 if test ia64 = "$host_cpu"; then
10870 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10871 allow_undefined_flag="-z nodefs"
10872 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"
10873 else
10874 # Determine the default libpath from the value encoded in an
10875 # empty executable.
10876 if test set = "${lt_cv_aix_libpath+set}"; then
10877 aix_libpath=$lt_cv_aix_libpath
10878 else
10879 if ${lt_cv_aix_libpath_+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884
10885 int
10886 main ()
10887 {
10888
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894
10895 lt_aix_libpath_sed='
10896 /Import File Strings/,/^$/ {
10897 /^0/ {
10898 s/^0 *\([^ ]*\) *$/\1/
10899 p
10900 }
10901 }'
10902 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10903 # Check for a 64-bit object if we didn't find anything.
10904 if test -z "$lt_cv_aix_libpath_"; then
10905 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10906 fi
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 if test -z "$lt_cv_aix_libpath_"; then
10911 lt_cv_aix_libpath_=/usr/lib:/lib
10912 fi
10913
10914 fi
10915
10916 aix_libpath=$lt_cv_aix_libpath_
10917 fi
10918
10919 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10920 # Warning - without using the other run time loading flags,
10921 # -berok will link without error, but may produce a broken library.
10922 no_undefined_flag=' $wl-bernotok'
10923 allow_undefined_flag=' $wl-berok'
10924 if test yes = "$with_gnu_ld"; then
10925 # We only use this code for GNU lds that support --whole-archive.
10926 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10927 else
10928 # Exported symbols can be pulled into shared objects from archives
10929 whole_archive_flag_spec='$convenience'
10930 fi
10931 archive_cmds_need_lc=yes
10932 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10933 # -brtl affects multiple linker settings, -berok does not and is overridden later
10934 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10935 if test svr4 != "$with_aix_soname"; then
10936 # This is similar to how AIX traditionally builds its shared libraries.
10937 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'
10938 fi
10939 if test aix != "$with_aix_soname"; then
10940 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'
10941 else
10942 # used by -dlpreopen to get the symbols
10943 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10944 fi
10945 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10946 fi
10947 fi
10948 ;;
10949
10950 amigaos*)
10951 case $host_cpu in
10952 powerpc)
10953 # see comment about AmigaOS4 .so support
10954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10955 archive_expsym_cmds=''
10956 ;;
10957 m68k)
10958 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)'
10959 hardcode_libdir_flag_spec='-L$libdir'
10960 hardcode_minus_L=yes
10961 ;;
10962 esac
10963 ;;
10964
10965 bsdi[45]*)
10966 export_dynamic_flag_spec=-rdynamic
10967 ;;
10968
10969 cygwin* | mingw* | pw32* | cegcc*)
10970 # When not using gcc, we currently assume that we are using
10971 # Microsoft Visual C++.
10972 # hardcode_libdir_flag_spec is actually meaningless, as there is
10973 # no search path for DLLs.
10974 case $cc_basename in
10975 cl*)
10976 # Native MSVC
10977 hardcode_libdir_flag_spec=' '
10978 allow_undefined_flag=unsupported
10979 always_export_symbols=yes
10980 file_list_spec='@'
10981 # Tell ltmain to make .lib files, not .a files.
10982 libext=lib
10983 # Tell ltmain to make .dll files, not .so files.
10984 shrext_cmds=.dll
10985 # FIXME: Setting linknames here is a bad hack.
10986 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10987 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10988 cp "$export_symbols" "$output_objdir/$soname.def";
10989 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10990 else
10991 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10992 fi~
10993 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10994 linknames='
10995 # The linker will not automatically build a static lib if we build a DLL.
10996 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10997 enable_shared_with_static_runtimes=yes
10998 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10999 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11000 # Don't use ranlib
11001 old_postinstall_cmds='chmod 644 $oldlib'
11002 postlink_cmds='lt_outputfile="@OUTPUT@"~
11003 lt_tool_outputfile="@TOOL_OUTPUT@"~
11004 case $lt_outputfile in
11005 *.exe|*.EXE) ;;
11006 *)
11007 lt_outputfile=$lt_outputfile.exe
11008 lt_tool_outputfile=$lt_tool_outputfile.exe
11009 ;;
11010 esac~
11011 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11012 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11013 $RM "$lt_outputfile.manifest";
11014 fi'
11015 ;;
11016 *)
11017 # Assume MSVC wrapper
11018 hardcode_libdir_flag_spec=' '
11019 allow_undefined_flag=unsupported
11020 # Tell ltmain to make .lib files, not .a files.
11021 libext=lib
11022 # Tell ltmain to make .dll files, not .so files.
11023 shrext_cmds=.dll
11024 # FIXME: Setting linknames here is a bad hack.
11025 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11026 # The linker will automatically build a .lib file if we build a DLL.
11027 old_archive_from_new_cmds='true'
11028 # FIXME: Should let the user specify the lib program.
11029 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11030 enable_shared_with_static_runtimes=yes
11031 ;;
11032 esac
11033 ;;
11034
11035 darwin* | rhapsody*)
11036
11037
11038 archive_cmds_need_lc=no
11039 hardcode_direct=no
11040 hardcode_automatic=yes
11041 hardcode_shlibpath_var=unsupported
11042 if test yes = "$lt_cv_ld_force_load"; then
11043 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\"`'
11044
11045 else
11046 whole_archive_flag_spec=''
11047 fi
11048 link_all_deplibs=yes
11049 allow_undefined_flag=$_lt_dar_allow_undefined
11050 case $cc_basename in
11051 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11052 *) _lt_dar_can_shared=$GCC ;;
11053 esac
11054 if test yes = "$_lt_dar_can_shared"; then
11055 output_verbose_link_cmd=func_echo_all
11056 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11057 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11058 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"
11059 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"
11060
11061 else
11062 ld_shlibs=no
11063 fi
11064
11065 ;;
11066
11067 dgux*)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_libdir_flag_spec='-L$libdir'
11070 hardcode_shlibpath_var=no
11071 ;;
11072
11073 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11074 # support. Future versions do this automatically, but an explicit c++rt0.o
11075 # does not break anything, and helps significantly (at the cost of a little
11076 # extra space).
11077 freebsd2.2*)
11078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11079 hardcode_libdir_flag_spec='-R$libdir'
11080 hardcode_direct=yes
11081 hardcode_shlibpath_var=no
11082 ;;
11083
11084 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11085 freebsd2.*)
11086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11087 hardcode_direct=yes
11088 hardcode_minus_L=yes
11089 hardcode_shlibpath_var=no
11090 ;;
11091
11092 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11093 freebsd* | dragonfly*)
11094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11095 hardcode_libdir_flag_spec='-R$libdir'
11096 hardcode_direct=yes
11097 hardcode_shlibpath_var=no
11098 ;;
11099
11100 hpux9*)
11101 if test yes = "$GCC"; then
11102 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'
11103 else
11104 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'
11105 fi
11106 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11107 hardcode_libdir_separator=:
11108 hardcode_direct=yes
11109
11110 # hardcode_minus_L: Not really in the search PATH,
11111 # but as the default location of the library.
11112 hardcode_minus_L=yes
11113 export_dynamic_flag_spec='$wl-E'
11114 ;;
11115
11116 hpux10*)
11117 if test yes,no = "$GCC,$with_gnu_ld"; then
11118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11119 else
11120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11121 fi
11122 if test no = "$with_gnu_ld"; then
11123 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11124 hardcode_libdir_separator=:
11125 hardcode_direct=yes
11126 hardcode_direct_absolute=yes
11127 export_dynamic_flag_spec='$wl-E'
11128 # hardcode_minus_L: Not really in the search PATH,
11129 # but as the default location of the library.
11130 hardcode_minus_L=yes
11131 fi
11132 ;;
11133
11134 hpux11*)
11135 if test yes,no = "$GCC,$with_gnu_ld"; then
11136 case $host_cpu in
11137 hppa*64*)
11138 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11139 ;;
11140 ia64*)
11141 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11142 ;;
11143 *)
11144 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11145 ;;
11146 esac
11147 else
11148 case $host_cpu in
11149 hppa*64*)
11150 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11151 ;;
11152 ia64*)
11153 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11154 ;;
11155 *)
11156
11157 # Older versions of the 11.00 compiler do not understand -b yet
11158 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11160 $as_echo_n "checking if $CC understands -b... " >&6; }
11161 if ${lt_cv_prog_compiler__b+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 lt_cv_prog_compiler__b=no
11165 save_LDFLAGS=$LDFLAGS
11166 LDFLAGS="$LDFLAGS -b"
11167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11169 # The linker can only warn and ignore the option if not recognized
11170 # So say no if there are warnings
11171 if test -s conftest.err; then
11172 # Append any errors to the config.log.
11173 cat conftest.err 1>&5
11174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11176 if diff conftest.exp conftest.er2 >/dev/null; then
11177 lt_cv_prog_compiler__b=yes
11178 fi
11179 else
11180 lt_cv_prog_compiler__b=yes
11181 fi
11182 fi
11183 $RM -r conftest*
11184 LDFLAGS=$save_LDFLAGS
11185
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11188 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11189
11190 if test yes = "$lt_cv_prog_compiler__b"; then
11191 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11192 else
11193 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11194 fi
11195
11196 ;;
11197 esac
11198 fi
11199 if test no = "$with_gnu_ld"; then
11200 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11201 hardcode_libdir_separator=:
11202
11203 case $host_cpu in
11204 hppa*64*|ia64*)
11205 hardcode_direct=no
11206 hardcode_shlibpath_var=no
11207 ;;
11208 *)
11209 hardcode_direct=yes
11210 hardcode_direct_absolute=yes
11211 export_dynamic_flag_spec='$wl-E'
11212
11213 # hardcode_minus_L: Not really in the search PATH,
11214 # but as the default location of the library.
11215 hardcode_minus_L=yes
11216 ;;
11217 esac
11218 fi
11219 ;;
11220
11221 irix5* | irix6* | nonstopux*)
11222 if test yes = "$GCC"; then
11223 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'
11224 # Try to use the -exported_symbol ld option, if it does not
11225 # work, assume that -exports_file does not work either and
11226 # implicitly export all symbols.
11227 # This should be the same for all languages, so no per-tag cache variable.
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11229 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11230 if ${lt_cv_irix_exported_symbol+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 save_LDFLAGS=$LDFLAGS
11234 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 int foo (void) { return 0; }
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 lt_cv_irix_exported_symbol=yes
11241 else
11242 lt_cv_irix_exported_symbol=no
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LDFLAGS=$save_LDFLAGS
11247 fi
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11249 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11250 if test yes = "$lt_cv_irix_exported_symbol"; then
11251 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'
11252 fi
11253 link_all_deplibs=no
11254 else
11255 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'
11256 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'
11257 fi
11258 archive_cmds_need_lc='no'
11259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11260 hardcode_libdir_separator=:
11261 inherit_rpath=yes
11262 link_all_deplibs=yes
11263 ;;
11264
11265 linux*)
11266 case $cc_basename in
11267 tcc*)
11268 # Fabrice Bellard et al's Tiny C Compiler
11269 ld_shlibs=yes
11270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11271 ;;
11272 esac
11273 ;;
11274
11275 netbsd* | netbsdelf*-gnu)
11276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11278 else
11279 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11280 fi
11281 hardcode_libdir_flag_spec='-R$libdir'
11282 hardcode_direct=yes
11283 hardcode_shlibpath_var=no
11284 ;;
11285
11286 newsos6)
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_direct=yes
11289 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11290 hardcode_libdir_separator=:
11291 hardcode_shlibpath_var=no
11292 ;;
11293
11294 *nto* | *qnx*)
11295 ;;
11296
11297 openbsd* | bitrig*)
11298 if test -f /usr/libexec/ld.so; then
11299 hardcode_direct=yes
11300 hardcode_shlibpath_var=no
11301 hardcode_direct_absolute=yes
11302 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11305 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11306 export_dynamic_flag_spec='$wl-E'
11307 else
11308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11309 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11310 fi
11311 else
11312 ld_shlibs=no
11313 fi
11314 ;;
11315
11316 os2*)
11317 hardcode_libdir_flag_spec='-L$libdir'
11318 hardcode_minus_L=yes
11319 allow_undefined_flag=unsupported
11320 shrext_cmds=.dll
11321 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11322 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11323 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11324 $ECHO EXPORTS >> $output_objdir/$libname.def~
11325 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11326 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11327 emximp -o $lib $output_objdir/$libname.def'
11328 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11329 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11330 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11331 $ECHO EXPORTS >> $output_objdir/$libname.def~
11332 prefix_cmds="$SED"~
11333 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11334 prefix_cmds="$prefix_cmds -e 1d";
11335 fi~
11336 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11337 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11338 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11339 emximp -o $lib $output_objdir/$libname.def'
11340 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11341 enable_shared_with_static_runtimes=yes
11342 ;;
11343
11344 osf3*)
11345 if test yes = "$GCC"; then
11346 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11347 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'
11348 else
11349 allow_undefined_flag=' -expect_unresolved \*'
11350 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'
11351 fi
11352 archive_cmds_need_lc='no'
11353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 hardcode_libdir_separator=:
11355 ;;
11356
11357 osf4* | osf5*) # as osf3* with the addition of -msym flag
11358 if test yes = "$GCC"; then
11359 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11360 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'
11361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11362 else
11363 allow_undefined_flag=' -expect_unresolved \*'
11364 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'
11365 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~
11366 $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'
11367
11368 # Both c and cxx compiler support -rpath directly
11369 hardcode_libdir_flag_spec='-rpath $libdir'
11370 fi
11371 archive_cmds_need_lc='no'
11372 hardcode_libdir_separator=:
11373 ;;
11374
11375 solaris*)
11376 no_undefined_flag=' -z defs'
11377 if test yes = "$GCC"; then
11378 wlarc='$wl'
11379 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11381 $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'
11382 else
11383 case `$CC -V 2>&1` in
11384 *"Compilers 5.0"*)
11385 wlarc=''
11386 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11388 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11389 ;;
11390 *)
11391 wlarc='$wl'
11392 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11394 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11395 ;;
11396 esac
11397 fi
11398 hardcode_libdir_flag_spec='-R$libdir'
11399 hardcode_shlibpath_var=no
11400 case $host_os in
11401 solaris2.[0-5] | solaris2.[0-5].*) ;;
11402 *)
11403 # The compiler driver will combine and reorder linker options,
11404 # but understands '-z linker_flag'. GCC discards it without '$wl',
11405 # but is careful enough not to reorder.
11406 # Supported since Solaris 2.6 (maybe 2.5.1?)
11407 if test yes = "$GCC"; then
11408 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11409 else
11410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11411 fi
11412 ;;
11413 esac
11414 link_all_deplibs=yes
11415 ;;
11416
11417 sunos4*)
11418 if test sequent = "$host_vendor"; then
11419 # Use $CC to link under sequent, because it throws in some extra .o
11420 # files that make .init and .fini sections work.
11421 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11422 else
11423 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11424 fi
11425 hardcode_libdir_flag_spec='-L$libdir'
11426 hardcode_direct=yes
11427 hardcode_minus_L=yes
11428 hardcode_shlibpath_var=no
11429 ;;
11430
11431 sysv4)
11432 case $host_vendor in
11433 sni)
11434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11435 hardcode_direct=yes # is this really true???
11436 ;;
11437 siemens)
11438 ## LD is ld it makes a PLAMLIB
11439 ## CC just makes a GrossModule.
11440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11441 reload_cmds='$CC -r -o $output$reload_objs'
11442 hardcode_direct=no
11443 ;;
11444 motorola)
11445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11446 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11447 ;;
11448 esac
11449 runpath_var='LD_RUN_PATH'
11450 hardcode_shlibpath_var=no
11451 ;;
11452
11453 sysv4.3*)
11454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11455 hardcode_shlibpath_var=no
11456 export_dynamic_flag_spec='-Bexport'
11457 ;;
11458
11459 sysv4*MP*)
11460 if test -d /usr/nec; then
11461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11462 hardcode_shlibpath_var=no
11463 runpath_var=LD_RUN_PATH
11464 hardcode_runpath_var=yes
11465 ld_shlibs=yes
11466 fi
11467 ;;
11468
11469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11470 no_undefined_flag='$wl-z,text'
11471 archive_cmds_need_lc=no
11472 hardcode_shlibpath_var=no
11473 runpath_var='LD_RUN_PATH'
11474
11475 if test yes = "$GCC"; then
11476 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11477 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11478 else
11479 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11481 fi
11482 ;;
11483
11484 sysv5* | sco3.2v5* | sco5v6*)
11485 # Note: We CANNOT use -z defs as we might desire, because we do not
11486 # link with -lc, and that would cause any symbols used from libc to
11487 # always be unresolved, which means just about no library would
11488 # ever link correctly. If we're not using GNU ld we use -z text
11489 # though, which does catch some bad symbols but isn't as heavy-handed
11490 # as -z defs.
11491 no_undefined_flag='$wl-z,text'
11492 allow_undefined_flag='$wl-z,nodefs'
11493 archive_cmds_need_lc=no
11494 hardcode_shlibpath_var=no
11495 hardcode_libdir_flag_spec='$wl-R,$libdir'
11496 hardcode_libdir_separator=':'
11497 link_all_deplibs=yes
11498 export_dynamic_flag_spec='$wl-Bexport'
11499 runpath_var='LD_RUN_PATH'
11500
11501 if test yes = "$GCC"; then
11502 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11504 else
11505 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11506 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 fi
11508 ;;
11509
11510 uts4*)
11511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11512 hardcode_libdir_flag_spec='-L$libdir'
11513 hardcode_shlibpath_var=no
11514 ;;
11515
11516 *)
11517 ld_shlibs=no
11518 ;;
11519 esac
11520
11521 if test sni = "$host_vendor"; then
11522 case $host in
11523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11524 export_dynamic_flag_spec='$wl-Blargedynsym'
11525 ;;
11526 esac
11527 fi
11528 fi
11529
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11531 $as_echo "$ld_shlibs" >&6; }
11532 test no = "$ld_shlibs" && can_build_shared=no
11533
11534 with_gnu_ld=$with_gnu_ld
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550 #
11551 # Do we need to explicitly link libc?
11552 #
11553 case "x$archive_cmds_need_lc" in
11554 x|xyes)
11555 # Assume -lc should be added
11556 archive_cmds_need_lc=yes
11557
11558 if test yes,yes = "$GCC,$enable_shared"; then
11559 case $archive_cmds in
11560 *'~'*)
11561 # FIXME: we may have to deal with multi-command sequences.
11562 ;;
11563 '$CC '*)
11564 # Test whether the compiler implicitly links with -lc since on some
11565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11566 # to ld, don't add -lc before -lgcc.
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11569 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 $RM conftest*
11573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11574
11575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11576 (eval $ac_compile) 2>&5
11577 ac_status=$?
11578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579 test $ac_status = 0; } 2>conftest.err; then
11580 soname=conftest
11581 lib=conftest
11582 libobjs=conftest.$ac_objext
11583 deplibs=
11584 wl=$lt_prog_compiler_wl
11585 pic_flag=$lt_prog_compiler_pic
11586 compiler_flags=-v
11587 linker_flags=-v
11588 verstring=
11589 output_objdir=.
11590 libname=conftest
11591 lt_save_allow_undefined_flag=$allow_undefined_flag
11592 allow_undefined_flag=
11593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11594 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11595 ac_status=$?
11596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597 test $ac_status = 0; }
11598 then
11599 lt_cv_archive_cmds_need_lc=no
11600 else
11601 lt_cv_archive_cmds_need_lc=yes
11602 fi
11603 allow_undefined_flag=$lt_save_allow_undefined_flag
11604 else
11605 cat conftest.err 1>&5
11606 fi
11607 $RM conftest*
11608
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11611 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11612 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11613 ;;
11614 esac
11615 fi
11616 ;;
11617 esac
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11771 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11772
11773 if test yes = "$GCC"; then
11774 case $host_os in
11775 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11776 *) lt_awk_arg='/^libraries:/' ;;
11777 esac
11778 case $host_os in
11779 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11780 *) lt_sed_strip_eq='s|=/|/|g' ;;
11781 esac
11782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11783 case $lt_search_path_spec in
11784 *\;*)
11785 # if the path contains ";" then we assume it to be the separator
11786 # otherwise default to the standard path separator (i.e. ":") - it is
11787 # assumed that no part of a normal pathname contains ";" but that should
11788 # okay in the real world where ";" in dirpaths is itself problematic.
11789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11790 ;;
11791 *)
11792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11793 ;;
11794 esac
11795 # Ok, now we have the path, separated by spaces, we can step through it
11796 # and add multilib dir if necessary...
11797 lt_tmp_lt_search_path_spec=
11798 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11799 # ...but if some path component already ends with the multilib dir we assume
11800 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11801 case "$lt_multi_os_dir; $lt_search_path_spec " in
11802 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11803 lt_multi_os_dir=
11804 ;;
11805 esac
11806 for lt_sys_path in $lt_search_path_spec; do
11807 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11808 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11809 elif test -n "$lt_multi_os_dir"; then
11810 test -d "$lt_sys_path" && \
11811 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11812 fi
11813 done
11814 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11815 BEGIN {RS = " "; FS = "/|\n";} {
11816 lt_foo = "";
11817 lt_count = 0;
11818 for (lt_i = NF; lt_i > 0; lt_i--) {
11819 if ($lt_i != "" && $lt_i != ".") {
11820 if ($lt_i == "..") {
11821 lt_count++;
11822 } else {
11823 if (lt_count == 0) {
11824 lt_foo = "/" $lt_i lt_foo;
11825 } else {
11826 lt_count--;
11827 }
11828 }
11829 }
11830 }
11831 if (lt_foo != "") { lt_freq[lt_foo]++; }
11832 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11833 }'`
11834 # AWK program above erroneously prepends '/' to C:/dos/paths
11835 # for these hosts.
11836 case $host_os in
11837 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11838 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11839 esac
11840 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11841 else
11842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11843 fi
11844 library_names_spec=
11845 libname_spec='lib$name'
11846 soname_spec=
11847 shrext_cmds=.so
11848 postinstall_cmds=
11849 postuninstall_cmds=
11850 finish_cmds=
11851 finish_eval=
11852 shlibpath_var=
11853 shlibpath_overrides_runpath=unknown
11854 version_type=none
11855 dynamic_linker="$host_os ld.so"
11856 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11857 need_lib_prefix=unknown
11858 hardcode_into_libs=no
11859
11860 # when you set need_version to no, make sure it does not cause -set_version
11861 # flags to be left without arguments
11862 need_version=unknown
11863
11864
11865
11866 case $host_os in
11867 aix3*)
11868 version_type=linux # correct to gnu/linux during the next big refactor
11869 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11870 shlibpath_var=LIBPATH
11871
11872 # AIX 3 has no versioning support, so we append a major version to the name.
11873 soname_spec='$libname$release$shared_ext$major'
11874 ;;
11875
11876 aix[4-9]*)
11877 version_type=linux # correct to gnu/linux during the next big refactor
11878 need_lib_prefix=no
11879 need_version=no
11880 hardcode_into_libs=yes
11881 if test ia64 = "$host_cpu"; then
11882 # AIX 5 supports IA64
11883 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 else
11886 # With GCC up to 2.95.x, collect2 would create an import file
11887 # for dependence libraries. The import file would start with
11888 # the line '#! .'. This would cause the generated library to
11889 # depend on '.', always an invalid library. This was fixed in
11890 # development snapshots of GCC prior to 3.0.
11891 case $host_os in
11892 aix4 | aix4.[01] | aix4.[01].*)
11893 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11894 echo ' yes '
11895 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11896 :
11897 else
11898 can_build_shared=no
11899 fi
11900 ;;
11901 esac
11902 # Using Import Files as archive members, it is possible to support
11903 # filename-based versioning of shared library archives on AIX. While
11904 # this would work for both with and without runtime linking, it will
11905 # prevent static linking of such archives. So we do filename-based
11906 # shared library versioning with .so extension only, which is used
11907 # when both runtime linking and shared linking is enabled.
11908 # Unfortunately, runtime linking may impact performance, so we do
11909 # not want this to be the default eventually. Also, we use the
11910 # versioned .so libs for executables only if there is the -brtl
11911 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11912 # To allow for filename-based versioning support, we need to create
11913 # libNAME.so.V as an archive file, containing:
11914 # *) an Import File, referring to the versioned filename of the
11915 # archive as well as the shared archive member, telling the
11916 # bitwidth (32 or 64) of that shared object, and providing the
11917 # list of exported symbols of that shared object, eventually
11918 # decorated with the 'weak' keyword
11919 # *) the shared object with the F_LOADONLY flag set, to really avoid
11920 # it being seen by the linker.
11921 # At run time we better use the real file rather than another symlink,
11922 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11923
11924 case $with_aix_soname,$aix_use_runtimelinking in
11925 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11926 # soname into executable. Probably we can add versioning support to
11927 # collect2, so additional links can be useful in future.
11928 aix,yes) # traditional libtool
11929 dynamic_linker='AIX unversionable lib.so'
11930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11931 # instead of lib<name>.a to let people know that these are not
11932 # typical AIX shared libraries.
11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934 ;;
11935 aix,no) # traditional AIX only
11936 dynamic_linker='AIX lib.a(lib.so.V)'
11937 # We preserve .a as extension for shared libraries through AIX4.2
11938 # and later when we are not doing run time linking.
11939 library_names_spec='$libname$release.a $libname.a'
11940 soname_spec='$libname$release$shared_ext$major'
11941 ;;
11942 svr4,*) # full svr4 only
11943 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11944 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11945 # We do not specify a path in Import Files, so LIBPATH fires.
11946 shlibpath_overrides_runpath=yes
11947 ;;
11948 *,yes) # both, prefer svr4
11949 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11950 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11951 # unpreferred sharedlib libNAME.a needs extra handling
11952 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"'
11953 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"'
11954 # We do not specify a path in Import Files, so LIBPATH fires.
11955 shlibpath_overrides_runpath=yes
11956 ;;
11957 *,no) # both, prefer aix
11958 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11959 library_names_spec='$libname$release.a $libname.a'
11960 soname_spec='$libname$release$shared_ext$major'
11961 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11962 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)'
11963 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"'
11964 ;;
11965 esac
11966 shlibpath_var=LIBPATH
11967 fi
11968 ;;
11969
11970 amigaos*)
11971 case $host_cpu in
11972 powerpc)
11973 # Since July 2007 AmigaOS4 officially supports .so libraries.
11974 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11976 ;;
11977 m68k)
11978 library_names_spec='$libname.ixlibrary $libname.a'
11979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11980 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'
11981 ;;
11982 esac
11983 ;;
11984
11985 beos*)
11986 library_names_spec='$libname$shared_ext'
11987 dynamic_linker="$host_os ld.so"
11988 shlibpath_var=LIBRARY_PATH
11989 ;;
11990
11991 bsdi[45]*)
11992 version_type=linux # correct to gnu/linux during the next big refactor
11993 need_version=no
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11995 soname_spec='$libname$release$shared_ext$major'
11996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12000 # the default ld.so.conf also contains /usr/contrib/lib and
12001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12002 # libtool to hard-code these into programs
12003 ;;
12004
12005 cygwin* | mingw* | pw32* | cegcc*)
12006 version_type=windows
12007 shrext_cmds=.dll
12008 need_version=no
12009 need_lib_prefix=no
12010
12011 case $GCC,$cc_basename in
12012 yes,*)
12013 # gcc
12014 library_names_spec='$libname.dll.a'
12015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12016 postinstall_cmds='base_file=`basename \$file`~
12017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12018 dldir=$destdir/`dirname \$dlpath`~
12019 test -d \$dldir || mkdir -p \$dldir~
12020 $install_prog $dir/$dlname \$dldir/$dlname~
12021 chmod a+x \$dldir/$dlname~
12022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12024 fi'
12025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12026 dlpath=$dir/\$dldll~
12027 $RM \$dlpath'
12028 shlibpath_overrides_runpath=yes
12029
12030 case $host_os in
12031 cygwin*)
12032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12033 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12034
12035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12036 ;;
12037 mingw* | cegcc*)
12038 # MinGW DLLs use traditional 'lib' prefix
12039 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12040 ;;
12041 pw32*)
12042 # pw32 DLLs use 'pw' prefix rather than 'lib'
12043 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12044 ;;
12045 esac
12046 dynamic_linker='Win32 ld.exe'
12047 ;;
12048
12049 *,cl*)
12050 # Native MSVC
12051 libname_spec='$name'
12052 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12053 library_names_spec='$libname.dll.lib'
12054
12055 case $build_os in
12056 mingw*)
12057 sys_lib_search_path_spec=
12058 lt_save_ifs=$IFS
12059 IFS=';'
12060 for lt_path in $LIB
12061 do
12062 IFS=$lt_save_ifs
12063 # Let DOS variable expansion print the short 8.3 style file name.
12064 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12065 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12066 done
12067 IFS=$lt_save_ifs
12068 # Convert to MSYS style.
12069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12070 ;;
12071 cygwin*)
12072 # Convert to unix form, then to dos form, then back to unix form
12073 # but this time dos style (no spaces!) so that the unix form looks
12074 # like /cygdrive/c/PROGRA~1:/cygdr...
12075 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12076 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12077 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12078 ;;
12079 *)
12080 sys_lib_search_path_spec=$LIB
12081 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12082 # It is most probably a Windows format PATH.
12083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12084 else
12085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12086 fi
12087 # FIXME: find the short name or the path components, as spaces are
12088 # common. (e.g. "Program Files" -> "PROGRA~1")
12089 ;;
12090 esac
12091
12092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12093 postinstall_cmds='base_file=`basename \$file`~
12094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12095 dldir=$destdir/`dirname \$dlpath`~
12096 test -d \$dldir || mkdir -p \$dldir~
12097 $install_prog $dir/$dlname \$dldir/$dlname'
12098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12099 dlpath=$dir/\$dldll~
12100 $RM \$dlpath'
12101 shlibpath_overrides_runpath=yes
12102 dynamic_linker='Win32 link.exe'
12103 ;;
12104
12105 *)
12106 # Assume MSVC wrapper
12107 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12108 dynamic_linker='Win32 ld.exe'
12109 ;;
12110 esac
12111 # FIXME: first we should search . and the directory the executable is in
12112 shlibpath_var=PATH
12113 ;;
12114
12115 darwin* | rhapsody*)
12116 dynamic_linker="$host_os dyld"
12117 version_type=darwin
12118 need_lib_prefix=no
12119 need_version=no
12120 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12121 soname_spec='$libname$release$major$shared_ext'
12122 shlibpath_overrides_runpath=yes
12123 shlibpath_var=DYLD_LIBRARY_PATH
12124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12125
12126 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12128 ;;
12129
12130 dgux*)
12131 version_type=linux # correct to gnu/linux during the next big refactor
12132 need_lib_prefix=no
12133 need_version=no
12134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12135 soname_spec='$libname$release$shared_ext$major'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 ;;
12138
12139 freebsd* | dragonfly*)
12140 # DragonFly does not have aout. When/if they implement a new
12141 # versioning mechanism, adjust this.
12142 if test -x /usr/bin/objformat; then
12143 objformat=`/usr/bin/objformat`
12144 else
12145 case $host_os in
12146 freebsd[23].*) objformat=aout ;;
12147 *) objformat=elf ;;
12148 esac
12149 fi
12150 version_type=freebsd-$objformat
12151 case $version_type in
12152 freebsd-elf*)
12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154 soname_spec='$libname$release$shared_ext$major'
12155 need_version=no
12156 need_lib_prefix=no
12157 ;;
12158 freebsd-*)
12159 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12160 need_version=yes
12161 ;;
12162 esac
12163 shlibpath_var=LD_LIBRARY_PATH
12164 case $host_os in
12165 freebsd2.*)
12166 shlibpath_overrides_runpath=yes
12167 ;;
12168 freebsd3.[01]* | freebsdelf3.[01]*)
12169 shlibpath_overrides_runpath=yes
12170 hardcode_into_libs=yes
12171 ;;
12172 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12173 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12174 shlibpath_overrides_runpath=no
12175 hardcode_into_libs=yes
12176 ;;
12177 *) # from 4.6 on, and DragonFly
12178 shlibpath_overrides_runpath=yes
12179 hardcode_into_libs=yes
12180 ;;
12181 esac
12182 ;;
12183
12184 haiku*)
12185 version_type=linux # correct to gnu/linux during the next big refactor
12186 need_lib_prefix=no
12187 need_version=no
12188 dynamic_linker="$host_os runtime_loader"
12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190 soname_spec='$libname$release$shared_ext$major'
12191 shlibpath_var=LIBRARY_PATH
12192 shlibpath_overrides_runpath=no
12193 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12194 hardcode_into_libs=yes
12195 ;;
12196
12197 hpux9* | hpux10* | hpux11*)
12198 # Give a soname corresponding to the major version so that dld.sl refuses to
12199 # link against other versions.
12200 version_type=sunos
12201 need_lib_prefix=no
12202 need_version=no
12203 case $host_cpu in
12204 ia64*)
12205 shrext_cmds='.so'
12206 hardcode_into_libs=yes
12207 dynamic_linker="$host_os dld.so"
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211 soname_spec='$libname$release$shared_ext$major'
12212 if test 32 = "$HPUX_IA64_MODE"; then
12213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12214 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12215 else
12216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12217 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12218 fi
12219 ;;
12220 hppa*64*)
12221 shrext_cmds='.sl'
12222 hardcode_into_libs=yes
12223 dynamic_linker="$host_os dld.sl"
12224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12230 ;;
12231 *)
12232 shrext_cmds='.sl'
12233 dynamic_linker="$host_os dld.sl"
12234 shlibpath_var=SHLIB_PATH
12235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 soname_spec='$libname$release$shared_ext$major'
12238 ;;
12239 esac
12240 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12241 postinstall_cmds='chmod 555 $lib'
12242 # or fails outright, so override atomically:
12243 install_override_mode=555
12244 ;;
12245
12246 interix[3-9]*)
12247 version_type=linux # correct to gnu/linux during the next big refactor
12248 need_lib_prefix=no
12249 need_version=no
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 soname_spec='$libname$release$shared_ext$major'
12252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=no
12255 hardcode_into_libs=yes
12256 ;;
12257
12258 irix5* | irix6* | nonstopux*)
12259 case $host_os in
12260 nonstopux*) version_type=nonstopux ;;
12261 *)
12262 if test yes = "$lt_cv_prog_gnu_ld"; then
12263 version_type=linux # correct to gnu/linux during the next big refactor
12264 else
12265 version_type=irix
12266 fi ;;
12267 esac
12268 need_lib_prefix=no
12269 need_version=no
12270 soname_spec='$libname$release$shared_ext$major'
12271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12272 case $host_os in
12273 irix5* | nonstopux*)
12274 libsuff= shlibsuff=
12275 ;;
12276 *)
12277 case $LD in # libtool.m4 will add one of these switches to LD
12278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12279 libsuff= shlibsuff= libmagic=32-bit;;
12280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12281 libsuff=32 shlibsuff=N32 libmagic=N32;;
12282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12284 *) libsuff= shlibsuff= libmagic=never-match;;
12285 esac
12286 ;;
12287 esac
12288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12289 shlibpath_overrides_runpath=no
12290 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12291 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12292 hardcode_into_libs=yes
12293 ;;
12294
12295 # No shared lib support for Linux oldld, aout, or coff.
12296 linux*oldld* | linux*aout* | linux*coff*)
12297 dynamic_linker=no
12298 ;;
12299
12300 linux*android*)
12301 version_type=none # Android doesn't support versioned libraries.
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='$libname$release$shared_ext'
12305 soname_spec='$libname$release$shared_ext'
12306 finish_cmds=
12307 shlibpath_var=LD_LIBRARY_PATH
12308 shlibpath_overrides_runpath=yes
12309
12310 # This implies no fast_install, which is unacceptable.
12311 # Some rework will be needed to allow for fast_install
12312 # before this can be enabled.
12313 hardcode_into_libs=yes
12314
12315 dynamic_linker='Android linker'
12316 # Don't embed -rpath directories since the linker doesn't support them.
12317 hardcode_libdir_flag_spec='-L$libdir'
12318 ;;
12319
12320 # This must be glibc/ELF.
12321 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12322 version_type=linux # correct to gnu/linux during the next big refactor
12323 need_lib_prefix=no
12324 need_version=no
12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12326 soname_spec='$libname$release$shared_ext$major'
12327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=no
12330
12331 # Some binutils ld are patched to set DT_RUNPATH
12332 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 lt_cv_shlibpath_overrides_runpath=no
12336 save_LDFLAGS=$LDFLAGS
12337 save_libdir=$libdir
12338 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12339 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342
12343 int
12344 main ()
12345 {
12346
12347 ;
12348 return 0;
12349 }
12350 _ACEOF
12351 if ac_fn_c_try_link "$LINENO"; then :
12352 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12353 lt_cv_shlibpath_overrides_runpath=yes
12354 fi
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LDFLAGS=$save_LDFLAGS
12359 libdir=$save_libdir
12360
12361 fi
12362
12363 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12364
12365 # This implies no fast_install, which is unacceptable.
12366 # Some rework will be needed to allow for fast_install
12367 # before this can be enabled.
12368 hardcode_into_libs=yes
12369
12370 # Ideally, we could use ldconfig to report *all* directores which are
12371 # searched for libraries, however this is still not possible. Aside from not
12372 # being certain /sbin/ldconfig is available, command
12373 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12374 # even though it is searched at run-time. Try to do the best guess by
12375 # appending ld.so.conf contents (and includes) to the search path.
12376 if test -f /etc/ld.so.conf; then
12377 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' ' '`
12378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12379 fi
12380
12381 # We used to test for /lib/ld.so.1 and disable shared libraries on
12382 # powerpc, because MkLinux only supported shared libraries with the
12383 # GNU dynamic linker. Since this was broken with cross compilers,
12384 # most powerpc-linux boxes support dynamic linking these days and
12385 # people can always --disable-shared, the test was removed, and we
12386 # assume the GNU/Linux dynamic linker is in use.
12387 dynamic_linker='GNU/Linux ld.so'
12388 ;;
12389
12390 netbsdelf*-gnu)
12391 version_type=linux
12392 need_lib_prefix=no
12393 need_version=no
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12395 soname_spec='${libname}${release}${shared_ext}$major'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=no
12398 hardcode_into_libs=yes
12399 dynamic_linker='NetBSD ld.elf_so'
12400 ;;
12401
12402 netbsd*)
12403 version_type=sunos
12404 need_lib_prefix=no
12405 need_version=no
12406 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12407 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12409 dynamic_linker='NetBSD (a.out) ld.so'
12410 else
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12412 soname_spec='$libname$release$shared_ext$major'
12413 dynamic_linker='NetBSD ld.elf_so'
12414 fi
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=yes
12417 hardcode_into_libs=yes
12418 ;;
12419
12420 newsos6)
12421 version_type=linux # correct to gnu/linux during the next big refactor
12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 shlibpath_overrides_runpath=yes
12425 ;;
12426
12427 *nto* | *qnx*)
12428 version_type=qnx
12429 need_lib_prefix=no
12430 need_version=no
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432 soname_spec='$libname$release$shared_ext$major'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=no
12435 hardcode_into_libs=yes
12436 dynamic_linker='ldqnx.so'
12437 ;;
12438
12439 openbsd* | bitrig*)
12440 version_type=sunos
12441 sys_lib_dlsearch_path_spec=/usr/lib
12442 need_lib_prefix=no
12443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12444 need_version=no
12445 else
12446 need_version=yes
12447 fi
12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 shlibpath_overrides_runpath=yes
12452 ;;
12453
12454 os2*)
12455 libname_spec='$name'
12456 version_type=windows
12457 shrext_cmds=.dll
12458 need_version=no
12459 need_lib_prefix=no
12460 # OS/2 can only load a DLL with a base name of 8 characters or less.
12461 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12462 v=$($ECHO $release$versuffix | tr -d .-);
12463 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12464 $ECHO $n$v`$shared_ext'
12465 library_names_spec='${libname}_dll.$libext'
12466 dynamic_linker='OS/2 ld.exe'
12467 shlibpath_var=BEGINLIBPATH
12468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12470 postinstall_cmds='base_file=`basename \$file`~
12471 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12472 dldir=$destdir/`dirname \$dlpath`~
12473 test -d \$dldir || mkdir -p \$dldir~
12474 $install_prog $dir/$dlname \$dldir/$dlname~
12475 chmod a+x \$dldir/$dlname~
12476 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12477 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12478 fi'
12479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12480 dlpath=$dir/\$dldll~
12481 $RM \$dlpath'
12482 ;;
12483
12484 osf3* | osf4* | osf5*)
12485 version_type=osf
12486 need_lib_prefix=no
12487 need_version=no
12488 soname_spec='$libname$release$shared_ext$major'
12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12490 shlibpath_var=LD_LIBRARY_PATH
12491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12493 ;;
12494
12495 rdos*)
12496 dynamic_linker=no
12497 ;;
12498
12499 solaris*)
12500 version_type=linux # correct to gnu/linux during the next big refactor
12501 need_lib_prefix=no
12502 need_version=no
12503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504 soname_spec='$libname$release$shared_ext$major'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 shlibpath_overrides_runpath=yes
12507 hardcode_into_libs=yes
12508 # ldd complains unless libraries are executable
12509 postinstall_cmds='chmod +x $lib'
12510 ;;
12511
12512 sunos4*)
12513 version_type=sunos
12514 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12516 shlibpath_var=LD_LIBRARY_PATH
12517 shlibpath_overrides_runpath=yes
12518 if test yes = "$with_gnu_ld"; then
12519 need_lib_prefix=no
12520 fi
12521 need_version=yes
12522 ;;
12523
12524 sysv4 | sysv4.3*)
12525 version_type=linux # correct to gnu/linux during the next big refactor
12526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12527 soname_spec='$libname$release$shared_ext$major'
12528 shlibpath_var=LD_LIBRARY_PATH
12529 case $host_vendor in
12530 sni)
12531 shlibpath_overrides_runpath=no
12532 need_lib_prefix=no
12533 runpath_var=LD_RUN_PATH
12534 ;;
12535 siemens)
12536 need_lib_prefix=no
12537 ;;
12538 motorola)
12539 need_lib_prefix=no
12540 need_version=no
12541 shlibpath_overrides_runpath=no
12542 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12543 ;;
12544 esac
12545 ;;
12546
12547 sysv4*MP*)
12548 if test -d /usr/nec; then
12549 version_type=linux # correct to gnu/linux during the next big refactor
12550 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12551 soname_spec='$libname$shared_ext.$major'
12552 shlibpath_var=LD_LIBRARY_PATH
12553 fi
12554 ;;
12555
12556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12557 version_type=sco
12558 need_lib_prefix=no
12559 need_version=no
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12561 soname_spec='$libname$release$shared_ext$major'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 shlibpath_overrides_runpath=yes
12564 hardcode_into_libs=yes
12565 if test yes = "$with_gnu_ld"; then
12566 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12567 else
12568 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12569 case $host_os in
12570 sco3.2v5*)
12571 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12572 ;;
12573 esac
12574 fi
12575 sys_lib_dlsearch_path_spec='/usr/lib'
12576 ;;
12577
12578 tpf*)
12579 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12580 version_type=linux # correct to gnu/linux during the next big refactor
12581 need_lib_prefix=no
12582 need_version=no
12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584 shlibpath_var=LD_LIBRARY_PATH
12585 shlibpath_overrides_runpath=no
12586 hardcode_into_libs=yes
12587 ;;
12588
12589 uts4*)
12590 version_type=linux # correct to gnu/linux during the next big refactor
12591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12592 soname_spec='$libname$release$shared_ext$major'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 ;;
12595
12596 *)
12597 dynamic_linker=no
12598 ;;
12599 esac
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12601 $as_echo "$dynamic_linker" >&6; }
12602 test no = "$dynamic_linker" && can_build_shared=no
12603
12604 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12605 if test yes = "$GCC"; then
12606 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12607 fi
12608
12609 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12610 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12611 fi
12612
12613 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12614 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12615 fi
12616
12617 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12618 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12619
12620 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12621 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12622
12623 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12624 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12723 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12724 hardcode_action=
12725 if test -n "$hardcode_libdir_flag_spec" ||
12726 test -n "$runpath_var" ||
12727 test yes = "$hardcode_automatic"; then
12728
12729 # We can hardcode non-existent directories.
12730 if test no != "$hardcode_direct" &&
12731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12732 # have to relink, otherwise we might link with an installed library
12733 # when we should be linking with a yet-to-be-installed one
12734 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12735 test no != "$hardcode_minus_L"; then
12736 # Linking always hardcodes the temporary library directory.
12737 hardcode_action=relink
12738 else
12739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12740 hardcode_action=immediate
12741 fi
12742 else
12743 # We cannot hardcode anything, or else we can only hardcode existing
12744 # directories.
12745 hardcode_action=unsupported
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12748 $as_echo "$hardcode_action" >&6; }
12749
12750 if test relink = "$hardcode_action" ||
12751 test yes = "$inherit_rpath"; then
12752 # Fast installation is not supported
12753 enable_fast_install=no
12754 elif test yes = "$shlibpath_overrides_runpath" ||
12755 test no = "$enable_shared"; then
12756 # Fast installation is not necessary
12757 enable_fast_install=needless
12758 fi
12759
12760
12761
12762
12763
12764
12765 if test yes != "$enable_dlopen"; then
12766 enable_dlopen=unknown
12767 enable_dlopen_self=unknown
12768 enable_dlopen_self_static=unknown
12769 else
12770 lt_cv_dlopen=no
12771 lt_cv_dlopen_libs=
12772
12773 case $host_os in
12774 beos*)
12775 lt_cv_dlopen=load_add_on
12776 lt_cv_dlopen_libs=
12777 lt_cv_dlopen_self=yes
12778 ;;
12779
12780 mingw* | pw32* | cegcc*)
12781 lt_cv_dlopen=LoadLibrary
12782 lt_cv_dlopen_libs=
12783 ;;
12784
12785 cygwin*)
12786 lt_cv_dlopen=dlopen
12787 lt_cv_dlopen_libs=
12788 ;;
12789
12790 darwin*)
12791 # if libdl is installed we need to link against it
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12793 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12794 if ${ac_cv_lib_dl_dlopen+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 ac_check_lib_save_LIBS=$LIBS
12798 LIBS="-ldl $LIBS"
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12805 #ifdef __cplusplus
12806 extern "C"
12807 #endif
12808 char dlopen ();
12809 int
12810 main ()
12811 {
12812 return dlopen ();
12813 ;
12814 return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_lib_dl_dlopen=yes
12819 else
12820 ac_cv_lib_dl_dlopen=no
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12827 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12828 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12829 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12830 else
12831
12832 lt_cv_dlopen=dyld
12833 lt_cv_dlopen_libs=
12834 lt_cv_dlopen_self=yes
12835
12836 fi
12837
12838 ;;
12839
12840 tpf*)
12841 # Don't try to run any link tests for TPF. We know it's impossible
12842 # because TPF is a cross-compiler, and we know how we open DSOs.
12843 lt_cv_dlopen=dlopen
12844 lt_cv_dlopen_libs=
12845 lt_cv_dlopen_self=no
12846 ;;
12847
12848 *)
12849 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12850 if test "x$ac_cv_func_shl_load" = xyes; then :
12851 lt_cv_dlopen=shl_load
12852 else
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12854 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12855 if ${ac_cv_lib_dld_shl_load+:} false; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-ldld $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char shl_load ();
12870 int
12871 main ()
12872 {
12873 return shl_load ();
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 ac_cv_lib_dld_shl_load=yes
12880 else
12881 ac_cv_lib_dld_shl_load=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12888 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12889 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12890 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12891 else
12892 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12893 if test "x$ac_cv_func_dlopen" = xyes; then :
12894 lt_cv_dlopen=dlopen
12895 else
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12898 if ${ac_cv_lib_dl_dlopen+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-ldl $LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 char dlopen ();
12913 int
12914 main ()
12915 {
12916 return dlopen ();
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_lib_dl_dlopen=yes
12923 else
12924 ac_cv_lib_dl_dlopen=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LIBS=$ac_check_lib_save_LIBS
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12936 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12937 if ${ac_cv_lib_svld_dlopen+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-lsvld $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char dlopen ();
12952 int
12953 main ()
12954 {
12955 return dlopen ();
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_lib_svld_dlopen=yes
12962 else
12963 ac_cv_lib_svld_dlopen=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12970 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12971 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12972 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12975 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12976 if ${ac_cv_lib_dld_dld_link+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 ac_check_lib_save_LIBS=$LIBS
12980 LIBS="-ldld $LIBS"
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983
12984 /* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 char dld_link ();
12991 int
12992 main ()
12993 {
12994 return dld_link ();
12995 ;
12996 return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_link "$LINENO"; then :
13000 ac_cv_lib_dld_dld_link=yes
13001 else
13002 ac_cv_lib_dld_dld_link=no
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006 LIBS=$ac_check_lib_save_LIBS
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13009 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13010 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13011 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13012 fi
13013
13014
13015 fi
13016
13017
13018 fi
13019
13020
13021 fi
13022
13023
13024 fi
13025
13026
13027 fi
13028
13029 ;;
13030 esac
13031
13032 if test no = "$lt_cv_dlopen"; then
13033 enable_dlopen=no
13034 else
13035 enable_dlopen=yes
13036 fi
13037
13038 case $lt_cv_dlopen in
13039 dlopen)
13040 save_CPPFLAGS=$CPPFLAGS
13041 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13042
13043 save_LDFLAGS=$LDFLAGS
13044 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13045
13046 save_LIBS=$LIBS
13047 LIBS="$lt_cv_dlopen_libs $LIBS"
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13050 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13051 if ${lt_cv_dlopen_self+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 if test yes = "$cross_compiling"; then :
13055 lt_cv_dlopen_self=cross
13056 else
13057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13058 lt_status=$lt_dlunknown
13059 cat > conftest.$ac_ext <<_LT_EOF
13060 #line $LINENO "configure"
13061 #include "confdefs.h"
13062
13063 #if HAVE_DLFCN_H
13064 #include <dlfcn.h>
13065 #endif
13066
13067 #include <stdio.h>
13068
13069 #ifdef RTLD_GLOBAL
13070 # define LT_DLGLOBAL RTLD_GLOBAL
13071 #else
13072 # ifdef DL_GLOBAL
13073 # define LT_DLGLOBAL DL_GLOBAL
13074 # else
13075 # define LT_DLGLOBAL 0
13076 # endif
13077 #endif
13078
13079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13080 find out it does not work in some platform. */
13081 #ifndef LT_DLLAZY_OR_NOW
13082 # ifdef RTLD_LAZY
13083 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13084 # else
13085 # ifdef DL_LAZY
13086 # define LT_DLLAZY_OR_NOW DL_LAZY
13087 # else
13088 # ifdef RTLD_NOW
13089 # define LT_DLLAZY_OR_NOW RTLD_NOW
13090 # else
13091 # ifdef DL_NOW
13092 # define LT_DLLAZY_OR_NOW DL_NOW
13093 # else
13094 # define LT_DLLAZY_OR_NOW 0
13095 # endif
13096 # endif
13097 # endif
13098 # endif
13099 #endif
13100
13101 /* When -fvisibility=hidden is used, assume the code has been annotated
13102 correspondingly for the symbols needed. */
13103 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13104 int fnord () __attribute__((visibility("default")));
13105 #endif
13106
13107 int fnord () { return 42; }
13108 int main ()
13109 {
13110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13111 int status = $lt_dlunknown;
13112
13113 if (self)
13114 {
13115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13116 else
13117 {
13118 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13119 else puts (dlerror ());
13120 }
13121 /* dlclose (self); */
13122 }
13123 else
13124 puts (dlerror ());
13125
13126 return status;
13127 }
13128 _LT_EOF
13129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13130 (eval $ac_link) 2>&5
13131 ac_status=$?
13132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13133 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13134 (./conftest; exit; ) >&5 2>/dev/null
13135 lt_status=$?
13136 case x$lt_status in
13137 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13138 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13139 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13140 esac
13141 else :
13142 # compilation failed
13143 lt_cv_dlopen_self=no
13144 fi
13145 fi
13146 rm -fr conftest*
13147
13148
13149 fi
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13151 $as_echo "$lt_cv_dlopen_self" >&6; }
13152
13153 if test yes = "$lt_cv_dlopen_self"; then
13154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13156 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13157 if ${lt_cv_dlopen_self_static+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 if test yes = "$cross_compiling"; then :
13161 lt_cv_dlopen_self_static=cross
13162 else
13163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13164 lt_status=$lt_dlunknown
13165 cat > conftest.$ac_ext <<_LT_EOF
13166 #line $LINENO "configure"
13167 #include "confdefs.h"
13168
13169 #if HAVE_DLFCN_H
13170 #include <dlfcn.h>
13171 #endif
13172
13173 #include <stdio.h>
13174
13175 #ifdef RTLD_GLOBAL
13176 # define LT_DLGLOBAL RTLD_GLOBAL
13177 #else
13178 # ifdef DL_GLOBAL
13179 # define LT_DLGLOBAL DL_GLOBAL
13180 # else
13181 # define LT_DLGLOBAL 0
13182 # endif
13183 #endif
13184
13185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13186 find out it does not work in some platform. */
13187 #ifndef LT_DLLAZY_OR_NOW
13188 # ifdef RTLD_LAZY
13189 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13190 # else
13191 # ifdef DL_LAZY
13192 # define LT_DLLAZY_OR_NOW DL_LAZY
13193 # else
13194 # ifdef RTLD_NOW
13195 # define LT_DLLAZY_OR_NOW RTLD_NOW
13196 # else
13197 # ifdef DL_NOW
13198 # define LT_DLLAZY_OR_NOW DL_NOW
13199 # else
13200 # define LT_DLLAZY_OR_NOW 0
13201 # endif
13202 # endif
13203 # endif
13204 # endif
13205 #endif
13206
13207 /* When -fvisibility=hidden is used, assume the code has been annotated
13208 correspondingly for the symbols needed. */
13209 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13210 int fnord () __attribute__((visibility("default")));
13211 #endif
13212
13213 int fnord () { return 42; }
13214 int main ()
13215 {
13216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13217 int status = $lt_dlunknown;
13218
13219 if (self)
13220 {
13221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13222 else
13223 {
13224 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13225 else puts (dlerror ());
13226 }
13227 /* dlclose (self); */
13228 }
13229 else
13230 puts (dlerror ());
13231
13232 return status;
13233 }
13234 _LT_EOF
13235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13236 (eval $ac_link) 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13240 (./conftest; exit; ) >&5 2>/dev/null
13241 lt_status=$?
13242 case x$lt_status in
13243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13246 esac
13247 else :
13248 # compilation failed
13249 lt_cv_dlopen_self_static=no
13250 fi
13251 fi
13252 rm -fr conftest*
13253
13254
13255 fi
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13257 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13258 fi
13259
13260 CPPFLAGS=$save_CPPFLAGS
13261 LDFLAGS=$save_LDFLAGS
13262 LIBS=$save_LIBS
13263 ;;
13264 esac
13265
13266 case $lt_cv_dlopen_self in
13267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13268 *) enable_dlopen_self=unknown ;;
13269 esac
13270
13271 case $lt_cv_dlopen_self_static in
13272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13273 *) enable_dlopen_self_static=unknown ;;
13274 esac
13275 fi
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293 striplib=
13294 old_striplib=
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13296 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13297 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13298 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13299 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13302 else
13303 # FIXME - insert some real tests, host_os isn't really good enough
13304 case $host_os in
13305 darwin*)
13306 if test -n "$STRIP"; then
13307 striplib="$STRIP -x"
13308 old_striplib="$STRIP -S"
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 $as_echo "yes" >&6; }
13311 else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 $as_echo "no" >&6; }
13314 fi
13315 ;;
13316 *)
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 ;;
13320 esac
13321 fi
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334 # Report what library types will actually be built
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13336 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13338 $as_echo "$can_build_shared" >&6; }
13339
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13341 $as_echo_n "checking whether to build shared libraries... " >&6; }
13342 test no = "$can_build_shared" && enable_shared=no
13343
13344 # On AIX, shared libraries and static libraries use the same namespace, and
13345 # are all built from PIC.
13346 case $host_os in
13347 aix3*)
13348 test yes = "$enable_shared" && enable_static=no
13349 if test -n "$RANLIB"; then
13350 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13351 postinstall_cmds='$RANLIB $lib'
13352 fi
13353 ;;
13354
13355 aix[4-9]*)
13356 if test ia64 != "$host_cpu"; then
13357 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13358 yes,aix,yes) ;; # shared object as lib.so file only
13359 yes,svr4,*) ;; # shared object as lib.so archive member only
13360 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13361 esac
13362 fi
13363 ;;
13364 esac
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13366 $as_echo "$enable_shared" >&6; }
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13369 $as_echo_n "checking whether to build static libraries... " >&6; }
13370 # Make sure either enable_shared or enable_static is yes.
13371 test yes = "$enable_shared" || enable_static=yes
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13373 $as_echo "$enable_static" >&6; }
13374
13375
13376
13377
13378 fi
13379 ac_ext=c
13380 ac_cpp='$CPP $CPPFLAGS'
13381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13384
13385 CC=$lt_save_CC
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401 ac_config_commands="$ac_config_commands libtool"
13402
13403
13404
13405
13406 # Only expand once:
13407
13408
13409
13410
13411
13412
13413 # Check whether --enable-silent-rules was given.
13414 if test "${enable_silent_rules+set}" = set; then :
13415 enableval=$enable_silent_rules;
13416 fi
13417
13418 case $enable_silent_rules in # (((
13419 yes) AM_DEFAULT_VERBOSITY=0;;
13420 no) AM_DEFAULT_VERBOSITY=1;;
13421 *) AM_DEFAULT_VERBOSITY=0;;
13422 esac
13423 am_make=${MAKE-make}
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13425 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13426 if ${am_cv_make_support_nested_variables+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 if $as_echo 'TRUE=$(BAR$(V))
13430 BAR0=false
13431 BAR1=true
13432 V=1
13433 am__doit:
13434 @$(TRUE)
13435 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13436 am_cv_make_support_nested_variables=yes
13437 else
13438 am_cv_make_support_nested_variables=no
13439 fi
13440 fi
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13442 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13443 if test $am_cv_make_support_nested_variables = yes; then
13444 AM_V='$(V)'
13445 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13446 else
13447 AM_V=$AM_DEFAULT_VERBOSITY
13448 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13449 fi
13450 AM_BACKSLASH='\'
13451
13452
13453 ###########################
13454 # Dependencies
13455 ###########################
13456
13457 GLIB_REQUIRED_VERSION=2.38
13458 DBUS_REQUIRED_VERSION=0.76
13459 GIO_REQUIRED_VERSION=2.30
13460
13461
13462
13463
13464
13465
13466
13467
13468 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13469 if test -n "$ac_tool_prefix"; then
13470 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13471 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473 $as_echo_n "checking for $ac_word... " >&6; }
13474 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 case $PKG_CONFIG in
13478 [\\/]* | ?:[\\/]*)
13479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13480 ;;
13481 *)
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491 break 2
13492 fi
13493 done
13494 done
13495 IFS=$as_save_IFS
13496
13497 ;;
13498 esac
13499 fi
13500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13501 if test -n "$PKG_CONFIG"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13503 $as_echo "$PKG_CONFIG" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508
13509
13510 fi
13511 if test -z "$ac_cv_path_PKG_CONFIG"; then
13512 ac_pt_PKG_CONFIG=$PKG_CONFIG
13513 # Extract the first word of "pkg-config", so it can be a program name with args.
13514 set dummy pkg-config; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 case $ac_pt_PKG_CONFIG in
13521 [\\/]* | ?:[\\/]*)
13522 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13523 ;;
13524 *)
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 ;;
13541 esac
13542 fi
13543 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13544 if test -n "$ac_pt_PKG_CONFIG"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13546 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552 if test "x$ac_pt_PKG_CONFIG" = x; then
13553 PKG_CONFIG=""
13554 else
13555 case $cross_compiling:$ac_tool_warned in
13556 yes:)
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13559 ac_tool_warned=yes ;;
13560 esac
13561 PKG_CONFIG=$ac_pt_PKG_CONFIG
13562 fi
13563 else
13564 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13565 fi
13566
13567 fi
13568 if test -n "$PKG_CONFIG"; then
13569 _pkg_min_version=0.9.0
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13571 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13572 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13574 $as_echo "yes" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13578 PKG_CONFIG=""
13579 fi
13580 fi
13581
13582 pkg_failed=no
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_TEST_RUNNER" >&5
13584 $as_echo_n "checking for DBUS_TEST_RUNNER... " >&6; }
13585
13586 if test -n "$DBUS_TEST_RUNNER_CFLAGS"; then
13587 pkg_cv_DBUS_TEST_RUNNER_CFLAGS="$DBUS_TEST_RUNNER_CFLAGS"
13588 elif test -n "$PKG_CONFIG"; then
13589 if test -n "$PKG_CONFIG" && \
13590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION
13591 gio-2.0 >= \$GIO_REQUIRED_VERSION
13592 gio-unix-2.0 >= \$GIO_REQUIRED_VERSION
13593 dbus-glib-1 >= \$DBUS_REQUIRED_VERSION\""; } >&5
13594 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
13595 gio-2.0 >= $GIO_REQUIRED_VERSION
13596 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13597 dbus-glib-1 >= $DBUS_REQUIRED_VERSION") 2>&5
13598 ac_status=$?
13599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13600 test $ac_status = 0; }; then
13601 pkg_cv_DBUS_TEST_RUNNER_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION
13602 gio-2.0 >= $GIO_REQUIRED_VERSION
13603 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13604 dbus-glib-1 >= $DBUS_REQUIRED_VERSION" 2>/dev/null`
13605 test "x$?" != "x0" && pkg_failed=yes
13606 else
13607 pkg_failed=yes
13608 fi
13609 else
13610 pkg_failed=untried
13611 fi
13612 if test -n "$DBUS_TEST_RUNNER_LIBS"; then
13613 pkg_cv_DBUS_TEST_RUNNER_LIBS="$DBUS_TEST_RUNNER_LIBS"
13614 elif test -n "$PKG_CONFIG"; then
13615 if test -n "$PKG_CONFIG" && \
13616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION
13617 gio-2.0 >= \$GIO_REQUIRED_VERSION
13618 gio-unix-2.0 >= \$GIO_REQUIRED_VERSION
13619 dbus-glib-1 >= \$DBUS_REQUIRED_VERSION\""; } >&5
13620 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION
13621 gio-2.0 >= $GIO_REQUIRED_VERSION
13622 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13623 dbus-glib-1 >= $DBUS_REQUIRED_VERSION") 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 pkg_cv_DBUS_TEST_RUNNER_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION
13628 gio-2.0 >= $GIO_REQUIRED_VERSION
13629 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13630 dbus-glib-1 >= $DBUS_REQUIRED_VERSION" 2>/dev/null`
13631 test "x$?" != "x0" && pkg_failed=yes
13632 else
13633 pkg_failed=yes
13634 fi
13635 else
13636 pkg_failed=untried
13637 fi
13638
13639
13640
13641 if test $pkg_failed = yes; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13644
13645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13646 _pkg_short_errors_supported=yes
13647 else
13648 _pkg_short_errors_supported=no
13649 fi
13650 if test $_pkg_short_errors_supported = yes; then
13651 DBUS_TEST_RUNNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION
13652 gio-2.0 >= $GIO_REQUIRED_VERSION
13653 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13654 dbus-glib-1 >= $DBUS_REQUIRED_VERSION" 2>&1`
13655 else
13656 DBUS_TEST_RUNNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION
13657 gio-2.0 >= $GIO_REQUIRED_VERSION
13658 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13659 dbus-glib-1 >= $DBUS_REQUIRED_VERSION" 2>&1`
13660 fi
13661 # Put the nasty error message in config.log where it belongs
13662 echo "$DBUS_TEST_RUNNER_PKG_ERRORS" >&5
13663
13664 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION
13665 gio-2.0 >= $GIO_REQUIRED_VERSION
13666 gio-unix-2.0 >= $GIO_REQUIRED_VERSION
13667 dbus-glib-1 >= $DBUS_REQUIRED_VERSION) were not met:
13668
13669 $DBUS_TEST_RUNNER_PKG_ERRORS
13670
13671 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13672 installed software in a non-standard prefix.
13673
13674 Alternatively, you may set the environment variables DBUS_TEST_RUNNER_CFLAGS
13675 and DBUS_TEST_RUNNER_LIBS to avoid the need to call pkg-config.
13676 See the pkg-config man page for more details." "$LINENO" 5
13677 elif test $pkg_failed = untried; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13682 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13683 is in your PATH or set the PKG_CONFIG environment variable to the full
13684 path to pkg-config.
13685
13686 Alternatively, you may set the environment variables DBUS_TEST_RUNNER_CFLAGS
13687 and DBUS_TEST_RUNNER_LIBS to avoid the need to call pkg-config.
13688 See the pkg-config man page for more details.
13689
13690 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13691 See \`config.log' for more details" "$LINENO" 5; }
13692 else
13693 DBUS_TEST_RUNNER_CFLAGS=$pkg_cv_DBUS_TEST_RUNNER_CFLAGS
13694 DBUS_TEST_RUNNER_LIBS=$pkg_cv_DBUS_TEST_RUNNER_LIBS
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13696 $as_echo "yes" >&6; }
13697
13698 fi
13699
13700
13701
13702
13703 ###########################
13704 # Internationalization
13705 ###########################
13706
13707 GETTEXT_PACKAGE=dbus-test-runner
13708
13709
13710 cat >>confdefs.h <<_ACEOF
13711 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13712 _ACEOF
13713
13714
13715
13716 for ac_header in locale.h
13717 do :
13718 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13719 if test "x$ac_cv_header_locale_h" = xyes; then :
13720 cat >>confdefs.h <<_ACEOF
13721 #define HAVE_LOCALE_H 1
13722 _ACEOF
13723
13724 fi
13725
13726 done
13727
13728 if test $ac_cv_header_locale_h = yes; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13730 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13731 if ${am_cv_val_LC_MESSAGES+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 #include <locale.h>
13737 int
13738 main ()
13739 {
13740 return LC_MESSAGES
13741 ;
13742 return 0;
13743 }
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 am_cv_val_LC_MESSAGES=yes
13747 else
13748 am_cv_val_LC_MESSAGES=no
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13752 fi
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13754 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13755 if test $am_cv_val_LC_MESSAGES = yes; then
13756
13757 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13758
13759 fi
13760 fi
13761 USE_NLS=yes
13762
13763
13764 gt_cv_have_gettext=no
13765
13766 CATOBJEXT=NONE
13767 XGETTEXT=:
13768 INTLLIBS=
13769
13770
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13772 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13773 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 gt_save_LIBS="$LIBS"
13777 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <CoreFoundation/CFPreferences.h>
13781 int
13782 main ()
13783 {
13784 CFPreferencesCopyAppValue(NULL, NULL)
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_link "$LINENO"; then :
13790 gt_cv_func_CFPreferencesCopyAppValue=yes
13791 else
13792 gt_cv_func_CFPreferencesCopyAppValue=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 LIBS="$gt_save_LIBS"
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13799 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13800 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13801
13802 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13803
13804 fi
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13806 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13807 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 gt_save_LIBS="$LIBS"
13811 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #include <CoreFoundation/CFLocale.h>
13815 int
13816 main ()
13817 {
13818 CFLocaleCopyCurrent();
13819 ;
13820 return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 gt_cv_func_CFLocaleCopyCurrent=yes
13825 else
13826 gt_cv_func_CFLocaleCopyCurrent=no
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 LIBS="$gt_save_LIBS"
13831 fi
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13833 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13834 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13835
13836 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13837
13838 fi
13839 INTL_MACOSX_LIBS=
13840 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13841 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13842 fi
13843
13844
13845
13846 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13847 if test "x$ac_cv_header_libintl_h" = xyes; then :
13848 gt_cv_func_dgettext_libintl="no"
13849 libintl_extra_libs=""
13850
13851 #
13852 # First check in libc
13853 #
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
13855 $as_echo_n "checking for ngettext in libc... " >&6; }
13856 if ${gt_cv_func_ngettext_libc+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861
13862 #include <libintl.h>
13863
13864 int
13865 main ()
13866 {
13867 return !ngettext ("","", 1)
13868 ;
13869 return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_c_try_link "$LINENO"; then :
13873 gt_cv_func_ngettext_libc=yes
13874 else
13875 gt_cv_func_ngettext_libc=no
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879
13880 fi
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
13882 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
13883
13884 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
13886 $as_echo_n "checking for dgettext in libc... " >&6; }
13887 if ${gt_cv_func_dgettext_libc+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892
13893 #include <libintl.h>
13894
13895 int
13896 main ()
13897 {
13898 return !dgettext ("","")
13899 ;
13900 return 0;
13901 }
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 gt_cv_func_dgettext_libc=yes
13905 else
13906 gt_cv_func_dgettext_libc=no
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
13913 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
13914 fi
13915
13916 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13917 for ac_func in bind_textdomain_codeset
13918 do :
13919 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13920 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
13923 _ACEOF
13924
13925 fi
13926 done
13927
13928 fi
13929
13930 #
13931 # If we don't have everything we want, check in libintl
13932 #
13933 if test "$gt_cv_func_dgettext_libc" != "yes" \
13934 || test "$gt_cv_func_ngettext_libc" != "yes" \
13935 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
13938 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
13939 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lintl $LIBS"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13946
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13950 #ifdef __cplusplus
13951 extern "C"
13952 #endif
13953 char bindtextdomain ();
13954 int
13955 main ()
13956 {
13957 return bindtextdomain ();
13958 ;
13959 return 0;
13960 }
13961 _ACEOF
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_lib_intl_bindtextdomain=yes
13964 else
13965 ac_cv_lib_intl_bindtextdomain=no
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
13972 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
13973 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13975 $as_echo_n "checking for ngettext in -lintl... " >&6; }
13976 if ${ac_cv_lib_intl_ngettext+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-lintl $LIBS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char ngettext ();
13991 int
13992 main ()
13993 {
13994 return ngettext ();
13995 ;
13996 return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_lib_intl_ngettext=yes
14001 else
14002 ac_cv_lib_intl_ngettext=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 LIBS=$ac_check_lib_save_LIBS
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
14009 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
14010 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14012 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14013 if ${ac_cv_lib_intl_dgettext+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 ac_check_lib_save_LIBS=$LIBS
14017 LIBS="-lintl $LIBS"
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14020
14021 /* Override any GCC internal prototype to avoid an error.
14022 Use char because int might match the return type of a GCC
14023 builtin and then its argument prototype would still apply. */
14024 #ifdef __cplusplus
14025 extern "C"
14026 #endif
14027 char dgettext ();
14028 int
14029 main ()
14030 {
14031 return dgettext ();
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"; then :
14037 ac_cv_lib_intl_dgettext=yes
14038 else
14039 ac_cv_lib_intl_dgettext=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 LIBS=$ac_check_lib_save_LIBS
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14046 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14047 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
14048 gt_cv_func_dgettext_libintl=yes
14049 fi
14050
14051 fi
14052
14053 fi
14054
14055
14056 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
14058 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14060 $as_echo "" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
14062 $as_echo_n "checking for ngettext in -lintl... " >&6; }
14063 if ${ac_cv_lib_intl_ngettext+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lintl -liconv $LIBS"
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071 /* Override any GCC internal prototype to avoid an error.
14072 Use char because int might match the return type of a GCC
14073 builtin and then its argument prototype would still apply. */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 char ngettext ();
14078 int
14079 main ()
14080 {
14081 return ngettext ();
14082 ;
14083 return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 ac_cv_lib_intl_ngettext=yes
14088 else
14089 ac_cv_lib_intl_ngettext=no
14090 fi
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14094 fi
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
14096 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
14097 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
14099 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
14100 if ${ac_cv_lib_intl_dcgettext+:} false; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lintl -liconv $LIBS"
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 char dcgettext ();
14115 int
14116 main ()
14117 {
14118 return dcgettext ();
14119 ;
14120 return 0;
14121 }
14122 _ACEOF
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 ac_cv_lib_intl_dcgettext=yes
14125 else
14126 ac_cv_lib_intl_dcgettext=no
14127 fi
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
14133 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
14134 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
14135 gt_cv_func_dgettext_libintl=yes
14136 libintl_extra_libs=-liconv
14137 else
14138 :
14139 fi
14140
14141 else
14142 :
14143 fi
14144
14145 fi
14146
14147 #
14148 # If we found libintl, then check in it for bind_textdomain_codeset();
14149 # we'll prefer libc if neither have bind_textdomain_codeset(),
14150 # and both have dgettext and ngettext
14151 #
14152 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14153 glib_save_LIBS="$LIBS"
14154 LIBS="$LIBS -lintl $libintl_extra_libs"
14155 unset ac_cv_func_bind_textdomain_codeset
14156 for ac_func in bind_textdomain_codeset
14157 do :
14158 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14159 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14162 _ACEOF
14163
14164 fi
14165 done
14166
14167 LIBS="$glib_save_LIBS"
14168
14169 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
14170 gt_cv_func_dgettext_libc=no
14171 else
14172 if test "$gt_cv_func_dgettext_libc" = "yes" \
14173 && test "$gt_cv_func_ngettext_libc" = "yes"; then
14174 gt_cv_func_dgettext_libintl=no
14175 fi
14176 fi
14177 fi
14178 fi
14179
14180 if test "$gt_cv_func_dgettext_libc" = "yes" \
14181 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
14182 gt_cv_have_gettext=yes
14183 fi
14184
14185 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
14186 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS"
14187 fi
14188
14189 if test "$gt_cv_have_gettext" = "yes"; then
14190
14191 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14192
14193 # Extract the first word of "msgfmt", so it can be a program name with args.
14194 set dummy msgfmt; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if ${ac_cv_path_MSGFMT+:} false; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 case "$MSGFMT" in
14201 /*)
14202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14203 ;;
14204 *)
14205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14206 for ac_dir in $PATH; do
14207 test -z "$ac_dir" && ac_dir=.
14208 if test -f $ac_dir/$ac_word; then
14209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
14210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14211 break
14212 fi
14213 fi
14214 done
14215 IFS="$ac_save_ifs"
14216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
14217 ;;
14218 esac
14219 fi
14220 MSGFMT="$ac_cv_path_MSGFMT"
14221 if test "$MSGFMT" != "no"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14223 $as_echo "$MSGFMT" >&6; }
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 fi
14228 if test "$MSGFMT" != "no"; then
14229 glib_save_LIBS="$LIBS"
14230 LIBS="$LIBS $INTLLIBS"
14231 for ac_func in dcgettext
14232 do :
14233 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
14234 if test "x$ac_cv_func_dcgettext" = xyes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 #define HAVE_DCGETTEXT 1
14237 _ACEOF
14238
14239 fi
14240 done
14241
14242 MSGFMT_OPTS=
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
14244 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
14245 cat >conftest.foo <<_ACEOF
14246
14247 msgid ""
14248 msgstr ""
14249 "Content-Type: text/plain; charset=UTF-8\n"
14250 "Project-Id-Version: test 1.0\n"
14251 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
14252 "Last-Translator: test <[email protected]>\n"
14253 "Language-Team: C <[email protected]>\n"
14254 "MIME-Version: 1.0\n"
14255 "Content-Transfer-Encoding: 8bit\n"
14256
14257 _ACEOF
14258 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
14259 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
14260 ac_status=$?
14261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14262 test $ac_status = 0; }; then
14263 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14264 $as_echo "yes" >&6; }
14265 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 echo "$as_me: failed input was:" >&5
14268 sed 's/^/| /' conftest.foo >&5
14269 fi
14270
14271 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14272 set dummy gmsgfmt; ac_word=$2
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274 $as_echo_n "checking for $ac_word... " >&6; }
14275 if ${ac_cv_path_GMSGFMT+:} false; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 case $GMSGFMT in
14279 [\\/]* | ?:[\\/]*)
14280 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14281 ;;
14282 *)
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14285 do
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14290 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 break 2
14293 fi
14294 done
14295 done
14296 IFS=$as_save_IFS
14297
14298 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14299 ;;
14300 esac
14301 fi
14302 GMSGFMT=$ac_cv_path_GMSGFMT
14303 if test -n "$GMSGFMT"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14305 $as_echo "$GMSGFMT" >&6; }
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14309 fi
14310
14311
14312 # Extract the first word of "xgettext", so it can be a program name with args.
14313 set dummy xgettext; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if ${ac_cv_path_XGETTEXT+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 case "$XGETTEXT" in
14320 /*)
14321 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14322 ;;
14323 *)
14324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14325 for ac_dir in $PATH; do
14326 test -z "$ac_dir" && ac_dir=.
14327 if test -f $ac_dir/$ac_word; then
14328 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
14329 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14330 break
14331 fi
14332 fi
14333 done
14334 IFS="$ac_save_ifs"
14335 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14336 ;;
14337 esac
14338 fi
14339 XGETTEXT="$ac_cv_path_XGETTEXT"
14340 if test "$XGETTEXT" != ":"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14342 $as_echo "$XGETTEXT" >&6; }
14343 else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14346 fi
14347
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350
14351 int
14352 main ()
14353 {
14354 extern int _nl_msg_cat_cntr;
14355 return _nl_msg_cat_cntr
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 CATOBJEXT=.gmo
14362 DATADIRNAME=share
14363 else
14364 case $host in
14365 *-*-solaris*)
14366 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14367 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14368 CATOBJEXT=.gmo
14369 DATADIRNAME=share
14370 else
14371 CATOBJEXT=.mo
14372 DATADIRNAME=lib
14373 fi
14374
14375 ;;
14376 *-*-openbsd*)
14377 CATOBJEXT=.mo
14378 DATADIRNAME=share
14379 ;;
14380 *)
14381 CATOBJEXT=.mo
14382 DATADIRNAME=lib
14383 ;;
14384 esac
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext \
14387 conftest$ac_exeext conftest.$ac_ext
14388 LIBS="$glib_save_LIBS"
14389 INSTOBJEXT=.mo
14390 else
14391 gt_cv_have_gettext=no
14392 fi
14393 fi
14394
14395 fi
14396
14397
14398
14399 if test "$gt_cv_have_gettext" = "yes" ; then
14400
14401 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14402
14403 fi
14404
14405 if test "$XGETTEXT" != ":"; then
14406 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
14407 : ;
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14410 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14411 XGETTEXT=":"
14412 fi
14413 fi
14414
14415 # We need to process the po/ directory.
14416 POSUB=po
14417
14418 ac_config_commands="$ac_config_commands default-1"
14419
14420
14421 for lang in $ALL_LINGUAS; do
14422 GMOFILES="$GMOFILES $lang.gmo"
14423 POFILES="$POFILES $lang.po"
14424 done
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438 if test "$gt_cv_have_gettext" = "yes"; then
14439 if test "x$ALL_LINGUAS" = "x"; then
14440 LINGUAS=
14441 else
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14443 $as_echo_n "checking for catalogs to be installed... " >&6; }
14444 NEW_LINGUAS=
14445 for presentlang in $ALL_LINGUAS; do
14446 useit=no
14447 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
14448 desiredlanguages="$LINGUAS"
14449 else
14450 desiredlanguages="$ALL_LINGUAS"
14451 fi
14452 for desiredlang in $desiredlanguages; do
14453 # Use the presentlang catalog if desiredlang is
14454 # a. equal to presentlang, or
14455 # b. a variant of presentlang (because in this case,
14456 # presentlang can be used as a fallback for messages
14457 # which are not translated in the desiredlang catalog).
14458 case "$desiredlang" in
14459 "$presentlang"*) useit=yes;;
14460 esac
14461 done
14462 if test $useit = yes; then
14463 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14464 fi
14465 done
14466 LINGUAS=$NEW_LINGUAS
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14468 $as_echo "$LINGUAS" >&6; }
14469 fi
14470
14471 if test -n "$LINGUAS"; then
14472 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14473 fi
14474 fi
14475
14476 MKINSTALLDIRS=
14477 if test -n "$ac_aux_dir"; then
14478 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14479 fi
14480 if test -z "$MKINSTALLDIRS"; then
14481 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14482 fi
14483
14484
14485 test -d po || mkdir po
14486 if test "x$srcdir" != "x."; then
14487 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14488 posrcprefix="$srcdir/"
14489 else
14490 posrcprefix="../$srcdir/"
14491 fi
14492 else
14493 posrcprefix="../"
14494 fi
14495 rm -f po/POTFILES
14496 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
14497 < $srcdir/po/POTFILES.in > po/POTFILES
14498
14499
14500 ###########################
14501 # gcov coverage reporting
14502 ###########################
14503
14504 # Checks for existence of coverage tools:
14505 # * gcov
14506 # * lcov
14507 # * genhtml
14508 # * gcovr
14509 #
14510 # Sets ac_cv_check_gcov to yes if tooling is present
14511 # and reports the executables to the variables LCOV, GCOVR and GENHTML.
14512 # AC_TDD_GCOV
14513
14514
14515 # Check whether --enable-gcov was given.
14516 if test "${enable_gcov+set}" = set; then :
14517 enableval=$enable_gcov; use_gcov=$enableval
14518 else
14519 use_gcov=no
14520 fi
14521
14522
14523 if test "x$use_gcov" = "xyes"; then
14524 # we need gcc:
14525 if test "$GCC" != "yes"; then
14526 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
14527 fi
14528
14529 # Check if ccache is being used
14530 # Extract the first word of "shtool", so it can be a program name with args.
14531 set dummy shtool; ac_word=$2
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14533 $as_echo_n "checking for $ac_word... " >&6; }
14534 if ${ac_cv_prog_SHTOOL+:} false; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14537 if test -n "$SHTOOL"; then
14538 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
14539 else
14540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14541 for as_dir in $PATH
14542 do
14543 IFS=$as_save_IFS
14544 test -z "$as_dir" && as_dir=.
14545 for ac_exec_ext in '' $ac_executable_extensions; do
14546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14547 ac_cv_prog_SHTOOL="shtool"
14548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14549 break 2
14550 fi
14551 done
14552 done
14553 IFS=$as_save_IFS
14554
14555 fi
14556 fi
14557 SHTOOL=$ac_cv_prog_SHTOOL
14558 if test -n "$SHTOOL"; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
14560 $as_echo "$SHTOOL" >&6; }
14561 else
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563 $as_echo "no" >&6; }
14564 fi
14565
14566
14567 case `$SHTOOL path $CC` in
14568 *ccache*) gcc_ccache=yes;;
14569 *) gcc_ccache=no;;
14570 esac
14571
14572 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
14573 as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
14574 fi
14575
14576 lcov_version_list="1.6 1.7 1.8 1.9"
14577 # Extract the first word of "lcov", so it can be a program name with args.
14578 set dummy lcov; ac_word=$2
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14580 $as_echo_n "checking for $ac_word... " >&6; }
14581 if ${ac_cv_prog_LCOV+:} false; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 if test -n "$LCOV"; then
14585 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14586 else
14587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588 for as_dir in $PATH
14589 do
14590 IFS=$as_save_IFS
14591 test -z "$as_dir" && as_dir=.
14592 for ac_exec_ext in '' $ac_executable_extensions; do
14593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14594 ac_cv_prog_LCOV="lcov"
14595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 break 2
14597 fi
14598 done
14599 done
14600 IFS=$as_save_IFS
14601
14602 fi
14603 fi
14604 LCOV=$ac_cv_prog_LCOV
14605 if test -n "$LCOV"; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14607 $as_echo "$LCOV" >&6; }
14608 else
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610 $as_echo "no" >&6; }
14611 fi
14612
14613
14614 # Extract the first word of "genhtml", so it can be a program name with args.
14615 set dummy genhtml; ac_word=$2
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617 $as_echo_n "checking for $ac_word... " >&6; }
14618 if ${ac_cv_prog_GENHTML+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 if test -n "$GENHTML"; then
14622 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14623 else
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 for ac_exec_ext in '' $ac_executable_extensions; do
14630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14631 ac_cv_prog_GENHTML="genhtml"
14632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 break 2
14634 fi
14635 done
14636 done
14637 IFS=$as_save_IFS
14638
14639 fi
14640 fi
14641 GENHTML=$ac_cv_prog_GENHTML
14642 if test -n "$GENHTML"; then
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14644 $as_echo "$GENHTML" >&6; }
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648 fi
14649
14650
14651
14652 if test "$LCOV"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14654 $as_echo_n "checking for lcov version... " >&6; }
14655 if ${glib_cv_lcov_version+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658
14659 glib_cv_lcov_version=invalid
14660 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14661 for lcov_check_version in $lcov_version_list; do
14662 if test "$lcov_version" = "$lcov_check_version"; then
14663 glib_cv_lcov_version="$lcov_check_version (ok)"
14664 fi
14665 done
14666
14667 fi
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5
14669 $as_echo "$glib_cv_lcov_version" >&6; }
14670 else
14671 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14672 as_fn_error $? "$lcov_msg" "$LINENO" 5
14673 fi
14674
14675 case $glib_cv_lcov_version in
14676 ""|invalid)
14677 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14678 as_fn_error $? "$lcov_msg" "$LINENO" 5
14679 LCOV="exit 0;"
14680 ;;
14681 esac
14682
14683 if test -z "$GENHTML"; then
14684 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14685 fi
14686
14687 ac_cv_check_gcov=yes
14688 ac_cv_check_lcov=yes
14689
14690 # Remove all optimization flags from CFLAGS
14691
14692 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
14693
14694
14695 # Add the special gcc flags
14696 COVERAGE_CFLAGS="-O0 -fprofile-arcs -ftest-coverage"
14697 COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"
14698 COVERAGE_LDFLAGS="-lgcov"
14699
14700 # Check availability of gcovr
14701 # Extract the first word of "gcovr", so it can be a program name with args.
14702 set dummy gcovr; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704 $as_echo_n "checking for $ac_word... " >&6; }
14705 if ${ac_cv_prog_GCOVR+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 if test -n "$GCOVR"; then
14709 ac_cv_prog_GCOVR="$GCOVR" # Let the user override the test.
14710 else
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14713 do
14714 IFS=$as_save_IFS
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_GCOVR="gcovr"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14720 break 2
14721 fi
14722 done
14723 done
14724 IFS=$as_save_IFS
14725
14726 fi
14727 fi
14728 GCOVR=$ac_cv_prog_GCOVR
14729 if test -n "$GCOVR"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOVR" >&5
14731 $as_echo "$GCOVR" >&6; }
14732 else
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14735 fi
14736
14737
14738 if test -z "$GCOVR"; then
14739 ac_cv_check_gcovr=no
14740 else
14741 ac_cv_check_gcovr=yes
14742 fi
14743
14744 fi
14745
14746 if test "x$ac_cv_check_gcov" = xyes; then
14747 HAVE_GCOV_TRUE=
14748 HAVE_GCOV_FALSE='#'
14749 else
14750 HAVE_GCOV_TRUE='#'
14751 HAVE_GCOV_FALSE=
14752 fi
14753
14754 if test "x$ac_cv_check_lcov" = xyes; then
14755 HAVE_LCOV_TRUE=
14756 HAVE_LCOV_FALSE='#'
14757 else
14758 HAVE_LCOV_TRUE='#'
14759 HAVE_LCOV_FALSE=
14760 fi
14761
14762 if test "x$ac_cv_check_gcovr" = xyes; then
14763 HAVE_GCOVR_TRUE=
14764 HAVE_GCOVR_FALSE='#'
14765 else
14766 HAVE_GCOVR_TRUE='#'
14767 HAVE_GCOVR_FALSE=
14768 fi
14769
14770
14771
14772
14773
14774 ###########################
14775 # Enable bustle tests
14776 ###########################
14777
14778 # Extract the first word of "bustle", so it can be a program name with args.
14779 set dummy bustle; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781 $as_echo_n "checking for $ac_word... " >&6; }
14782 if ${ac_cv_prog_have_bustle+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 if test -n "$have_bustle"; then
14786 ac_cv_prog_have_bustle="$have_bustle" # Let the user override the test.
14787 else
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14790 do
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_have_bustle="yes"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14797 break 2
14798 fi
14799 done
14800 done
14801 IFS=$as_save_IFS
14802
14803 fi
14804 fi
14805 have_bustle=$ac_cv_prog_have_bustle
14806 if test -n "$have_bustle"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_bustle" >&5
14808 $as_echo "$have_bustle" >&6; }
14809 else
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 $as_echo "no" >&6; }
14812 fi
14813
14814
14815 if test "x$ac_cv_prog_have_bustle" = xyes; then
14816 TEST_BUSTLE_TRUE=
14817 TEST_BUSTLE_FALSE='#'
14818 else
14819 TEST_BUSTLE_TRUE='#'
14820 TEST_BUSTLE_FALSE=
14821 fi
14822
14823
14824 ###########################
14825 # Files
14826 ###########################
14827
14828 ac_config_files="$ac_config_files Makefile po/Makefile.in libdbustest/Makefile src/Makefile data/Makefile tests/Makefile"
14829
14830 cat >confcache <<\_ACEOF
14831 # This file is a shell script that caches the results of configure
14832 # tests run on this system so they can be shared between configure
14833 # scripts and configure runs, see configure's option --config-cache.
14834 # It is not useful on other systems. If it contains results you don't
14835 # want to keep, you may remove or edit it.
14836 #
14837 # config.status only pays attention to the cache file if you give it
14838 # the --recheck option to rerun configure.
14839 #
14840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14842 # following values.
14843
14844 _ACEOF
14845
14846 # The following way of writing the cache mishandles newlines in values,
14847 # but we know of no workaround that is simple, portable, and efficient.
14848 # So, we kill variables containing newlines.
14849 # Ultrix sh set writes to stderr and can't be redirected directly,
14850 # and sets the high bit in the cache file unless we assign to the vars.
14851 (
14852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14853 eval ac_val=\$$ac_var
14854 case $ac_val in #(
14855 *${as_nl}*)
14856 case $ac_var in #(
14857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14859 esac
14860 case $ac_var in #(
14861 _ | IFS | as_nl) ;; #(
14862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14863 *) { eval $ac_var=; unset $ac_var;} ;;
14864 esac ;;
14865 esac
14866 done
14867
14868 (set) 2>&1 |
14869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14870 *${as_nl}ac_space=\ *)
14871 # `set' does not quote correctly, so add quotes: double-quote
14872 # substitution turns \\\\ into \\, and sed turns \\ into \.
14873 sed -n \
14874 "s/'/'\\\\''/g;
14875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14876 ;; #(
14877 *)
14878 # `set' quotes correctly as required by POSIX, so do not add quotes.
14879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14880 ;;
14881 esac |
14882 sort
14883 ) |
14884 sed '
14885 /^ac_cv_env_/b end
14886 t clear
14887 :clear
14888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14889 t end
14890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14891 :end' >>confcache
14892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14893 if test -w "$cache_file"; then
14894 if test "x$cache_file" != "x/dev/null"; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14896 $as_echo "$as_me: updating cache $cache_file" >&6;}
14897 if test ! -f "$cache_file" || test -h "$cache_file"; then
14898 cat confcache >"$cache_file"
14899 else
14900 case $cache_file in #(
14901 */* | ?:*)
14902 mv -f confcache "$cache_file"$$ &&
14903 mv -f "$cache_file"$$ "$cache_file" ;; #(
14904 *)
14905 mv -f confcache "$cache_file" ;;
14906 esac
14907 fi
14908 fi
14909 else
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14912 fi
14913 fi
14914 rm -f confcache
14915
14916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14917 # Let make expand exec_prefix.
14918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14919
14920 DEFS=-DHAVE_CONFIG_H
14921
14922 ac_libobjs=
14923 ac_ltlibobjs=
14924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14925 # 1. Remove the extension, and $U if already installed.
14926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14929 # will be set to the directory where LIBOBJS objects are built.
14930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14932 done
14933 LIBOBJS=$ac_libobjs
14934
14935 LTLIBOBJS=$ac_ltlibobjs
14936
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14939 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14940 if test -n "$am_sleep_pid"; then
14941 # Hide warnings about reused PIDs.
14942 wait $am_sleep_pid 2>/dev/null
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14945 $as_echo "done" >&6; }
14946 if test -n "$EXEEXT"; then
14947 am__EXEEXT_TRUE=
14948 am__EXEEXT_FALSE='#'
14949 else
14950 am__EXEEXT_TRUE='#'
14951 am__EXEEXT_FALSE=
14952 fi
14953
14954 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14955 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14957 fi
14958
14959 ac_config_commands="$ac_config_commands po/stamp-it"
14960
14961
14962 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14963 as_fn_error $? "conditional \"AMDEP\" was never defined.
14964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14965 fi
14966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14969 fi
14970 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14971 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14973 fi
14974 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
14975 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
14976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14977 fi
14978 if test -z "${HAVE_LCOV_TRUE}" && test -z "${HAVE_LCOV_FALSE}"; then
14979 as_fn_error $? "conditional \"HAVE_LCOV\" was never defined.
14980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14981 fi
14982 if test -z "${HAVE_GCOVR_TRUE}" && test -z "${HAVE_GCOVR_FALSE}"; then
14983 as_fn_error $? "conditional \"HAVE_GCOVR\" was never defined.
14984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14985 fi
14986 if test -z "${TEST_BUSTLE_TRUE}" && test -z "${TEST_BUSTLE_FALSE}"; then
14987 as_fn_error $? "conditional \"TEST_BUSTLE\" was never defined.
14988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14989 fi
14990
14991 : "${CONFIG_STATUS=./config.status}"
14992 ac_write_fail=0
14993 ac_clean_files_save=$ac_clean_files
14994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14996 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14997 as_write_fail=0
14998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14999 #! $SHELL
15000 # Generated by $as_me.
15001 # Run this file to recreate the current configuration.
15002 # Compiler output produced by configure, useful for debugging
15003 # configure, is in config.log if it exists.
15004
15005 debug=false
15006 ac_cs_recheck=false
15007 ac_cs_silent=false
15008
15009 SHELL=\${CONFIG_SHELL-$SHELL}
15010 export SHELL
15011 _ASEOF
15012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15013 ## -------------------- ##
15014 ## M4sh Initialization. ##
15015 ## -------------------- ##
15016
15017 # Be more Bourne compatible
15018 DUALCASE=1; export DUALCASE # for MKS sh
15019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15020 emulate sh
15021 NULLCMD=:
15022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15023 # is contrary to our usage. Disable this feature.
15024 alias -g '${1+"$@"}'='"$@"'
15025 setopt NO_GLOB_SUBST
15026 else
15027 case `(set -o) 2>/dev/null` in #(
15028 *posix*) :
15029 set -o posix ;; #(
15030 *) :
15031 ;;
15032 esac
15033 fi
15034
15035
15036 as_nl='
15037 '
15038 export as_nl
15039 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15043 # Prefer a ksh shell builtin over an external printf program on Solaris,
15044 # but without wasting forks for bash or zsh.
15045 if test -z "$BASH_VERSION$ZSH_VERSION" \
15046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15047 as_echo='print -r --'
15048 as_echo_n='print -rn --'
15049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15050 as_echo='printf %s\n'
15051 as_echo_n='printf %s'
15052 else
15053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15055 as_echo_n='/usr/ucb/echo -n'
15056 else
15057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15058 as_echo_n_body='eval
15059 arg=$1;
15060 case $arg in #(
15061 *"$as_nl"*)
15062 expr "X$arg" : "X\\(.*\\)$as_nl";
15063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15064 esac;
15065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15066 '
15067 export as_echo_n_body
15068 as_echo_n='sh -c $as_echo_n_body as_echo'
15069 fi
15070 export as_echo_body
15071 as_echo='sh -c $as_echo_body as_echo'
15072 fi
15073
15074 # The user is always right.
15075 if test "${PATH_SEPARATOR+set}" != set; then
15076 PATH_SEPARATOR=:
15077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15079 PATH_SEPARATOR=';'
15080 }
15081 fi
15082
15083
15084 # IFS
15085 # We need space, tab and new line, in precisely that order. Quoting is
15086 # there to prevent editors from complaining about space-tab.
15087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15088 # splitting by setting IFS to empty value.)
15089 IFS=" "" $as_nl"
15090
15091 # Find who we are. Look in the path if we contain no directory separator.
15092 as_myself=
15093 case $0 in #((
15094 *[\\/]* ) as_myself=$0 ;;
15095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096 for as_dir in $PATH
15097 do
15098 IFS=$as_save_IFS
15099 test -z "$as_dir" && as_dir=.
15100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15101 done
15102 IFS=$as_save_IFS
15103
15104 ;;
15105 esac
15106 # We did not find ourselves, most probably we were run as `sh COMMAND'
15107 # in which case we are not to be found in the path.
15108 if test "x$as_myself" = x; then
15109 as_myself=$0
15110 fi
15111 if test ! -f "$as_myself"; then
15112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15113 exit 1
15114 fi
15115
15116 # Unset variables that we do not need and which cause bugs (e.g. in
15117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15118 # suppresses any "Segmentation fault" message there. '((' could
15119 # trigger a bug in pdksh 5.2.14.
15120 for as_var in BASH_ENV ENV MAIL MAILPATH
15121 do eval test x\${$as_var+set} = xset \
15122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15123 done
15124 PS1='$ '
15125 PS2='> '
15126 PS4='+ '
15127
15128 # NLS nuisances.
15129 LC_ALL=C
15130 export LC_ALL
15131 LANGUAGE=C
15132 export LANGUAGE
15133
15134 # CDPATH.
15135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15136
15137
15138 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15139 # ----------------------------------------
15140 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15141 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15142 # script with STATUS, using 1 if that was 0.
15143 as_fn_error ()
15144 {
15145 as_status=$1; test $as_status -eq 0 && as_status=1
15146 if test "$4"; then
15147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15149 fi
15150 $as_echo "$as_me: error: $2" >&2
15151 as_fn_exit $as_status
15152 } # as_fn_error
15153
15154
15155 # as_fn_set_status STATUS
15156 # -----------------------
15157 # Set $? to STATUS, without forking.
15158 as_fn_set_status ()
15159 {
15160 return $1
15161 } # as_fn_set_status
15162
15163 # as_fn_exit STATUS
15164 # -----------------
15165 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15166 as_fn_exit ()
15167 {
15168 set +e
15169 as_fn_set_status $1
15170 exit $1
15171 } # as_fn_exit
15172
15173 # as_fn_unset VAR
15174 # ---------------
15175 # Portably unset VAR.
15176 as_fn_unset ()
15177 {
15178 { eval $1=; unset $1;}
15179 }
15180 as_unset=as_fn_unset
15181 # as_fn_append VAR VALUE
15182 # ----------------------
15183 # Append the text in VALUE to the end of the definition contained in VAR. Take
15184 # advantage of any shell optimizations that allow amortized linear growth over
15185 # repeated appends, instead of the typical quadratic growth present in naive
15186 # implementations.
15187 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15188 eval 'as_fn_append ()
15189 {
15190 eval $1+=\$2
15191 }'
15192 else
15193 as_fn_append ()
15194 {
15195 eval $1=\$$1\$2
15196 }
15197 fi # as_fn_append
15198
15199 # as_fn_arith ARG...
15200 # ------------------
15201 # Perform arithmetic evaluation on the ARGs, and store the result in the
15202 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15203 # must be portable across $(()) and expr.
15204 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15205 eval 'as_fn_arith ()
15206 {
15207 as_val=$(( $* ))
15208 }'
15209 else
15210 as_fn_arith ()
15211 {
15212 as_val=`expr "$@" || test $? -eq 1`
15213 }
15214 fi # as_fn_arith
15215
15216
15217 if expr a : '\(a\)' >/dev/null 2>&1 &&
15218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15219 as_expr=expr
15220 else
15221 as_expr=false
15222 fi
15223
15224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15225 as_basename=basename
15226 else
15227 as_basename=false
15228 fi
15229
15230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15231 as_dirname=dirname
15232 else
15233 as_dirname=false
15234 fi
15235
15236 as_me=`$as_basename -- "$0" ||
15237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15238 X"$0" : 'X\(//\)$' \| \
15239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15240 $as_echo X/"$0" |
15241 sed '/^.*\/\([^/][^/]*\)\/*$/{
15242 s//\1/
15243 q
15244 }
15245 /^X\/\(\/\/\)$/{
15246 s//\1/
15247 q
15248 }
15249 /^X\/\(\/\).*/{
15250 s//\1/
15251 q
15252 }
15253 s/.*/./; q'`
15254
15255 # Avoid depending upon Character Ranges.
15256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15259 as_cr_digits='0123456789'
15260 as_cr_alnum=$as_cr_Letters$as_cr_digits
15261
15262 ECHO_C= ECHO_N= ECHO_T=
15263 case `echo -n x` in #(((((
15264 -n*)
15265 case `echo 'xy\c'` in
15266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15267 xy) ECHO_C='\c';;
15268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15269 ECHO_T=' ';;
15270 esac;;
15271 *)
15272 ECHO_N='-n';;
15273 esac
15274
15275 rm -f conf$$ conf$$.exe conf$$.file
15276 if test -d conf$$.dir; then
15277 rm -f conf$$.dir/conf$$.file
15278 else
15279 rm -f conf$$.dir
15280 mkdir conf$$.dir 2>/dev/null
15281 fi
15282 if (echo >conf$$.file) 2>/dev/null; then
15283 if ln -s conf$$.file conf$$ 2>/dev/null; then
15284 as_ln_s='ln -s'
15285 # ... but there are two gotchas:
15286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15288 # In both cases, we have to default to `cp -pR'.
15289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15290 as_ln_s='cp -pR'
15291 elif ln conf$$.file conf$$ 2>/dev/null; then
15292 as_ln_s=ln
15293 else
15294 as_ln_s='cp -pR'
15295 fi
15296 else
15297 as_ln_s='cp -pR'
15298 fi
15299 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15300 rmdir conf$$.dir 2>/dev/null
15301
15302
15303 # as_fn_mkdir_p
15304 # -------------
15305 # Create "$as_dir" as a directory, including parents if necessary.
15306 as_fn_mkdir_p ()
15307 {
15308
15309 case $as_dir in #(
15310 -*) as_dir=./$as_dir;;
15311 esac
15312 test -d "$as_dir" || eval $as_mkdir_p || {
15313 as_dirs=
15314 while :; do
15315 case $as_dir in #(
15316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15317 *) as_qdir=$as_dir;;
15318 esac
15319 as_dirs="'$as_qdir' $as_dirs"
15320 as_dir=`$as_dirname -- "$as_dir" ||
15321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$as_dir" : 'X\(//\)[^/]' \| \
15323 X"$as_dir" : 'X\(//\)$' \| \
15324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15325 $as_echo X"$as_dir" |
15326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15327 s//\1/
15328 q
15329 }
15330 /^X\(\/\/\)[^/].*/{
15331 s//\1/
15332 q
15333 }
15334 /^X\(\/\/\)$/{
15335 s//\1/
15336 q
15337 }
15338 /^X\(\/\).*/{
15339 s//\1/
15340 q
15341 }
15342 s/.*/./; q'`
15343 test -d "$as_dir" && break
15344 done
15345 test -z "$as_dirs" || eval "mkdir $as_dirs"
15346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15347
15348
15349 } # as_fn_mkdir_p
15350 if mkdir -p . 2>/dev/null; then
15351 as_mkdir_p='mkdir -p "$as_dir"'
15352 else
15353 test -d ./-p && rmdir ./-p
15354 as_mkdir_p=false
15355 fi
15356
15357
15358 # as_fn_executable_p FILE
15359 # -----------------------
15360 # Test if FILE is an executable regular file.
15361 as_fn_executable_p ()
15362 {
15363 test -f "$1" && test -x "$1"
15364 } # as_fn_executable_p
15365 as_test_x='test -x'
15366 as_executable_p=as_fn_executable_p
15367
15368 # Sed expression to map a string onto a valid CPP name.
15369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15370
15371 # Sed expression to map a string onto a valid variable name.
15372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15373
15374
15375 exec 6>&1
15376 ## ----------------------------------- ##
15377 ## Main body of $CONFIG_STATUS script. ##
15378 ## ----------------------------------- ##
15379 _ASEOF
15380 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15381
15382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383 # Save the log message, to keep $0 and so on meaningful, and to
15384 # report actual input values of CONFIG_FILES etc. instead of their
15385 # values after options handling.
15386 ac_log="
15387 This file was extended by dbus-test-runner $as_me 19.04.0, which was
15388 generated by GNU Autoconf 2.69. Invocation command line was
15389
15390 CONFIG_FILES = $CONFIG_FILES
15391 CONFIG_HEADERS = $CONFIG_HEADERS
15392 CONFIG_LINKS = $CONFIG_LINKS
15393 CONFIG_COMMANDS = $CONFIG_COMMANDS
15394 $ $0 $@
15395
15396 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15397 "
15398
15399 _ACEOF
15400
15401 case $ac_config_files in *"
15402 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15403 esac
15404
15405 case $ac_config_headers in *"
15406 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15407 esac
15408
15409
15410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15411 # Files that config.status was made for.
15412 config_files="$ac_config_files"
15413 config_headers="$ac_config_headers"
15414 config_commands="$ac_config_commands"
15415
15416 _ACEOF
15417
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419 ac_cs_usage="\
15420 \`$as_me' instantiates files and other configuration actions
15421 from templates according to the current configuration. Unless the files
15422 and actions are specified as TAGs, all are instantiated by default.
15423
15424 Usage: $0 [OPTION]... [TAG]...
15425
15426 -h, --help print this help, then exit
15427 -V, --version print version number and configuration settings, then exit
15428 --config print configuration, then exit
15429 -q, --quiet, --silent
15430 do not print progress messages
15431 -d, --debug don't remove temporary files
15432 --recheck update $as_me by reconfiguring in the same conditions
15433 --file=FILE[:TEMPLATE]
15434 instantiate the configuration file FILE
15435 --header=FILE[:TEMPLATE]
15436 instantiate the configuration header FILE
15437
15438 Configuration files:
15439 $config_files
15440
15441 Configuration headers:
15442 $config_headers
15443
15444 Configuration commands:
15445 $config_commands
15446
15447 Report bugs to <[email protected]>."
15448
15449 _ACEOF
15450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15451 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15452 ac_cs_version="\\
15453 dbus-test-runner config.status 19.04.0
15454 configured by $0, generated by GNU Autoconf 2.69,
15455 with options \\"\$ac_cs_config\\"
15456
15457 Copyright (C) 2012 Free Software Foundation, Inc.
15458 This config.status script is free software; the Free Software Foundation
15459 gives unlimited permission to copy, distribute and modify it."
15460
15461 ac_pwd='$ac_pwd'
15462 srcdir='$srcdir'
15463 INSTALL='$INSTALL'
15464 MKDIR_P='$MKDIR_P'
15465 AWK='$AWK'
15466 test -n "\$AWK" || AWK=awk
15467 _ACEOF
15468
15469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470 # The default lists apply if the user does not specify any file.
15471 ac_need_defaults=:
15472 while test $# != 0
15473 do
15474 case $1 in
15475 --*=?*)
15476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15478 ac_shift=:
15479 ;;
15480 --*=)
15481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15482 ac_optarg=
15483 ac_shift=:
15484 ;;
15485 *)
15486 ac_option=$1
15487 ac_optarg=$2
15488 ac_shift=shift
15489 ;;
15490 esac
15491
15492 case $ac_option in
15493 # Handling of the options.
15494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15495 ac_cs_recheck=: ;;
15496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15497 $as_echo "$ac_cs_version"; exit ;;
15498 --config | --confi | --conf | --con | --co | --c )
15499 $as_echo "$ac_cs_config"; exit ;;
15500 --debug | --debu | --deb | --de | --d | -d )
15501 debug=: ;;
15502 --file | --fil | --fi | --f )
15503 $ac_shift
15504 case $ac_optarg in
15505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15506 '') as_fn_error $? "missing file argument" ;;
15507 esac
15508 as_fn_append CONFIG_FILES " '$ac_optarg'"
15509 ac_need_defaults=false;;
15510 --header | --heade | --head | --hea )
15511 $ac_shift
15512 case $ac_optarg in
15513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15514 esac
15515 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15516 ac_need_defaults=false;;
15517 --he | --h)
15518 # Conflict between --help and --header
15519 as_fn_error $? "ambiguous option: \`$1'
15520 Try \`$0 --help' for more information.";;
15521 --help | --hel | -h )
15522 $as_echo "$ac_cs_usage"; exit ;;
15523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15525 ac_cs_silent=: ;;
15526
15527 # This is an error.
15528 -*) as_fn_error $? "unrecognized option: \`$1'
15529 Try \`$0 --help' for more information." ;;
15530
15531 *) as_fn_append ac_config_targets " $1"
15532 ac_need_defaults=false ;;
15533
15534 esac
15535 shift
15536 done
15537
15538 ac_configure_extra_args=
15539
15540 if $ac_cs_silent; then
15541 exec 6>/dev/null
15542 ac_configure_extra_args="$ac_configure_extra_args --silent"
15543 fi
15544
15545 _ACEOF
15546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15547 if \$ac_cs_recheck; then
15548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15549 shift
15550 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15551 CONFIG_SHELL='$SHELL'
15552 export CONFIG_SHELL
15553 exec "\$@"
15554 fi
15555
15556 _ACEOF
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558 exec 5>>config.log
15559 {
15560 echo
15561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15562 ## Running $as_me. ##
15563 _ASBOX
15564 $as_echo "$ac_log"
15565 } >&5
15566
15567 _ACEOF
15568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569 #
15570 # INIT-COMMANDS
15571 #
15572 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15573
15574
15575 # The HP-UX ksh and POSIX shell print the target directory to stdout
15576 # if CDPATH is set.
15577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15578
15579 sed_quote_subst='$sed_quote_subst'
15580 double_quote_subst='$double_quote_subst'
15581 delay_variable_subst='$delay_variable_subst'
15582 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15583 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15584 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15585 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15586 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15587 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15588 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15589 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15590 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15591 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15592 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15593 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15594 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15595 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15596 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15597 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15598 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15599 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15600 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15601 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15602 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15603 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15604 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15605 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15606 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15607 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15608 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15609 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15610 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15611 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15612 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15613 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15614 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15615 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15616 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15617 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15618 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15619 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15620 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15621 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15622 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15623 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15624 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15625 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15626 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15627 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15628 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15629 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15630 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15631 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15632 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15633 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15634 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15635 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15636 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15637 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15638 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15639 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15640 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"`'
15641 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15642 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15643 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15644 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15645 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15646 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15647 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15648 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15649 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15650 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15651 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15652 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15653 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15654 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15655 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15656 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15657 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15658 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15659 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15660 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15661 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15662 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15663 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15664 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15665 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15666 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15667 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15668 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15669 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15670 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15671 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15672 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15673 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15674 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15675 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15676 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15677 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15678 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15679 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15680 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15681 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15682 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15683 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15684 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15685 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15686 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15687 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15688 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15689 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15690 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15691 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15692 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15693 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15694 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15695 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15696 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15697 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15698 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15699 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15700 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15701 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15702 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15703 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15704 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15705 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15706 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15707 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15708 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15709 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15710 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15711 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15712 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15713 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15714 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15715 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15716 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15717
15718 LTCC='$LTCC'
15719 LTCFLAGS='$LTCFLAGS'
15720 compiler='$compiler_DEFAULT'
15721
15722 # A function that is used when there is no print builtin or printf.
15723 func_fallback_echo ()
15724 {
15725 eval 'cat <<_LTECHO_EOF
15726 \$1
15727 _LTECHO_EOF'
15728 }
15729
15730 # Quote evaled strings.
15731 for var in SHELL \
15732 ECHO \
15733 PATH_SEPARATOR \
15734 SED \
15735 GREP \
15736 EGREP \
15737 FGREP \
15738 LD \
15739 NM \
15740 LN_S \
15741 lt_SP2NL \
15742 lt_NL2SP \
15743 reload_flag \
15744 OBJDUMP \
15745 deplibs_check_method \
15746 file_magic_cmd \
15747 file_magic_glob \
15748 want_nocaseglob \
15749 DLLTOOL \
15750 sharedlib_from_linklib_cmd \
15751 AR \
15752 AR_FLAGS \
15753 archiver_list_spec \
15754 STRIP \
15755 RANLIB \
15756 CC \
15757 CFLAGS \
15758 compiler \
15759 lt_cv_sys_global_symbol_pipe \
15760 lt_cv_sys_global_symbol_to_cdecl \
15761 lt_cv_sys_global_symbol_to_import \
15762 lt_cv_sys_global_symbol_to_c_name_address \
15763 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15764 lt_cv_nm_interface \
15765 nm_file_list_spec \
15766 lt_cv_truncate_bin \
15767 lt_prog_compiler_no_builtin_flag \
15768 lt_prog_compiler_pic \
15769 lt_prog_compiler_wl \
15770 lt_prog_compiler_static \
15771 lt_cv_prog_compiler_c_o \
15772 need_locks \
15773 MANIFEST_TOOL \
15774 DSYMUTIL \
15775 NMEDIT \
15776 LIPO \
15777 OTOOL \
15778 OTOOL64 \
15779 shrext_cmds \
15780 export_dynamic_flag_spec \
15781 whole_archive_flag_spec \
15782 compiler_needs_object \
15783 with_gnu_ld \
15784 allow_undefined_flag \
15785 no_undefined_flag \
15786 hardcode_libdir_flag_spec \
15787 hardcode_libdir_separator \
15788 exclude_expsyms \
15789 include_expsyms \
15790 file_list_spec \
15791 variables_saved_for_relink \
15792 libname_spec \
15793 library_names_spec \
15794 soname_spec \
15795 install_override_mode \
15796 finish_eval \
15797 old_striplib \
15798 striplib; do
15799 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15800 *[\\\\\\\`\\"\\\$]*)
15801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15802 ;;
15803 *)
15804 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15805 ;;
15806 esac
15807 done
15808
15809 # Double-quote double-evaled strings.
15810 for var in reload_cmds \
15811 old_postinstall_cmds \
15812 old_postuninstall_cmds \
15813 old_archive_cmds \
15814 extract_expsyms_cmds \
15815 old_archive_from_new_cmds \
15816 old_archive_from_expsyms_cmds \
15817 archive_cmds \
15818 archive_expsym_cmds \
15819 module_cmds \
15820 module_expsym_cmds \
15821 export_symbols_cmds \
15822 prelink_cmds \
15823 postlink_cmds \
15824 postinstall_cmds \
15825 postuninstall_cmds \
15826 finish_cmds \
15827 sys_lib_search_path_spec \
15828 configure_time_dlsearch_path \
15829 configure_time_lt_sys_library_path; do
15830 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15831 *[\\\\\\\`\\"\\\$]*)
15832 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15833 ;;
15834 *)
15835 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15836 ;;
15837 esac
15838 done
15839
15840 ac_aux_dir='$ac_aux_dir'
15841
15842 # See if we are running on zsh, and set the options that allow our
15843 # commands through without removal of \ escapes INIT.
15844 if test -n "\${ZSH_VERSION+set}"; then
15845 setopt NO_GLOB_SUBST
15846 fi
15847
15848
15849 PACKAGE='$PACKAGE'
15850 VERSION='$VERSION'
15851 RM='$RM'
15852 ofile='$ofile'
15853
15854
15855
15856
15857
15858 _ACEOF
15859
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861
15862 # Handling of arguments.
15863 for ac_config_target in $ac_config_targets
15864 do
15865 case $ac_config_target in
15866 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15867 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15868 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15869 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15870 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15871 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15872 "libdbustest/Makefile") CONFIG_FILES="$CONFIG_FILES libdbustest/Makefile" ;;
15873 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15874 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
15875 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15876 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
15877
15878 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15879 esac
15880 done
15881
15882
15883 # If the user did not use the arguments to specify the items to instantiate,
15884 # then the envvar interface is used. Set only those that are not.
15885 # We use the long form for the default assignment because of an extremely
15886 # bizarre bug on SunOS 4.1.3.
15887 if $ac_need_defaults; then
15888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15891 fi
15892
15893 # Have a temporary directory for convenience. Make it in the build tree
15894 # simply because there is no reason against having it here, and in addition,
15895 # creating and moving files from /tmp can sometimes cause problems.
15896 # Hook for its removal unless debugging.
15897 # Note that there is a small window in which the directory will not be cleaned:
15898 # after its creation but before its name has been assigned to `$tmp'.
15899 $debug ||
15900 {
15901 tmp= ac_tmp=
15902 trap 'exit_status=$?
15903 : "${ac_tmp:=$tmp}"
15904 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15905 ' 0
15906 trap 'as_fn_exit 1' 1 2 13 15
15907 }
15908 # Create a (secure) tmp directory for tmp files.
15909
15910 {
15911 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15912 test -d "$tmp"
15913 } ||
15914 {
15915 tmp=./conf$$-$RANDOM
15916 (umask 077 && mkdir "$tmp")
15917 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15918 ac_tmp=$tmp
15919
15920 # Set up the scripts for CONFIG_FILES section.
15921 # No need to generate them if there are no CONFIG_FILES.
15922 # This happens for instance with `./config.status config.h'.
15923 if test -n "$CONFIG_FILES"; then
15924
15925
15926 ac_cr=`echo X | tr X '\015'`
15927 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15928 # But we know of no other shell where ac_cr would be empty at this
15929 # point, so we can use a bashism as a fallback.
15930 if test "x$ac_cr" = x; then
15931 eval ac_cr=\$\'\\r\'
15932 fi
15933 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15934 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15935 ac_cs_awk_cr='\\r'
15936 else
15937 ac_cs_awk_cr=$ac_cr
15938 fi
15939
15940 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15941 _ACEOF
15942
15943
15944 {
15945 echo "cat >conf$$subs.awk <<_ACEOF" &&
15946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15947 echo "_ACEOF"
15948 } >conf$$subs.sh ||
15949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15950 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15951 ac_delim='%!_!# '
15952 for ac_last_try in false false false false false :; do
15953 . ./conf$$subs.sh ||
15954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15955
15956 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15957 if test $ac_delim_n = $ac_delim_num; then
15958 break
15959 elif $ac_last_try; then
15960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15961 else
15962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15963 fi
15964 done
15965 rm -f conf$$subs.sh
15966
15967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15968 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15969 _ACEOF
15970 sed -n '
15971 h
15972 s/^/S["/; s/!.*/"]=/
15973 p
15974 g
15975 s/^[^!]*!//
15976 :repl
15977 t repl
15978 s/'"$ac_delim"'$//
15979 t delim
15980 :nl
15981 h
15982 s/\(.\{148\}\)..*/\1/
15983 t more1
15984 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15985 p
15986 n
15987 b repl
15988 :more1
15989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15990 p
15991 g
15992 s/.\{148\}//
15993 t nl
15994 :delim
15995 h
15996 s/\(.\{148\}\)..*/\1/
15997 t more2
15998 s/["\\]/\\&/g; s/^/"/; s/$/"/
15999 p
16000 b
16001 :more2
16002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16003 p
16004 g
16005 s/.\{148\}//
16006 t delim
16007 ' <conf$$subs.awk | sed '
16008 /^[^""]/{
16009 N
16010 s/\n//
16011 }
16012 ' >>$CONFIG_STATUS || ac_write_fail=1
16013 rm -f conf$$subs.awk
16014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015 _ACAWK
16016 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16017 for (key in S) S_is_set[key] = 1
16018 FS = ""
16019
16020 }
16021 {
16022 line = $ 0
16023 nfields = split(line, field, "@")
16024 substed = 0
16025 len = length(field[1])
16026 for (i = 2; i < nfields; i++) {
16027 key = field[i]
16028 keylen = length(key)
16029 if (S_is_set[key]) {
16030 value = S[key]
16031 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16032 len += length(value) + length(field[++i])
16033 substed = 1
16034 } else
16035 len += 1 + keylen
16036 }
16037
16038 print line
16039 }
16040
16041 _ACAWK
16042 _ACEOF
16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16045 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16046 else
16047 cat
16048 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16049 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16050 _ACEOF
16051
16052 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16053 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16054 # trailing colons and then remove the whole line if VPATH becomes empty
16055 # (actually we leave an empty line to preserve line numbers).
16056 if test "x$srcdir" = x.; then
16057 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16058 h
16059 s///
16060 s/^/:/
16061 s/[ ]*$/:/
16062 s/:\$(srcdir):/:/g
16063 s/:\${srcdir}:/:/g
16064 s/:@srcdir@:/:/g
16065 s/^:*//
16066 s/:*$//
16067 x
16068 s/\(=[ ]*\).*/\1/
16069 G
16070 s/\n//
16071 s/^[^=]*=[ ]*$//
16072 }'
16073 fi
16074
16075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076 fi # test -n "$CONFIG_FILES"
16077
16078 # Set up the scripts for CONFIG_HEADERS section.
16079 # No need to generate them if there are no CONFIG_HEADERS.
16080 # This happens for instance with `./config.status Makefile'.
16081 if test -n "$CONFIG_HEADERS"; then
16082 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16083 BEGIN {
16084 _ACEOF
16085
16086 # Transform confdefs.h into an awk script `defines.awk', embedded as
16087 # here-document in config.status, that substitutes the proper values into
16088 # config.h.in to produce config.h.
16089
16090 # Create a delimiter string that does not exist in confdefs.h, to ease
16091 # handling of long lines.
16092 ac_delim='%!_!# '
16093 for ac_last_try in false false :; do
16094 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16095 if test -z "$ac_tt"; then
16096 break
16097 elif $ac_last_try; then
16098 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16099 else
16100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16101 fi
16102 done
16103
16104 # For the awk script, D is an array of macro values keyed by name,
16105 # likewise P contains macro parameters if any. Preserve backslash
16106 # newline sequences.
16107
16108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16109 sed -n '
16110 s/.\{148\}/&'"$ac_delim"'/g
16111 t rset
16112 :rset
16113 s/^[ ]*#[ ]*define[ ][ ]*/ /
16114 t def
16115 d
16116 :def
16117 s/\\$//
16118 t bsnl
16119 s/["\\]/\\&/g
16120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16121 D["\1"]=" \3"/p
16122 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16123 d
16124 :bsnl
16125 s/["\\]/\\&/g
16126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16127 D["\1"]=" \3\\\\\\n"\\/p
16128 t cont
16129 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16130 t cont
16131 d
16132 :cont
16133 n
16134 s/.\{148\}/&'"$ac_delim"'/g
16135 t clear
16136 :clear
16137 s/\\$//
16138 t bsnlc
16139 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16140 d
16141 :bsnlc
16142 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16143 b cont
16144 ' <confdefs.h | sed '
16145 s/'"$ac_delim"'/"\\\
16146 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16147
16148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149 for (key in D) D_is_set[key] = 1
16150 FS = ""
16151 }
16152 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16153 line = \$ 0
16154 split(line, arg, " ")
16155 if (arg[1] == "#") {
16156 defundef = arg[2]
16157 mac1 = arg[3]
16158 } else {
16159 defundef = substr(arg[1], 2)
16160 mac1 = arg[2]
16161 }
16162 split(mac1, mac2, "(") #)
16163 macro = mac2[1]
16164 prefix = substr(line, 1, index(line, defundef) - 1)
16165 if (D_is_set[macro]) {
16166 # Preserve the white space surrounding the "#".
16167 print prefix "define", macro P[macro] D[macro]
16168 next
16169 } else {
16170 # Replace #undef with comments. This is necessary, for example,
16171 # in the case of _POSIX_SOURCE, which is predefined and required
16172 # on some systems where configure will not decide to define it.
16173 if (defundef == "undef") {
16174 print "/*", prefix defundef, macro, "*/"
16175 next
16176 }
16177 }
16178 }
16179 { print }
16180 _ACAWK
16181 _ACEOF
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16184 fi # test -n "$CONFIG_HEADERS"
16185
16186
16187 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16188 shift
16189 for ac_tag
16190 do
16191 case $ac_tag in
16192 :[FHLC]) ac_mode=$ac_tag; continue;;
16193 esac
16194 case $ac_mode$ac_tag in
16195 :[FHL]*:*);;
16196 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16197 :[FH]-) ac_tag=-:-;;
16198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16199 esac
16200 ac_save_IFS=$IFS
16201 IFS=:
16202 set x $ac_tag
16203 IFS=$ac_save_IFS
16204 shift
16205 ac_file=$1
16206 shift
16207
16208 case $ac_mode in
16209 :L) ac_source=$1;;
16210 :[FH])
16211 ac_file_inputs=
16212 for ac_f
16213 do
16214 case $ac_f in
16215 -) ac_f="$ac_tmp/stdin";;
16216 *) # Look for the file first in the build tree, then in the source tree
16217 # (if the path is not absolute). The absolute path cannot be DOS-style,
16218 # because $ac_f cannot contain `:'.
16219 test -f "$ac_f" ||
16220 case $ac_f in
16221 [\\/$]*) false;;
16222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16223 esac ||
16224 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16225 esac
16226 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16227 as_fn_append ac_file_inputs " '$ac_f'"
16228 done
16229
16230 # Let's still pretend it is `configure' which instantiates (i.e., don't
16231 # use $as_me), people would be surprised to read:
16232 # /* config.h. Generated by config.status. */
16233 configure_input='Generated from '`
16234 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16235 `' by configure.'
16236 if test x"$ac_file" != x-; then
16237 configure_input="$ac_file. $configure_input"
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16239 $as_echo "$as_me: creating $ac_file" >&6;}
16240 fi
16241 # Neutralize special characters interpreted by sed in replacement strings.
16242 case $configure_input in #(
16243 *\&* | *\|* | *\\* )
16244 ac_sed_conf_input=`$as_echo "$configure_input" |
16245 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16246 *) ac_sed_conf_input=$configure_input;;
16247 esac
16248
16249 case $ac_tag in
16250 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16252 esac
16253 ;;
16254 esac
16255
16256 ac_dir=`$as_dirname -- "$ac_file" ||
16257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16258 X"$ac_file" : 'X\(//\)[^/]' \| \
16259 X"$ac_file" : 'X\(//\)$' \| \
16260 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16261 $as_echo X"$ac_file" |
16262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16263 s//\1/
16264 q
16265 }
16266 /^X\(\/\/\)[^/].*/{
16267 s//\1/
16268 q
16269 }
16270 /^X\(\/\/\)$/{
16271 s//\1/
16272 q
16273 }
16274 /^X\(\/\).*/{
16275 s//\1/
16276 q
16277 }
16278 s/.*/./; q'`
16279 as_dir="$ac_dir"; as_fn_mkdir_p
16280 ac_builddir=.
16281
16282 case "$ac_dir" in
16283 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16284 *)
16285 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16286 # A ".." for each directory in $ac_dir_suffix.
16287 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16288 case $ac_top_builddir_sub in
16289 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16290 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16291 esac ;;
16292 esac
16293 ac_abs_top_builddir=$ac_pwd
16294 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16295 # for backward compatibility:
16296 ac_top_builddir=$ac_top_build_prefix
16297
16298 case $srcdir in
16299 .) # We are building in place.
16300 ac_srcdir=.
16301 ac_top_srcdir=$ac_top_builddir_sub
16302 ac_abs_top_srcdir=$ac_pwd ;;
16303 [\\/]* | ?:[\\/]* ) # Absolute name.
16304 ac_srcdir=$srcdir$ac_dir_suffix;
16305 ac_top_srcdir=$srcdir
16306 ac_abs_top_srcdir=$srcdir ;;
16307 *) # Relative name.
16308 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16309 ac_top_srcdir=$ac_top_build_prefix$srcdir
16310 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16311 esac
16312 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16313
16314
16315 case $ac_mode in
16316 :F)
16317 #
16318 # CONFIG_FILE
16319 #
16320
16321 case $INSTALL in
16322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16323 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16324 esac
16325 ac_MKDIR_P=$MKDIR_P
16326 case $MKDIR_P in
16327 [\\/$]* | ?:[\\/]* ) ;;
16328 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16329 esac
16330 _ACEOF
16331
16332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333 # If the template does not know about datarootdir, expand it.
16334 # FIXME: This hack should be removed a few years after 2.60.
16335 ac_datarootdir_hack=; ac_datarootdir_seen=
16336 ac_sed_dataroot='
16337 /datarootdir/ {
16338 p
16339 q
16340 }
16341 /@datadir@/p
16342 /@docdir@/p
16343 /@infodir@/p
16344 /@localedir@/p
16345 /@mandir@/p'
16346 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16347 *datarootdir*) ac_datarootdir_seen=yes;;
16348 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16350 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16351 _ACEOF
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 ac_datarootdir_hack='
16354 s&@datadir@&$datadir&g
16355 s&@docdir@&$docdir&g
16356 s&@infodir@&$infodir&g
16357 s&@localedir@&$localedir&g
16358 s&@mandir@&$mandir&g
16359 s&\\\${datarootdir}&$datarootdir&g' ;;
16360 esac
16361 _ACEOF
16362
16363 # Neutralize VPATH when `$srcdir' = `.'.
16364 # Shell code in configure.ac might set extrasub.
16365 # FIXME: do we really want to maintain this feature?
16366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367 ac_sed_extra="$ac_vpsub
16368 $extrasub
16369 _ACEOF
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371 :t
16372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16373 s|@configure_input@|$ac_sed_conf_input|;t t
16374 s&@top_builddir@&$ac_top_builddir_sub&;t t
16375 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16376 s&@srcdir@&$ac_srcdir&;t t
16377 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16378 s&@top_srcdir@&$ac_top_srcdir&;t t
16379 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16380 s&@builddir@&$ac_builddir&;t t
16381 s&@abs_builddir@&$ac_abs_builddir&;t t
16382 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16383 s&@INSTALL@&$ac_INSTALL&;t t
16384 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16385 $ac_datarootdir_hack
16386 "
16387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16389
16390 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16395 which seems to be undefined. Please make sure it is defined" >&5
16396 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16397 which seems to be undefined. Please make sure it is defined" >&2;}
16398
16399 rm -f "$ac_tmp/stdin"
16400 case $ac_file in
16401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16403 esac \
16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16405 ;;
16406 :H)
16407 #
16408 # CONFIG_HEADER
16409 #
16410 if test x"$ac_file" != x-; then
16411 {
16412 $as_echo "/* $configure_input */" \
16413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16414 } >"$ac_tmp/config.h" \
16415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16416 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16419 else
16420 rm -f "$ac_file"
16421 mv "$ac_tmp/config.h" "$ac_file" \
16422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16423 fi
16424 else
16425 $as_echo "/* $configure_input */" \
16426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16427 || as_fn_error $? "could not create -" "$LINENO" 5
16428 fi
16429 # Compute "$ac_file"'s index in $config_headers.
16430 _am_arg="$ac_file"
16431 _am_stamp_count=1
16432 for _am_header in $config_headers :; do
16433 case $_am_header in
16434 $_am_arg | $_am_arg:* )
16435 break ;;
16436 * )
16437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16438 esac
16439 done
16440 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16441 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16442 X"$_am_arg" : 'X\(//\)[^/]' \| \
16443 X"$_am_arg" : 'X\(//\)$' \| \
16444 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16445 $as_echo X"$_am_arg" |
16446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\/\)[^/].*/{
16451 s//\1/
16452 q
16453 }
16454 /^X\(\/\/\)$/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\).*/{
16459 s//\1/
16460 q
16461 }
16462 s/.*/./; q'`/stamp-h$_am_stamp_count
16463 ;;
16464
16465 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16466 $as_echo "$as_me: executing $ac_file commands" >&6;}
16467 ;;
16468 esac
16469
16470
16471 case $ac_file$ac_mode in
16472 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16473 # Older Autoconf quotes --file arguments for eval, but not when files
16474 # are listed without --file. Let's play safe and only enable the eval
16475 # if we detect the quoting.
16476 # TODO: see whether this extra hack can be removed once we start
16477 # requiring Autoconf 2.70 or later.
16478 case $CONFIG_FILES in #(
16479 *\'*) :
16480 eval set x "$CONFIG_FILES" ;; #(
16481 *) :
16482 set x $CONFIG_FILES ;; #(
16483 *) :
16484 ;;
16485 esac
16486 shift
16487 # Used to flag and report bootstrapping failures.
16488 am_rc=0
16489 for am_mf
16490 do
16491 # Strip MF so we end up with the name of the file.
16492 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16493 # Check whether this is an Automake generated Makefile which includes
16494 # dependency-tracking related rules and includes.
16495 # Grep'ing the whole file directly is not great: AIX grep has a line
16496 # limit of 2048, but all sed's we know have understand at least 4000.
16497 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16498 || continue
16499 am_dirpart=`$as_dirname -- "$am_mf" ||
16500 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16501 X"$am_mf" : 'X\(//\)[^/]' \| \
16502 X"$am_mf" : 'X\(//\)$' \| \
16503 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16504 $as_echo X"$am_mf" |
16505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16506 s//\1/
16507 q
16508 }
16509 /^X\(\/\/\)[^/].*/{
16510 s//\1/
16511 q
16512 }
16513 /^X\(\/\/\)$/{
16514 s//\1/
16515 q
16516 }
16517 /^X\(\/\).*/{
16518 s//\1/
16519 q
16520 }
16521 s/.*/./; q'`
16522 am_filepart=`$as_basename -- "$am_mf" ||
16523 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16524 X"$am_mf" : 'X\(//\)$' \| \
16525 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16526 $as_echo X/"$am_mf" |
16527 sed '/^.*\/\([^/][^/]*\)\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\/\(\/\/\)$/{
16532 s//\1/
16533 q
16534 }
16535 /^X\/\(\/\).*/{
16536 s//\1/
16537 q
16538 }
16539 s/.*/./; q'`
16540 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16541 && sed -e '/# am--include-marker/d' "$am_filepart" \
16542 | $MAKE -f - am--depfiles" >&5
16543 (cd "$am_dirpart" \
16544 && sed -e '/# am--include-marker/d' "$am_filepart" \
16545 | $MAKE -f - am--depfiles) >&5 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } || am_rc=$?
16549 done
16550 if test $am_rc -ne 0; then
16551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16553 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16554 for automatic dependency tracking. Try re-running configure with the
16555 '--disable-dependency-tracking' option to at least be able to build
16556 the package (albeit without support for automatic dependency tracking).
16557 See \`config.log' for more details" "$LINENO" 5; }
16558 fi
16559 { am_dirpart=; unset am_dirpart;}
16560 { am_filepart=; unset am_filepart;}
16561 { am_mf=; unset am_mf;}
16562 { am_rc=; unset am_rc;}
16563 rm -f conftest-deps.mk
16564 }
16565 ;;
16566 "libtool":C)
16567
16568 # See if we are running on zsh, and set the options that allow our
16569 # commands through without removal of \ escapes.
16570 if test -n "${ZSH_VERSION+set}"; then
16571 setopt NO_GLOB_SUBST
16572 fi
16573
16574 cfgfile=${ofile}T
16575 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16576 $RM "$cfgfile"
16577
16578 cat <<_LT_EOF >> "$cfgfile"
16579 #! $SHELL
16580 # Generated automatically by $as_me ($PACKAGE) $VERSION
16581 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16582
16583 # Provide generalized library-building support services.
16584 # Written by Gordon Matzigkeit, 1996
16585
16586 # Copyright (C) 2014 Free Software Foundation, Inc.
16587 # This is free software; see the source for copying conditions. There is NO
16588 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16589
16590 # GNU Libtool is free software; you can redistribute it and/or modify
16591 # it under the terms of the GNU General Public License as published by
16592 # the Free Software Foundation; either version 2 of of the License, or
16593 # (at your option) any later version.
16594 #
16595 # As a special exception to the GNU General Public License, if you
16596 # distribute this file as part of a program or library that is built
16597 # using GNU Libtool, you may include this file under the same
16598 # distribution terms that you use for the rest of that program.
16599 #
16600 # GNU Libtool is distributed in the hope that it will be useful, but
16601 # WITHOUT ANY WARRANTY; without even the implied warranty of
16602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16603 # GNU General Public License for more details.
16604 #
16605 # You should have received a copy of the GNU General Public License
16606 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16607
16608
16609 # The names of the tagged configurations supported by this script.
16610 available_tags=''
16611
16612 # Configured defaults for sys_lib_dlsearch_path munging.
16613 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16614
16615 # ### BEGIN LIBTOOL CONFIG
16616
16617 # Which release of libtool.m4 was used?
16618 macro_version=$macro_version
16619 macro_revision=$macro_revision
16620
16621 # Whether or not to build shared libraries.
16622 build_libtool_libs=$enable_shared
16623
16624 # Whether or not to build static libraries.
16625 build_old_libs=$enable_static
16626
16627 # What type of objects to build.
16628 pic_mode=$pic_mode
16629
16630 # Whether or not to optimize for fast installation.
16631 fast_install=$enable_fast_install
16632
16633 # Shared archive member basename,for filename based shared library versioning on AIX.
16634 shared_archive_member_spec=$shared_archive_member_spec
16635
16636 # Shell to use when invoking shell scripts.
16637 SHELL=$lt_SHELL
16638
16639 # An echo program that protects backslashes.
16640 ECHO=$lt_ECHO
16641
16642 # The PATH separator for the build system.
16643 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16644
16645 # The host system.
16646 host_alias=$host_alias
16647 host=$host
16648 host_os=$host_os
16649
16650 # The build system.
16651 build_alias=$build_alias
16652 build=$build
16653 build_os=$build_os
16654
16655 # A sed program that does not truncate output.
16656 SED=$lt_SED
16657
16658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16659 Xsed="\$SED -e 1s/^X//"
16660
16661 # A grep program that handles long lines.
16662 GREP=$lt_GREP
16663
16664 # An ERE matcher.
16665 EGREP=$lt_EGREP
16666
16667 # A literal string matcher.
16668 FGREP=$lt_FGREP
16669
16670 # A BSD- or MS-compatible name lister.
16671 NM=$lt_NM
16672
16673 # Whether we need soft or hard links.
16674 LN_S=$lt_LN_S
16675
16676 # What is the maximum length of a command?
16677 max_cmd_len=$max_cmd_len
16678
16679 # Object file suffix (normally "o").
16680 objext=$ac_objext
16681
16682 # Executable file suffix (normally "").
16683 exeext=$exeext
16684
16685 # whether the shell understands "unset".
16686 lt_unset=$lt_unset
16687
16688 # turn spaces into newlines.
16689 SP2NL=$lt_lt_SP2NL
16690
16691 # turn newlines into spaces.
16692 NL2SP=$lt_lt_NL2SP
16693
16694 # convert \$build file names to \$host format.
16695 to_host_file_cmd=$lt_cv_to_host_file_cmd
16696
16697 # convert \$build files to toolchain format.
16698 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16699
16700 # An object symbol dumper.
16701 OBJDUMP=$lt_OBJDUMP
16702
16703 # Method to check whether dependent libraries are shared objects.
16704 deplibs_check_method=$lt_deplibs_check_method
16705
16706 # Command to use when deplibs_check_method = "file_magic".
16707 file_magic_cmd=$lt_file_magic_cmd
16708
16709 # How to find potential files when deplibs_check_method = "file_magic".
16710 file_magic_glob=$lt_file_magic_glob
16711
16712 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16713 want_nocaseglob=$lt_want_nocaseglob
16714
16715 # DLL creation program.
16716 DLLTOOL=$lt_DLLTOOL
16717
16718 # Command to associate shared and link libraries.
16719 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16720
16721 # The archiver.
16722 AR=$lt_AR
16723
16724 # Flags to create an archive.
16725 AR_FLAGS=$lt_AR_FLAGS
16726
16727 # How to feed a file listing to the archiver.
16728 archiver_list_spec=$lt_archiver_list_spec
16729
16730 # A symbol stripping program.
16731 STRIP=$lt_STRIP
16732
16733 # Commands used to install an old-style archive.
16734 RANLIB=$lt_RANLIB
16735 old_postinstall_cmds=$lt_old_postinstall_cmds
16736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16737
16738 # Whether to use a lock for old archive extraction.
16739 lock_old_archive_extraction=$lock_old_archive_extraction
16740
16741 # A C compiler.
16742 LTCC=$lt_CC
16743
16744 # LTCC compiler flags.
16745 LTCFLAGS=$lt_CFLAGS
16746
16747 # Take the output of nm and produce a listing of raw symbols and C names.
16748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16749
16750 # Transform the output of nm in a proper C declaration.
16751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16752
16753 # Transform the output of nm into a list of symbols to manually relocate.
16754 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16755
16756 # Transform the output of nm in a C name address pair.
16757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16758
16759 # Transform the output of nm in a C name address pair when lib prefix is needed.
16760 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16761
16762 # The name lister interface.
16763 nm_interface=$lt_lt_cv_nm_interface
16764
16765 # Specify filename containing input files for \$NM.
16766 nm_file_list_spec=$lt_nm_file_list_spec
16767
16768 # The root where to search for dependent libraries,and where our libraries should be installed.
16769 lt_sysroot=$lt_sysroot
16770
16771 # Command to truncate a binary pipe.
16772 lt_truncate_bin=$lt_lt_cv_truncate_bin
16773
16774 # The name of the directory that contains temporary libtool files.
16775 objdir=$objdir
16776
16777 # Used to examine libraries when file_magic_cmd begins with "file".
16778 MAGIC_CMD=$MAGIC_CMD
16779
16780 # Must we lock files when doing compilation?
16781 need_locks=$lt_need_locks
16782
16783 # Manifest tool.
16784 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16785
16786 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16787 DSYMUTIL=$lt_DSYMUTIL
16788
16789 # Tool to change global to local symbols on Mac OS X.
16790 NMEDIT=$lt_NMEDIT
16791
16792 # Tool to manipulate fat objects and archives on Mac OS X.
16793 LIPO=$lt_LIPO
16794
16795 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16796 OTOOL=$lt_OTOOL
16797
16798 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16799 OTOOL64=$lt_OTOOL64
16800
16801 # Old archive suffix (normally "a").
16802 libext=$libext
16803
16804 # Shared library suffix (normally ".so").
16805 shrext_cmds=$lt_shrext_cmds
16806
16807 # The commands to extract the exported symbol list from a shared archive.
16808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16809
16810 # Variables whose values should be saved in libtool wrapper scripts and
16811 # restored at link time.
16812 variables_saved_for_relink=$lt_variables_saved_for_relink
16813
16814 # Do we need the "lib" prefix for modules?
16815 need_lib_prefix=$need_lib_prefix
16816
16817 # Do we need a version for libraries?
16818 need_version=$need_version
16819
16820 # Library versioning type.
16821 version_type=$version_type
16822
16823 # Shared library runtime path variable.
16824 runpath_var=$runpath_var
16825
16826 # Shared library path variable.
16827 shlibpath_var=$shlibpath_var
16828
16829 # Is shlibpath searched before the hard-coded library search path?
16830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16831
16832 # Format of library name prefix.
16833 libname_spec=$lt_libname_spec
16834
16835 # List of archive names. First name is the real one, the rest are links.
16836 # The last name is the one that the linker finds with -lNAME
16837 library_names_spec=$lt_library_names_spec
16838
16839 # The coded name of the library, if different from the real name.
16840 soname_spec=$lt_soname_spec
16841
16842 # Permission mode override for installation of shared libraries.
16843 install_override_mode=$lt_install_override_mode
16844
16845 # Command to use after installation of a shared archive.
16846 postinstall_cmds=$lt_postinstall_cmds
16847
16848 # Command to use after uninstallation of a shared archive.
16849 postuninstall_cmds=$lt_postuninstall_cmds
16850
16851 # Commands used to finish a libtool library installation in a directory.
16852 finish_cmds=$lt_finish_cmds
16853
16854 # As "finish_cmds", except a single script fragment to be evaled but
16855 # not shown.
16856 finish_eval=$lt_finish_eval
16857
16858 # Whether we should hardcode library paths into libraries.
16859 hardcode_into_libs=$hardcode_into_libs
16860
16861 # Compile-time system search path for libraries.
16862 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16863
16864 # Detected run-time system search path for libraries.
16865 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16866
16867 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16868 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16869
16870 # Whether dlopen is supported.
16871 dlopen_support=$enable_dlopen
16872
16873 # Whether dlopen of programs is supported.
16874 dlopen_self=$enable_dlopen_self
16875
16876 # Whether dlopen of statically linked programs is supported.
16877 dlopen_self_static=$enable_dlopen_self_static
16878
16879 # Commands to strip libraries.
16880 old_striplib=$lt_old_striplib
16881 striplib=$lt_striplib
16882
16883
16884 # The linker used to build libraries.
16885 LD=$lt_LD
16886
16887 # How to create reloadable object files.
16888 reload_flag=$lt_reload_flag
16889 reload_cmds=$lt_reload_cmds
16890
16891 # Commands used to build an old-style archive.
16892 old_archive_cmds=$lt_old_archive_cmds
16893
16894 # A language specific compiler.
16895 CC=$lt_compiler
16896
16897 # Is the compiler the GNU compiler?
16898 with_gcc=$GCC
16899
16900 # Compiler flag to turn off builtin functions.
16901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16902
16903 # Additional compiler flags for building library objects.
16904 pic_flag=$lt_lt_prog_compiler_pic
16905
16906 # How to pass a linker flag through the compiler.
16907 wl=$lt_lt_prog_compiler_wl
16908
16909 # Compiler flag to prevent dynamic linking.
16910 link_static_flag=$lt_lt_prog_compiler_static
16911
16912 # Does compiler simultaneously support -c and -o options?
16913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16914
16915 # Whether or not to add -lc for building shared libraries.
16916 build_libtool_need_lc=$archive_cmds_need_lc
16917
16918 # Whether or not to disallow shared libs when runtime libs are static.
16919 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16920
16921 # Compiler flag to allow reflexive dlopens.
16922 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16923
16924 # Compiler flag to generate shared objects directly from archives.
16925 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16926
16927 # Whether the compiler copes with passing no objects directly.
16928 compiler_needs_object=$lt_compiler_needs_object
16929
16930 # Create an old-style archive from a shared archive.
16931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16932
16933 # Create a temporary old-style archive to link instead of a shared archive.
16934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16935
16936 # Commands used to build a shared archive.
16937 archive_cmds=$lt_archive_cmds
16938 archive_expsym_cmds=$lt_archive_expsym_cmds
16939
16940 # Commands used to build a loadable module if different from building
16941 # a shared archive.
16942 module_cmds=$lt_module_cmds
16943 module_expsym_cmds=$lt_module_expsym_cmds
16944
16945 # Whether we are building with GNU ld or not.
16946 with_gnu_ld=$lt_with_gnu_ld
16947
16948 # Flag that allows shared libraries with undefined symbols to be built.
16949 allow_undefined_flag=$lt_allow_undefined_flag
16950
16951 # Flag that enforces no undefined symbols.
16952 no_undefined_flag=$lt_no_undefined_flag
16953
16954 # Flag to hardcode \$libdir into a binary during linking.
16955 # This must work even if \$libdir does not exist
16956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16957
16958 # Whether we need a single "-rpath" flag with a separated argument.
16959 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16960
16961 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16962 # DIR into the resulting binary.
16963 hardcode_direct=$hardcode_direct
16964
16965 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16966 # DIR into the resulting binary and the resulting library dependency is
16967 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16968 # library is relocated.
16969 hardcode_direct_absolute=$hardcode_direct_absolute
16970
16971 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16972 # into the resulting binary.
16973 hardcode_minus_L=$hardcode_minus_L
16974
16975 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16976 # into the resulting binary.
16977 hardcode_shlibpath_var=$hardcode_shlibpath_var
16978
16979 # Set to "yes" if building a shared library automatically hardcodes DIR
16980 # into the library and all subsequent libraries and executables linked
16981 # against it.
16982 hardcode_automatic=$hardcode_automatic
16983
16984 # Set to yes if linker adds runtime paths of dependent libraries
16985 # to runtime path list.
16986 inherit_rpath=$inherit_rpath
16987
16988 # Whether libtool must link a program against all its dependency libraries.
16989 link_all_deplibs=$link_all_deplibs
16990
16991 # Set to "yes" if exported symbols are required.
16992 always_export_symbols=$always_export_symbols
16993
16994 # The commands to list exported symbols.
16995 export_symbols_cmds=$lt_export_symbols_cmds
16996
16997 # Symbols that should not be listed in the preloaded symbols.
16998 exclude_expsyms=$lt_exclude_expsyms
16999
17000 # Symbols that must always be exported.
17001 include_expsyms=$lt_include_expsyms
17002
17003 # Commands necessary for linking programs (against libraries) with templates.
17004 prelink_cmds=$lt_prelink_cmds
17005
17006 # Commands necessary for finishing linking programs.
17007 postlink_cmds=$lt_postlink_cmds
17008
17009 # Specify filename containing input files.
17010 file_list_spec=$lt_file_list_spec
17011
17012 # How to hardcode a shared library path into an executable.
17013 hardcode_action=$hardcode_action
17014
17015 # ### END LIBTOOL CONFIG
17016
17017 _LT_EOF
17018
17019 cat <<'_LT_EOF' >> "$cfgfile"
17020
17021 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17022
17023 # func_munge_path_list VARIABLE PATH
17024 # -----------------------------------
17025 # VARIABLE is name of variable containing _space_ separated list of
17026 # directories to be munged by the contents of PATH, which is string
17027 # having a format:
17028 # "DIR[:DIR]:"
17029 # string "DIR[ DIR]" will be prepended to VARIABLE
17030 # ":DIR[:DIR]"
17031 # string "DIR[ DIR]" will be appended to VARIABLE
17032 # "DIRP[:DIRP]::[DIRA:]DIRA"
17033 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17034 # "DIRA[ DIRA]" will be appended to VARIABLE
17035 # "DIR[:DIR]"
17036 # VARIABLE will be replaced by "DIR[ DIR]"
17037 func_munge_path_list ()
17038 {
17039 case x$2 in
17040 x)
17041 ;;
17042 *:)
17043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17044 ;;
17045 x:*)
17046 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17047 ;;
17048 *::*)
17049 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17050 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17051 ;;
17052 *)
17053 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17054 ;;
17055 esac
17056 }
17057
17058
17059 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17060 func_cc_basename ()
17061 {
17062 for cc_temp in $*""; do
17063 case $cc_temp in
17064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17066 \-*) ;;
17067 *) break;;
17068 esac
17069 done
17070 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17071 }
17072
17073
17074 # ### END FUNCTIONS SHARED WITH CONFIGURE
17075
17076 _LT_EOF
17077
17078 case $host_os in
17079 aix3*)
17080 cat <<\_LT_EOF >> "$cfgfile"
17081 # AIX sometimes has problems with the GCC collect2 program. For some
17082 # reason, if we set the COLLECT_NAMES environment variable, the problems
17083 # vanish in a puff of smoke.
17084 if test set != "${COLLECT_NAMES+set}"; then
17085 COLLECT_NAMES=
17086 export COLLECT_NAMES
17087 fi
17088 _LT_EOF
17089 ;;
17090 esac
17091
17092
17093 ltmain=$ac_aux_dir/ltmain.sh
17094
17095
17096 # We use sed instead of cat because bash on DJGPP gets confused if
17097 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17098 # text mode, it properly converts lines to CR/LF. This bash problem
17099 # is reportedly fixed, but why not run on old versions too?
17100 sed '$q' "$ltmain" >> "$cfgfile" \
17101 || (rm -f "$cfgfile"; exit 1)
17102
17103 mv -f "$cfgfile" "$ofile" ||
17104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17105 chmod +x "$ofile"
17106
17107 ;;
17108 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17109 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17110 esac ;;
17111 "po/stamp-it":C)
17112 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17113 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
17114 fi
17115 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17116 >"po/stamp-it.tmp"
17117 sed '/^#/d
17118 s/^[[].*] *//
17119 /^[ ]*$/d
17120 '"s|^| $ac_top_srcdir/|" \
17121 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17122
17123 sed '/^POTFILES =/,/[^\\]$/ {
17124 /^POTFILES =/!d
17125 r po/POTFILES
17126 }
17127 ' "po/Makefile.in" >"po/Makefile"
17128 rm -f "po/Makefile.tmp"
17129 mv "po/stamp-it.tmp" "po/stamp-it"
17130 ;;
17131
17132 esac
17133 done # for ac_tag
17134
17135
17136 as_fn_exit 0
17137 _ACEOF
17138 ac_clean_files=$ac_clean_files_save
17139
17140 test $ac_write_fail = 0 ||
17141 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17142
17143
17144 # configure is writing to config.log, and then calls config.status.
17145 # config.status does its own redirection, appending to config.log.
17146 # Unfortunately, on DOS this fails, as config.log is still kept open
17147 # by configure, so config.status won't be able to write to it; its
17148 # output is simply discarded. So we exec the FD to /dev/null,
17149 # effectively closing config.log, so it can be properly (re)opened and
17150 # appended to by config.status. When coming back to configure, we
17151 # need to make the FD available again.
17152 if test "$no_create" != yes; then
17153 ac_cs_success=:
17154 ac_config_status_args=
17155 test "$silent" = yes &&
17156 ac_config_status_args="$ac_config_status_args --quiet"
17157 exec 5>/dev/null
17158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17159 exec 5>>config.log
17160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17161 # would make configure fail if this is the last instruction.
17162 $ac_cs_success || as_fn_exit 1
17163 fi
17164 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17166 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17167 fi
17168
17169
17170 ###########################
17171 # Results
17172 ###########################
17173
17174 { $as_echo "$as_me:${as_lineno-$LINENO}:
17175
17176 dbus-test-runner Configuration:
17177
17178 Prefix: $prefix
17179
17180 Coverage reporting: $use_gcov
17181 " >&5
17182 $as_echo "$as_me:
17183
17184 dbus-test-runner Configuration:
17185
17186 Prefix: $prefix
17187
17188 Coverage reporting: $use_gcov
17189 " >&6;}
17190