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 caribou 0.4.21.
4 #
5 # Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=caribou>.
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 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: https://bugzilla.gnome.org/enter_bug.cgi?product=caribou
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='caribou'
653 PACKAGE_TARNAME='caribou'
654 PACKAGE_VERSION='0.4.21'
655 PACKAGE_STRING='caribou 0.4.21'
656 PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=caribou'
657 PACKAGE_URL=''
658
659 # Factoring default headers for most tests.
660 ac_includes_default="\
661 #include <stdio.h>
662 #ifdef HAVE_SYS_TYPES_H
663 # include <sys/types.h>
664 #endif
665 #ifdef HAVE_SYS_STAT_H
666 # include <sys/stat.h>
667 #endif
668 #ifdef STDC_HEADERS
669 # include <stdlib.h>
670 # include <stddef.h>
671 #else
672 # ifdef HAVE_STDLIB_H
673 # include <stdlib.h>
674 # endif
675 #endif
676 #ifdef HAVE_STRING_H
677 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
678 # include <memory.h>
679 # endif
680 # include <string.h>
681 #endif
682 #ifdef HAVE_STRINGS_H
683 # include <strings.h>
684 #endif
685 #ifdef HAVE_INTTYPES_H
686 # include <inttypes.h>
687 #endif
688 #ifdef HAVE_STDINT_H
689 # include <stdint.h>
690 #endif
691 #ifdef HAVE_UNISTD_H
692 # include <unistd.h>
693 #endif"
694
695 ac_subst_vars='am__EXEEXT_FALSE
696 am__EXEEXT_TRUE
697 LTLIBOBJS
698 LIBOBJS
699 HAVE_VALADOC_FALSE
700 HAVE_VALADOC_TRUE
701 VALADOC
702 VALADOC_LIBS
703 VALADOC_CFLAGS
704 ENABLE_DOCS_FALSE
705 ENABLE_DOCS_TRUE
706 HAVE_INTROSPECTION_FALSE
707 HAVE_INTROSPECTION_TRUE
708 INTROSPECTION_MAKEFILE
709 INTROSPECTION_LIBS
710 INTROSPECTION_CFLAGS
711 INTROSPECTION_TYPELIBDIR
712 INTROSPECTION_GIRDIR
713 INTROSPECTION_GENERATE
714 INTROSPECTION_COMPILER
715 INTROSPECTION_SCANNER
716 ALL_LINGUAS
717 INTLTOOL_PERL
718 MSGMERGE
719 INTLTOOL_POLICY_RULE
720 INTLTOOL_SERVICE_RULE
721 INTLTOOL_THEME_RULE
722 INTLTOOL_SCHEMAS_RULE
723 INTLTOOL_CAVES_RULE
724 INTLTOOL_XML_NOMERGE_RULE
725 INTLTOOL_XML_RULE
726 INTLTOOL_KBD_RULE
727 INTLTOOL_XAM_RULE
728 INTLTOOL_UI_RULE
729 INTLTOOL_SOUNDLIST_RULE
730 INTLTOOL_SHEET_RULE
731 INTLTOOL_SERVER_RULE
732 INTLTOOL_PONG_RULE
733 INTLTOOL_OAF_RULE
734 INTLTOOL_PROP_RULE
735 INTLTOOL_KEYS_RULE
736 INTLTOOL_DIRECTORY_RULE
737 INTLTOOL_DESKTOP_RULE
738 intltool__v_merge_options_0
739 intltool__v_merge_options_
740 INTLTOOL_V_MERGE_OPTIONS
741 INTLTOOL__v_MERGE_0
742 INTLTOOL__v_MERGE_
743 INTLTOOL_V_MERGE
744 INTLTOOL_EXTRACT
745 INTLTOOL_MERGE
746 INTLTOOL_UPDATE
747 GSETTINGS_RULES
748 GLIB_COMPILE_SCHEMAS
749 gsettingsschemadir
750 GSETTINGS_DISABLE_SCHEMAS_COMPILE
751 ENABLE_GTK_MODULES_FALSE
752 ENABLE_GTK_MODULES_TRUE
753 GTK2_MODULES_DIR
754 GTK2_LIBS
755 GTK2_CFLAGS
756 ENABLE_GTK2_MODULES_FALSE
757 ENABLE_GTK2_MODULES_TRUE
758 GTK3_MODULES_DIR
759 GTK3_LIBS
760 GTK3_CFLAGS
761 ENABLE_GTK3_MODULES_FALSE
762 ENABLE_GTK3_MODULES_TRUE
763 MKINSTALLDIRS
764 POSUB
765 POFILES
766 PO_IN_DATADIR_FALSE
767 PO_IN_DATADIR_TRUE
768 INTLLIBS
769 INSTOBJEXT
770 GMOFILES
771 DATADIRNAME
772 CATOBJEXT
773 CATALOGS
774 XGETTEXT
775 GMSGFMT
776 MSGFMT_OPTS
777 MSGFMT
778 USE_NLS
779 GETTEXT_PACKAGE
780 LIBCARIBOU_LIBS
781 LIBCARIBOU_CFLAGS
782 VALAFLAGS
783 VALAC
784 CARIBOU_LIBS
785 CARIBOU_CFLAGS
786 pkgpyexecdir
787 pyexecdir
788 pkgpythondir
789 pythondir
790 PYTHON_PLATFORM
791 PYTHON_EXEC_PREFIX
792 PYTHON_PREFIX
793 PYTHON_VERSION
794 PYTHON
795 GLIB_COMPILE_RESOURCES
796 GLIB_MKENUMS
797 GOBJECT_QUERY
798 GLIB_GENMARSHAL
799 GLIB_LIBS
800 GLIB_CFLAGS
801 PKG_CONFIG_LIBDIR
802 PKG_CONFIG_PATH
803 PKG_CONFIG
804 MAINT
805 MAINTAINER_MODE_FALSE
806 MAINTAINER_MODE_TRUE
807 AM_BACKSLASH
808 AM_DEFAULT_VERBOSITY
809 AM_DEFAULT_V
810 AM_V
811 am__fastdepCC_FALSE
812 am__fastdepCC_TRUE
813 CCDEPMODE
814 am__nodep
815 AMDEPBACKSLASH
816 AMDEP_FALSE
817 AMDEP_TRUE
818 am__quote
819 am__include
820 DEPDIR
821 am__untar
822 am__tar
823 AMTAR
824 am__leading_dot
825 SET_MAKE
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 LT_AGE
843 LT_REVISION
844 LT_CURRENT
845 CPP
846 LT_SYS_LIBRARY_PATH
847 OTOOL64
848 OTOOL
849 LIPO
850 NMEDIT
851 DSYMUTIL
852 MANIFEST_TOOL
853 AWK
854 RANLIB
855 STRIP
856 ac_ct_AR
857 AR
858 DLLTOOL
859 OBJDUMP
860 LN_S
861 NM
862 ac_ct_DUMPBIN
863 DUMPBIN
864 LD
865 FGREP
866 EGREP
867 GREP
868 SED
869 OBJEXT
870 EXEEXT
871 ac_ct_CC
872 CPPFLAGS
873 LDFLAGS
874 CFLAGS
875 CC
876 host_os
877 host_vendor
878 host_cpu
879 host
880 build_os
881 build_vendor
882 build_cpu
883 build
884 LIBTOOL
885 target_alias
886 host_alias
887 build_alias
888 LIBS
889 ECHO_T
890 ECHO_N
891 ECHO_C
892 DEFS
893 mandir
894 localedir
895 libdir
896 psdir
897 pdfdir
898 dvidir
899 htmldir
900 infodir
901 docdir
902 oldincludedir
903 includedir
904 localstatedir
905 sharedstatedir
906 sysconfdir
907 datadir
908 datarootdir
909 libexecdir
910 sbindir
911 bindir
912 program_transform_name
913 prefix
914 exec_prefix
915 PACKAGE_URL
916 PACKAGE_BUGREPORT
917 PACKAGE_STRING
918 PACKAGE_VERSION
919 PACKAGE_TARNAME
920 PACKAGE_NAME
921 PATH_SEPARATOR
922 SHELL'
923 ac_subst_files=''
924 ac_user_opts='
925 enable_option_checking
926 enable_shared
927 enable_static
928 with_pic
929 enable_fast_install
930 with_aix_soname
931 with_gnu_ld
932 with_sysroot
933 enable_libtool_lock
934 enable_dependency_tracking
935 enable_silent_rules
936 enable_maintainer_mode
937 enable_glibtest
938 enable_gtk3_module
939 enable_gtk2_module
940 enable_schemas_compile
941 enable_nls
942 enable_docs
943 '
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
952 LT_SYS_LIBRARY_PATH
953 CPP
954 PKG_CONFIG
955 PKG_CONFIG_PATH
956 PKG_CONFIG_LIBDIR
957 PYTHON
958 CARIBOU_CFLAGS
959 CARIBOU_LIBS
960 LIBCARIBOU_CFLAGS
961 LIBCARIBOU_LIBS
962 GTK3_CFLAGS
963 GTK3_LIBS
964 GTK2_CFLAGS
965 GTK2_LIBS
966 VALADOC_CFLAGS
967 VALADOC_LIBS'
968
969
970 # Initialize some variables set by options.
971 ac_init_help=
972 ac_init_version=false
973 ac_unrecognized_opts=
974 ac_unrecognized_sep=
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1027 fi
1028
1029 case $ac_option in
1030 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *=) ac_optarg= ;;
1032 *) ac_optarg=yes ;;
1033 esac
1034
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037 case $ac_dashdash$ac_option in
1038 --)
1039 ac_dashdash=yes ;;
1040
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1045
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1050
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1057
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1060
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1065
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1072
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1088
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1093
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1098
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1123
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1127
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1134
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1139
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1145
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1152
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1157
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1162
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1169
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1174
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1181
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1186
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1190
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1194
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1198
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1207
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1212
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1219
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1226
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1243
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1248
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1253
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1257
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1263
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1274
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1279
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1284
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1291
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1296
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1299
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1302
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error $? "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1311 *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1318
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error $? "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1334
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1338
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1345
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1352
1353 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information"
1355 ;;
1356
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1366
1367 *)
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1373 ;;
1374
1375 esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error $? "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1396 do
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 elif test "x$build_alias" != "x$host_alias"; then
1424 cross_compiling=yes
1425 fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 as_fn_error $? "working directory cannot be determined"
1438 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439 as_fn_error $? "pwd does not report name of working directory"
1440
1441
1442 # Find the source files, if location was not specified.
1443 if test -z "$srcdir"; then
1444 ac_srcdir_defaulted=yes
1445 # Try the directory containing this script, then the parent directory.
1446 ac_confdir=`$as_dirname -- "$as_myself" ||
1447 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448 X"$as_myself" : 'X\(//\)[^/]' \| \
1449 X"$as_myself" : 'X\(//\)$' \| \
1450 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1451 $as_echo X"$as_myself" |
1452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\/\)[^/].*/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\/\)$/{
1461 s//\1/
1462 q
1463 }
1464 /^X\(\/\).*/{
1465 s//\1/
1466 q
1467 }
1468 s/.*/./; q'`
1469 srcdir=$ac_confdir
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 srcdir=..
1472 fi
1473 else
1474 ac_srcdir_defaulted=no
1475 fi
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483 pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_env_${ac_var}_value=\$${ac_var}
1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505 # Omit some internal or obsolete options to make the list less imposing.
1506 # This message is too long to be a string in the A/UX 3.1 sh.
1507 cat <<_ACEOF
1508 \`configure' configures caribou 0.4.21 to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE. See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518 -h, --help display this help and exit
1519 --help=short display options specific to this package
1520 --help=recursive display the short help of all the included packages
1521 -V, --version display version information and exit
1522 -q, --quiet, --silent do not print \`checking ...' messages
1523 --cache-file=FILE cache test results in FILE [disabled]
1524 -C, --config-cache alias for \`--cache-file=config.cache'
1525 -n, --no-create do not create output files
1526 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529 --prefix=PREFIX install architecture-independent files in PREFIX
1530 [$ac_default_prefix]
1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542 --bindir=DIR user executables [EPREFIX/bin]
1543 --sbindir=DIR system admin executables [EPREFIX/sbin]
1544 --libexecdir=DIR program executables [EPREFIX/libexec]
1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1548 --libdir=DIR object code libraries [EPREFIX/lib]
1549 --includedir=DIR C header files [PREFIX/include]
1550 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1553 --infodir=DIR info documentation [DATAROOTDIR/info]
1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1555 --mandir=DIR man documentation [DATAROOTDIR/man]
1556 --docdir=DIR documentation root [DATAROOTDIR/doc/caribou]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1561 _ACEOF
1562
1563 cat <<\_ACEOF
1564
1565 Program names:
1566 --program-prefix=PREFIX prepend PREFIX to installed program names
1567 --program-suffix=SUFFIX append SUFFIX to installed program names
1568 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569
1570 System types:
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577 case $ac_init_help in
1578 short | recursive ) echo "Configuration of caribou 0.4.21:";;
1579 esac
1580 cat <<\_ACEOF
1581
1582 Optional Features:
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-shared[=PKGS] build shared libraries [default=yes]
1587 --enable-static[=PKGS] build static libraries [default=yes]
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation [default=yes]
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1591 --enable-dependency-tracking
1592 do not reject slow dependency extractors
1593 --disable-dependency-tracking
1594 speeds up one-time build
1595 --enable-silent-rules less verbose build output (undo: "make V=1")
1596 --disable-silent-rules verbose build output (undo: "make V=0")
1597 --disable-maintainer-mode
1598 disable make rules and dependencies not useful (and
1599 sometimes confusing) to the casual installer
1600 --disable-glibtest do not try to compile and run a test GLIB program
1601 --enable-gtk3-module Build GTK3 module
1602 --enable-gtk2-module Build GTK2 module
1603 --disable-schemas-compile
1604 Disable regeneration of gschemas.compiled on install
1605 --disable-nls do not use Native Language Support
1606 --enable-docs Enable documentation generation
1607
1608 Optional Packages:
1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1611 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1612 both]
1613 --with-aix-soname=aix|svr4|both
1614 shared library versioning (aka "SONAME") variant to
1615 provide on AIX, [default=aix].
1616 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1617 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1618 compiler's sysroot if not specified).
1619
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 LT_SYS_LIBRARY_PATH
1629 User-defined run-time library search path.
1630 CPP C preprocessor
1631 PKG_CONFIG path to pkg-config utility
1632 PKG_CONFIG_PATH
1633 directories to add to pkg-config's search path
1634 PKG_CONFIG_LIBDIR
1635 path overriding pkg-config's built-in search path
1636 PYTHON the Python interpreter
1637 CARIBOU_CFLAGS
1638 C compiler flags for CARIBOU, overriding pkg-config
1639 CARIBOU_LIBS
1640 linker flags for CARIBOU, overriding pkg-config
1641 LIBCARIBOU_CFLAGS
1642 C compiler flags for LIBCARIBOU, overriding pkg-config
1643 LIBCARIBOU_LIBS
1644 linker flags for LIBCARIBOU, overriding pkg-config
1645 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
1646 GTK3_LIBS linker flags for GTK3, overriding pkg-config
1647 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1648 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1649 VALADOC_CFLAGS
1650 C compiler flags for VALADOC, overriding pkg-config
1651 VALADOC_LIBS
1652 linker flags for VALADOC, overriding pkg-config
1653
1654 Use these variables to override the choices made by `configure' or to help
1655 it to find libraries and programs with nonstandard names/locations.
1656
1657 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=caribou>.
1658 _ACEOF
1659 ac_status=$?
1660 fi
1661
1662 if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1665 test -d "$ac_dir" ||
1666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667 continue
1668 ac_builddir=.
1669
1670 case "$ac_dir" in
1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 *)
1673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1674 # A ".." for each directory in $ac_dir_suffix.
1675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 esac ;;
1680 esac
1681 ac_abs_top_builddir=$ac_pwd
1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir=$ac_top_build_prefix
1685
1686 case $srcdir in
1687 .) # We are building in place.
1688 ac_srcdir=.
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
1692 ac_srcdir=$srcdir$ac_dir_suffix;
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1695 *) # Relative name.
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 esac
1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1710 else
1711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 fi || ac_status=$?
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1714 done
1715 fi
1716
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1719 cat <<\_ACEOF
1720 caribou configure 0.4.21
1721 generated by GNU Autoconf 2.69
1722
1723 Copyright (C) 2012 Free Software Foundation, Inc.
1724 This configure script is free software; the Free Software Foundation
1725 gives unlimited permission to copy, distribute and modify it.
1726 _ACEOF
1727 exit
1728 fi
1729
1730 ## ------------------------ ##
1731 ## Autoconf initialization. ##
1732 ## ------------------------ ##
1733
1734 # ac_fn_c_try_compile LINENO
1735 # --------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_compile
1771
1772 # ac_fn_c_try_link LINENO
1773 # -----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_link ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 test -x conftest$ac_exeext
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_link
1817
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 $4
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_header_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } > conftest.i && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1890 ac_fn_c_try_run ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_try") 2>&5
1911 ac_status=$?
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=$ac_status
1921 fi
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_run
1927
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1944
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_func
1994
1995 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1998 # the include files in INCLUDES and setting the cache variable VAR
1999 # accordingly.
2000 ac_fn_c_check_header_mongrel ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if eval \${$3+:} false; then :
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 else
2013 # Is the header compilable?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2015 $as_echo_n "checking $2 usability... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_header_compiler=yes
2023 else
2024 ac_header_compiler=no
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2028 $as_echo "$ac_header_compiler" >&6; }
2029
2030 # Is the header present?
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2032 $as_echo_n "checking $2 presence... " >&6; }
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_cpp "$LINENO"; then :
2038 ac_header_preproc=yes
2039 else
2040 ac_header_preproc=no
2041 fi
2042 rm -f conftest.err conftest.i conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2044 $as_echo "$ac_header_preproc" >&6; }
2045
2046 # So? What about this header?
2047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2048 yes:no: )
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2050 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 ;;
2054 no:yes:* )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2056 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2058 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2060 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2062 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 ( $as_echo "## ----------------------------------------------------------------------- ##
2066 ## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=caribou ##
2067 ## ----------------------------------------------------------------------- ##"
2068 ) | sed "s/^/$as_me: WARNING: /" >&2
2069 ;;
2070 esac
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=\$ac_header_compiler"
2077 fi
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_c_check_header_mongrel
2085 cat >config.log <<_ACEOF
2086 This file contains any messages produced by compilers while
2087 running configure, to aid debugging if configure makes a mistake.
2088
2089 It was created by caribou $as_me 0.4.21, which was
2090 generated by GNU Autoconf 2.69. Invocation command line was
2091
2092 $ $0 $@
2093
2094 _ACEOF
2095 exec 5>>config.log
2096 {
2097 cat <<_ASUNAME
2098 ## --------- ##
2099 ## Platform. ##
2100 ## --------- ##
2101
2102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2107
2108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2109 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2110
2111 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2112 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2114 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2115 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2116 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2117 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2118
2119 _ASUNAME
2120
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 $as_echo "PATH: $as_dir"
2127 done
2128 IFS=$as_save_IFS
2129
2130 } >&5
2131
2132 cat >&5 <<_ACEOF
2133
2134
2135 ## ----------- ##
2136 ## Core tests. ##
2137 ## ----------- ##
2138
2139 _ACEOF
2140
2141
2142 # Keep a trace of the command line.
2143 # Strip out --no-create and --no-recursion so they do not pile up.
2144 # Strip out --silent because we don't want to record it for future runs.
2145 # Also quote any args containing shell meta-characters.
2146 # Make two passes to allow for proper duplicate-argument suppression.
2147 ac_configure_args=
2148 ac_configure_args0=
2149 ac_configure_args1=
2150 ac_must_keep_next=false
2151 for ac_pass in 1 2
2152 do
2153 for ac_arg
2154 do
2155 case $ac_arg in
2156 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2158 | -silent | --silent | --silen | --sile | --sil)
2159 continue ;;
2160 *\'*)
2161 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 esac
2163 case $ac_pass in
2164 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2165 2)
2166 as_fn_append ac_configure_args1 " '$ac_arg'"
2167 if test $ac_must_keep_next = true; then
2168 ac_must_keep_next=false # Got value, back to normal.
2169 else
2170 case $ac_arg in
2171 *=* | --config-cache | -C | -disable-* | --disable-* \
2172 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2173 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2174 | -with-* | --with-* | -without-* | --without-* | --x)
2175 case "$ac_configure_args0 " in
2176 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2177 esac
2178 ;;
2179 -* ) ac_must_keep_next=true ;;
2180 esac
2181 fi
2182 as_fn_append ac_configure_args " '$ac_arg'"
2183 ;;
2184 esac
2185 done
2186 done
2187 { ac_configure_args0=; unset ac_configure_args0;}
2188 { ac_configure_args1=; unset ac_configure_args1;}
2189
2190 # When interrupted or exit'd, cleanup temporary files, and complete
2191 # config.log. We remove comments because anyway the quotes in there
2192 # would cause problems or look ugly.
2193 # WARNING: Use '\'' to represent an apostrophe within the trap.
2194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2195 trap 'exit_status=$?
2196 # Save into config.log some information that might help in debugging.
2197 {
2198 echo
2199
2200 $as_echo "## ---------------- ##
2201 ## Cache variables. ##
2202 ## ---------------- ##"
2203 echo
2204 # The following way of writing the cache mishandles newlines in values,
2205 (
2206 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in #(
2209 *${as_nl}*)
2210 case $ac_var in #(
2211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2213 esac
2214 case $ac_var in #(
2215 _ | IFS | as_nl) ;; #(
2216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2217 *) { eval $ac_var=; unset $ac_var;} ;;
2218 esac ;;
2219 esac
2220 done
2221 (set) 2>&1 |
2222 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2223 *${as_nl}ac_space=\ *)
2224 sed -n \
2225 "s/'\''/'\''\\\\'\'''\''/g;
2226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2227 ;; #(
2228 *)
2229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2230 ;;
2231 esac |
2232 sort
2233 )
2234 echo
2235
2236 $as_echo "## ----------------- ##
2237 ## Output variables. ##
2238 ## ----------------- ##"
2239 echo
2240 for ac_var in $ac_subst_vars
2241 do
2242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 $as_echo "$ac_var='\''$ac_val'\''"
2247 done | sort
2248 echo
2249
2250 if test -n "$ac_subst_files"; then
2251 $as_echo "## ------------------- ##
2252 ## File substitutions. ##
2253 ## ------------------- ##"
2254 echo
2255 for ac_var in $ac_subst_files
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264 fi
2265
2266 if test -s confdefs.h; then
2267 $as_echo "## ----------- ##
2268 ## confdefs.h. ##
2269 ## ----------- ##"
2270 echo
2271 cat confdefs.h
2272 echo
2273 fi
2274 test "$ac_signal" != 0 &&
2275 $as_echo "$as_me: caught signal $ac_signal"
2276 $as_echo "$as_me: exit $exit_status"
2277 } >&5
2278 rm -f core *.core core.conftest.* &&
2279 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 exit $exit_status
2281 ' 0
2282 for ac_signal in 1 2 13 15; do
2283 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2284 done
2285 ac_signal=0
2286
2287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2288 rm -f -r conftest* confdefs.h
2289
2290 $as_echo "/* confdefs.h */" > confdefs.h
2291
2292 # Predefined preprocessor variables.
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_URL "$PACKAGE_URL"
2316 _ACEOF
2317
2318
2319 # Let the site file select an alternate cache file if it wants to.
2320 # Prefer an explicitly selected file to automatically selected ones.
2321 ac_site_file1=NONE
2322 ac_site_file2=NONE
2323 if test -n "$CONFIG_SITE"; then
2324 # We do not want a PATH search for config.site.
2325 case $CONFIG_SITE in #((
2326 -*) ac_site_file1=./$CONFIG_SITE;;
2327 */*) ac_site_file1=$CONFIG_SITE;;
2328 *) ac_site_file1=./$CONFIG_SITE;;
2329 esac
2330 elif test "x$prefix" != xNONE; then
2331 ac_site_file1=$prefix/share/config.site
2332 ac_site_file2=$prefix/etc/config.site
2333 else
2334 ac_site_file1=$ac_default_prefix/share/config.site
2335 ac_site_file2=$ac_default_prefix/etc/config.site
2336 fi
2337 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2338 do
2339 test "x$ac_site_file" = xNONE && continue
2340 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2343 sed 's/^/| /' "$ac_site_file" >&5
2344 . "$ac_site_file" \
2345 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 as_fn_error $? "failed to load site script $ac_site_file
2348 See \`config.log' for more details" "$LINENO" 5; }
2349 fi
2350 done
2351
2352 if test -r "$cache_file"; then
2353 # Some versions of bash will fail to source /dev/null (special files
2354 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2355 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357 $as_echo "$as_me: loading cache $cache_file" >&6;}
2358 case $cache_file in
2359 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2360 *) . "./$cache_file";;
2361 esac
2362 fi
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2365 $as_echo "$as_me: creating cache $cache_file" >&6;}
2366 >$cache_file
2367 fi
2368
2369 # Check that the precious variables saved in the cache have kept the same
2370 # value.
2371 ac_cache_corrupted=false
2372 for ac_var in $ac_precious_vars; do
2373 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2374 eval ac_new_set=\$ac_env_${ac_var}_set
2375 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2376 eval ac_new_val=\$ac_env_${ac_var}_value
2377 case $ac_old_set,$ac_new_set in
2378 set,)
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2381 ac_cache_corrupted=: ;;
2382 ,set)
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2385 ac_cache_corrupted=: ;;
2386 ,);;
2387 *)
2388 if test "x$ac_old_val" != "x$ac_new_val"; then
2389 # differences in whitespace do not lead to failure.
2390 ac_old_val_w=`echo x $ac_old_val`
2391 ac_new_val_w=`echo x $ac_new_val`
2392 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395 ac_cache_corrupted=:
2396 else
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2399 eval $ac_var=\$ac_old_val
2400 fi
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2402 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2404 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2405 fi;;
2406 esac
2407 # Pass precious variables to config.status.
2408 if test "$ac_new_set" = set; then
2409 case $ac_new_val in
2410 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 *) ac_arg=$ac_var=$ac_new_val ;;
2412 esac
2413 case " $ac_configure_args " in
2414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2415 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2416 esac
2417 fi
2418 done
2419 if $ac_cache_corrupted; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2424 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2425 fi
2426 ## -------------------- ##
2427 ## Main body of script. ##
2428 ## -------------------- ##
2429
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435
2436
2437
2438
2439
2440 ac_aux_dir=
2441 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2442 if test -f "$ac_dir/install-sh"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/install-sh -c"
2445 break
2446 elif test -f "$ac_dir/install.sh"; then
2447 ac_aux_dir=$ac_dir
2448 ac_install_sh="$ac_aux_dir/install.sh -c"
2449 break
2450 elif test -f "$ac_dir/shtool"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/shtool install -c"
2453 break
2454 fi
2455 done
2456 if test -z "$ac_aux_dir"; then
2457 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2458 fi
2459
2460 # These three variables are undocumented and unsupported,
2461 # and are intended to be withdrawn in a future Autoconf release.
2462 # They can cause serious problems if a builder's source tree is in a directory
2463 # whose full name contains unusual characters.
2464 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2465 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2466 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2467
2468
2469 case `pwd` in
2470 *\ * | *\ *)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2472 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2473 esac
2474
2475
2476
2477 macro_version='2.4.6'
2478 macro_revision='2.4.6'
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492 ltmain=$ac_aux_dir/ltmain.sh
2493
2494 # Make sure we can run config.sub.
2495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2496 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2497
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2499 $as_echo_n "checking build system type... " >&6; }
2500 if ${ac_cv_build+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 ac_build_alias=$build_alias
2504 test "x$ac_build_alias" = x &&
2505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2506 test "x$ac_build_alias" = x &&
2507 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2508 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2510
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2513 $as_echo "$ac_cv_build" >&6; }
2514 case $ac_cv_build in
2515 *-*-*) ;;
2516 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2517 esac
2518 build=$ac_cv_build
2519 ac_save_IFS=$IFS; IFS='-'
2520 set x $ac_cv_build
2521 shift
2522 build_cpu=$1
2523 build_vendor=$2
2524 shift; shift
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2527 build_os=$*
2528 IFS=$ac_save_IFS
2529 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2530
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2533 $as_echo_n "checking host system type... " >&6; }
2534 if ${ac_cv_host+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test "x$host_alias" = x; then
2538 ac_cv_host=$ac_cv_build
2539 else
2540 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2542 fi
2543
2544 fi
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2546 $as_echo "$ac_cv_host" >&6; }
2547 case $ac_cv_host in
2548 *-*-*) ;;
2549 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2550 esac
2551 host=$ac_cv_host
2552 ac_save_IFS=$IFS; IFS='-'
2553 set x $ac_cv_host
2554 shift
2555 host_cpu=$1
2556 host_vendor=$2
2557 shift; shift
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2560 host_os=$*
2561 IFS=$ac_save_IFS
2562 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2563
2564
2565 # Backslashify metacharacters that are still active within
2566 # double-quoted strings.
2567 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2568
2569 # Same as above, but do not quote variable references.
2570 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2571
2572 # Sed substitution to delay expansion of an escaped shell variable in a
2573 # double_quote_subst'ed string.
2574 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2575
2576 # Sed substitution to delay expansion of an escaped single quote.
2577 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2578
2579 # Sed substitution to avoid accidental globbing in evaled expressions
2580 no_glob_subst='s/\*/\\\*/g'
2581
2582 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2583 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2584 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2587 $as_echo_n "checking how to print strings... " >&6; }
2588 # Test print first, because it will be a builtin if present.
2589 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2590 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2591 ECHO='print -r --'
2592 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2593 ECHO='printf %s\n'
2594 else
2595 # Use this function as a fallback that always works.
2596 func_fallback_echo ()
2597 {
2598 eval 'cat <<_LTECHO_EOF
2599 $1
2600 _LTECHO_EOF'
2601 }
2602 ECHO='func_fallback_echo'
2603 fi
2604
2605 # func_echo_all arg...
2606 # Invoke $ECHO with all args, space-separated.
2607 func_echo_all ()
2608 {
2609 $ECHO ""
2610 }
2611
2612 case $ECHO in
2613 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2614 $as_echo "printf" >&6; } ;;
2615 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2616 $as_echo "print -r" >&6; } ;;
2617 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2618 $as_echo "cat" >&6; } ;;
2619 esac
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634 # Expand $ac_aux_dir to an absolute path.
2635 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2636
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642 if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$ac_cv_prog_CC"; then
2682 ac_ct_CC=$CC
2683 # Extract the first word of "gcc", so it can be a program name with args.
2684 set dummy gcc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$ac_ct_CC"; then
2691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_prog_ac_ct_CC="gcc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2713 $as_echo "$ac_ct_CC" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719 if test "x$ac_ct_CC" = x; then
2720 CC=""
2721 else
2722 case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728 CC=$ac_ct_CC
2729 fi
2730 else
2731 CC="$ac_cv_prog_CC"
2732 fi
2733
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}cc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_CC="${ac_tool_prefix}cc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766 $as_echo "$CC" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772
2773 fi
2774 fi
2775 if test -z "$CC"; then
2776 # Extract the first word of "cc", so it can be a program name with args.
2777 set dummy cc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 ac_prog_rejected=no
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2795 ac_prog_rejected=yes
2796 continue
2797 fi
2798 ac_cv_prog_CC="cc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 if test $ac_prog_rejected = yes; then
2807 # We found a bogon in the path, so make sure we never use it.
2808 set dummy $ac_cv_prog_CC
2809 shift
2810 if test $# != 0; then
2811 # We chose a different compiler from the bogus one.
2812 # However, it has the same basename, so the bogon will be chosen
2813 # first if we set CC to just the basename; use the full file name.
2814 shift
2815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 fi
2817 fi
2818 fi
2819 fi
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 for ac_prog in cl.exe
2834 do
2835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 test -n "$CC" && break
2873 done
2874 fi
2875 if test -z "$CC"; then
2876 ac_ct_CC=$CC
2877 for ac_prog in cl.exe
2878 do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_ac_ct_CC="$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 test -n "$ac_ct_CC" && break
2917 done
2918
2919 if test "x$ac_ct_CC" = x; then
2920 CC=""
2921 else
2922 case $cross_compiling:$ac_tool_warned in
2923 yes:)
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926 ac_tool_warned=yes ;;
2927 esac
2928 CC=$ac_ct_CC
2929 fi
2930 fi
2931
2932 fi
2933
2934
2935 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error $? "no acceptable C compiler found in \$PATH
2938 See \`config.log' for more details" "$LINENO" 5; }
2939
2940 # Provide some information about the compiler.
2941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2942 set X $ac_compile
2943 ac_compiler=$2
2944 for ac_option in --version -v -V -qversion; do
2945 { { ac_try="$ac_compiler $ac_option >&5"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953 ac_status=$?
2954 if test -s conftest.err; then
2955 sed '10a\
2956 ... rest of stderr output deleted ...
2957 10q' conftest.err >conftest.er1
2958 cat conftest.er1 >&5
2959 fi
2960 rm -f conftest.er1 conftest.err
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963 done
2964
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 ac_clean_files_save=$ac_clean_files
2977 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978 # Try to create an executable without -o first, disregard a.out.
2979 # It will help us diagnose broken compilers, and finding out an intuition
2980 # of exeext.
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982 $as_echo_n "checking whether the C compiler works... " >&6; }
2983 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984
2985 # The possible output files:
2986 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987
2988 ac_rmfiles=
2989 for ac_file in $ac_files
2990 do
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 esac
2995 done
2996 rm -f $ac_rmfiles
2997
2998 if { { ac_try="$ac_link_default"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link_default") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3012 # so that the user can short-circuit this test for compilers unknown to
3013 # Autoconf.
3014 for ac_file in $ac_files ''
3015 do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019 ;;
3020 [ab].out )
3021 # We found the default executable, but exeext='' is most
3022 # certainly right.
3023 break;;
3024 *.* )
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026 then :; else
3027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 fi
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3033 # actually working.
3034 break;;
3035 * )
3036 break;;
3037 esac
3038 done
3039 test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041 else
3042 ac_file=''
3043 fi
3044 if test -z "$ac_file"; then :
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error 77 "C compiler cannot create executables
3053 See \`config.log' for more details" "$LINENO" 5; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3059 $as_echo_n "checking for C compiler default output file name... " >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061 $as_echo "$ac_file" >&6; }
3062 ac_exeext=$ac_cv_exeext
3063
3064 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065 ac_clean_files=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067 $as_echo_n "checking for suffix of executables... " >&6; }
3068 if { { ac_try="$ac_link"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081 # work properly (i.e., refer to `conftest.exe'), while it won't with
3082 # `rm'.
3083 for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 break;;
3089 * ) break;;
3090 esac
3091 done
3092 else
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details" "$LINENO" 5; }
3097 fi
3098 rm -f conftest conftest$ac_cv_exeext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100 $as_echo "$ac_cv_exeext" >&6; }
3101
3102 rm -f conftest.$ac_ext
3103 EXEEXT=$ac_cv_exeext
3104 ac_exeext=$EXEEXT
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107 #include <stdio.h>
3108 int
3109 main ()
3110 {
3111 FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3113
3114 ;
3115 return 0;
3116 }
3117 _ACEOF
3118 ac_clean_files="$ac_clean_files conftest.out"
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122 $as_echo_n "checking whether we are cross compiling... " >&6; }
3123 if test "$cross_compiling" != yes; then
3124 { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 if { ac_try='./conftest$ac_cv_exeext'
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details" "$LINENO" 5; }
3156 fi
3157 fi
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160 $as_echo "$cross_compiling" >&6; }
3161
3162 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163 ac_clean_files=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165 $as_echo_n "checking for suffix of object files... " >&6; }
3166 if ${ac_cv_objext+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { { ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 break;;
3198 esac
3199 done
3200 else
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of object files: cannot compile
3207 See \`config.log' for more details" "$LINENO" 5; }
3208 fi
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3214 ac_objext=$OBJEXT
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217 if ${ac_cv_c_compiler_gnu+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_compiler_gnu=yes
3236 else
3237 ac_compiler_gnu=no
3238 fi
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3241
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245 if test $ac_compiler_gnu = yes; then
3246 GCC=yes
3247 else
3248 GCC=
3249 fi
3250 ac_test_CFLAGS=${CFLAGS+set}
3251 ac_save_CFLAGS=$CFLAGS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3254 if ${ac_cv_prog_cc_g+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 ac_save_c_werror_flag=$ac_c_werror_flag
3258 ac_c_werror_flag=yes
3259 ac_cv_prog_cc_g=no
3260 CFLAGS="-g"
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273 ac_cv_prog_cc_g=yes
3274 else
3275 CFLAGS=""
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278
3279 int
3280 main ()
3281 {
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288
3289 else
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3305 fi
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314 $as_echo "$ac_cv_prog_cc_g" >&6; }
3315 if test "$ac_test_CFLAGS" = set; then
3316 CFLAGS=$ac_save_CFLAGS
3317 elif test $ac_cv_prog_cc_g = yes; then
3318 if test "$GCC" = yes; then
3319 CFLAGS="-g -O2"
3320 else
3321 CFLAGS="-g"
3322 fi
3323 else
3324 if test "$GCC" = yes; then
3325 CFLAGS="-O2"
3326 else
3327 CFLAGS=
3328 fi
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3332 if ${ac_cv_prog_cc_c89+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 ac_cv_prog_cc_c89=no
3336 ac_save_CC=$CC
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 struct stat;
3342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343 struct buf { int x; };
3344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345 static char *e (p, i)
3346 char **p;
3347 int i;
3348 {
3349 return p[i];
3350 }
3351 static char *f (char * (*g) (char **, int), char **p, ...)
3352 {
3353 char *s;
3354 va_list v;
3355 va_start (v,p);
3356 s = g (p, va_arg (v,int));
3357 va_end (v);
3358 return s;
3359 }
3360
3361 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3362 function prototypes and stuff, but not '\xHH' hex character constants.
3363 These don't provoke an error unfortunately, instead are silently treated
3364 as 'x'. The following induces an error, until -std is added to get
3365 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3366 array size at least. It's necessary to write '\x00'==0 to get something
3367 that's true only with -std. */
3368 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369
3370 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371 inside strings and character constants. */
3372 #define FOO(x) 'x'
3373 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374
3375 int test (int i, double x);
3376 struct s1 {int (*f) (int a);};
3377 struct s2 {int (*f) (double a);};
3378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379 int argc;
3380 char **argv;
3381 int
3382 main ()
3383 {
3384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391 do
3392 CC="$ac_save_CC $ac_arg"
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_prog_cc_c89=$ac_arg
3395 fi
3396 rm -f core conftest.err conftest.$ac_objext
3397 test "x$ac_cv_prog_cc_c89" != "xno" && break
3398 done
3399 rm -f conftest.$ac_ext
3400 CC=$ac_save_CC
3401
3402 fi
3403 # AC_CACHE_VAL
3404 case "x$ac_cv_prog_cc_c89" in
3405 x)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407 $as_echo "none needed" >&6; } ;;
3408 xno)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3410 $as_echo "unsupported" >&6; } ;;
3411 *)
3412 CC="$CC $ac_cv_prog_cc_c89"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3414 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3415 esac
3416 if test "x$ac_cv_prog_cc_c89" != xno; then :
3417
3418 fi
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3432 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3433 if ${am_cv_prog_cc_c_o+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438
3439 int
3440 main ()
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 # Make sure it works both with $CC and with simple cc.
3448 # Following AC_PROG_CC_C_O, we do the test twice because some
3449 # compilers refuse to overwrite an existing .o file with -o,
3450 # though they will create one.
3451 am_cv_prog_cc_c_o=yes
3452 for am_i in 1 2; do
3453 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3454 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } \
3458 && test -f conftest2.$ac_objext; then
3459 : OK
3460 else
3461 am_cv_prog_cc_c_o=no
3462 break
3463 fi
3464 done
3465 rm -f core conftest*
3466 unset am_i
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3469 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3470 if test "$am_cv_prog_cc_c_o" != yes; then
3471 # Losing compiler, so override with the script.
3472 # FIXME: It is wrong to rewrite CC.
3473 # But if we don't then we get into trouble of one sort or another.
3474 # A longer-term fix would be to have automake use am__CC in this case,
3475 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3476 CC="$am_aux_dir/compile $CC"
3477 fi
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3487 if ${ac_cv_path_SED+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3491 for ac_i in 1 2 3 4 5 6 7; do
3492 ac_script="$ac_script$as_nl$ac_script"
3493 done
3494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3495 { ac_script=; unset ac_script;}
3496 if test -z "$SED"; then
3497 ac_path_SED_found=false
3498 # Loop through the user's path and test for each of PROGNAME-LIST
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_prog in sed gsed; do
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3507 as_fn_executable_p "$ac_path_SED" || continue
3508 # Check for GNU ac_path_SED and select it if it is found.
3509 # Check for GNU $ac_path_SED
3510 case `"$ac_path_SED" --version 2>&1` in
3511 *GNU*)
3512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3513 *)
3514 ac_count=0
3515 $as_echo_n 0123456789 >"conftest.in"
3516 while :
3517 do
3518 cat "conftest.in" "conftest.in" >"conftest.tmp"
3519 mv "conftest.tmp" "conftest.in"
3520 cp "conftest.in" "conftest.nl"
3521 $as_echo '' >> "conftest.nl"
3522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3524 as_fn_arith $ac_count + 1 && ac_count=$as_val
3525 if test $ac_count -gt ${ac_path_SED_max-0}; then
3526 # Best one so far, save it but keep looking for a better one
3527 ac_cv_path_SED="$ac_path_SED"
3528 ac_path_SED_max=$ac_count
3529 fi
3530 # 10*(2^10) chars as input seems more than enough
3531 test $ac_count -gt 10 && break
3532 done
3533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3534 esac
3535
3536 $ac_path_SED_found && break 3
3537 done
3538 done
3539 done
3540 IFS=$as_save_IFS
3541 if test -z "$ac_cv_path_SED"; then
3542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3543 fi
3544 else
3545 ac_cv_path_SED=$SED
3546 fi
3547
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3550 $as_echo "$ac_cv_path_SED" >&6; }
3551 SED="$ac_cv_path_SED"
3552 rm -f conftest.sed
3553
3554 test -z "$SED" && SED=sed
3555 Xsed="$SED -e 1s/^X//"
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3569 if ${ac_cv_path_GREP+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 if test -z "$GREP"; then
3573 ac_path_GREP_found=false
3574 # Loop through the user's path and test for each of PROGNAME-LIST
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577 do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_prog in grep ggrep; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3583 as_fn_executable_p "$ac_path_GREP" || continue
3584 # Check for GNU ac_path_GREP and select it if it is found.
3585 # Check for GNU $ac_path_GREP
3586 case `"$ac_path_GREP" --version 2>&1` in
3587 *GNU*)
3588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3589 *)
3590 ac_count=0
3591 $as_echo_n 0123456789 >"conftest.in"
3592 while :
3593 do
3594 cat "conftest.in" "conftest.in" >"conftest.tmp"
3595 mv "conftest.tmp" "conftest.in"
3596 cp "conftest.in" "conftest.nl"
3597 $as_echo 'GREP' >> "conftest.nl"
3598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600 as_fn_arith $ac_count + 1 && ac_count=$as_val
3601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3602 # Best one so far, save it but keep looking for a better one
3603 ac_cv_path_GREP="$ac_path_GREP"
3604 ac_path_GREP_max=$ac_count
3605 fi
3606 # 10*(2^10) chars as input seems more than enough
3607 test $ac_count -gt 10 && break
3608 done
3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610 esac
3611
3612 $ac_path_GREP_found && break 3
3613 done
3614 done
3615 done
3616 IFS=$as_save_IFS
3617 if test -z "$ac_cv_path_GREP"; then
3618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3619 fi
3620 else
3621 ac_cv_path_GREP=$GREP
3622 fi
3623
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3626 $as_echo "$ac_cv_path_GREP" >&6; }
3627 GREP="$ac_cv_path_GREP"
3628
3629
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3631 $as_echo_n "checking for egrep... " >&6; }
3632 if ${ac_cv_path_EGREP+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3636 then ac_cv_path_EGREP="$GREP -E"
3637 else
3638 if test -z "$EGREP"; then
3639 ac_path_EGREP_found=false
3640 # Loop through the user's path and test for each of PROGNAME-LIST
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_prog in egrep; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3649 as_fn_executable_p "$ac_path_EGREP" || continue
3650 # Check for GNU ac_path_EGREP and select it if it is found.
3651 # Check for GNU $ac_path_EGREP
3652 case `"$ac_path_EGREP" --version 2>&1` in
3653 *GNU*)
3654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3655 *)
3656 ac_count=0
3657 $as_echo_n 0123456789 >"conftest.in"
3658 while :
3659 do
3660 cat "conftest.in" "conftest.in" >"conftest.tmp"
3661 mv "conftest.tmp" "conftest.in"
3662 cp "conftest.in" "conftest.nl"
3663 $as_echo 'EGREP' >> "conftest.nl"
3664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666 as_fn_arith $ac_count + 1 && ac_count=$as_val
3667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3668 # Best one so far, save it but keep looking for a better one
3669 ac_cv_path_EGREP="$ac_path_EGREP"
3670 ac_path_EGREP_max=$ac_count
3671 fi
3672 # 10*(2^10) chars as input seems more than enough
3673 test $ac_count -gt 10 && break
3674 done
3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676 esac
3677
3678 $ac_path_EGREP_found && break 3
3679 done
3680 done
3681 done
3682 IFS=$as_save_IFS
3683 if test -z "$ac_cv_path_EGREP"; then
3684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3685 fi
3686 else
3687 ac_cv_path_EGREP=$EGREP
3688 fi
3689
3690 fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3693 $as_echo "$ac_cv_path_EGREP" >&6; }
3694 EGREP="$ac_cv_path_EGREP"
3695
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3698 $as_echo_n "checking for fgrep... " >&6; }
3699 if ${ac_cv_path_FGREP+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3703 then ac_cv_path_FGREP="$GREP -F"
3704 else
3705 if test -z "$FGREP"; then
3706 ac_path_FGREP_found=false
3707 # Loop through the user's path and test for each of PROGNAME-LIST
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_prog in fgrep; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3716 as_fn_executable_p "$ac_path_FGREP" || continue
3717 # Check for GNU ac_path_FGREP and select it if it is found.
3718 # Check for GNU $ac_path_FGREP
3719 case `"$ac_path_FGREP" --version 2>&1` in
3720 *GNU*)
3721 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3722 *)
3723 ac_count=0
3724 $as_echo_n 0123456789 >"conftest.in"
3725 while :
3726 do
3727 cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 mv "conftest.tmp" "conftest.in"
3729 cp "conftest.in" "conftest.nl"
3730 $as_echo 'FGREP' >> "conftest.nl"
3731 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 as_fn_arith $ac_count + 1 && ac_count=$as_val
3734 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3735 # Best one so far, save it but keep looking for a better one
3736 ac_cv_path_FGREP="$ac_path_FGREP"
3737 ac_path_FGREP_max=$ac_count
3738 fi
3739 # 10*(2^10) chars as input seems more than enough
3740 test $ac_count -gt 10 && break
3741 done
3742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3743 esac
3744
3745 $ac_path_FGREP_found && break 3
3746 done
3747 done
3748 done
3749 IFS=$as_save_IFS
3750 if test -z "$ac_cv_path_FGREP"; then
3751 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3752 fi
3753 else
3754 ac_cv_path_FGREP=$FGREP
3755 fi
3756
3757 fi
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3760 $as_echo "$ac_cv_path_FGREP" >&6; }
3761 FGREP="$ac_cv_path_FGREP"
3762
3763
3764 test -z "$GREP" && GREP=grep
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784 # Check whether --with-gnu-ld was given.
3785 if test "${with_gnu_ld+set}" = set; then :
3786 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3787 else
3788 with_gnu_ld=no
3789 fi
3790
3791 ac_prog=ld
3792 if test yes = "$GCC"; then
3793 # Check if gcc -print-prog-name=ld gives a path.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3795 $as_echo_n "checking for ld used by $CC... " >&6; }
3796 case $host in
3797 *-*-mingw*)
3798 # gcc leaves a trailing carriage return, which upsets mingw
3799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3800 *)
3801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3802 esac
3803 case $ac_prog in
3804 # Accept absolute paths.
3805 [\\/]* | ?:[\\/]*)
3806 re_direlt='/[^/][^/]*/\.\./'
3807 # Canonicalize the pathname of ld
3808 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3809 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3810 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3811 done
3812 test -z "$LD" && LD=$ac_prog
3813 ;;
3814 "")
3815 # If it fails, then pretend we aren't using GCC.
3816 ac_prog=ld
3817 ;;
3818 *)
3819 # If it is relative, then search for the first ld in PATH.
3820 with_gnu_ld=unknown
3821 ;;
3822 esac
3823 elif test yes = "$with_gnu_ld"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3825 $as_echo_n "checking for GNU ld... " >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3828 $as_echo_n "checking for non-GNU ld... " >&6; }
3829 fi
3830 if ${lt_cv_path_LD+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -z "$LD"; then
3834 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3835 for ac_dir in $PATH; do
3836 IFS=$lt_save_ifs
3837 test -z "$ac_dir" && ac_dir=.
3838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3839 lt_cv_path_LD=$ac_dir/$ac_prog
3840 # Check to see if the program is GNU ld. I'd rather use --version,
3841 # but apparently some variants of GNU ld only accept -v.
3842 # Break only if it was the GNU/non-GNU ld that we prefer.
3843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3844 *GNU* | *'with BFD'*)
3845 test no != "$with_gnu_ld" && break
3846 ;;
3847 *)
3848 test yes != "$with_gnu_ld" && break
3849 ;;
3850 esac
3851 fi
3852 done
3853 IFS=$lt_save_ifs
3854 else
3855 lt_cv_path_LD=$LD # Let the user override the test with a path.
3856 fi
3857 fi
3858
3859 LD=$lt_cv_path_LD
3860 if test -n "$LD"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3862 $as_echo "$LD" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3866 fi
3867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3869 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3870 if ${lt_cv_prog_gnu_ld+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3874 case `$LD -v 2>&1 </dev/null` in
3875 *GNU* | *'with BFD'*)
3876 lt_cv_prog_gnu_ld=yes
3877 ;;
3878 *)
3879 lt_cv_prog_gnu_ld=no
3880 ;;
3881 esac
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3884 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3885 with_gnu_ld=$lt_cv_prog_gnu_ld
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3896 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3897 if ${lt_cv_path_NM+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$NM"; then
3901 # Let the user override the test.
3902 lt_cv_path_NM=$NM
3903 else
3904 lt_nm_to_check=${ac_tool_prefix}nm
3905 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3906 lt_nm_to_check="$lt_nm_to_check nm"
3907 fi
3908 for lt_tmp_nm in $lt_nm_to_check; do
3909 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3910 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3911 IFS=$lt_save_ifs
3912 test -z "$ac_dir" && ac_dir=.
3913 tmp_nm=$ac_dir/$lt_tmp_nm
3914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3915 # Check to see if the nm accepts a BSD-compat flag.
3916 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3917 # nm: unknown option "B" ignored
3918 # Tru64's nm complains that /dev/null is an invalid object file
3919 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3920 case $build_os in
3921 mingw*) lt_bad_file=conftest.nm/nofile ;;
3922 *) lt_bad_file=/dev/null ;;
3923 esac
3924 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3925 *$lt_bad_file* | *'Invalid file or object type'*)
3926 lt_cv_path_NM="$tmp_nm -B"
3927 break 2
3928 ;;
3929 *)
3930 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3931 */dev/null*)
3932 lt_cv_path_NM="$tmp_nm -p"
3933 break 2
3934 ;;
3935 *)
3936 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3937 continue # so that we can try to find one that supports BSD flags
3938 ;;
3939 esac
3940 ;;
3941 esac
3942 fi
3943 done
3944 IFS=$lt_save_ifs
3945 done
3946 : ${lt_cv_path_NM=no}
3947 fi
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3950 $as_echo "$lt_cv_path_NM" >&6; }
3951 if test no != "$lt_cv_path_NM"; then
3952 NM=$lt_cv_path_NM
3953 else
3954 # Didn't find any BSD compatible name lister, look for dumpbin.
3955 if test -n "$DUMPBIN"; then :
3956 # Let the user override the test.
3957 else
3958 if test -n "$ac_tool_prefix"; then
3959 for ac_prog in dumpbin "link -dump"
3960 do
3961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if ${ac_cv_prog_DUMPBIN+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$DUMPBIN"; then
3969 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982 done
3983 done
3984 IFS=$as_save_IFS
3985
3986 fi
3987 fi
3988 DUMPBIN=$ac_cv_prog_DUMPBIN
3989 if test -n "$DUMPBIN"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3991 $as_echo "$DUMPBIN" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3995 fi
3996
3997
3998 test -n "$DUMPBIN" && break
3999 done
4000 fi
4001 if test -z "$DUMPBIN"; then
4002 ac_ct_DUMPBIN=$DUMPBIN
4003 for ac_prog in dumpbin "link -dump"
4004 do
4005 # Extract the first word of "$ac_prog", so it can be a program name with args.
4006 set dummy $ac_prog; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if test -n "$ac_ct_DUMPBIN"; then
4013 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026 done
4027 done
4028 IFS=$as_save_IFS
4029
4030 fi
4031 fi
4032 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4033 if test -n "$ac_ct_DUMPBIN"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4035 $as_echo "$ac_ct_DUMPBIN" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 fi
4040
4041
4042 test -n "$ac_ct_DUMPBIN" && break
4043 done
4044
4045 if test "x$ac_ct_DUMPBIN" = x; then
4046 DUMPBIN=":"
4047 else
4048 case $cross_compiling:$ac_tool_warned in
4049 yes:)
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4052 ac_tool_warned=yes ;;
4053 esac
4054 DUMPBIN=$ac_ct_DUMPBIN
4055 fi
4056 fi
4057
4058 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4059 *COFF*)
4060 DUMPBIN="$DUMPBIN -symbols -headers"
4061 ;;
4062 *)
4063 DUMPBIN=:
4064 ;;
4065 esac
4066 fi
4067
4068 if test : != "$DUMPBIN"; then
4069 NM=$DUMPBIN
4070 fi
4071 fi
4072 test -z "$NM" && NM=nm
4073
4074
4075
4076
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4080 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4081 if ${lt_cv_nm_interface+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 lt_cv_nm_interface="BSD nm"
4085 echo "int some_variable = 0;" > conftest.$ac_ext
4086 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4087 (eval "$ac_compile" 2>conftest.err)
4088 cat conftest.err >&5
4089 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4090 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4091 cat conftest.err >&5
4092 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4093 cat conftest.out >&5
4094 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4095 lt_cv_nm_interface="MS dumpbin"
4096 fi
4097 rm -f conftest*
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4100 $as_echo "$lt_cv_nm_interface" >&6; }
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4103 $as_echo_n "checking whether ln -s works... " >&6; }
4104 LN_S=$as_ln_s
4105 if test "$LN_S" = "ln -s"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107 $as_echo "yes" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4110 $as_echo "no, using $LN_S" >&6; }
4111 fi
4112
4113 # find the maximum length of command line arguments
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4115 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4116 if ${lt_cv_sys_max_cmd_len+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 i=0
4120 teststring=ABCD
4121
4122 case $build_os in
4123 msdosdjgpp*)
4124 # On DJGPP, this test can blow up pretty badly due to problems in libc
4125 # (any single argument exceeding 2000 bytes causes a buffer overrun
4126 # during glob expansion). Even if it were fixed, the result of this
4127 # check would be larger than it should be.
4128 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4129 ;;
4130
4131 gnu*)
4132 # Under GNU Hurd, this test is not required because there is
4133 # no limit to the length of command line arguments.
4134 # Libtool will interpret -1 as no limit whatsoever
4135 lt_cv_sys_max_cmd_len=-1;
4136 ;;
4137
4138 cygwin* | mingw* | cegcc*)
4139 # On Win9x/ME, this test blows up -- it succeeds, but takes
4140 # about 5 minutes as the teststring grows exponentially.
4141 # Worse, since 9x/ME are not pre-emptively multitasking,
4142 # you end up with a "frozen" computer, even though with patience
4143 # the test eventually succeeds (with a max line length of 256k).
4144 # Instead, let's just punt: use the minimum linelength reported by
4145 # all of the supported platforms: 8192 (on NT/2K/XP).
4146 lt_cv_sys_max_cmd_len=8192;
4147 ;;
4148
4149 mint*)
4150 # On MiNT this can take a long time and run out of memory.
4151 lt_cv_sys_max_cmd_len=8192;
4152 ;;
4153
4154 amigaos*)
4155 # On AmigaOS with pdksh, this test takes hours, literally.
4156 # So we just punt and use a minimum line length of 8192.
4157 lt_cv_sys_max_cmd_len=8192;
4158 ;;
4159
4160 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4161 # This has been around since 386BSD, at least. Likely further.
4162 if test -x /sbin/sysctl; then
4163 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4164 elif test -x /usr/sbin/sysctl; then
4165 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4166 else
4167 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4168 fi
4169 # And add a safety zone
4170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4172 ;;
4173
4174 interix*)
4175 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4176 lt_cv_sys_max_cmd_len=196608
4177 ;;
4178
4179 os2*)
4180 # The test takes a long time on OS/2.
4181 lt_cv_sys_max_cmd_len=8192
4182 ;;
4183
4184 osf*)
4185 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4186 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4187 # nice to cause kernel panics so lets avoid the loop below.
4188 # First set a reasonable default.
4189 lt_cv_sys_max_cmd_len=16384
4190 #
4191 if test -x /sbin/sysconfig; then
4192 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4193 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4194 esac
4195 fi
4196 ;;
4197 sco3.2v5*)
4198 lt_cv_sys_max_cmd_len=102400
4199 ;;
4200 sysv5* | sco5v6* | sysv4.2uw2*)
4201 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4202 if test -n "$kargmax"; then
4203 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4204 else
4205 lt_cv_sys_max_cmd_len=32768
4206 fi
4207 ;;
4208 *)
4209 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4210 if test -n "$lt_cv_sys_max_cmd_len" && \
4211 test undefined != "$lt_cv_sys_max_cmd_len"; then
4212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4214 else
4215 # Make teststring a little bigger before we do anything with it.
4216 # a 1K string should be a reasonable start.
4217 for i in 1 2 3 4 5 6 7 8; do
4218 teststring=$teststring$teststring
4219 done
4220 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4221 # If test is not a shell built-in, we'll probably end up computing a
4222 # maximum length that is only half of the actual maximum length, but
4223 # we can't tell.
4224 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4225 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4226 test 17 != "$i" # 1/2 MB should be enough
4227 do
4228 i=`expr $i + 1`
4229 teststring=$teststring$teststring
4230 done
4231 # Only check the string length outside the loop.
4232 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4233 teststring=
4234 # Add a significant safety factor because C++ compilers can tack on
4235 # massive amounts of additional arguments before passing them to the
4236 # linker. It appears as though 1/2 is a usable value.
4237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4238 fi
4239 ;;
4240 esac
4241
4242 fi
4243
4244 if test -n "$lt_cv_sys_max_cmd_len"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4246 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4249 $as_echo "none" >&6; }
4250 fi
4251 max_cmd_len=$lt_cv_sys_max_cmd_len
4252
4253
4254
4255
4256
4257
4258 : ${CP="cp -f"}
4259 : ${MV="mv -f"}
4260 : ${RM="rm -f"}
4261
4262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4263 lt_unset=unset
4264 else
4265 lt_unset=false
4266 fi
4267
4268
4269
4270
4271
4272 # test EBCDIC or ASCII
4273 case `echo X|tr X '\101'` in
4274 A) # ASCII based system
4275 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4276 lt_SP2NL='tr \040 \012'
4277 lt_NL2SP='tr \015\012 \040\040'
4278 ;;
4279 *) # EBCDIC based system
4280 lt_SP2NL='tr \100 \n'
4281 lt_NL2SP='tr \r\n \100\100'
4282 ;;
4283 esac
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4294 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4295 if ${lt_cv_to_host_file_cmd+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 case $host in
4299 *-*-mingw* )
4300 case $build in
4301 *-*-mingw* ) # actually msys
4302 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4303 ;;
4304 *-*-cygwin* )
4305 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4306 ;;
4307 * ) # otherwise, assume *nix
4308 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4309 ;;
4310 esac
4311 ;;
4312 *-*-cygwin* )
4313 case $build in
4314 *-*-mingw* ) # actually msys
4315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4316 ;;
4317 *-*-cygwin* )
4318 lt_cv_to_host_file_cmd=func_convert_file_noop
4319 ;;
4320 * ) # otherwise, assume *nix
4321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4322 ;;
4323 esac
4324 ;;
4325 * ) # unhandled hosts (and "normal" native builds)
4326 lt_cv_to_host_file_cmd=func_convert_file_noop
4327 ;;
4328 esac
4329
4330 fi
4331
4332 to_host_file_cmd=$lt_cv_to_host_file_cmd
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4334 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4335
4336
4337
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4341 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4342 if ${lt_cv_to_tool_file_cmd+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 #assume ordinary cross tools, or native build.
4346 lt_cv_to_tool_file_cmd=func_convert_file_noop
4347 case $host in
4348 *-*-mingw* )
4349 case $build in
4350 *-*-mingw* ) # actually msys
4351 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4352 ;;
4353 esac
4354 ;;
4355 esac
4356
4357 fi
4358
4359 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4361 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4362
4363
4364
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4369 if ${lt_cv_ld_reload_flag+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 lt_cv_ld_reload_flag='-r'
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4376 reload_flag=$lt_cv_ld_reload_flag
4377 case $reload_flag in
4378 "" | " "*) ;;
4379 *) reload_flag=" $reload_flag" ;;
4380 esac
4381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4382 case $host_os in
4383 cygwin* | mingw* | pw32* | cegcc*)
4384 if test yes != "$GCC"; then
4385 reload_cmds=false
4386 fi
4387 ;;
4388 darwin*)
4389 if test yes = "$GCC"; then
4390 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4391 else
4392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4393 fi
4394 ;;
4395 esac
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_OBJDUMP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$OBJDUMP"; then
4414 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431 fi
4432 fi
4433 OBJDUMP=$ac_cv_prog_OBJDUMP
4434 if test -n "$OBJDUMP"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4436 $as_echo "$OBJDUMP" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4440 fi
4441
4442
4443 fi
4444 if test -z "$ac_cv_prog_OBJDUMP"; then
4445 ac_ct_OBJDUMP=$OBJDUMP
4446 # Extract the first word of "objdump", so it can be a program name with args.
4447 set dummy objdump; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$ac_ct_OBJDUMP"; then
4454 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4474 if test -n "$ac_ct_OBJDUMP"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4476 $as_echo "$ac_ct_OBJDUMP" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482 if test "x$ac_ct_OBJDUMP" = x; then
4483 OBJDUMP="false"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 OBJDUMP=$ac_ct_OBJDUMP
4492 fi
4493 else
4494 OBJDUMP="$ac_cv_prog_OBJDUMP"
4495 fi
4496
4497 test -z "$OBJDUMP" && OBJDUMP=objdump
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4508 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4509 if ${lt_cv_deplibs_check_method+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 lt_cv_file_magic_cmd='$MAGIC_CMD'
4513 lt_cv_file_magic_test_file=
4514 lt_cv_deplibs_check_method='unknown'
4515 # Need to set the preceding variable on all platforms that support
4516 # interlibrary dependencies.
4517 # 'none' -- dependencies not supported.
4518 # 'unknown' -- same as none, but documents that we really don't know.
4519 # 'pass_all' -- all dependencies passed with no checks.
4520 # 'test_compile' -- check by making test program.
4521 # 'file_magic [[regex]]' -- check by looking for files in library path
4522 # that responds to the $file_magic_cmd with a given extended regex.
4523 # If you have 'file' or equivalent on your system and you're not sure
4524 # whether 'pass_all' will *always* work, you probably want this one.
4525
4526 case $host_os in
4527 aix[4-9]*)
4528 lt_cv_deplibs_check_method=pass_all
4529 ;;
4530
4531 beos*)
4532 lt_cv_deplibs_check_method=pass_all
4533 ;;
4534
4535 bsdi[45]*)
4536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4537 lt_cv_file_magic_cmd='/usr/bin/file -L'
4538 lt_cv_file_magic_test_file=/shlib/libc.so
4539 ;;
4540
4541 cygwin*)
4542 # func_win32_libid is a shell function defined in ltmain.sh
4543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4544 lt_cv_file_magic_cmd='func_win32_libid'
4545 ;;
4546
4547 mingw* | pw32*)
4548 # Base MSYS/MinGW do not provide the 'file' command needed by
4549 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4550 # unless we find 'file', for example because we are cross-compiling.
4551 if ( file / ) >/dev/null 2>&1; then
4552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4553 lt_cv_file_magic_cmd='func_win32_libid'
4554 else
4555 # Keep this pattern in sync with the one in func_win32_libid.
4556 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4557 lt_cv_file_magic_cmd='$OBJDUMP -f'
4558 fi
4559 ;;
4560
4561 cegcc*)
4562 # use the weaker test based on 'objdump'. See mingw*.
4563 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4564 lt_cv_file_magic_cmd='$OBJDUMP -f'
4565 ;;
4566
4567 darwin* | rhapsody*)
4568 lt_cv_deplibs_check_method=pass_all
4569 ;;
4570
4571 freebsd* | dragonfly*)
4572 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4573 case $host_cpu in
4574 i*86 )
4575 # Not sure whether the presence of OpenBSD here was a mistake.
4576 # Let's accept both of them until this is cleared up.
4577 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4578 lt_cv_file_magic_cmd=/usr/bin/file
4579 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4580 ;;
4581 esac
4582 else
4583 lt_cv_deplibs_check_method=pass_all
4584 fi
4585 ;;
4586
4587 haiku*)
4588 lt_cv_deplibs_check_method=pass_all
4589 ;;
4590
4591 hpux10.20* | hpux11*)
4592 lt_cv_file_magic_cmd=/usr/bin/file
4593 case $host_cpu in
4594 ia64*)
4595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4597 ;;
4598 hppa*64*)
4599 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]'
4600 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4601 ;;
4602 *)
4603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4605 ;;
4606 esac
4607 ;;
4608
4609 interix[3-9]*)
4610 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4612 ;;
4613
4614 irix5* | irix6* | nonstopux*)
4615 case $LD in
4616 *-32|*"-32 ") libmagic=32-bit;;
4617 *-n32|*"-n32 ") libmagic=N32;;
4618 *-64|*"-64 ") libmagic=64-bit;;
4619 *) libmagic=never-match;;
4620 esac
4621 lt_cv_deplibs_check_method=pass_all
4622 ;;
4623
4624 # This must be glibc/ELF.
4625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4626 lt_cv_deplibs_check_method=pass_all
4627 ;;
4628
4629 netbsd*)
4630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4632 else
4633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4634 fi
4635 ;;
4636
4637 newos6*)
4638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4639 lt_cv_file_magic_cmd=/usr/bin/file
4640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4641 ;;
4642
4643 *nto* | *qnx*)
4644 lt_cv_deplibs_check_method=pass_all
4645 ;;
4646
4647 openbsd* | bitrig*)
4648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4650 else
4651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4652 fi
4653 ;;
4654
4655 osf3* | osf4* | osf5*)
4656 lt_cv_deplibs_check_method=pass_all
4657 ;;
4658
4659 rdos*)
4660 lt_cv_deplibs_check_method=pass_all
4661 ;;
4662
4663 solaris*)
4664 lt_cv_deplibs_check_method=pass_all
4665 ;;
4666
4667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4668 lt_cv_deplibs_check_method=pass_all
4669 ;;
4670
4671 sysv4 | sysv4.3*)
4672 case $host_vendor in
4673 motorola)
4674 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]'
4675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4676 ;;
4677 ncr)
4678 lt_cv_deplibs_check_method=pass_all
4679 ;;
4680 sequent)
4681 lt_cv_file_magic_cmd='/bin/file'
4682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4683 ;;
4684 sni)
4685 lt_cv_file_magic_cmd='/bin/file'
4686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4687 lt_cv_file_magic_test_file=/lib/libc.so
4688 ;;
4689 siemens)
4690 lt_cv_deplibs_check_method=pass_all
4691 ;;
4692 pc)
4693 lt_cv_deplibs_check_method=pass_all
4694 ;;
4695 esac
4696 ;;
4697
4698 tpf*)
4699 lt_cv_deplibs_check_method=pass_all
4700 ;;
4701 os2*)
4702 lt_cv_deplibs_check_method=pass_all
4703 ;;
4704 esac
4705
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4708 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4709
4710 file_magic_glob=
4711 want_nocaseglob=no
4712 if test "$build" = "$host"; then
4713 case $host_os in
4714 mingw* | pw32*)
4715 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4716 want_nocaseglob=yes
4717 else
4718 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4719 fi
4720 ;;
4721 esac
4722 fi
4723
4724 file_magic_cmd=$lt_cv_file_magic_cmd
4725 deplibs_check_method=$lt_cv_deplibs_check_method
4726 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_DLLTOOL+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$DLLTOOL"; then
4758 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 DLLTOOL=$ac_cv_prog_DLLTOOL
4778 if test -n "$DLLTOOL"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4780 $as_echo "$DLLTOOL" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 if test -z "$ac_cv_prog_DLLTOOL"; then
4789 ac_ct_DLLTOOL=$DLLTOOL
4790 # Extract the first word of "dlltool", so it can be a program name with args.
4791 set dummy dlltool; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$ac_ct_DLLTOOL"; then
4798 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818 if test -n "$ac_ct_DLLTOOL"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4820 $as_echo "$ac_ct_DLLTOOL" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826 if test "x$ac_ct_DLLTOOL" = x; then
4827 DLLTOOL="false"
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 DLLTOOL=$ac_ct_DLLTOOL
4836 fi
4837 else
4838 DLLTOOL="$ac_cv_prog_DLLTOOL"
4839 fi
4840
4841 test -z "$DLLTOOL" && DLLTOOL=dlltool
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4853 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4854 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 lt_cv_sharedlib_from_linklib_cmd='unknown'
4858
4859 case $host_os in
4860 cygwin* | mingw* | pw32* | cegcc*)
4861 # two different shell functions defined in ltmain.sh;
4862 # decide which one to use based on capabilities of $DLLTOOL
4863 case `$DLLTOOL --help 2>&1` in
4864 *--identify-strict*)
4865 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4866 ;;
4867 *)
4868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4869 ;;
4870 esac
4871 ;;
4872 *)
4873 # fallback: assume linklib IS sharedlib
4874 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4875 ;;
4876 esac
4877
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4880 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4881 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4882 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4883
4884
4885
4886
4887
4888
4889
4890
4891 if test -n "$ac_tool_prefix"; then
4892 for ac_prog in ar
4893 do
4894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_AR+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$AR"; then
4902 ac_cv_prog_AR="$AR" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 AR=$ac_cv_prog_AR
4922 if test -n "$AR"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4924 $as_echo "$AR" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930
4931 test -n "$AR" && break
4932 done
4933 fi
4934 if test -z "$AR"; then
4935 ac_ct_AR=$AR
4936 for ac_prog in ar
4937 do
4938 # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy $ac_prog; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 if test -n "$ac_ct_AR"; then
4946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_prog_ac_ct_AR="$ac_prog"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 fi
4964 fi
4965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4966 if test -n "$ac_ct_AR"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4968 $as_echo "$ac_ct_AR" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4972 fi
4973
4974
4975 test -n "$ac_ct_AR" && break
4976 done
4977
4978 if test "x$ac_ct_AR" = x; then
4979 AR="false"
4980 else
4981 case $cross_compiling:$ac_tool_warned in
4982 yes:)
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4985 ac_tool_warned=yes ;;
4986 esac
4987 AR=$ac_ct_AR
4988 fi
4989 fi
4990
4991 : ${AR=ar}
4992 : ${AR_FLAGS=cru}
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5005 $as_echo_n "checking for archiver @FILE support... " >&6; }
5006 if ${lt_cv_ar_at_file+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 lt_cv_ar_at_file=no
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012
5013 int
5014 main ()
5015 {
5016
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 echo conftest.$ac_objext > conftest.lst
5023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5025 (eval $lt_ar_try) 2>&5
5026 ac_status=$?
5027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028 test $ac_status = 0; }
5029 if test 0 -eq "$ac_status"; then
5030 # Ensure the archiver fails upon bogus file names.
5031 rm -f conftest.$ac_objext libconftest.a
5032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5033 (eval $lt_ar_try) 2>&5
5034 ac_status=$?
5035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5036 test $ac_status = 0; }
5037 if test 0 -ne "$ac_status"; then
5038 lt_cv_ar_at_file=@
5039 fi
5040 fi
5041 rm -f conftest.* libconftest.a
5042
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5048 $as_echo "$lt_cv_ar_at_file" >&6; }
5049
5050 if test no = "$lt_cv_ar_at_file"; then
5051 archiver_list_spec=
5052 else
5053 archiver_list_spec=$lt_cv_ar_at_file
5054 fi
5055
5056
5057
5058
5059
5060
5061
5062 if test -n "$ac_tool_prefix"; then
5063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5064 set dummy ${ac_tool_prefix}strip; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_STRIP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$STRIP"; then
5071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 STRIP=$ac_cv_prog_STRIP
5091 if test -n "$STRIP"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5093 $as_echo "$STRIP" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100 fi
5101 if test -z "$ac_cv_prog_STRIP"; then
5102 ac_ct_STRIP=$STRIP
5103 # Extract the first word of "strip", so it can be a program name with args.
5104 set dummy strip; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$ac_ct_STRIP"; then
5111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_STRIP="strip"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5131 if test -n "$ac_ct_STRIP"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5133 $as_echo "$ac_ct_STRIP" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139 if test "x$ac_ct_STRIP" = x; then
5140 STRIP=":"
5141 else
5142 case $cross_compiling:$ac_tool_warned in
5143 yes:)
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146 ac_tool_warned=yes ;;
5147 esac
5148 STRIP=$ac_ct_STRIP
5149 fi
5150 else
5151 STRIP="$ac_cv_prog_STRIP"
5152 fi
5153
5154 test -z "$STRIP" && STRIP=:
5155
5156
5157
5158
5159
5160
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_RANLIB+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$RANLIB"; then
5170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 fi
5188 fi
5189 RANLIB=$ac_cv_prog_RANLIB
5190 if test -n "$RANLIB"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5192 $as_echo "$RANLIB" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197
5198
5199 fi
5200 if test -z "$ac_cv_prog_RANLIB"; then
5201 ac_ct_RANLIB=$RANLIB
5202 # Extract the first word of "ranlib", so it can be a program name with args.
5203 set dummy ranlib; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -n "$ac_ct_RANLIB"; then
5210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_RANLIB="ranlib"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 fi
5228 fi
5229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5230 if test -n "$ac_ct_RANLIB"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5232 $as_echo "$ac_ct_RANLIB" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238 if test "x$ac_ct_RANLIB" = x; then
5239 RANLIB=":"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 RANLIB=$ac_ct_RANLIB
5248 fi
5249 else
5250 RANLIB="$ac_cv_prog_RANLIB"
5251 fi
5252
5253 test -z "$RANLIB" && RANLIB=:
5254
5255
5256
5257
5258
5259
5260 # Determine commands to create old-style static archives.
5261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5262 old_postinstall_cmds='chmod 644 $oldlib'
5263 old_postuninstall_cmds=
5264
5265 if test -n "$RANLIB"; then
5266 case $host_os in
5267 bitrig* | openbsd*)
5268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5269 ;;
5270 *)
5271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5272 ;;
5273 esac
5274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5275 fi
5276
5277 case $host_os in
5278 darwin*)
5279 lock_old_archive_extraction=yes ;;
5280 *)
5281 lock_old_archive_extraction=no ;;
5282 esac
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304 for ac_prog in gawk mawk nawk awk
5305 do
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_AWK+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$AWK"; then
5314 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_AWK="$ac_prog"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 fi
5332 fi
5333 AWK=$ac_cv_prog_AWK
5334 if test -n "$AWK"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5336 $as_echo "$AWK" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 test -n "$AWK" && break
5344 done
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 # If no C compiler was specified, use CC.
5365 LTCC=${LTCC-"$CC"}
5366
5367 # If no C compiler flags were specified, use CFLAGS.
5368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5369
5370 # Allow CC to be a program name with arguments.
5371 compiler=$CC
5372
5373
5374 # Check for command to grab the raw symbol name followed by C symbol from nm.
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5376 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5377 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380
5381 # These are sane defaults that work on at least a few old systems.
5382 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5383
5384 # Character class describing NM global symbol codes.
5385 symcode='[BCDEGRST]'
5386
5387 # Regexp to match symbols that can be accessed directly from C.
5388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5389
5390 # Define system-specific variables.
5391 case $host_os in
5392 aix*)
5393 symcode='[BCDT]'
5394 ;;
5395 cygwin* | mingw* | pw32* | cegcc*)
5396 symcode='[ABCDGISTW]'
5397 ;;
5398 hpux*)
5399 if test ia64 = "$host_cpu"; then
5400 symcode='[ABCDEGRST]'
5401 fi
5402 ;;
5403 irix* | nonstopux*)
5404 symcode='[BCDEGRST]'
5405 ;;
5406 osf*)
5407 symcode='[BCDEGQRST]'
5408 ;;
5409 solaris*)
5410 symcode='[BDRT]'
5411 ;;
5412 sco3.2v5*)
5413 symcode='[DT]'
5414 ;;
5415 sysv4.2uw2*)
5416 symcode='[DT]'
5417 ;;
5418 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5419 symcode='[ABDT]'
5420 ;;
5421 sysv4)
5422 symcode='[DFNSTU]'
5423 ;;
5424 esac
5425
5426 # If we're using GNU nm, then use its standard symbol codes.
5427 case `$NM -V 2>&1` in
5428 *GNU* | *'with BFD'*)
5429 symcode='[ABCDGIRSTW]' ;;
5430 esac
5431
5432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5433 # Gets list of data symbols to import.
5434 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5435 # Adjust the below global symbol transforms to fixup imported variables.
5436 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5437 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5438 lt_c_name_lib_hook="\
5439 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5440 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5441 else
5442 # Disable hooks by default.
5443 lt_cv_sys_global_symbol_to_import=
5444 lt_cdecl_hook=
5445 lt_c_name_hook=
5446 lt_c_name_lib_hook=
5447 fi
5448
5449 # Transform an extracted symbol line into a proper C declaration.
5450 # Some systems (esp. on ia64) link data and code symbols differently,
5451 # so use this general approach.
5452 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5453 $lt_cdecl_hook\
5454 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5455 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5456
5457 # Transform an extracted symbol line into symbol name and symbol address
5458 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5459 $lt_c_name_hook\
5460 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5461 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5462
5463 # Transform an extracted symbol line into symbol name with lib prefix and
5464 # symbol address.
5465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5466 $lt_c_name_lib_hook\
5467 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5468 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5469 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5470
5471 # Handle CRLF in mingw tool chain
5472 opt_cr=
5473 case $build_os in
5474 mingw*)
5475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5476 ;;
5477 esac
5478
5479 # Try without a prefix underscore, then with it.
5480 for ac_symprfx in "" "_"; do
5481
5482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5483 symxfrm="\\1 $ac_symprfx\\2 \\2"
5484
5485 # Write the raw and C identifiers.
5486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5487 # Fake it for dumpbin and say T for any non-static function,
5488 # D for any global variable and I for any imported variable.
5489 # Also find C++ and __fastcall symbols from MSVC++,
5490 # which start with @ or ?.
5491 lt_cv_sys_global_symbol_pipe="$AWK '"\
5492 " {last_section=section; section=\$ 3};"\
5493 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5494 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5495 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5496 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5497 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5498 " \$ 0!~/External *\|/{next};"\
5499 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5500 " {if(hide[section]) next};"\
5501 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5502 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5503 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5504 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5505 " ' prfx=^$ac_symprfx"
5506 else
5507 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5508 fi
5509 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5510
5511 # Check to see that the pipe works correctly.
5512 pipe_works=no
5513
5514 rm -f conftest*
5515 cat > conftest.$ac_ext <<_LT_EOF
5516 #ifdef __cplusplus
5517 extern "C" {
5518 #endif
5519 char nm_test_var;
5520 void nm_test_func(void);
5521 void nm_test_func(void){}
5522 #ifdef __cplusplus
5523 }
5524 #endif
5525 int main(){nm_test_var='a';nm_test_func();return(0);}
5526 _LT_EOF
5527
5528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5529 (eval $ac_compile) 2>&5
5530 ac_status=$?
5531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5532 test $ac_status = 0; }; then
5533 # Now try to grab the symbols.
5534 nlist=conftest.nm
5535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5536 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5537 ac_status=$?
5538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5539 test $ac_status = 0; } && test -s "$nlist"; then
5540 # Try sorting and uniquifying the output.
5541 if sort "$nlist" | uniq > "$nlist"T; then
5542 mv -f "$nlist"T "$nlist"
5543 else
5544 rm -f "$nlist"T
5545 fi
5546
5547 # Make sure that we snagged all the symbols we need.
5548 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5549 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5550 cat <<_LT_EOF > conftest.$ac_ext
5551 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5552 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5553 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5554 relocations are performed -- see ld's documentation on pseudo-relocs. */
5555 # define LT_DLSYM_CONST
5556 #elif defined __osf__
5557 /* This system does not cope well with relocations in const data. */
5558 # define LT_DLSYM_CONST
5559 #else
5560 # define LT_DLSYM_CONST const
5561 #endif
5562
5563 #ifdef __cplusplus
5564 extern "C" {
5565 #endif
5566
5567 _LT_EOF
5568 # Now generate the symbol file.
5569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5570
5571 cat <<_LT_EOF >> conftest.$ac_ext
5572
5573 /* The mapping between symbol names and symbols. */
5574 LT_DLSYM_CONST struct {
5575 const char *name;
5576 void *address;
5577 }
5578 lt__PROGRAM__LTX_preloaded_symbols[] =
5579 {
5580 { "@PROGRAM@", (void *) 0 },
5581 _LT_EOF
5582 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5583 cat <<\_LT_EOF >> conftest.$ac_ext
5584 {0, (void *) 0}
5585 };
5586
5587 /* This works around a problem in FreeBSD linker */
5588 #ifdef FREEBSD_WORKAROUND
5589 static const void *lt_preloaded_setup() {
5590 return lt__PROGRAM__LTX_preloaded_symbols;
5591 }
5592 #endif
5593
5594 #ifdef __cplusplus
5595 }
5596 #endif
5597 _LT_EOF
5598 # Now try linking the two files.
5599 mv conftest.$ac_objext conftstm.$ac_objext
5600 lt_globsym_save_LIBS=$LIBS
5601 lt_globsym_save_CFLAGS=$CFLAGS
5602 LIBS=conftstm.$ac_objext
5603 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5605 (eval $ac_link) 2>&5
5606 ac_status=$?
5607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5608 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5609 pipe_works=yes
5610 fi
5611 LIBS=$lt_globsym_save_LIBS
5612 CFLAGS=$lt_globsym_save_CFLAGS
5613 else
5614 echo "cannot find nm_test_func in $nlist" >&5
5615 fi
5616 else
5617 echo "cannot find nm_test_var in $nlist" >&5
5618 fi
5619 else
5620 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5621 fi
5622 else
5623 echo "$progname: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 fi
5626 rm -rf conftest* conftst*
5627
5628 # Do not use the global_symbol_pipe unless it works.
5629 if test yes = "$pipe_works"; then
5630 break
5631 else
5632 lt_cv_sys_global_symbol_pipe=
5633 fi
5634 done
5635
5636 fi
5637
5638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5639 lt_cv_sys_global_symbol_to_cdecl=
5640 fi
5641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5643 $as_echo "failed" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5646 $as_echo "ok" >&6; }
5647 fi
5648
5649 # Response file support.
5650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5651 nm_file_list_spec='@'
5652 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5653 nm_file_list_spec='@'
5654 fi
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5693 $as_echo_n "checking for sysroot... " >&6; }
5694
5695 # Check whether --with-sysroot was given.
5696 if test "${with_sysroot+set}" = set; then :
5697 withval=$with_sysroot;
5698 else
5699 with_sysroot=no
5700 fi
5701
5702
5703 lt_sysroot=
5704 case $with_sysroot in #(
5705 yes)
5706 if test yes = "$GCC"; then
5707 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5708 fi
5709 ;; #(
5710 /*)
5711 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5712 ;; #(
5713 no|'')
5714 ;; #(
5715 *)
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5717 $as_echo "$with_sysroot" >&6; }
5718 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5719 ;;
5720 esac
5721
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5723 $as_echo "${lt_sysroot:-no}" >&6; }
5724
5725
5726
5727
5728
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5730 $as_echo_n "checking for a working dd... " >&6; }
5731 if ${ac_cv_path_lt_DD+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 printf 0123456789abcdef0123456789abcdef >conftest.i
5735 cat conftest.i conftest.i >conftest2.i
5736 : ${lt_DD:=$DD}
5737 if test -z "$lt_DD"; then
5738 ac_path_lt_DD_found=false
5739 # Loop through the user's path and test for each of PROGNAME-LIST
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in dd; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5748 as_fn_executable_p "$ac_path_lt_DD" || continue
5749 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5750 cmp -s conftest.i conftest.out \
5751 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5752 fi
5753 $ac_path_lt_DD_found && break 3
5754 done
5755 done
5756 done
5757 IFS=$as_save_IFS
5758 if test -z "$ac_cv_path_lt_DD"; then
5759 :
5760 fi
5761 else
5762 ac_cv_path_lt_DD=$lt_DD
5763 fi
5764
5765 rm -f conftest.i conftest2.i conftest.out
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5768 $as_echo "$ac_cv_path_lt_DD" >&6; }
5769
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5772 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5773 if ${lt_cv_truncate_bin+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 printf 0123456789abcdef0123456789abcdef >conftest.i
5777 cat conftest.i conftest.i >conftest2.i
5778 lt_cv_truncate_bin=
5779 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5780 cmp -s conftest.i conftest.out \
5781 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5782 fi
5783 rm -f conftest.i conftest2.i conftest.out
5784 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5787 $as_echo "$lt_cv_truncate_bin" >&6; }
5788
5789
5790
5791
5792
5793
5794
5795 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5796 func_cc_basename ()
5797 {
5798 for cc_temp in $*""; do
5799 case $cc_temp in
5800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5802 \-*) ;;
5803 *) break;;
5804 esac
5805 done
5806 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5807 }
5808
5809 # Check whether --enable-libtool-lock was given.
5810 if test "${enable_libtool_lock+set}" = set; then :
5811 enableval=$enable_libtool_lock;
5812 fi
5813
5814 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5815
5816 # Some flags need to be propagated to the compiler or linker for good
5817 # libtool support.
5818 case $host in
5819 ia64-*-hpux*)
5820 # Find out what ABI is being produced by ac_compile, and set mode
5821 # options accordingly.
5822 echo 'int i;' > conftest.$ac_ext
5823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5824 (eval $ac_compile) 2>&5
5825 ac_status=$?
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; }; then
5828 case `/usr/bin/file conftest.$ac_objext` in
5829 *ELF-32*)
5830 HPUX_IA64_MODE=32
5831 ;;
5832 *ELF-64*)
5833 HPUX_IA64_MODE=64
5834 ;;
5835 esac
5836 fi
5837 rm -rf conftest*
5838 ;;
5839 *-*-irix6*)
5840 # Find out what ABI is being produced by ac_compile, and set linker
5841 # options accordingly.
5842 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5844 (eval $ac_compile) 2>&5
5845 ac_status=$?
5846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5847 test $ac_status = 0; }; then
5848 if test yes = "$lt_cv_prog_gnu_ld"; then
5849 case `/usr/bin/file conftest.$ac_objext` in
5850 *32-bit*)
5851 LD="${LD-ld} -melf32bsmip"
5852 ;;
5853 *N32*)
5854 LD="${LD-ld} -melf32bmipn32"
5855 ;;
5856 *64-bit*)
5857 LD="${LD-ld} -melf64bmip"
5858 ;;
5859 esac
5860 else
5861 case `/usr/bin/file conftest.$ac_objext` in
5862 *32-bit*)
5863 LD="${LD-ld} -32"
5864 ;;
5865 *N32*)
5866 LD="${LD-ld} -n32"
5867 ;;
5868 *64-bit*)
5869 LD="${LD-ld} -64"
5870 ;;
5871 esac
5872 fi
5873 fi
5874 rm -rf conftest*
5875 ;;
5876
5877 mips64*-*linux*)
5878 # Find out what ABI is being produced by ac_compile, and set linker
5879 # options accordingly.
5880 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5882 (eval $ac_compile) 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; then
5886 emul=elf
5887 case `/usr/bin/file conftest.$ac_objext` in
5888 *32-bit*)
5889 emul="${emul}32"
5890 ;;
5891 *64-bit*)
5892 emul="${emul}64"
5893 ;;
5894 esac
5895 case `/usr/bin/file conftest.$ac_objext` in
5896 *MSB*)
5897 emul="${emul}btsmip"
5898 ;;
5899 *LSB*)
5900 emul="${emul}ltsmip"
5901 ;;
5902 esac
5903 case `/usr/bin/file conftest.$ac_objext` in
5904 *N32*)
5905 emul="${emul}n32"
5906 ;;
5907 esac
5908 LD="${LD-ld} -m $emul"
5909 fi
5910 rm -rf conftest*
5911 ;;
5912
5913 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5914 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5915 # Find out what ABI is being produced by ac_compile, and set linker
5916 # options accordingly. Note that the listed cases only cover the
5917 # situations where additional linker options are needed (such as when
5918 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5919 # vice versa); the common cases where no linker options are needed do
5920 # not appear in the list.
5921 echo 'int i;' > conftest.$ac_ext
5922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5923 (eval $ac_compile) 2>&5
5924 ac_status=$?
5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926 test $ac_status = 0; }; then
5927 case `/usr/bin/file conftest.o` in
5928 *32-bit*)
5929 case $host in
5930 x86_64-*kfreebsd*-gnu)
5931 LD="${LD-ld} -m elf_i386_fbsd"
5932 ;;
5933 x86_64-*linux*)
5934 case `/usr/bin/file conftest.o` in
5935 *x86-64*)
5936 LD="${LD-ld} -m elf32_x86_64"
5937 ;;
5938 *)
5939 LD="${LD-ld} -m elf_i386"
5940 ;;
5941 esac
5942 ;;
5943 powerpc64le-*linux*)
5944 LD="${LD-ld} -m elf32lppclinux"
5945 ;;
5946 powerpc64-*linux*)
5947 LD="${LD-ld} -m elf32ppclinux"
5948 ;;
5949 s390x-*linux*)
5950 LD="${LD-ld} -m elf_s390"
5951 ;;
5952 sparc64-*linux*)
5953 LD="${LD-ld} -m elf32_sparc"
5954 ;;
5955 esac
5956 ;;
5957 *64-bit*)
5958 case $host in
5959 x86_64-*kfreebsd*-gnu)
5960 LD="${LD-ld} -m elf_x86_64_fbsd"
5961 ;;
5962 x86_64-*linux*)
5963 LD="${LD-ld} -m elf_x86_64"
5964 ;;
5965 powerpcle-*linux*)
5966 LD="${LD-ld} -m elf64lppc"
5967 ;;
5968 powerpc-*linux*)
5969 LD="${LD-ld} -m elf64ppc"
5970 ;;
5971 s390*-*linux*|s390*-*tpf*)
5972 LD="${LD-ld} -m elf64_s390"
5973 ;;
5974 sparc*-*linux*)
5975 LD="${LD-ld} -m elf64_sparc"
5976 ;;
5977 esac
5978 ;;
5979 esac
5980 fi
5981 rm -rf conftest*
5982 ;;
5983
5984 *-*-sco3.2v5*)
5985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5986 SAVE_CFLAGS=$CFLAGS
5987 CFLAGS="$CFLAGS -belf"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5989 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5990 if ${lt_cv_cc_needs_belf+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 ac_ext=c
5994 ac_cpp='$CPP $CPPFLAGS'
5995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5998
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001
6002 int
6003 main ()
6004 {
6005
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_link "$LINENO"; then :
6011 lt_cv_cc_needs_belf=yes
6012 else
6013 lt_cv_cc_needs_belf=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6017 ac_ext=c
6018 ac_cpp='$CPP $CPPFLAGS'
6019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6026 if test yes != "$lt_cv_cc_needs_belf"; then
6027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6028 CFLAGS=$SAVE_CFLAGS
6029 fi
6030 ;;
6031 *-*solaris*)
6032 # Find out what ABI is being produced by ac_compile, and set linker
6033 # options accordingly.
6034 echo 'int i;' > conftest.$ac_ext
6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; then
6040 case `/usr/bin/file conftest.o` in
6041 *64-bit*)
6042 case $lt_cv_prog_gnu_ld in
6043 yes*)
6044 case $host in
6045 i?86-*-solaris*|x86_64-*-solaris*)
6046 LD="${LD-ld} -m elf_x86_64"
6047 ;;
6048 sparc*-*-solaris*)
6049 LD="${LD-ld} -m elf64_sparc"
6050 ;;
6051 esac
6052 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6053 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6054 LD=${LD-ld}_sol2
6055 fi
6056 ;;
6057 *)
6058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6059 LD="${LD-ld} -64"
6060 fi
6061 ;;
6062 esac
6063 ;;
6064 esac
6065 fi
6066 rm -rf conftest*
6067 ;;
6068 esac
6069
6070 need_locks=$enable_libtool_lock
6071
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}mt; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$MANIFEST_TOOL"; then
6081 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6101 if test -n "$MANIFEST_TOOL"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6103 $as_echo "$MANIFEST_TOOL" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6112 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6113 # Extract the first word of "mt", so it can be a program name with args.
6114 set dummy mt; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$ac_ct_MANIFEST_TOOL"; then
6121 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6141 if test -n "$ac_ct_MANIFEST_TOOL"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6143 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6150 MANIFEST_TOOL=":"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6159 fi
6160 else
6161 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6162 fi
6163
6164 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6166 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6167 if ${lt_cv_path_mainfest_tool+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 lt_cv_path_mainfest_tool=no
6171 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6172 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6173 cat conftest.err >&5
6174 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6175 lt_cv_path_mainfest_tool=yes
6176 fi
6177 rm -f conftest*
6178 fi
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6180 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6181 if test yes != "$lt_cv_path_mainfest_tool"; then
6182 MANIFEST_TOOL=:
6183 fi
6184
6185
6186
6187
6188
6189
6190 case $host_os in
6191 rhapsody* | darwin*)
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$DSYMUTIL"; then
6201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6221 if test -n "$DSYMUTIL"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6223 $as_echo "$DSYMUTIL" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_DSYMUTIL"; then
6232 ac_ct_DSYMUTIL=$DSYMUTIL
6233 # Extract the first word of "dsymutil", so it can be a program name with args.
6234 set dummy dsymutil; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_DSYMUTIL"; then
6241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6261 if test -n "$ac_ct_DSYMUTIL"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_DSYMUTIL" = x; then
6270 DSYMUTIL=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 DSYMUTIL=$ac_ct_DSYMUTIL
6279 fi
6280 else
6281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6282 fi
6283
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_NMEDIT+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$NMEDIT"; then
6293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 NMEDIT=$ac_cv_prog_NMEDIT
6313 if test -n "$NMEDIT"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6315 $as_echo "$NMEDIT" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_NMEDIT"; then
6324 ac_ct_NMEDIT=$NMEDIT
6325 # Extract the first word of "nmedit", so it can be a program name with args.
6326 set dummy nmedit; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_NMEDIT"; then
6333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6353 if test -n "$ac_ct_NMEDIT"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6355 $as_echo "$ac_ct_NMEDIT" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361 if test "x$ac_ct_NMEDIT" = x; then
6362 NMEDIT=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370 NMEDIT=$ac_ct_NMEDIT
6371 fi
6372 else
6373 NMEDIT="$ac_cv_prog_NMEDIT"
6374 fi
6375
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_LIPO+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$LIPO"; then
6385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 LIPO=$ac_cv_prog_LIPO
6405 if test -n "$LIPO"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6407 $as_echo "$LIPO" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_LIPO"; then
6416 ac_ct_LIPO=$LIPO
6417 # Extract the first word of "lipo", so it can be a program name with args.
6418 set dummy lipo; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_LIPO"; then
6425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_ac_ct_LIPO="lipo"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6445 if test -n "$ac_ct_LIPO"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6447 $as_echo "$ac_ct_LIPO" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_LIPO" = x; then
6454 LIPO=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 LIPO=$ac_ct_LIPO
6463 fi
6464 else
6465 LIPO="$ac_cv_prog_LIPO"
6466 fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}otool; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_OTOOL+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$OTOOL"; then
6477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 OTOOL=$ac_cv_prog_OTOOL
6497 if test -n "$OTOOL"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6499 $as_echo "$OTOOL" >&6; }
6500 else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_OTOOL"; then
6508 ac_ct_OTOOL=$OTOOL
6509 # Extract the first word of "otool", so it can be a program name with args.
6510 set dummy otool; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_OTOOL"; then
6517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_ac_ct_OTOOL="otool"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6537 if test -n "$ac_ct_OTOOL"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6539 $as_echo "$ac_ct_OTOOL" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_OTOOL" = x; then
6546 OTOOL=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 OTOOL=$ac_ct_OTOOL
6555 fi
6556 else
6557 OTOOL="$ac_cv_prog_OTOOL"
6558 fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_OTOOL64+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$OTOOL64"; then
6569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 OTOOL64=$ac_cv_prog_OTOOL64
6589 if test -n "$OTOOL64"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6591 $as_echo "$OTOOL64" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_OTOOL64"; then
6600 ac_ct_OTOOL64=$OTOOL64
6601 # Extract the first word of "otool64", so it can be a program name with args.
6602 set dummy otool64; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_OTOOL64"; then
6609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_OTOOL64="otool64"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6629 if test -n "$ac_ct_OTOOL64"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6631 $as_echo "$ac_ct_OTOOL64" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_OTOOL64" = x; then
6638 OTOOL64=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 OTOOL64=$ac_ct_OTOOL64
6647 fi
6648 else
6649 OTOOL64="$ac_cv_prog_OTOOL64"
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6679 $as_echo_n "checking for -single_module linker flag... " >&6; }
6680 if ${lt_cv_apple_cc_single_mod+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 lt_cv_apple_cc_single_mod=no
6684 if test -z "$LT_MULTI_MODULE"; then
6685 # By default we will add the -single_module flag. You can override
6686 # by either setting the environment variable LT_MULTI_MODULE
6687 # non-empty at configure time, or by adding -multi_module to the
6688 # link flags.
6689 rm -rf libconftest.dylib*
6690 echo "int foo(void){return 1;}" > conftest.c
6691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6692 -dynamiclib -Wl,-single_module conftest.c" >&5
6693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6695 _lt_result=$?
6696 # If there is a non-empty error log, and "single_module"
6697 # appears in it, assume the flag caused a linker warning
6698 if test -s conftest.err && $GREP single_module conftest.err; then
6699 cat conftest.err >&5
6700 # Otherwise, if the output was created with a 0 exit code from
6701 # the compiler, it worked.
6702 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6703 lt_cv_apple_cc_single_mod=yes
6704 else
6705 cat conftest.err >&5
6706 fi
6707 rm -rf libconftest.dylib*
6708 rm -f conftest.*
6709 fi
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6713
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6715 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6716 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 lt_cv_ld_exported_symbols_list=no
6720 save_LDFLAGS=$LDFLAGS
6721 echo "_main" > conftest.sym
6722 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725
6726 int
6727 main ()
6728 {
6729
6730 ;
6731 return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_c_try_link "$LINENO"; then :
6735 lt_cv_ld_exported_symbols_list=yes
6736 else
6737 lt_cv_ld_exported_symbols_list=no
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext \
6740 conftest$ac_exeext conftest.$ac_ext
6741 LDFLAGS=$save_LDFLAGS
6742
6743 fi
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6745 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6748 $as_echo_n "checking for -force_load linker flag... " >&6; }
6749 if ${lt_cv_ld_force_load+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 lt_cv_ld_force_load=no
6753 cat > conftest.c << _LT_EOF
6754 int forced_loaded() { return 2;}
6755 _LT_EOF
6756 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6757 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6758 echo "$AR cru libconftest.a conftest.o" >&5
6759 $AR cru libconftest.a conftest.o 2>&5
6760 echo "$RANLIB libconftest.a" >&5
6761 $RANLIB libconftest.a 2>&5
6762 cat > conftest.c << _LT_EOF
6763 int main() { return 0;}
6764 _LT_EOF
6765 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6766 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6767 _lt_result=$?
6768 if test -s conftest.err && $GREP force_load conftest.err; then
6769 cat conftest.err >&5
6770 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6771 lt_cv_ld_force_load=yes
6772 else
6773 cat conftest.err >&5
6774 fi
6775 rm -f conftest.err libconftest.a conftest conftest.c
6776 rm -rf conftest.dSYM
6777
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6780 $as_echo "$lt_cv_ld_force_load" >&6; }
6781 case $host_os in
6782 rhapsody* | darwin1.[012])
6783 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6784 darwin1.*)
6785 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6786 darwin*) # darwin 5.x on
6787 # if running on 10.5 or later, the deployment target defaults
6788 # to the OS version, if on x86, and 10.4, the deployment
6789 # target defaults to 10.4. Don't you love it?
6790 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6791 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6792 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6793 10.[012][,.]*)
6794 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6795 10.*)
6796 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6797 esac
6798 ;;
6799 esac
6800 if test yes = "$lt_cv_apple_cc_single_mod"; then
6801 _lt_dar_single_mod='$single_module'
6802 fi
6803 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6804 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6805 else
6806 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6807 fi
6808 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6809 _lt_dsymutil='~$DSYMUTIL $lib || :'
6810 else
6811 _lt_dsymutil=
6812 fi
6813 ;;
6814 esac
6815
6816 # func_munge_path_list VARIABLE PATH
6817 # -----------------------------------
6818 # VARIABLE is name of variable containing _space_ separated list of
6819 # directories to be munged by the contents of PATH, which is string
6820 # having a format:
6821 # "DIR[:DIR]:"
6822 # string "DIR[ DIR]" will be prepended to VARIABLE
6823 # ":DIR[:DIR]"
6824 # string "DIR[ DIR]" will be appended to VARIABLE
6825 # "DIRP[:DIRP]::[DIRA:]DIRA"
6826 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6827 # "DIRA[ DIRA]" will be appended to VARIABLE
6828 # "DIR[:DIR]"
6829 # VARIABLE will be replaced by "DIR[ DIR]"
6830 func_munge_path_list ()
6831 {
6832 case x$2 in
6833 x)
6834 ;;
6835 *:)
6836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6837 ;;
6838 x:*)
6839 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6840 ;;
6841 *::*)
6842 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6843 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6844 ;;
6845 *)
6846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6847 ;;
6848 esac
6849 }
6850
6851 ac_ext=c
6852 ac_cpp='$CPP $CPPFLAGS'
6853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6858 # On Suns, sometimes $CPP names a directory.
6859 if test -n "$CPP" && test -d "$CPP"; then
6860 CPP=
6861 fi
6862 if test -z "$CPP"; then
6863 if ${ac_cv_prog_CPP+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 # Double quotes because CPP needs to be expanded
6867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6868 do
6869 ac_preproc_ok=false
6870 for ac_c_preproc_warn_flag in '' yes
6871 do
6872 # Use a header file that comes with gcc, so configuring glibc
6873 # with a fresh cross-compiler works.
6874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875 # <limits.h> exists even on freestanding compilers.
6876 # On the NeXT, cc -E runs the code through the compiler's parser,
6877 # not just through cpp. "Syntax error" is here to catch this case.
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #ifdef __STDC__
6881 # include <limits.h>
6882 #else
6883 # include <assert.h>
6884 #endif
6885 Syntax error
6886 _ACEOF
6887 if ac_fn_c_try_cpp "$LINENO"; then :
6888
6889 else
6890 # Broken: fails on valid input.
6891 continue
6892 fi
6893 rm -f conftest.err conftest.i conftest.$ac_ext
6894
6895 # OK, works on sane cases. Now check whether nonexistent headers
6896 # can be detected and how.
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <ac_nonexistent.h>
6900 _ACEOF
6901 if ac_fn_c_try_cpp "$LINENO"; then :
6902 # Broken: success on invalid input.
6903 continue
6904 else
6905 # Passes both tests.
6906 ac_preproc_ok=:
6907 break
6908 fi
6909 rm -f conftest.err conftest.i conftest.$ac_ext
6910
6911 done
6912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913 rm -f conftest.i conftest.err conftest.$ac_ext
6914 if $ac_preproc_ok; then :
6915 break
6916 fi
6917
6918 done
6919 ac_cv_prog_CPP=$CPP
6920
6921 fi
6922 CPP=$ac_cv_prog_CPP
6923 else
6924 ac_cv_prog_CPP=$CPP
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6927 $as_echo "$CPP" >&6; }
6928 ac_preproc_ok=false
6929 for ac_c_preproc_warn_flag in '' yes
6930 do
6931 # Use a header file that comes with gcc, so configuring glibc
6932 # with a fresh cross-compiler works.
6933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 # <limits.h> exists even on freestanding compilers.
6935 # On the NeXT, cc -E runs the code through the compiler's parser,
6936 # not just through cpp. "Syntax error" is here to catch this case.
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939 #ifdef __STDC__
6940 # include <limits.h>
6941 #else
6942 # include <assert.h>
6943 #endif
6944 Syntax error
6945 _ACEOF
6946 if ac_fn_c_try_cpp "$LINENO"; then :
6947
6948 else
6949 # Broken: fails on valid input.
6950 continue
6951 fi
6952 rm -f conftest.err conftest.i conftest.$ac_ext
6953
6954 # OK, works on sane cases. Now check whether nonexistent headers
6955 # can be detected and how.
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <ac_nonexistent.h>
6959 _ACEOF
6960 if ac_fn_c_try_cpp "$LINENO"; then :
6961 # Broken: success on invalid input.
6962 continue
6963 else
6964 # Passes both tests.
6965 ac_preproc_ok=:
6966 break
6967 fi
6968 rm -f conftest.err conftest.i conftest.$ac_ext
6969
6970 done
6971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6972 rm -f conftest.i conftest.err conftest.$ac_ext
6973 if $ac_preproc_ok; then :
6974
6975 else
6976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6978 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6979 See \`config.log' for more details" "$LINENO" 5; }
6980 fi
6981
6982 ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6990 $as_echo_n "checking for ANSI C header files... " >&6; }
6991 if ${ac_cv_header_stdc+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 #include <stdlib.h>
6997 #include <stdarg.h>
6998 #include <string.h>
6999 #include <float.h>
7000
7001 int
7002 main ()
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 ac_cv_header_stdc=yes
7011 else
7012 ac_cv_header_stdc=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015
7016 if test $ac_cv_header_stdc = yes; then
7017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <string.h>
7021
7022 _ACEOF
7023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024 $EGREP "memchr" >/dev/null 2>&1; then :
7025
7026 else
7027 ac_cv_header_stdc=no
7028 fi
7029 rm -f conftest*
7030
7031 fi
7032
7033 if test $ac_cv_header_stdc = yes; then
7034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 #include <stdlib.h>
7038
7039 _ACEOF
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "free" >/dev/null 2>&1; then :
7042
7043 else
7044 ac_cv_header_stdc=no
7045 fi
7046 rm -f conftest*
7047
7048 fi
7049
7050 if test $ac_cv_header_stdc = yes; then
7051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7052 if test "$cross_compiling" = yes; then :
7053 :
7054 else
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 #include <ctype.h>
7058 #include <stdlib.h>
7059 #if ((' ' & 0x0FF) == 0x020)
7060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7062 #else
7063 # define ISLOWER(c) \
7064 (('a' <= (c) && (c) <= 'i') \
7065 || ('j' <= (c) && (c) <= 'r') \
7066 || ('s' <= (c) && (c) <= 'z'))
7067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7068 #endif
7069
7070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7071 int
7072 main ()
7073 {
7074 int i;
7075 for (i = 0; i < 256; i++)
7076 if (XOR (islower (i), ISLOWER (i))
7077 || toupper (i) != TOUPPER (i))
7078 return 2;
7079 return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_run "$LINENO"; then :
7083
7084 else
7085 ac_cv_header_stdc=no
7086 fi
7087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7088 conftest.$ac_objext conftest.beam conftest.$ac_ext
7089 fi
7090
7091 fi
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7094 $as_echo "$ac_cv_header_stdc" >&6; }
7095 if test $ac_cv_header_stdc = yes; then
7096
7097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7098
7099 fi
7100
7101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7103 inttypes.h stdint.h unistd.h
7104 do :
7105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7107 "
7108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7109 cat >>confdefs.h <<_ACEOF
7110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111 _ACEOF
7112
7113 fi
7114
7115 done
7116
7117
7118 for ac_header in dlfcn.h
7119 do :
7120 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7121 "
7122 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7123 cat >>confdefs.h <<_ACEOF
7124 #define HAVE_DLFCN_H 1
7125 _ACEOF
7126
7127 fi
7128
7129 done
7130
7131
7132
7133
7134
7135 # Set options
7136
7137
7138
7139 enable_dlopen=no
7140
7141
7142 enable_win32_dll=no
7143
7144
7145 # Check whether --enable-shared was given.
7146 if test "${enable_shared+set}" = set; then :
7147 enableval=$enable_shared; p=${PACKAGE-default}
7148 case $enableval in
7149 yes) enable_shared=yes ;;
7150 no) enable_shared=no ;;
7151 *)
7152 enable_shared=no
7153 # Look at the argument we got. We use all the common list separators.
7154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7155 for pkg in $enableval; do
7156 IFS=$lt_save_ifs
7157 if test "X$pkg" = "X$p"; then
7158 enable_shared=yes
7159 fi
7160 done
7161 IFS=$lt_save_ifs
7162 ;;
7163 esac
7164 else
7165 enable_shared=yes
7166 fi
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176 # Check whether --enable-static was given.
7177 if test "${enable_static+set}" = set; then :
7178 enableval=$enable_static; p=${PACKAGE-default}
7179 case $enableval in
7180 yes) enable_static=yes ;;
7181 no) enable_static=no ;;
7182 *)
7183 enable_static=no
7184 # Look at the argument we got. We use all the common list separators.
7185 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7186 for pkg in $enableval; do
7187 IFS=$lt_save_ifs
7188 if test "X$pkg" = "X$p"; then
7189 enable_static=yes
7190 fi
7191 done
7192 IFS=$lt_save_ifs
7193 ;;
7194 esac
7195 else
7196 enable_static=yes
7197 fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208 # Check whether --with-pic was given.
7209 if test "${with_pic+set}" = set; then :
7210 withval=$with_pic; lt_p=${PACKAGE-default}
7211 case $withval in
7212 yes|no) pic_mode=$withval ;;
7213 *)
7214 pic_mode=default
7215 # Look at the argument we got. We use all the common list separators.
7216 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7217 for lt_pkg in $withval; do
7218 IFS=$lt_save_ifs
7219 if test "X$lt_pkg" = "X$lt_p"; then
7220 pic_mode=yes
7221 fi
7222 done
7223 IFS=$lt_save_ifs
7224 ;;
7225 esac
7226 else
7227 pic_mode=default
7228 fi
7229
7230
7231
7232
7233
7234
7235
7236
7237 # Check whether --enable-fast-install was given.
7238 if test "${enable_fast_install+set}" = set; then :
7239 enableval=$enable_fast_install; p=${PACKAGE-default}
7240 case $enableval in
7241 yes) enable_fast_install=yes ;;
7242 no) enable_fast_install=no ;;
7243 *)
7244 enable_fast_install=no
7245 # Look at the argument we got. We use all the common list separators.
7246 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7247 for pkg in $enableval; do
7248 IFS=$lt_save_ifs
7249 if test "X$pkg" = "X$p"; then
7250 enable_fast_install=yes
7251 fi
7252 done
7253 IFS=$lt_save_ifs
7254 ;;
7255 esac
7256 else
7257 enable_fast_install=yes
7258 fi
7259
7260
7261
7262
7263
7264
7265
7266
7267 shared_archive_member_spec=
7268 case $host,$enable_shared in
7269 power*-*-aix[5-9]*,yes)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7271 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7272
7273 # Check whether --with-aix-soname was given.
7274 if test "${with_aix_soname+set}" = set; then :
7275 withval=$with_aix_soname; case $withval in
7276 aix|svr4|both)
7277 ;;
7278 *)
7279 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7280 ;;
7281 esac
7282 lt_cv_with_aix_soname=$with_aix_soname
7283 else
7284 if ${lt_cv_with_aix_soname+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 lt_cv_with_aix_soname=aix
7288 fi
7289
7290 with_aix_soname=$lt_cv_with_aix_soname
7291 fi
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7294 $as_echo "$with_aix_soname" >&6; }
7295 if test aix != "$with_aix_soname"; then
7296 # For the AIX way of multilib, we name the shared archive member
7297 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7298 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7299 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7300 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7301 if test 64 = "${OBJECT_MODE-32}"; then
7302 shared_archive_member_spec=shr_64
7303 else
7304 shared_archive_member_spec=shr
7305 fi
7306 fi
7307 ;;
7308 *)
7309 with_aix_soname=aix
7310 ;;
7311 esac
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322 # This can be used to rebuild libtool when needed
7323 LIBTOOL_DEPS=$ltmain
7324
7325 # Always use our own libtool.
7326 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 test -z "$LN_S" && LN_S="ln -s"
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 if test -n "${ZSH_VERSION+set}"; then
7373 setopt NO_GLOB_SUBST
7374 fi
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7377 $as_echo_n "checking for objdir... " >&6; }
7378 if ${lt_cv_objdir+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 rm -f .libs 2>/dev/null
7382 mkdir .libs 2>/dev/null
7383 if test -d .libs; then
7384 lt_cv_objdir=.libs
7385 else
7386 # MS-DOS does not allow filenames that begin with a dot.
7387 lt_cv_objdir=_libs
7388 fi
7389 rmdir .libs 2>/dev/null
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7392 $as_echo "$lt_cv_objdir" >&6; }
7393 objdir=$lt_cv_objdir
7394
7395
7396
7397
7398
7399 cat >>confdefs.h <<_ACEOF
7400 #define LT_OBJDIR "$lt_cv_objdir/"
7401 _ACEOF
7402
7403
7404
7405
7406 case $host_os in
7407 aix3*)
7408 # AIX sometimes has problems with the GCC collect2 program. For some
7409 # reason, if we set the COLLECT_NAMES environment variable, the problems
7410 # vanish in a puff of smoke.
7411 if test set != "${COLLECT_NAMES+set}"; then
7412 COLLECT_NAMES=
7413 export COLLECT_NAMES
7414 fi
7415 ;;
7416 esac
7417
7418 # Global variables:
7419 ofile=libtool
7420 can_build_shared=yes
7421
7422 # All known linkers require a '.a' archive for static linking (except MSVC,
7423 # which needs '.lib').
7424 libext=a
7425
7426 with_gnu_ld=$lt_cv_prog_gnu_ld
7427
7428 old_CC=$CC
7429 old_CFLAGS=$CFLAGS
7430
7431 # Set sane defaults for various variables
7432 test -z "$CC" && CC=cc
7433 test -z "$LTCC" && LTCC=$CC
7434 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7435 test -z "$LD" && LD=ld
7436 test -z "$ac_objext" && ac_objext=o
7437
7438 func_cc_basename $compiler
7439 cc_basename=$func_cc_basename_result
7440
7441
7442 # Only perform the check for file, if the check method requires it
7443 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7444 case $deplibs_check_method in
7445 file_magic*)
7446 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7448 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7449 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 case $MAGIC_CMD in
7453 [\\/*] | ?:[\\/]*)
7454 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7455 ;;
7456 *)
7457 lt_save_MAGIC_CMD=$MAGIC_CMD
7458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7460 for ac_dir in $ac_dummy; do
7461 IFS=$lt_save_ifs
7462 test -z "$ac_dir" && ac_dir=.
7463 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7464 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7465 if test -n "$file_magic_test_file"; then
7466 case $deplibs_check_method in
7467 "file_magic "*)
7468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7471 $EGREP "$file_magic_regex" > /dev/null; then
7472 :
7473 else
7474 cat <<_LT_EOF 1>&2
7475
7476 *** Warning: the command libtool uses to detect shared libraries,
7477 *** $file_magic_cmd, produces output that libtool cannot recognize.
7478 *** The result is that libtool may fail to recognize shared libraries
7479 *** as such. This will affect the creation of libtool libraries that
7480 *** depend on shared libraries, but programs linked with such libtool
7481 *** libraries will work regardless of this problem. Nevertheless, you
7482 *** may want to report the problem to your system manager and/or to
7483 *** [email protected]
7484
7485 _LT_EOF
7486 fi ;;
7487 esac
7488 fi
7489 break
7490 fi
7491 done
7492 IFS=$lt_save_ifs
7493 MAGIC_CMD=$lt_save_MAGIC_CMD
7494 ;;
7495 esac
7496 fi
7497
7498 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7499 if test -n "$MAGIC_CMD"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7501 $as_echo "$MAGIC_CMD" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507
7508
7509
7510
7511 if test -z "$lt_cv_path_MAGIC_CMD"; then
7512 if test -n "$ac_tool_prefix"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7514 $as_echo_n "checking for file... " >&6; }
7515 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 case $MAGIC_CMD in
7519 [\\/*] | ?:[\\/]*)
7520 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7521 ;;
7522 *)
7523 lt_save_MAGIC_CMD=$MAGIC_CMD
7524 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7526 for ac_dir in $ac_dummy; do
7527 IFS=$lt_save_ifs
7528 test -z "$ac_dir" && ac_dir=.
7529 if test -f "$ac_dir/file"; then
7530 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7531 if test -n "$file_magic_test_file"; then
7532 case $deplibs_check_method in
7533 "file_magic "*)
7534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7537 $EGREP "$file_magic_regex" > /dev/null; then
7538 :
7539 else
7540 cat <<_LT_EOF 1>&2
7541
7542 *** Warning: the command libtool uses to detect shared libraries,
7543 *** $file_magic_cmd, produces output that libtool cannot recognize.
7544 *** The result is that libtool may fail to recognize shared libraries
7545 *** as such. This will affect the creation of libtool libraries that
7546 *** depend on shared libraries, but programs linked with such libtool
7547 *** libraries will work regardless of this problem. Nevertheless, you
7548 *** may want to report the problem to your system manager and/or to
7549 *** [email protected]
7550
7551 _LT_EOF
7552 fi ;;
7553 esac
7554 fi
7555 break
7556 fi
7557 done
7558 IFS=$lt_save_ifs
7559 MAGIC_CMD=$lt_save_MAGIC_CMD
7560 ;;
7561 esac
7562 fi
7563
7564 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7565 if test -n "$MAGIC_CMD"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7567 $as_echo "$MAGIC_CMD" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 else
7575 MAGIC_CMD=:
7576 fi
7577 fi
7578
7579 fi
7580 ;;
7581 esac
7582
7583 # Use C for the default configuration in the libtool script
7584
7585 lt_save_CC=$CC
7586 ac_ext=c
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592
7593 # Source file extension for C test sources.
7594 ac_ext=c
7595
7596 # Object file extension for compiled C test sources.
7597 objext=o
7598 objext=$objext
7599
7600 # Code to be used in simple compile tests
7601 lt_simple_compile_test_code="int some_variable = 0;"
7602
7603 # Code to be used in simple link tests
7604 lt_simple_link_test_code='int main(){return(0);}'
7605
7606
7607
7608
7609
7610
7611
7612 # If no C compiler was specified, use CC.
7613 LTCC=${LTCC-"$CC"}
7614
7615 # If no C compiler flags were specified, use CFLAGS.
7616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7617
7618 # Allow CC to be a program name with arguments.
7619 compiler=$CC
7620
7621 # Save the default compiler, since it gets overwritten when the other
7622 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7623 compiler_DEFAULT=$CC
7624
7625 # save warnings/boilerplate of simple test code
7626 ac_outfile=conftest.$ac_objext
7627 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7629 _lt_compiler_boilerplate=`cat conftest.err`
7630 $RM conftest*
7631
7632 ac_outfile=conftest.$ac_objext
7633 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7635 _lt_linker_boilerplate=`cat conftest.err`
7636 $RM -r conftest*
7637
7638
7639 ## CAVEAT EMPTOR:
7640 ## There is no encapsulation within the following macros, do not change
7641 ## the running order or otherwise move them around unless you know exactly
7642 ## what you are doing...
7643 if test -n "$compiler"; then
7644
7645 lt_prog_compiler_no_builtin_flag=
7646
7647 if test yes = "$GCC"; then
7648 case $cc_basename in
7649 nvcc*)
7650 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7651 *)
7652 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7653 esac
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7656 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7657 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 lt_cv_prog_compiler_rtti_exceptions=no
7661 ac_outfile=conftest.$ac_objext
7662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7663 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7664 # Insert the option either (1) after the last *FLAGS variable, or
7665 # (2) before a word containing "conftest.", or (3) at the end.
7666 # Note that $ac_compile itself does not contain backslashes and begins
7667 # with a dollar sign (not a hyphen), so the echo should work correctly.
7668 # The option is referenced via a variable to avoid confusing sed.
7669 lt_compile=`echo "$ac_compile" | $SED \
7670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7672 -e 's:$: $lt_compiler_flag:'`
7673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7674 (eval "$lt_compile" 2>conftest.err)
7675 ac_status=$?
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 if (exit $ac_status) && test -s "$ac_outfile"; then
7679 # The compiler can only warn and ignore the option if not recognized
7680 # So say no if there are warnings other than the usual output.
7681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7684 lt_cv_prog_compiler_rtti_exceptions=yes
7685 fi
7686 fi
7687 $RM conftest*
7688
7689 fi
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7691 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7692
7693 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7694 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7695 else
7696 :
7697 fi
7698
7699 fi
7700
7701
7702
7703
7704
7705
7706 lt_prog_compiler_wl=
7707 lt_prog_compiler_pic=
7708 lt_prog_compiler_static=
7709
7710
7711 if test yes = "$GCC"; then
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_static='-static'
7714
7715 case $host_os in
7716 aix*)
7717 # All AIX code is PIC.
7718 if test ia64 = "$host_cpu"; then
7719 # AIX 5 now supports IA64 processor
7720 lt_prog_compiler_static='-Bstatic'
7721 fi
7722 lt_prog_compiler_pic='-fPIC'
7723 ;;
7724
7725 amigaos*)
7726 case $host_cpu in
7727 powerpc)
7728 # see comment about AmigaOS4 .so support
7729 lt_prog_compiler_pic='-fPIC'
7730 ;;
7731 m68k)
7732 # FIXME: we need at least 68020 code to build shared libraries, but
7733 # adding the '-m68020' flag to GCC prevents building anything better,
7734 # like '-m68040'.
7735 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736 ;;
7737 esac
7738 ;;
7739
7740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7741 # PIC is the default for these OSes.
7742 ;;
7743
7744 mingw* | cygwin* | pw32* | os2* | cegcc*)
7745 # This hack is so that the source file can tell whether it is being
7746 # built for inclusion in a dll (and should export symbols for example).
7747 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7748 # (--disable-auto-import) libraries
7749 lt_prog_compiler_pic='-DDLL_EXPORT'
7750 case $host_os in
7751 os2*)
7752 lt_prog_compiler_static='$wl-static'
7753 ;;
7754 esac
7755 ;;
7756
7757 darwin* | rhapsody*)
7758 # PIC is the default on this platform
7759 # Common symbols not allowed in MH_DYLIB files
7760 lt_prog_compiler_pic='-fno-common'
7761 ;;
7762
7763 haiku*)
7764 # PIC is the default for Haiku.
7765 # The "-static" flag exists, but is broken.
7766 lt_prog_compiler_static=
7767 ;;
7768
7769 hpux*)
7770 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7771 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7772 # sets the default TLS model and affects inlining.
7773 case $host_cpu in
7774 hppa*64*)
7775 # +Z the default
7776 ;;
7777 *)
7778 lt_prog_compiler_pic='-fPIC'
7779 ;;
7780 esac
7781 ;;
7782
7783 interix[3-9]*)
7784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7785 # Instead, we relocate shared libraries at runtime.
7786 ;;
7787
7788 msdosdjgpp*)
7789 # Just because we use GCC doesn't mean we suddenly get shared libraries
7790 # on systems that don't support them.
7791 lt_prog_compiler_can_build_shared=no
7792 enable_shared=no
7793 ;;
7794
7795 *nto* | *qnx*)
7796 # QNX uses GNU C++, but need to define -shared option too, otherwise
7797 # it will coredump.
7798 lt_prog_compiler_pic='-fPIC -shared'
7799 ;;
7800
7801 sysv4*MP*)
7802 if test -d /usr/nec; then
7803 lt_prog_compiler_pic=-Kconform_pic
7804 fi
7805 ;;
7806
7807 *)
7808 lt_prog_compiler_pic='-fPIC'
7809 ;;
7810 esac
7811
7812 case $cc_basename in
7813 nvcc*) # Cuda Compiler Driver 2.2
7814 lt_prog_compiler_wl='-Xlinker '
7815 if test -n "$lt_prog_compiler_pic"; then
7816 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7817 fi
7818 ;;
7819 esac
7820 else
7821 # PORTME Check for flag to pass linker flags through the system compiler.
7822 case $host_os in
7823 aix*)
7824 lt_prog_compiler_wl='-Wl,'
7825 if test ia64 = "$host_cpu"; then
7826 # AIX 5 now supports IA64 processor
7827 lt_prog_compiler_static='-Bstatic'
7828 else
7829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7830 fi
7831 ;;
7832
7833 darwin* | rhapsody*)
7834 # PIC is the default on this platform
7835 # Common symbols not allowed in MH_DYLIB files
7836 lt_prog_compiler_pic='-fno-common'
7837 case $cc_basename in
7838 nagfor*)
7839 # NAG Fortran compiler
7840 lt_prog_compiler_wl='-Wl,-Wl,,'
7841 lt_prog_compiler_pic='-PIC'
7842 lt_prog_compiler_static='-Bstatic'
7843 ;;
7844 esac
7845 ;;
7846
7847 mingw* | cygwin* | pw32* | os2* | cegcc*)
7848 # This hack is so that the source file can tell whether it is being
7849 # built for inclusion in a dll (and should export symbols for example).
7850 lt_prog_compiler_pic='-DDLL_EXPORT'
7851 case $host_os in
7852 os2*)
7853 lt_prog_compiler_static='$wl-static'
7854 ;;
7855 esac
7856 ;;
7857
7858 hpux9* | hpux10* | hpux11*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7861 # not for PA HP-UX.
7862 case $host_cpu in
7863 hppa*64*|ia64*)
7864 # +Z the default
7865 ;;
7866 *)
7867 lt_prog_compiler_pic='+Z'
7868 ;;
7869 esac
7870 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7871 lt_prog_compiler_static='$wl-a ${wl}archive'
7872 ;;
7873
7874 irix5* | irix6* | nonstopux*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # PIC (with -KPIC) is the default.
7877 lt_prog_compiler_static='-non_shared'
7878 ;;
7879
7880 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7881 case $cc_basename in
7882 # old Intel for x86_64, which still supported -KPIC.
7883 ecc*)
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_pic='-KPIC'
7886 lt_prog_compiler_static='-static'
7887 ;;
7888 # icc used to be incompatible with GCC.
7889 # ICC 10 doesn't accept -KPIC any more.
7890 icc* | ifort*)
7891 lt_prog_compiler_wl='-Wl,'
7892 lt_prog_compiler_pic='-fPIC'
7893 lt_prog_compiler_static='-static'
7894 ;;
7895 # Lahey Fortran 8.1.
7896 lf95*)
7897 lt_prog_compiler_wl='-Wl,'
7898 lt_prog_compiler_pic='--shared'
7899 lt_prog_compiler_static='--static'
7900 ;;
7901 nagfor*)
7902 # NAG Fortran compiler
7903 lt_prog_compiler_wl='-Wl,-Wl,,'
7904 lt_prog_compiler_pic='-PIC'
7905 lt_prog_compiler_static='-Bstatic'
7906 ;;
7907 tcc*)
7908 # Fabrice Bellard et al's Tiny C Compiler
7909 lt_prog_compiler_wl='-Wl,'
7910 lt_prog_compiler_pic='-fPIC'
7911 lt_prog_compiler_static='-static'
7912 ;;
7913 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7914 # Portland Group compilers (*not* the Pentium gcc compiler,
7915 # which looks to be a dead project)
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_pic='-fpic'
7918 lt_prog_compiler_static='-Bstatic'
7919 ;;
7920 ccc*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # All Alpha code is PIC.
7923 lt_prog_compiler_static='-non_shared'
7924 ;;
7925 xl* | bgxl* | bgf* | mpixl*)
7926 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='-qpic'
7929 lt_prog_compiler_static='-qstaticlink'
7930 ;;
7931 *)
7932 case `$CC -V 2>&1 | sed 5q` in
7933 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7934 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7935 lt_prog_compiler_pic='-KPIC'
7936 lt_prog_compiler_static='-Bstatic'
7937 lt_prog_compiler_wl=''
7938 ;;
7939 *Sun\ F* | *Sun*Fortran*)
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
7942 lt_prog_compiler_wl='-Qoption ld '
7943 ;;
7944 *Sun\ C*)
7945 # Sun C 5.9
7946 lt_prog_compiler_pic='-KPIC'
7947 lt_prog_compiler_static='-Bstatic'
7948 lt_prog_compiler_wl='-Wl,'
7949 ;;
7950 *Intel*\ [CF]*Compiler*)
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_pic='-fPIC'
7953 lt_prog_compiler_static='-static'
7954 ;;
7955 *Portland\ Group*)
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-fpic'
7958 lt_prog_compiler_static='-Bstatic'
7959 ;;
7960 esac
7961 ;;
7962 esac
7963 ;;
7964
7965 newsos6)
7966 lt_prog_compiler_pic='-KPIC'
7967 lt_prog_compiler_static='-Bstatic'
7968 ;;
7969
7970 *nto* | *qnx*)
7971 # QNX uses GNU C++, but need to define -shared option too, otherwise
7972 # it will coredump.
7973 lt_prog_compiler_pic='-fPIC -shared'
7974 ;;
7975
7976 osf3* | osf4* | osf5*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # All OSF/1 code is PIC.
7979 lt_prog_compiler_static='-non_shared'
7980 ;;
7981
7982 rdos*)
7983 lt_prog_compiler_static='-non_shared'
7984 ;;
7985
7986 solaris*)
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-Bstatic'
7989 case $cc_basename in
7990 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7991 lt_prog_compiler_wl='-Qoption ld ';;
7992 *)
7993 lt_prog_compiler_wl='-Wl,';;
7994 esac
7995 ;;
7996
7997 sunos4*)
7998 lt_prog_compiler_wl='-Qoption ld '
7999 lt_prog_compiler_pic='-PIC'
8000 lt_prog_compiler_static='-Bstatic'
8001 ;;
8002
8003 sysv4 | sysv4.2uw2* | sysv4.3*)
8004 lt_prog_compiler_wl='-Wl,'
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 ;;
8008
8009 sysv4*MP*)
8010 if test -d /usr/nec; then
8011 lt_prog_compiler_pic='-Kconform_pic'
8012 lt_prog_compiler_static='-Bstatic'
8013 fi
8014 ;;
8015
8016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-KPIC'
8019 lt_prog_compiler_static='-Bstatic'
8020 ;;
8021
8022 unicos*)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_can_build_shared=no
8025 ;;
8026
8027 uts4*)
8028 lt_prog_compiler_pic='-pic'
8029 lt_prog_compiler_static='-Bstatic'
8030 ;;
8031
8032 *)
8033 lt_prog_compiler_can_build_shared=no
8034 ;;
8035 esac
8036 fi
8037
8038 case $host_os in
8039 # For platforms that do not support PIC, -DPIC is meaningless:
8040 *djgpp*)
8041 lt_prog_compiler_pic=
8042 ;;
8043 *)
8044 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8045 ;;
8046 esac
8047
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8049 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8050 if ${lt_cv_prog_compiler_pic+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8056 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8057 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8058
8059 #
8060 # Check to make sure the PIC flag actually works.
8061 #
8062 if test -n "$lt_prog_compiler_pic"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8065 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 lt_cv_prog_compiler_pic_works=no
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8072 # Insert the option either (1) after the last *FLAGS variable, or
8073 # (2) before a word containing "conftest.", or (3) at the end.
8074 # Note that $ac_compile itself does not contain backslashes and begins
8075 # with a dollar sign (not a hyphen), so the echo should work correctly.
8076 # The option is referenced via a variable to avoid confusing sed.
8077 lt_compile=`echo "$ac_compile" | $SED \
8078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080 -e 's:$: $lt_compiler_flag:'`
8081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8082 (eval "$lt_compile" 2>conftest.err)
8083 ac_status=$?
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 if (exit $ac_status) && test -s "$ac_outfile"; then
8087 # The compiler can only warn and ignore the option if not recognized
8088 # So say no if there are warnings other than the usual output.
8089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8092 lt_cv_prog_compiler_pic_works=yes
8093 fi
8094 fi
8095 $RM conftest*
8096
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8099 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8100
8101 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8102 case $lt_prog_compiler_pic in
8103 "" | " "*) ;;
8104 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8105 esac
8106 else
8107 lt_prog_compiler_pic=
8108 lt_prog_compiler_can_build_shared=no
8109 fi
8110
8111 fi
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123 #
8124 # Check to make sure the static flag actually works.
8125 #
8126 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8128 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8129 if ${lt_cv_prog_compiler_static_works+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 lt_cv_prog_compiler_static_works=no
8133 save_LDFLAGS=$LDFLAGS
8134 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8135 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8136 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8137 # The linker can only warn and ignore the option if not recognized
8138 # So say no if there are warnings
8139 if test -s conftest.err; then
8140 # Append any errors to the config.log.
8141 cat conftest.err 1>&5
8142 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8144 if diff conftest.exp conftest.er2 >/dev/null; then
8145 lt_cv_prog_compiler_static_works=yes
8146 fi
8147 else
8148 lt_cv_prog_compiler_static_works=yes
8149 fi
8150 fi
8151 $RM -r conftest*
8152 LDFLAGS=$save_LDFLAGS
8153
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8156 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8157
8158 if test yes = "$lt_cv_prog_compiler_static_works"; then
8159 :
8160 else
8161 lt_prog_compiler_static=
8162 fi
8163
8164
8165
8166
8167
8168
8169
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8172 if ${lt_cv_prog_compiler_c_o+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 lt_cv_prog_compiler_c_o=no
8176 $RM -r conftest 2>/dev/null
8177 mkdir conftest
8178 cd conftest
8179 mkdir out
8180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8181
8182 lt_compiler_flag="-o out/conftest2.$ac_objext"
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 lt_compile=`echo "$ac_compile" | $SED \
8188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8190 -e 's:$: $lt_compiler_flag:'`
8191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8192 (eval "$lt_compile" 2>out/conftest.err)
8193 ac_status=$?
8194 cat out/conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8197 then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings
8200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8201 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8202 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_c_o=yes
8204 fi
8205 fi
8206 chmod u+w . 2>&5
8207 $RM conftest*
8208 # SGI C++ compiler will create directory out/ii_files/ for
8209 # template instantiation
8210 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8211 $RM out/* && rmdir out
8212 cd ..
8213 $RM -r conftest
8214 $RM conftest*
8215
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8218 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8219
8220
8221
8222
8223
8224
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8226 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8227 if ${lt_cv_prog_compiler_c_o+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 lt_cv_prog_compiler_c_o=no
8231 $RM -r conftest 2>/dev/null
8232 mkdir conftest
8233 cd conftest
8234 mkdir out
8235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8236
8237 lt_compiler_flag="-o out/conftest2.$ac_objext"
8238 # Insert the option either (1) after the last *FLAGS variable, or
8239 # (2) before a word containing "conftest.", or (3) at the end.
8240 # Note that $ac_compile itself does not contain backslashes and begins
8241 # with a dollar sign (not a hyphen), so the echo should work correctly.
8242 lt_compile=`echo "$ac_compile" | $SED \
8243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8245 -e 's:$: $lt_compiler_flag:'`
8246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8247 (eval "$lt_compile" 2>out/conftest.err)
8248 ac_status=$?
8249 cat out/conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8252 then
8253 # The compiler can only warn and ignore the option if not recognized
8254 # So say no if there are warnings
8255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8256 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8257 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8258 lt_cv_prog_compiler_c_o=yes
8259 fi
8260 fi
8261 chmod u+w . 2>&5
8262 $RM conftest*
8263 # SGI C++ compiler will create directory out/ii_files/ for
8264 # template instantiation
8265 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8266 $RM out/* && rmdir out
8267 cd ..
8268 $RM -r conftest
8269 $RM conftest*
8270
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8273 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8274
8275
8276
8277
8278 hard_links=nottested
8279 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8280 # do not overwrite the value of need_locks provided by the user
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8282 $as_echo_n "checking if we can lock with hard links... " >&6; }
8283 hard_links=yes
8284 $RM conftest*
8285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8286 touch conftest.a
8287 ln conftest.a conftest.b 2>&5 || hard_links=no
8288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8290 $as_echo "$hard_links" >&6; }
8291 if test no = "$hard_links"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8293 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8294 need_locks=warn
8295 fi
8296 else
8297 need_locks=no
8298 fi
8299
8300
8301
8302
8303
8304
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8306 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8307
8308 runpath_var=
8309 allow_undefined_flag=
8310 always_export_symbols=no
8311 archive_cmds=
8312 archive_expsym_cmds=
8313 compiler_needs_object=no
8314 enable_shared_with_static_runtimes=no
8315 export_dynamic_flag_spec=
8316 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8317 hardcode_automatic=no
8318 hardcode_direct=no
8319 hardcode_direct_absolute=no
8320 hardcode_libdir_flag_spec=
8321 hardcode_libdir_separator=
8322 hardcode_minus_L=no
8323 hardcode_shlibpath_var=unsupported
8324 inherit_rpath=no
8325 link_all_deplibs=unknown
8326 module_cmds=
8327 module_expsym_cmds=
8328 old_archive_from_new_cmds=
8329 old_archive_from_expsyms_cmds=
8330 thread_safe_flag_spec=
8331 whole_archive_flag_spec=
8332 # include_expsyms should be a list of space-separated symbols to be *always*
8333 # included in the symbol list
8334 include_expsyms=
8335 # exclude_expsyms can be an extended regexp of symbols to exclude
8336 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8337 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8338 # as well as any symbol that contains 'd'.
8339 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8340 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8341 # platforms (ab)use it in PIC code, but their linkers get confused if
8342 # the symbol is explicitly referenced. Since portable code cannot
8343 # rely on this symbol name, it's probably fine to never include it in
8344 # preloaded symbol tables.
8345 # Exclude shared library initialization/finalization symbols.
8346 extract_expsyms_cmds=
8347
8348 case $host_os in
8349 cygwin* | mingw* | pw32* | cegcc*)
8350 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8351 # When not using gcc, we currently assume that we are using
8352 # Microsoft Visual C++.
8353 if test yes != "$GCC"; then
8354 with_gnu_ld=no
8355 fi
8356 ;;
8357 interix*)
8358 # we just hope/assume this is gcc and not c89 (= MSVC++)
8359 with_gnu_ld=yes
8360 ;;
8361 openbsd* | bitrig*)
8362 with_gnu_ld=no
8363 ;;
8364 esac
8365
8366 ld_shlibs=yes
8367
8368 # On some targets, GNU ld is compatible enough with the native linker
8369 # that we're better off using the native interface for both.
8370 lt_use_gnu_ld_interface=no
8371 if test yes = "$with_gnu_ld"; then
8372 case $host_os in
8373 aix*)
8374 # The AIX port of GNU ld has always aspired to compatibility
8375 # with the native linker. However, as the warning in the GNU ld
8376 # block says, versions before 2.19.5* couldn't really create working
8377 # shared libraries, regardless of the interface used.
8378 case `$LD -v 2>&1` in
8379 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8380 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8381 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8382 *)
8383 lt_use_gnu_ld_interface=yes
8384 ;;
8385 esac
8386 ;;
8387 *)
8388 lt_use_gnu_ld_interface=yes
8389 ;;
8390 esac
8391 fi
8392
8393 if test yes = "$lt_use_gnu_ld_interface"; then
8394 # If archive_cmds runs LD, not CC, wlarc should be empty
8395 wlarc='$wl'
8396
8397 # Set some defaults for GNU ld with shared library support. These
8398 # are reset later if shared libraries are not supported. Putting them
8399 # here allows them to be overridden if necessary.
8400 runpath_var=LD_RUN_PATH
8401 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8402 export_dynamic_flag_spec='$wl--export-dynamic'
8403 # ancient GNU ld didn't support --whole-archive et. al.
8404 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8405 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8406 else
8407 whole_archive_flag_spec=
8408 fi
8409 supports_anon_versioning=no
8410 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8411 *GNU\ gold*) supports_anon_versioning=yes ;;
8412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8415 *\ 2.11.*) ;; # other 2.11 versions
8416 *) supports_anon_versioning=yes ;;
8417 esac
8418
8419 # See if GNU ld supports shared libraries.
8420 case $host_os in
8421 aix[3-9]*)
8422 # On AIX/PPC, the GNU linker is very broken
8423 if test ia64 != "$host_cpu"; then
8424 ld_shlibs=no
8425 cat <<_LT_EOF 1>&2
8426
8427 *** Warning: the GNU linker, at least up to release 2.19, is reported
8428 *** to be unable to reliably create shared libraries on AIX.
8429 *** Therefore, libtool is disabling shared libraries support. If you
8430 *** really care for shared libraries, you may want to install binutils
8431 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8432 *** You will then need to restart the configuration process.
8433
8434 _LT_EOF
8435 fi
8436 ;;
8437
8438 amigaos*)
8439 case $host_cpu in
8440 powerpc)
8441 # see comment about AmigaOS4 .so support
8442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8443 archive_expsym_cmds=''
8444 ;;
8445 m68k)
8446 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)'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_minus_L=yes
8449 ;;
8450 esac
8451 ;;
8452
8453 beos*)
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 allow_undefined_flag=unsupported
8456 # Joseph Beckenbach <[email protected]> says some releases of gcc
8457 # support --undefined. This deserves some investigation. FIXME
8458 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8459 else
8460 ld_shlibs=no
8461 fi
8462 ;;
8463
8464 cygwin* | mingw* | pw32* | cegcc*)
8465 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8466 # as there is no search path for DLLs.
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 export_dynamic_flag_spec='$wl--export-all-symbols'
8469 allow_undefined_flag=unsupported
8470 always_export_symbols=no
8471 enable_shared_with_static_runtimes=yes
8472 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'
8473 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8474
8475 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8477 # If the export-symbols file already is a .def file, use it as
8478 # is; otherwise, prepend EXPORTS...
8479 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8480 cp $export_symbols $output_objdir/$soname.def;
8481 else
8482 echo EXPORTS > $output_objdir/$soname.def;
8483 cat $export_symbols >> $output_objdir/$soname.def;
8484 fi~
8485 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8486 else
8487 ld_shlibs=no
8488 fi
8489 ;;
8490
8491 haiku*)
8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8493 link_all_deplibs=yes
8494 ;;
8495
8496 os2*)
8497 hardcode_libdir_flag_spec='-L$libdir'
8498 hardcode_minus_L=yes
8499 allow_undefined_flag=unsupported
8500 shrext_cmds=.dll
8501 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8502 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8503 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8504 $ECHO EXPORTS >> $output_objdir/$libname.def~
8505 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8506 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8507 emximp -o $lib $output_objdir/$libname.def'
8508 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8509 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8510 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8511 $ECHO EXPORTS >> $output_objdir/$libname.def~
8512 prefix_cmds="$SED"~
8513 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8514 prefix_cmds="$prefix_cmds -e 1d";
8515 fi~
8516 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8517 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8518 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8519 emximp -o $lib $output_objdir/$libname.def'
8520 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8521 enable_shared_with_static_runtimes=yes
8522 ;;
8523
8524 interix[3-9]*)
8525 hardcode_direct=no
8526 hardcode_shlibpath_var=no
8527 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8528 export_dynamic_flag_spec='$wl-E'
8529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8530 # Instead, shared libraries are loaded at an image base (0x10000000 by
8531 # default) and relocated if they conflict, which is a slow very memory
8532 # consuming and fragmenting process. To avoid this, we pick a random,
8533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8536 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'
8537 ;;
8538
8539 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8540 tmp_diet=no
8541 if test linux-dietlibc = "$host_os"; then
8542 case $cc_basename in
8543 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8544 esac
8545 fi
8546 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8547 && test no = "$tmp_diet"
8548 then
8549 tmp_addflag=' $pic_flag'
8550 tmp_sharedflag='-shared'
8551 case $cc_basename,$host_cpu in
8552 pgcc*) # Portland Group C compiler
8553 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'
8554 tmp_addflag=' $pic_flag'
8555 ;;
8556 pgf77* | pgf90* | pgf95* | pgfortran*)
8557 # Portland Group f77 and f90 compilers
8558 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'
8559 tmp_addflag=' $pic_flag -Mnomain' ;;
8560 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8561 tmp_addflag=' -i_dynamic' ;;
8562 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8563 tmp_addflag=' -i_dynamic -nofor_main' ;;
8564 ifc* | ifort*) # Intel Fortran compiler
8565 tmp_addflag=' -nofor_main' ;;
8566 lf95*) # Lahey Fortran 8.1
8567 whole_archive_flag_spec=
8568 tmp_sharedflag='--shared' ;;
8569 nagfor*) # NAGFOR 5.3
8570 tmp_sharedflag='-Wl,-shared' ;;
8571 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8572 tmp_sharedflag='-qmkshrobj'
8573 tmp_addflag= ;;
8574 nvcc*) # Cuda Compiler Driver 2.2
8575 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'
8576 compiler_needs_object=yes
8577 ;;
8578 esac
8579 case `$CC -V 2>&1 | sed 5q` in
8580 *Sun\ C*) # Sun C 5.9
8581 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'
8582 compiler_needs_object=yes
8583 tmp_sharedflag='-G' ;;
8584 *Sun\ F*) # Sun Fortran 8.3
8585 tmp_sharedflag='-G' ;;
8586 esac
8587 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8588
8589 if test yes = "$supports_anon_versioning"; then
8590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8592 echo "local: *; };" >> $output_objdir/$libname.ver~
8593 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8594 fi
8595
8596 case $cc_basename in
8597 tcc*)
8598 export_dynamic_flag_spec='-rdynamic'
8599 ;;
8600 xlf* | bgf* | bgxlf* | mpixlf*)
8601 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8602 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8603 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8604 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8605 if test yes = "$supports_anon_versioning"; then
8606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8608 echo "local: *; };" >> $output_objdir/$libname.ver~
8609 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8610 fi
8611 ;;
8612 esac
8613 else
8614 ld_shlibs=no
8615 fi
8616 ;;
8617
8618 netbsd*)
8619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8620 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8621 wlarc=
8622 else
8623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8625 fi
8626 ;;
8627
8628 solaris*)
8629 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8630 ld_shlibs=no
8631 cat <<_LT_EOF 1>&2
8632
8633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8634 *** create shared libraries on Solaris systems. Therefore, libtool
8635 *** is disabling shared libraries support. We urge you to upgrade GNU
8636 *** binutils to release 2.9.1 or newer. Another option is to modify
8637 *** your PATH or compiler configuration so that the native linker is
8638 *** used, and then restart.
8639
8640 _LT_EOF
8641 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8643 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8644 else
8645 ld_shlibs=no
8646 fi
8647 ;;
8648
8649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8650 case `$LD -v 2>&1` in
8651 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8652 ld_shlibs=no
8653 cat <<_LT_EOF 1>&2
8654
8655 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8656 *** reliably create shared libraries on SCO systems. Therefore, libtool
8657 *** is disabling shared libraries support. We urge you to upgrade GNU
8658 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8659 *** your PATH or compiler configuration so that the native linker is
8660 *** used, and then restart.
8661
8662 _LT_EOF
8663 ;;
8664 *)
8665 # For security reasons, it is highly recommended that you always
8666 # use absolute paths for naming shared libraries, and exclude the
8667 # DT_RUNPATH tag from executables and libraries. But doing so
8668 # requires that you compile everything twice, which is a pain.
8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8673 else
8674 ld_shlibs=no
8675 fi
8676 ;;
8677 esac
8678 ;;
8679
8680 sunos4*)
8681 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682 wlarc=
8683 hardcode_direct=yes
8684 hardcode_shlibpath_var=no
8685 ;;
8686
8687 *)
8688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8691 else
8692 ld_shlibs=no
8693 fi
8694 ;;
8695 esac
8696
8697 if test no = "$ld_shlibs"; then
8698 runpath_var=
8699 hardcode_libdir_flag_spec=
8700 export_dynamic_flag_spec=
8701 whole_archive_flag_spec=
8702 fi
8703 else
8704 # PORTME fill in a description of your system's linker (not GNU ld)
8705 case $host_os in
8706 aix3*)
8707 allow_undefined_flag=unsupported
8708 always_export_symbols=yes
8709 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'
8710 # Note: this linker hardcodes the directories in LIBPATH if there
8711 # are no directories specified by -L.
8712 hardcode_minus_L=yes
8713 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8714 # Neither direct hardcoding nor static linking is supported with a
8715 # broken collect2.
8716 hardcode_direct=unsupported
8717 fi
8718 ;;
8719
8720 aix[4-9]*)
8721 if test ia64 = "$host_cpu"; then
8722 # On IA64, the linker does run time linking by default, so we don't
8723 # have to do anything special.
8724 aix_use_runtimelinking=no
8725 exp_sym_flag='-Bexport'
8726 no_entry_flag=
8727 else
8728 # If we're using GNU nm, then we don't want the "-C" option.
8729 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8730 # Without the "-l" option, or with the "-B" option, AIX nm treats
8731 # weak defined symbols like other global defined symbols, whereas
8732 # GNU nm marks them as "W".
8733 # While the 'weak' keyword is ignored in the Export File, we need
8734 # it in the Import File for the 'aix-soname' feature, so we have
8735 # to replace the "-B" option with "-P" for AIX nm.
8736 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8737 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'
8738 else
8739 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'
8740 fi
8741 aix_use_runtimelinking=no
8742
8743 # Test if we are trying to use run time linking or normal
8744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8745 # have runtime linking enabled, and use it for executables.
8746 # For shared libraries, we enable/disable runtime linking
8747 # depending on the kind of the shared library created -
8748 # when "with_aix_soname,aix_use_runtimelinking" is:
8749 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8750 # "aix,yes" lib.so shared, rtl:yes, for executables
8751 # lib.a static archive
8752 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8753 # lib.a(lib.so.V) shared, rtl:no, for executables
8754 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8755 # lib.a(lib.so.V) shared, rtl:no
8756 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8757 # lib.a static archive
8758 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8759 for ld_flag in $LDFLAGS; do
8760 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8761 aix_use_runtimelinking=yes
8762 break
8763 fi
8764 done
8765 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8766 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8767 # so we don't have lib.a shared libs to link our executables.
8768 # We have to force runtime linking in this case.
8769 aix_use_runtimelinking=yes
8770 LDFLAGS="$LDFLAGS -Wl,-brtl"
8771 fi
8772 ;;
8773 esac
8774
8775 exp_sym_flag='-bexport'
8776 no_entry_flag='-bnoentry'
8777 fi
8778
8779 # When large executables or shared objects are built, AIX ld can
8780 # have problems creating the table of contents. If linking a library
8781 # or program results in "error TOC overflow" add -mminimal-toc to
8782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8784
8785 archive_cmds=''
8786 hardcode_direct=yes
8787 hardcode_direct_absolute=yes
8788 hardcode_libdir_separator=':'
8789 link_all_deplibs=yes
8790 file_list_spec='$wl-f,'
8791 case $with_aix_soname,$aix_use_runtimelinking in
8792 aix,*) ;; # traditional, no import file
8793 svr4,* | *,yes) # use import file
8794 # The Import File defines what to hardcode.
8795 hardcode_direct=no
8796 hardcode_direct_absolute=no
8797 ;;
8798 esac
8799
8800 if test yes = "$GCC"; then
8801 case $host_os in aix4.[012]|aix4.[012].*)
8802 # We only want to do this on AIX 4.2 and lower, the check
8803 # below for broken collect2 doesn't work under 4.3+
8804 collect2name=`$CC -print-prog-name=collect2`
8805 if test -f "$collect2name" &&
8806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8807 then
8808 # We have reworked collect2
8809 :
8810 else
8811 # We have old collect2
8812 hardcode_direct=unsupported
8813 # It fails to find uninstalled libraries when the uninstalled
8814 # path is not listed in the libpath. Setting hardcode_minus_L
8815 # to unsupported forces relinking
8816 hardcode_minus_L=yes
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_libdir_separator=
8819 fi
8820 ;;
8821 esac
8822 shared_flag='-shared'
8823 if test yes = "$aix_use_runtimelinking"; then
8824 shared_flag="$shared_flag "'$wl-G'
8825 fi
8826 # Need to ensure runtime linking is disabled for the traditional
8827 # shared library, or the linker may eventually find shared libraries
8828 # /with/ Import File - we do not want to mix them.
8829 shared_flag_aix='-shared'
8830 shared_flag_svr4='-shared $wl-G'
8831 else
8832 # not using gcc
8833 if test ia64 = "$host_cpu"; then
8834 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8835 # chokes on -Wl,-G. The following line is correct:
8836 shared_flag='-G'
8837 else
8838 if test yes = "$aix_use_runtimelinking"; then
8839 shared_flag='$wl-G'
8840 else
8841 shared_flag='$wl-bM:SRE'
8842 fi
8843 shared_flag_aix='$wl-bM:SRE'
8844 shared_flag_svr4='$wl-G'
8845 fi
8846 fi
8847
8848 export_dynamic_flag_spec='$wl-bexpall'
8849 # It seems that -bexpall does not export symbols beginning with
8850 # underscore (_), so it is better to generate a list of symbols to export.
8851 always_export_symbols=yes
8852 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8853 # Warning - without using the other runtime loading flags (-brtl),
8854 # -berok will link without error, but may produce a broken library.
8855 allow_undefined_flag='-berok'
8856 # Determine the default libpath from the value encoded in an
8857 # empty executable.
8858 if test set = "${lt_cv_aix_libpath+set}"; then
8859 aix_libpath=$lt_cv_aix_libpath
8860 else
8861 if ${lt_cv_aix_libpath_+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866
8867 int
8868 main ()
8869 {
8870
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 if ac_fn_c_try_link "$LINENO"; then :
8876
8877 lt_aix_libpath_sed='
8878 /Import File Strings/,/^$/ {
8879 /^0/ {
8880 s/^0 *\([^ ]*\) *$/\1/
8881 p
8882 }
8883 }'
8884 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8885 # Check for a 64-bit object if we didn't find anything.
8886 if test -z "$lt_cv_aix_libpath_"; then
8887 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8888 fi
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 if test -z "$lt_cv_aix_libpath_"; then
8893 lt_cv_aix_libpath_=/usr/lib:/lib
8894 fi
8895
8896 fi
8897
8898 aix_libpath=$lt_cv_aix_libpath_
8899 fi
8900
8901 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8902 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
8903 else
8904 if test ia64 = "$host_cpu"; then
8905 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8906 allow_undefined_flag="-z nodefs"
8907 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"
8908 else
8909 # Determine the default libpath from the value encoded in an
8910 # empty executable.
8911 if test set = "${lt_cv_aix_libpath+set}"; then
8912 aix_libpath=$lt_cv_aix_libpath
8913 else
8914 if ${lt_cv_aix_libpath_+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919
8920 int
8921 main ()
8922 {
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929
8930 lt_aix_libpath_sed='
8931 /Import File Strings/,/^$/ {
8932 /^0/ {
8933 s/^0 *\([^ ]*\) *$/\1/
8934 p
8935 }
8936 }'
8937 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 # Check for a 64-bit object if we didn't find anything.
8939 if test -z "$lt_cv_aix_libpath_"; then
8940 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 fi
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 if test -z "$lt_cv_aix_libpath_"; then
8946 lt_cv_aix_libpath_=/usr/lib:/lib
8947 fi
8948
8949 fi
8950
8951 aix_libpath=$lt_cv_aix_libpath_
8952 fi
8953
8954 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8955 # Warning - without using the other run time loading flags,
8956 # -berok will link without error, but may produce a broken library.
8957 no_undefined_flag=' $wl-bernotok'
8958 allow_undefined_flag=' $wl-berok'
8959 if test yes = "$with_gnu_ld"; then
8960 # We only use this code for GNU lds that support --whole-archive.
8961 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8962 else
8963 # Exported symbols can be pulled into shared objects from archives
8964 whole_archive_flag_spec='$convenience'
8965 fi
8966 archive_cmds_need_lc=yes
8967 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8968 # -brtl affects multiple linker settings, -berok does not and is overridden later
8969 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8970 if test svr4 != "$with_aix_soname"; then
8971 # This is similar to how AIX traditionally builds its shared libraries.
8972 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'
8973 fi
8974 if test aix != "$with_aix_soname"; then
8975 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'
8976 else
8977 # used by -dlpreopen to get the symbols
8978 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8979 fi
8980 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8981 fi
8982 fi
8983 ;;
8984
8985 amigaos*)
8986 case $host_cpu in
8987 powerpc)
8988 # see comment about AmigaOS4 .so support
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8990 archive_expsym_cmds=''
8991 ;;
8992 m68k)
8993 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)'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_minus_L=yes
8996 ;;
8997 esac
8998 ;;
8999
9000 bsdi[45]*)
9001 export_dynamic_flag_spec=-rdynamic
9002 ;;
9003
9004 cygwin* | mingw* | pw32* | cegcc*)
9005 # When not using gcc, we currently assume that we are using
9006 # Microsoft Visual C++.
9007 # hardcode_libdir_flag_spec is actually meaningless, as there is
9008 # no search path for DLLs.
9009 case $cc_basename in
9010 cl*)
9011 # Native MSVC
9012 hardcode_libdir_flag_spec=' '
9013 allow_undefined_flag=unsupported
9014 always_export_symbols=yes
9015 file_list_spec='@'
9016 # Tell ltmain to make .lib files, not .a files.
9017 libext=lib
9018 # Tell ltmain to make .dll files, not .so files.
9019 shrext_cmds=.dll
9020 # FIXME: Setting linknames here is a bad hack.
9021 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9022 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9023 cp "$export_symbols" "$output_objdir/$soname.def";
9024 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9025 else
9026 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9027 fi~
9028 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9029 linknames='
9030 # The linker will not automatically build a static lib if we build a DLL.
9031 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9032 enable_shared_with_static_runtimes=yes
9033 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9035 # Don't use ranlib
9036 old_postinstall_cmds='chmod 644 $oldlib'
9037 postlink_cmds='lt_outputfile="@OUTPUT@"~
9038 lt_tool_outputfile="@TOOL_OUTPUT@"~
9039 case $lt_outputfile in
9040 *.exe|*.EXE) ;;
9041 *)
9042 lt_outputfile=$lt_outputfile.exe
9043 lt_tool_outputfile=$lt_tool_outputfile.exe
9044 ;;
9045 esac~
9046 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9047 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9048 $RM "$lt_outputfile.manifest";
9049 fi'
9050 ;;
9051 *)
9052 # Assume MSVC wrapper
9053 hardcode_libdir_flag_spec=' '
9054 allow_undefined_flag=unsupported
9055 # Tell ltmain to make .lib files, not .a files.
9056 libext=lib
9057 # Tell ltmain to make .dll files, not .so files.
9058 shrext_cmds=.dll
9059 # FIXME: Setting linknames here is a bad hack.
9060 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9061 # The linker will automatically build a .lib file if we build a DLL.
9062 old_archive_from_new_cmds='true'
9063 # FIXME: Should let the user specify the lib program.
9064 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9065 enable_shared_with_static_runtimes=yes
9066 ;;
9067 esac
9068 ;;
9069
9070 darwin* | rhapsody*)
9071
9072
9073 archive_cmds_need_lc=no
9074 hardcode_direct=no
9075 hardcode_automatic=yes
9076 hardcode_shlibpath_var=unsupported
9077 if test yes = "$lt_cv_ld_force_load"; then
9078 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\"`'
9079
9080 else
9081 whole_archive_flag_spec=''
9082 fi
9083 link_all_deplibs=yes
9084 allow_undefined_flag=$_lt_dar_allow_undefined
9085 case $cc_basename in
9086 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9087 *) _lt_dar_can_shared=$GCC ;;
9088 esac
9089 if test yes = "$_lt_dar_can_shared"; then
9090 output_verbose_link_cmd=func_echo_all
9091 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9092 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9093 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"
9094 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"
9095
9096 else
9097 ld_shlibs=no
9098 fi
9099
9100 ;;
9101
9102 dgux*)
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_shlibpath_var=no
9106 ;;
9107
9108 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9109 # support. Future versions do this automatically, but an explicit c++rt0.o
9110 # does not break anything, and helps significantly (at the cost of a little
9111 # extra space).
9112 freebsd2.2*)
9113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9114 hardcode_libdir_flag_spec='-R$libdir'
9115 hardcode_direct=yes
9116 hardcode_shlibpath_var=no
9117 ;;
9118
9119 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9120 freebsd2.*)
9121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_direct=yes
9123 hardcode_minus_L=yes
9124 hardcode_shlibpath_var=no
9125 ;;
9126
9127 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9128 freebsd* | dragonfly*)
9129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9130 hardcode_libdir_flag_spec='-R$libdir'
9131 hardcode_direct=yes
9132 hardcode_shlibpath_var=no
9133 ;;
9134
9135 hpux9*)
9136 if test yes = "$GCC"; then
9137 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'
9138 else
9139 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'
9140 fi
9141 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9142 hardcode_libdir_separator=:
9143 hardcode_direct=yes
9144
9145 # hardcode_minus_L: Not really in the search PATH,
9146 # but as the default location of the library.
9147 hardcode_minus_L=yes
9148 export_dynamic_flag_spec='$wl-E'
9149 ;;
9150
9151 hpux10*)
9152 if test yes,no = "$GCC,$with_gnu_ld"; then
9153 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154 else
9155 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9156 fi
9157 if test no = "$with_gnu_ld"; then
9158 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9159 hardcode_libdir_separator=:
9160 hardcode_direct=yes
9161 hardcode_direct_absolute=yes
9162 export_dynamic_flag_spec='$wl-E'
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 fi
9167 ;;
9168
9169 hpux11*)
9170 if test yes,no = "$GCC,$with_gnu_ld"; then
9171 case $host_cpu in
9172 hppa*64*)
9173 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 ;;
9175 ia64*)
9176 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9177 ;;
9178 *)
9179 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9180 ;;
9181 esac
9182 else
9183 case $host_cpu in
9184 hppa*64*)
9185 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9186 ;;
9187 ia64*)
9188 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9189 ;;
9190 *)
9191
9192 # Older versions of the 11.00 compiler do not understand -b yet
9193 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9195 $as_echo_n "checking if $CC understands -b... " >&6; }
9196 if ${lt_cv_prog_compiler__b+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 lt_cv_prog_compiler__b=no
9200 save_LDFLAGS=$LDFLAGS
9201 LDFLAGS="$LDFLAGS -b"
9202 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9203 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9204 # The linker can only warn and ignore the option if not recognized
9205 # So say no if there are warnings
9206 if test -s conftest.err; then
9207 # Append any errors to the config.log.
9208 cat conftest.err 1>&5
9209 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9211 if diff conftest.exp conftest.er2 >/dev/null; then
9212 lt_cv_prog_compiler__b=yes
9213 fi
9214 else
9215 lt_cv_prog_compiler__b=yes
9216 fi
9217 fi
9218 $RM -r conftest*
9219 LDFLAGS=$save_LDFLAGS
9220
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9223 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9224
9225 if test yes = "$lt_cv_prog_compiler__b"; then
9226 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9227 else
9228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9229 fi
9230
9231 ;;
9232 esac
9233 fi
9234 if test no = "$with_gnu_ld"; then
9235 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9236 hardcode_libdir_separator=:
9237
9238 case $host_cpu in
9239 hppa*64*|ia64*)
9240 hardcode_direct=no
9241 hardcode_shlibpath_var=no
9242 ;;
9243 *)
9244 hardcode_direct=yes
9245 hardcode_direct_absolute=yes
9246 export_dynamic_flag_spec='$wl-E'
9247
9248 # hardcode_minus_L: Not really in the search PATH,
9249 # but as the default location of the library.
9250 hardcode_minus_L=yes
9251 ;;
9252 esac
9253 fi
9254 ;;
9255
9256 irix5* | irix6* | nonstopux*)
9257 if test yes = "$GCC"; then
9258 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'
9259 # Try to use the -exported_symbol ld option, if it does not
9260 # work, assume that -exports_file does not work either and
9261 # implicitly export all symbols.
9262 # This should be the same for all languages, so no per-tag cache variable.
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9264 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9265 if ${lt_cv_irix_exported_symbol+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 save_LDFLAGS=$LDFLAGS
9269 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 int foo (void) { return 0; }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 lt_cv_irix_exported_symbol=yes
9276 else
9277 lt_cv_irix_exported_symbol=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 LDFLAGS=$save_LDFLAGS
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9284 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9285 if test yes = "$lt_cv_irix_exported_symbol"; then
9286 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'
9287 fi
9288 else
9289 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'
9290 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'
9291 fi
9292 archive_cmds_need_lc='no'
9293 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9294 hardcode_libdir_separator=:
9295 inherit_rpath=yes
9296 link_all_deplibs=yes
9297 ;;
9298
9299 linux*)
9300 case $cc_basename in
9301 tcc*)
9302 # Fabrice Bellard et al's Tiny C Compiler
9303 ld_shlibs=yes
9304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9305 ;;
9306 esac
9307 ;;
9308
9309 netbsd*)
9310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9312 else
9313 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9314 fi
9315 hardcode_libdir_flag_spec='-R$libdir'
9316 hardcode_direct=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 newsos6)
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes
9323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9324 hardcode_libdir_separator=:
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 *nto* | *qnx*)
9329 ;;
9330
9331 openbsd* | bitrig*)
9332 if test -f /usr/libexec/ld.so; then
9333 hardcode_direct=yes
9334 hardcode_shlibpath_var=no
9335 hardcode_direct_absolute=yes
9336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9338 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9339 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9340 export_dynamic_flag_spec='$wl-E'
9341 else
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9344 fi
9345 else
9346 ld_shlibs=no
9347 fi
9348 ;;
9349
9350 os2*)
9351 hardcode_libdir_flag_spec='-L$libdir'
9352 hardcode_minus_L=yes
9353 allow_undefined_flag=unsupported
9354 shrext_cmds=.dll
9355 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9356 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9357 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9358 $ECHO EXPORTS >> $output_objdir/$libname.def~
9359 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9360 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9361 emximp -o $lib $output_objdir/$libname.def'
9362 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9363 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9364 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9365 $ECHO EXPORTS >> $output_objdir/$libname.def~
9366 prefix_cmds="$SED"~
9367 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9368 prefix_cmds="$prefix_cmds -e 1d";
9369 fi~
9370 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9371 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9372 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9373 emximp -o $lib $output_objdir/$libname.def'
9374 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9375 enable_shared_with_static_runtimes=yes
9376 ;;
9377
9378 osf3*)
9379 if test yes = "$GCC"; then
9380 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9381 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'
9382 else
9383 allow_undefined_flag=' -expect_unresolved \*'
9384 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'
9385 fi
9386 archive_cmds_need_lc='no'
9387 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9388 hardcode_libdir_separator=:
9389 ;;
9390
9391 osf4* | osf5*) # as osf3* with the addition of -msym flag
9392 if test yes = "$GCC"; then
9393 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9394 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'
9395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9396 else
9397 allow_undefined_flag=' -expect_unresolved \*'
9398 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'
9399 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~
9400 $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'
9401
9402 # Both c and cxx compiler support -rpath directly
9403 hardcode_libdir_flag_spec='-rpath $libdir'
9404 fi
9405 archive_cmds_need_lc='no'
9406 hardcode_libdir_separator=:
9407 ;;
9408
9409 solaris*)
9410 no_undefined_flag=' -z defs'
9411 if test yes = "$GCC"; then
9412 wlarc='$wl'
9413 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415 $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'
9416 else
9417 case `$CC -V 2>&1` in
9418 *"Compilers 5.0"*)
9419 wlarc=''
9420 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9422 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9423 ;;
9424 *)
9425 wlarc='$wl'
9426 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9428 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9429 ;;
9430 esac
9431 fi
9432 hardcode_libdir_flag_spec='-R$libdir'
9433 hardcode_shlibpath_var=no
9434 case $host_os in
9435 solaris2.[0-5] | solaris2.[0-5].*) ;;
9436 *)
9437 # The compiler driver will combine and reorder linker options,
9438 # but understands '-z linker_flag'. GCC discards it without '$wl',
9439 # but is careful enough not to reorder.
9440 # Supported since Solaris 2.6 (maybe 2.5.1?)
9441 if test yes = "$GCC"; then
9442 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9443 else
9444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9445 fi
9446 ;;
9447 esac
9448 link_all_deplibs=yes
9449 ;;
9450
9451 sunos4*)
9452 if test sequent = "$host_vendor"; then
9453 # Use $CC to link under sequent, because it throws in some extra .o
9454 # files that make .init and .fini sections work.
9455 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9456 else
9457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9458 fi
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_direct=yes
9461 hardcode_minus_L=yes
9462 hardcode_shlibpath_var=no
9463 ;;
9464
9465 sysv4)
9466 case $host_vendor in
9467 sni)
9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_direct=yes # is this really true???
9470 ;;
9471 siemens)
9472 ## LD is ld it makes a PLAMLIB
9473 ## CC just makes a GrossModule.
9474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9475 reload_cmds='$CC -r -o $output$reload_objs'
9476 hardcode_direct=no
9477 ;;
9478 motorola)
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9481 ;;
9482 esac
9483 runpath_var='LD_RUN_PATH'
9484 hardcode_shlibpath_var=no
9485 ;;
9486
9487 sysv4.3*)
9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_shlibpath_var=no
9490 export_dynamic_flag_spec='-Bexport'
9491 ;;
9492
9493 sysv4*MP*)
9494 if test -d /usr/nec; then
9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496 hardcode_shlibpath_var=no
9497 runpath_var=LD_RUN_PATH
9498 hardcode_runpath_var=yes
9499 ld_shlibs=yes
9500 fi
9501 ;;
9502
9503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9504 no_undefined_flag='$wl-z,text'
9505 archive_cmds_need_lc=no
9506 hardcode_shlibpath_var=no
9507 runpath_var='LD_RUN_PATH'
9508
9509 if test yes = "$GCC"; then
9510 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 else
9513 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 fi
9516 ;;
9517
9518 sysv5* | sco3.2v5* | sco5v6*)
9519 # Note: We CANNOT use -z defs as we might desire, because we do not
9520 # link with -lc, and that would cause any symbols used from libc to
9521 # always be unresolved, which means just about no library would
9522 # ever link correctly. If we're not using GNU ld we use -z text
9523 # though, which does catch some bad symbols but isn't as heavy-handed
9524 # as -z defs.
9525 no_undefined_flag='$wl-z,text'
9526 allow_undefined_flag='$wl-z,nodefs'
9527 archive_cmds_need_lc=no
9528 hardcode_shlibpath_var=no
9529 hardcode_libdir_flag_spec='$wl-R,$libdir'
9530 hardcode_libdir_separator=':'
9531 link_all_deplibs=yes
9532 export_dynamic_flag_spec='$wl-Bexport'
9533 runpath_var='LD_RUN_PATH'
9534
9535 if test yes = "$GCC"; then
9536 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 else
9539 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541 fi
9542 ;;
9543
9544 uts4*)
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-L$libdir'
9547 hardcode_shlibpath_var=no
9548 ;;
9549
9550 *)
9551 ld_shlibs=no
9552 ;;
9553 esac
9554
9555 if test sni = "$host_vendor"; then
9556 case $host in
9557 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9558 export_dynamic_flag_spec='$wl-Blargedynsym'
9559 ;;
9560 esac
9561 fi
9562 fi
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9565 $as_echo "$ld_shlibs" >&6; }
9566 test no = "$ld_shlibs" && can_build_shared=no
9567
9568 with_gnu_ld=$with_gnu_ld
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 #
9585 # Do we need to explicitly link libc?
9586 #
9587 case "x$archive_cmds_need_lc" in
9588 x|xyes)
9589 # Assume -lc should be added
9590 archive_cmds_need_lc=yes
9591
9592 if test yes,yes = "$GCC,$enable_shared"; then
9593 case $archive_cmds in
9594 *'~'*)
9595 # FIXME: we may have to deal with multi-command sequences.
9596 ;;
9597 '$CC '*)
9598 # Test whether the compiler implicitly links with -lc since on some
9599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9600 # to ld, don't add -lc before -lgcc.
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9603 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 $RM conftest*
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9610 (eval $ac_compile) 2>&5
9611 ac_status=$?
9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; } 2>conftest.err; then
9614 soname=conftest
9615 lib=conftest
9616 libobjs=conftest.$ac_objext
9617 deplibs=
9618 wl=$lt_prog_compiler_wl
9619 pic_flag=$lt_prog_compiler_pic
9620 compiler_flags=-v
9621 linker_flags=-v
9622 verstring=
9623 output_objdir=.
9624 libname=conftest
9625 lt_save_allow_undefined_flag=$allow_undefined_flag
9626 allow_undefined_flag=
9627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9628 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9629 ac_status=$?
9630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; }
9632 then
9633 lt_cv_archive_cmds_need_lc=no
9634 else
9635 lt_cv_archive_cmds_need_lc=yes
9636 fi
9637 allow_undefined_flag=$lt_save_allow_undefined_flag
9638 else
9639 cat conftest.err 1>&5
9640 fi
9641 $RM conftest*
9642
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9646 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9647 ;;
9648 esac
9649 fi
9650 ;;
9651 esac
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9805 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9806
9807 if test yes = "$GCC"; then
9808 case $host_os in
9809 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9810 *) lt_awk_arg='/^libraries:/' ;;
9811 esac
9812 case $host_os in
9813 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9814 *) lt_sed_strip_eq='s|=/|/|g' ;;
9815 esac
9816 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9817 case $lt_search_path_spec in
9818 *\;*)
9819 # if the path contains ";" then we assume it to be the separator
9820 # otherwise default to the standard path separator (i.e. ":") - it is
9821 # assumed that no part of a normal pathname contains ";" but that should
9822 # okay in the real world where ";" in dirpaths is itself problematic.
9823 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9824 ;;
9825 *)
9826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9827 ;;
9828 esac
9829 # Ok, now we have the path, separated by spaces, we can step through it
9830 # and add multilib dir if necessary...
9831 lt_tmp_lt_search_path_spec=
9832 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9833 # ...but if some path component already ends with the multilib dir we assume
9834 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9835 case "$lt_multi_os_dir; $lt_search_path_spec " in
9836 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9837 lt_multi_os_dir=
9838 ;;
9839 esac
9840 for lt_sys_path in $lt_search_path_spec; do
9841 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9843 elif test -n "$lt_multi_os_dir"; then
9844 test -d "$lt_sys_path" && \
9845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9846 fi
9847 done
9848 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9849 BEGIN {RS = " "; FS = "/|\n";} {
9850 lt_foo = "";
9851 lt_count = 0;
9852 for (lt_i = NF; lt_i > 0; lt_i--) {
9853 if ($lt_i != "" && $lt_i != ".") {
9854 if ($lt_i == "..") {
9855 lt_count++;
9856 } else {
9857 if (lt_count == 0) {
9858 lt_foo = "/" $lt_i lt_foo;
9859 } else {
9860 lt_count--;
9861 }
9862 }
9863 }
9864 }
9865 if (lt_foo != "") { lt_freq[lt_foo]++; }
9866 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9867 }'`
9868 # AWK program above erroneously prepends '/' to C:/dos/paths
9869 # for these hosts.
9870 case $host_os in
9871 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9872 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9873 esac
9874 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9875 else
9876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9877 fi
9878 library_names_spec=
9879 libname_spec='lib$name'
9880 soname_spec=
9881 shrext_cmds=.so
9882 postinstall_cmds=
9883 postuninstall_cmds=
9884 finish_cmds=
9885 finish_eval=
9886 shlibpath_var=
9887 shlibpath_overrides_runpath=unknown
9888 version_type=none
9889 dynamic_linker="$host_os ld.so"
9890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9891 need_lib_prefix=unknown
9892 hardcode_into_libs=no
9893
9894 # when you set need_version to no, make sure it does not cause -set_version
9895 # flags to be left without arguments
9896 need_version=unknown
9897
9898
9899
9900 case $host_os in
9901 aix3*)
9902 version_type=linux # correct to gnu/linux during the next big refactor
9903 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9904 shlibpath_var=LIBPATH
9905
9906 # AIX 3 has no versioning support, so we append a major version to the name.
9907 soname_spec='$libname$release$shared_ext$major'
9908 ;;
9909
9910 aix[4-9]*)
9911 version_type=linux # correct to gnu/linux during the next big refactor
9912 need_lib_prefix=no
9913 need_version=no
9914 hardcode_into_libs=yes
9915 if test ia64 = "$host_cpu"; then
9916 # AIX 5 supports IA64
9917 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 else
9920 # With GCC up to 2.95.x, collect2 would create an import file
9921 # for dependence libraries. The import file would start with
9922 # the line '#! .'. This would cause the generated library to
9923 # depend on '.', always an invalid library. This was fixed in
9924 # development snapshots of GCC prior to 3.0.
9925 case $host_os in
9926 aix4 | aix4.[01] | aix4.[01].*)
9927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9928 echo ' yes '
9929 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9930 :
9931 else
9932 can_build_shared=no
9933 fi
9934 ;;
9935 esac
9936 # Using Import Files as archive members, it is possible to support
9937 # filename-based versioning of shared library archives on AIX. While
9938 # this would work for both with and without runtime linking, it will
9939 # prevent static linking of such archives. So we do filename-based
9940 # shared library versioning with .so extension only, which is used
9941 # when both runtime linking and shared linking is enabled.
9942 # Unfortunately, runtime linking may impact performance, so we do
9943 # not want this to be the default eventually. Also, we use the
9944 # versioned .so libs for executables only if there is the -brtl
9945 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9946 # To allow for filename-based versioning support, we need to create
9947 # libNAME.so.V as an archive file, containing:
9948 # *) an Import File, referring to the versioned filename of the
9949 # archive as well as the shared archive member, telling the
9950 # bitwidth (32 or 64) of that shared object, and providing the
9951 # list of exported symbols of that shared object, eventually
9952 # decorated with the 'weak' keyword
9953 # *) the shared object with the F_LOADONLY flag set, to really avoid
9954 # it being seen by the linker.
9955 # At run time we better use the real file rather than another symlink,
9956 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9957
9958 case $with_aix_soname,$aix_use_runtimelinking in
9959 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9960 # soname into executable. Probably we can add versioning support to
9961 # collect2, so additional links can be useful in future.
9962 aix,yes) # traditional libtool
9963 dynamic_linker='AIX unversionable lib.so'
9964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9965 # instead of lib<name>.a to let people know that these are not
9966 # typical AIX shared libraries.
9967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9968 ;;
9969 aix,no) # traditional AIX only
9970 dynamic_linker='AIX lib.a(lib.so.V)'
9971 # We preserve .a as extension for shared libraries through AIX4.2
9972 # and later when we are not doing run time linking.
9973 library_names_spec='$libname$release.a $libname.a'
9974 soname_spec='$libname$release$shared_ext$major'
9975 ;;
9976 svr4,*) # full svr4 only
9977 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9978 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9979 # We do not specify a path in Import Files, so LIBPATH fires.
9980 shlibpath_overrides_runpath=yes
9981 ;;
9982 *,yes) # both, prefer svr4
9983 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9984 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9985 # unpreferred sharedlib libNAME.a needs extra handling
9986 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"'
9987 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"'
9988 # We do not specify a path in Import Files, so LIBPATH fires.
9989 shlibpath_overrides_runpath=yes
9990 ;;
9991 *,no) # both, prefer aix
9992 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9993 library_names_spec='$libname$release.a $libname.a'
9994 soname_spec='$libname$release$shared_ext$major'
9995 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9996 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)'
9997 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"'
9998 ;;
9999 esac
10000 shlibpath_var=LIBPATH
10001 fi
10002 ;;
10003
10004 amigaos*)
10005 case $host_cpu in
10006 powerpc)
10007 # Since July 2007 AmigaOS4 officially supports .so libraries.
10008 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10010 ;;
10011 m68k)
10012 library_names_spec='$libname.ixlibrary $libname.a'
10013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10014 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'
10015 ;;
10016 esac
10017 ;;
10018
10019 beos*)
10020 library_names_spec='$libname$shared_ext'
10021 dynamic_linker="$host_os ld.so"
10022 shlibpath_var=LIBRARY_PATH
10023 ;;
10024
10025 bsdi[45]*)
10026 version_type=linux # correct to gnu/linux during the next big refactor
10027 need_version=no
10028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10029 soname_spec='$libname$release$shared_ext$major'
10030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10034 # the default ld.so.conf also contains /usr/contrib/lib and
10035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10036 # libtool to hard-code these into programs
10037 ;;
10038
10039 cygwin* | mingw* | pw32* | cegcc*)
10040 version_type=windows
10041 shrext_cmds=.dll
10042 need_version=no
10043 need_lib_prefix=no
10044
10045 case $GCC,$cc_basename in
10046 yes,*)
10047 # gcc
10048 library_names_spec='$libname.dll.a'
10049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10050 postinstall_cmds='base_file=`basename \$file`~
10051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10052 dldir=$destdir/`dirname \$dlpath`~
10053 test -d \$dldir || mkdir -p \$dldir~
10054 $install_prog $dir/$dlname \$dldir/$dlname~
10055 chmod a+x \$dldir/$dlname~
10056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10058 fi'
10059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10060 dlpath=$dir/\$dldll~
10061 $RM \$dlpath'
10062 shlibpath_overrides_runpath=yes
10063
10064 case $host_os in
10065 cygwin*)
10066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10067 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10068
10069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10070 ;;
10071 mingw* | cegcc*)
10072 # MinGW DLLs use traditional 'lib' prefix
10073 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10074 ;;
10075 pw32*)
10076 # pw32 DLLs use 'pw' prefix rather than 'lib'
10077 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10078 ;;
10079 esac
10080 dynamic_linker='Win32 ld.exe'
10081 ;;
10082
10083 *,cl*)
10084 # Native MSVC
10085 libname_spec='$name'
10086 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10087 library_names_spec='$libname.dll.lib'
10088
10089 case $build_os in
10090 mingw*)
10091 sys_lib_search_path_spec=
10092 lt_save_ifs=$IFS
10093 IFS=';'
10094 for lt_path in $LIB
10095 do
10096 IFS=$lt_save_ifs
10097 # Let DOS variable expansion print the short 8.3 style file name.
10098 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10099 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10100 done
10101 IFS=$lt_save_ifs
10102 # Convert to MSYS style.
10103 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10104 ;;
10105 cygwin*)
10106 # Convert to unix form, then to dos form, then back to unix form
10107 # but this time dos style (no spaces!) so that the unix form looks
10108 # like /cygdrive/c/PROGRA~1:/cygdr...
10109 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10110 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10111 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10112 ;;
10113 *)
10114 sys_lib_search_path_spec=$LIB
10115 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10116 # It is most probably a Windows format PATH.
10117 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10118 else
10119 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10120 fi
10121 # FIXME: find the short name or the path components, as spaces are
10122 # common. (e.g. "Program Files" -> "PROGRA~1")
10123 ;;
10124 esac
10125
10126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10127 postinstall_cmds='base_file=`basename \$file`~
10128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10129 dldir=$destdir/`dirname \$dlpath`~
10130 test -d \$dldir || mkdir -p \$dldir~
10131 $install_prog $dir/$dlname \$dldir/$dlname'
10132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10133 dlpath=$dir/\$dldll~
10134 $RM \$dlpath'
10135 shlibpath_overrides_runpath=yes
10136 dynamic_linker='Win32 link.exe'
10137 ;;
10138
10139 *)
10140 # Assume MSVC wrapper
10141 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10142 dynamic_linker='Win32 ld.exe'
10143 ;;
10144 esac
10145 # FIXME: first we should search . and the directory the executable is in
10146 shlibpath_var=PATH
10147 ;;
10148
10149 darwin* | rhapsody*)
10150 dynamic_linker="$host_os dyld"
10151 version_type=darwin
10152 need_lib_prefix=no
10153 need_version=no
10154 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10155 soname_spec='$libname$release$major$shared_ext'
10156 shlibpath_overrides_runpath=yes
10157 shlibpath_var=DYLD_LIBRARY_PATH
10158 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10159
10160 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10162 ;;
10163
10164 dgux*)
10165 version_type=linux # correct to gnu/linux during the next big refactor
10166 need_lib_prefix=no
10167 need_version=no
10168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10169 soname_spec='$libname$release$shared_ext$major'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 ;;
10172
10173 freebsd* | dragonfly*)
10174 # DragonFly does not have aout. When/if they implement a new
10175 # versioning mechanism, adjust this.
10176 if test -x /usr/bin/objformat; then
10177 objformat=`/usr/bin/objformat`
10178 else
10179 case $host_os in
10180 freebsd[23].*) objformat=aout ;;
10181 *) objformat=elf ;;
10182 esac
10183 fi
10184 version_type=freebsd-$objformat
10185 case $version_type in
10186 freebsd-elf*)
10187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10188 soname_spec='$libname$release$shared_ext$major'
10189 need_version=no
10190 need_lib_prefix=no
10191 ;;
10192 freebsd-*)
10193 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10194 need_version=yes
10195 ;;
10196 esac
10197 shlibpath_var=LD_LIBRARY_PATH
10198 case $host_os in
10199 freebsd2.*)
10200 shlibpath_overrides_runpath=yes
10201 ;;
10202 freebsd3.[01]* | freebsdelf3.[01]*)
10203 shlibpath_overrides_runpath=yes
10204 hardcode_into_libs=yes
10205 ;;
10206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10208 shlibpath_overrides_runpath=no
10209 hardcode_into_libs=yes
10210 ;;
10211 *) # from 4.6 on, and DragonFly
10212 shlibpath_overrides_runpath=yes
10213 hardcode_into_libs=yes
10214 ;;
10215 esac
10216 ;;
10217
10218 haiku*)
10219 version_type=linux # correct to gnu/linux during the next big refactor
10220 need_lib_prefix=no
10221 need_version=no
10222 dynamic_linker="$host_os runtime_loader"
10223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10224 soname_spec='$libname$release$shared_ext$major'
10225 shlibpath_var=LIBRARY_PATH
10226 shlibpath_overrides_runpath=no
10227 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10228 hardcode_into_libs=yes
10229 ;;
10230
10231 hpux9* | hpux10* | hpux11*)
10232 # Give a soname corresponding to the major version so that dld.sl refuses to
10233 # link against other versions.
10234 version_type=sunos
10235 need_lib_prefix=no
10236 need_version=no
10237 case $host_cpu in
10238 ia64*)
10239 shrext_cmds='.so'
10240 hardcode_into_libs=yes
10241 dynamic_linker="$host_os dld.so"
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10245 soname_spec='$libname$release$shared_ext$major'
10246 if test 32 = "$HPUX_IA64_MODE"; then
10247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10248 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10249 else
10250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10251 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10252 fi
10253 ;;
10254 hppa*64*)
10255 shrext_cmds='.sl'
10256 hardcode_into_libs=yes
10257 dynamic_linker="$host_os dld.sl"
10258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10261 soname_spec='$libname$release$shared_ext$major'
10262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10264 ;;
10265 *)
10266 shrext_cmds='.sl'
10267 dynamic_linker="$host_os dld.sl"
10268 shlibpath_var=SHLIB_PATH
10269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10271 soname_spec='$libname$release$shared_ext$major'
10272 ;;
10273 esac
10274 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10275 postinstall_cmds='chmod 555 $lib'
10276 # or fails outright, so override atomically:
10277 install_override_mode=555
10278 ;;
10279
10280 interix[3-9]*)
10281 version_type=linux # correct to gnu/linux during the next big refactor
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10285 soname_spec='$libname$release$shared_ext$major'
10286 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=no
10289 hardcode_into_libs=yes
10290 ;;
10291
10292 irix5* | irix6* | nonstopux*)
10293 case $host_os in
10294 nonstopux*) version_type=nonstopux ;;
10295 *)
10296 if test yes = "$lt_cv_prog_gnu_ld"; then
10297 version_type=linux # correct to gnu/linux during the next big refactor
10298 else
10299 version_type=irix
10300 fi ;;
10301 esac
10302 need_lib_prefix=no
10303 need_version=no
10304 soname_spec='$libname$release$shared_ext$major'
10305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10306 case $host_os in
10307 irix5* | nonstopux*)
10308 libsuff= shlibsuff=
10309 ;;
10310 *)
10311 case $LD in # libtool.m4 will add one of these switches to LD
10312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10313 libsuff= shlibsuff= libmagic=32-bit;;
10314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10315 libsuff=32 shlibsuff=N32 libmagic=N32;;
10316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10317 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10318 *) libsuff= shlibsuff= libmagic=never-match;;
10319 esac
10320 ;;
10321 esac
10322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10323 shlibpath_overrides_runpath=no
10324 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10325 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10326 hardcode_into_libs=yes
10327 ;;
10328
10329 # No shared lib support for Linux oldld, aout, or coff.
10330 linux*oldld* | linux*aout* | linux*coff*)
10331 dynamic_linker=no
10332 ;;
10333
10334 linux*android*)
10335 version_type=none # Android doesn't support versioned libraries.
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='$libname$release$shared_ext'
10339 soname_spec='$libname$release$shared_ext'
10340 finish_cmds=
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343
10344 # This implies no fast_install, which is unacceptable.
10345 # Some rework will be needed to allow for fast_install
10346 # before this can be enabled.
10347 hardcode_into_libs=yes
10348
10349 dynamic_linker='Android linker'
10350 # Don't embed -rpath directories since the linker doesn't support them.
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 ;;
10353
10354 # This must be glibc/ELF.
10355 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10356 version_type=linux # correct to gnu/linux during the next big refactor
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10360 soname_spec='$libname$release$shared_ext$major'
10361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=no
10364
10365 # Some binutils ld are patched to set DT_RUNPATH
10366 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 lt_cv_shlibpath_overrides_runpath=no
10370 save_LDFLAGS=$LDFLAGS
10371 save_libdir=$libdir
10372 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10373 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376
10377 int
10378 main ()
10379 {
10380
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10387 lt_cv_shlibpath_overrides_runpath=yes
10388 fi
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LDFLAGS=$save_LDFLAGS
10393 libdir=$save_libdir
10394
10395 fi
10396
10397 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10398
10399 # This implies no fast_install, which is unacceptable.
10400 # Some rework will be needed to allow for fast_install
10401 # before this can be enabled.
10402 hardcode_into_libs=yes
10403
10404 # Add ABI-specific directories to the system library path.
10405 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10406
10407 # Ideally, we could use ldconfig to report *all* directores which are
10408 # searched for libraries, however this is still not possible. Aside from not
10409 # being certain /sbin/ldconfig is available, command
10410 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10411 # even though it is searched at run-time. Try to do the best guess by
10412 # appending ld.so.conf contents (and includes) to the search path.
10413 if test -f /etc/ld.so.conf; then
10414 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' ' '`
10415 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10416 fi
10417
10418 # We used to test for /lib/ld.so.1 and disable shared libraries on
10419 # powerpc, because MkLinux only supported shared libraries with the
10420 # GNU dynamic linker. Since this was broken with cross compilers,
10421 # most powerpc-linux boxes support dynamic linking these days and
10422 # people can always --disable-shared, the test was removed, and we
10423 # assume the GNU/Linux dynamic linker is in use.
10424 dynamic_linker='GNU/Linux ld.so'
10425 ;;
10426
10427 netbsd*)
10428 version_type=sunos
10429 need_lib_prefix=no
10430 need_version=no
10431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10432 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10434 dynamic_linker='NetBSD (a.out) ld.so'
10435 else
10436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10437 soname_spec='$libname$release$shared_ext$major'
10438 dynamic_linker='NetBSD ld.elf_so'
10439 fi
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10443 ;;
10444
10445 newsos6)
10446 version_type=linux # correct to gnu/linux during the next big refactor
10447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=yes
10450 ;;
10451
10452 *nto* | *qnx*)
10453 version_type=qnx
10454 need_lib_prefix=no
10455 need_version=no
10456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10457 soname_spec='$libname$release$shared_ext$major'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=no
10460 hardcode_into_libs=yes
10461 dynamic_linker='ldqnx.so'
10462 ;;
10463
10464 openbsd* | bitrig*)
10465 version_type=sunos
10466 sys_lib_dlsearch_path_spec=/usr/lib
10467 need_lib_prefix=no
10468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10469 need_version=no
10470 else
10471 need_version=yes
10472 fi
10473 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=yes
10477 ;;
10478
10479 os2*)
10480 libname_spec='$name'
10481 version_type=windows
10482 shrext_cmds=.dll
10483 need_version=no
10484 need_lib_prefix=no
10485 # OS/2 can only load a DLL with a base name of 8 characters or less.
10486 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10487 v=$($ECHO $release$versuffix | tr -d .-);
10488 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10489 $ECHO $n$v`$shared_ext'
10490 library_names_spec='${libname}_dll.$libext'
10491 dynamic_linker='OS/2 ld.exe'
10492 shlibpath_var=BEGINLIBPATH
10493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10495 postinstall_cmds='base_file=`basename \$file`~
10496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10497 dldir=$destdir/`dirname \$dlpath`~
10498 test -d \$dldir || mkdir -p \$dldir~
10499 $install_prog $dir/$dlname \$dldir/$dlname~
10500 chmod a+x \$dldir/$dlname~
10501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10503 fi'
10504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10505 dlpath=$dir/\$dldll~
10506 $RM \$dlpath'
10507 ;;
10508
10509 osf3* | osf4* | osf5*)
10510 version_type=osf
10511 need_lib_prefix=no
10512 need_version=no
10513 soname_spec='$libname$release$shared_ext$major'
10514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10518 ;;
10519
10520 rdos*)
10521 dynamic_linker=no
10522 ;;
10523
10524 solaris*)
10525 version_type=linux # correct to gnu/linux during the next big refactor
10526 need_lib_prefix=no
10527 need_version=no
10528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10529 soname_spec='$libname$release$shared_ext$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=yes
10532 hardcode_into_libs=yes
10533 # ldd complains unless libraries are executable
10534 postinstall_cmds='chmod +x $lib'
10535 ;;
10536
10537 sunos4*)
10538 version_type=sunos
10539 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=yes
10543 if test yes = "$with_gnu_ld"; then
10544 need_lib_prefix=no
10545 fi
10546 need_version=yes
10547 ;;
10548
10549 sysv4 | sysv4.3*)
10550 version_type=linux # correct to gnu/linux during the next big refactor
10551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10552 soname_spec='$libname$release$shared_ext$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 case $host_vendor in
10555 sni)
10556 shlibpath_overrides_runpath=no
10557 need_lib_prefix=no
10558 runpath_var=LD_RUN_PATH
10559 ;;
10560 siemens)
10561 need_lib_prefix=no
10562 ;;
10563 motorola)
10564 need_lib_prefix=no
10565 need_version=no
10566 shlibpath_overrides_runpath=no
10567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10568 ;;
10569 esac
10570 ;;
10571
10572 sysv4*MP*)
10573 if test -d /usr/nec; then
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10576 soname_spec='$libname$shared_ext.$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 fi
10579 ;;
10580
10581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582 version_type=sco
10583 need_lib_prefix=no
10584 need_version=no
10585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10586 soname_spec='$libname$release$shared_ext$major'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 hardcode_into_libs=yes
10590 if test yes = "$with_gnu_ld"; then
10591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10592 else
10593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10594 case $host_os in
10595 sco3.2v5*)
10596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10597 ;;
10598 esac
10599 fi
10600 sys_lib_dlsearch_path_spec='/usr/lib'
10601 ;;
10602
10603 tpf*)
10604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10605 version_type=linux # correct to gnu/linux during the next big refactor
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=no
10611 hardcode_into_libs=yes
10612 ;;
10613
10614 uts4*)
10615 version_type=linux # correct to gnu/linux during the next big refactor
10616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10617 soname_spec='$libname$release$shared_ext$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 ;;
10620
10621 *)
10622 dynamic_linker=no
10623 ;;
10624 esac
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10626 $as_echo "$dynamic_linker" >&6; }
10627 test no = "$dynamic_linker" && can_build_shared=no
10628
10629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10630 if test yes = "$GCC"; then
10631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10632 fi
10633
10634 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10635 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10636 fi
10637
10638 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10639 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10640 fi
10641
10642 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10643 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10644
10645 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10646 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10647
10648 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10649 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10748 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10749 hardcode_action=
10750 if test -n "$hardcode_libdir_flag_spec" ||
10751 test -n "$runpath_var" ||
10752 test yes = "$hardcode_automatic"; then
10753
10754 # We can hardcode non-existent directories.
10755 if test no != "$hardcode_direct" &&
10756 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10757 # have to relink, otherwise we might link with an installed library
10758 # when we should be linking with a yet-to-be-installed one
10759 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10760 test no != "$hardcode_minus_L"; then
10761 # Linking always hardcodes the temporary library directory.
10762 hardcode_action=relink
10763 else
10764 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10765 hardcode_action=immediate
10766 fi
10767 else
10768 # We cannot hardcode anything, or else we can only hardcode existing
10769 # directories.
10770 hardcode_action=unsupported
10771 fi
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10773 $as_echo "$hardcode_action" >&6; }
10774
10775 if test relink = "$hardcode_action" ||
10776 test yes = "$inherit_rpath"; then
10777 # Fast installation is not supported
10778 enable_fast_install=no
10779 elif test yes = "$shlibpath_overrides_runpath" ||
10780 test no = "$enable_shared"; then
10781 # Fast installation is not necessary
10782 enable_fast_install=needless
10783 fi
10784
10785
10786
10787
10788
10789
10790 if test yes != "$enable_dlopen"; then
10791 enable_dlopen=unknown
10792 enable_dlopen_self=unknown
10793 enable_dlopen_self_static=unknown
10794 else
10795 lt_cv_dlopen=no
10796 lt_cv_dlopen_libs=
10797
10798 case $host_os in
10799 beos*)
10800 lt_cv_dlopen=load_add_on
10801 lt_cv_dlopen_libs=
10802 lt_cv_dlopen_self=yes
10803 ;;
10804
10805 mingw* | pw32* | cegcc*)
10806 lt_cv_dlopen=LoadLibrary
10807 lt_cv_dlopen_libs=
10808 ;;
10809
10810 cygwin*)
10811 lt_cv_dlopen=dlopen
10812 lt_cv_dlopen_libs=
10813 ;;
10814
10815 darwin*)
10816 # if libdl is installed we need to link against it
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10819 if ${ac_cv_lib_dl_dlopen+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldl $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char dlopen ();
10834 int
10835 main ()
10836 {
10837 return dlopen ();
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_dl_dlopen=yes
10844 else
10845 ac_cv_lib_dl_dlopen=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10854 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10855 else
10856
10857 lt_cv_dlopen=dyld
10858 lt_cv_dlopen_libs=
10859 lt_cv_dlopen_self=yes
10860
10861 fi
10862
10863 ;;
10864
10865 tpf*)
10866 # Don't try to run any link tests for TPF. We know it's impossible
10867 # because TPF is a cross-compiler, and we know how we open DSOs.
10868 lt_cv_dlopen=dlopen
10869 lt_cv_dlopen_libs=
10870 lt_cv_dlopen_self=no
10871 ;;
10872
10873 *)
10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875 if test "x$ac_cv_func_shl_load" = xyes; then :
10876 lt_cv_dlopen=shl_load
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10880 if ${ac_cv_lib_dld_shl_load+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-ldld $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char shl_load ();
10895 int
10896 main ()
10897 {
10898 return shl_load ();
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_dld_shl_load=yes
10905 else
10906 ac_cv_lib_dld_shl_load=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10915 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10916 else
10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918 if test "x$ac_cv_func_dlopen" = xyes; then :
10919 lt_cv_dlopen=dlopen
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10923 if ${ac_cv_lib_dl_dlopen+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_check_lib_save_LIBS=$LIBS
10927 LIBS="-ldl $LIBS"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char dlopen ();
10938 int
10939 main ()
10940 {
10941 return dlopen ();
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 ac_cv_lib_dl_dlopen=yes
10948 else
10949 ac_cv_lib_dl_dlopen=no
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10958 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962 if ${ac_cv_lib_svld_dlopen+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lsvld $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10977 int
10978 main ()
10979 {
10980 return dlopen ();
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_svld_dlopen=yes
10987 else
10988 ac_cv_lib_svld_dlopen=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10997 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11001 if ${ac_cv_lib_dld_dld_link+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldld $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dld_link ();
11016 int
11017 main ()
11018 {
11019 return dld_link ();
11020 ;
11021 return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dld_dld_link=yes
11026 else
11027 ac_cv_lib_dld_dld_link=no
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11036 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048
11049 fi
11050
11051
11052 fi
11053
11054 ;;
11055 esac
11056
11057 if test no = "$lt_cv_dlopen"; then
11058 enable_dlopen=no
11059 else
11060 enable_dlopen=yes
11061 fi
11062
11063 case $lt_cv_dlopen in
11064 dlopen)
11065 save_CPPFLAGS=$CPPFLAGS
11066 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11067
11068 save_LDFLAGS=$LDFLAGS
11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11070
11071 save_LIBS=$LIBS
11072 LIBS="$lt_cv_dlopen_libs $LIBS"
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076 if ${lt_cv_dlopen_self+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test yes = "$cross_compiling"; then :
11080 lt_cv_dlopen_self=cross
11081 else
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF
11085 #line $LINENO "configure"
11086 #include "confdefs.h"
11087
11088 #if HAVE_DLFCN_H
11089 #include <dlfcn.h>
11090 #endif
11091
11092 #include <stdio.h>
11093
11094 #ifdef RTLD_GLOBAL
11095 # define LT_DLGLOBAL RTLD_GLOBAL
11096 #else
11097 # ifdef DL_GLOBAL
11098 # define LT_DLGLOBAL DL_GLOBAL
11099 # else
11100 # define LT_DLGLOBAL 0
11101 # endif
11102 #endif
11103
11104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105 find out it does not work in some platform. */
11106 #ifndef LT_DLLAZY_OR_NOW
11107 # ifdef RTLD_LAZY
11108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11109 # else
11110 # ifdef DL_LAZY
11111 # define LT_DLLAZY_OR_NOW DL_LAZY
11112 # else
11113 # ifdef RTLD_NOW
11114 # define LT_DLLAZY_OR_NOW RTLD_NOW
11115 # else
11116 # ifdef DL_NOW
11117 # define LT_DLLAZY_OR_NOW DL_NOW
11118 # else
11119 # define LT_DLLAZY_OR_NOW 0
11120 # endif
11121 # endif
11122 # endif
11123 # endif
11124 #endif
11125
11126 /* When -fvisibility=hidden is used, assume the code has been annotated
11127 correspondingly for the symbols needed. */
11128 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129 int fnord () __attribute__((visibility("default")));
11130 #endif
11131
11132 int fnord () { return 42; }
11133 int main ()
11134 {
11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136 int status = $lt_dlunknown;
11137
11138 if (self)
11139 {
11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11141 else
11142 {
11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 else puts (dlerror ());
11145 }
11146 /* dlclose (self); */
11147 }
11148 else
11149 puts (dlerror ());
11150
11151 return status;
11152 }
11153 _LT_EOF
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11159 (./conftest; exit; ) >&5 2>/dev/null
11160 lt_status=$?
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165 esac
11166 else :
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11169 fi
11170 fi
11171 rm -fr conftest*
11172
11173
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176 $as_echo "$lt_cv_dlopen_self" >&6; }
11177
11178 if test yes = "$lt_cv_dlopen_self"; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182 if ${lt_cv_dlopen_self_static+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test yes = "$cross_compiling"; then :
11186 lt_cv_dlopen_self_static=cross
11187 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
11191 #line $LINENO "configure"
11192 #include "confdefs.h"
11193
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11197
11198 #include <stdio.h>
11199
11200 #ifdef RTLD_GLOBAL
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11202 #else
11203 # ifdef DL_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11205 # else
11206 # define LT_DLGLOBAL 0
11207 # endif
11208 #endif
11209
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 # ifdef RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11215 # else
11216 # ifdef DL_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11218 # else
11219 # ifdef RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11221 # else
11222 # ifdef DL_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # else
11225 # define LT_DLLAZY_OR_NOW 0
11226 # endif
11227 # endif
11228 # endif
11229 # endif
11230 #endif
11231
11232 /* When -fvisibility=hidden is used, assume the code has been annotated
11233 correspondingly for the symbols needed. */
11234 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235 int fnord () __attribute__((visibility("default")));
11236 #endif
11237
11238 int fnord () { return 42; }
11239 int main ()
11240 {
11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242 int status = $lt_dlunknown;
11243
11244 if (self)
11245 {
11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11247 else
11248 {
11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 else puts (dlerror ());
11251 }
11252 /* dlclose (self); */
11253 }
11254 else
11255 puts (dlerror ());
11256
11257 return status;
11258 }
11259 _LT_EOF
11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261 (eval $ac_link) 2>&5
11262 ac_status=$?
11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11265 (./conftest; exit; ) >&5 2>/dev/null
11266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11275 fi
11276 fi
11277 rm -fr conftest*
11278
11279
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11283 fi
11284
11285 CPPFLAGS=$save_CPPFLAGS
11286 LDFLAGS=$save_LDFLAGS
11287 LIBS=$save_LIBS
11288 ;;
11289 esac
11290
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11294 esac
11295
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11299 esac
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318 striplib=
11319 old_striplib=
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11322 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326 $as_echo "yes" >&6; }
11327 else
11328 # FIXME - insert some real tests, host_os isn't really good enough
11329 case $host_os in
11330 darwin*)
11331 if test -n "$STRIP"; then
11332 striplib="$STRIP -x"
11333 old_striplib="$STRIP -S"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335 $as_echo "yes" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 fi
11340 ;;
11341 *)
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 ;;
11345 esac
11346 fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 # Report what library types will actually be built
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363 $as_echo "$can_build_shared" >&6; }
11364
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366 $as_echo_n "checking whether to build shared libraries... " >&6; }
11367 test no = "$can_build_shared" && enable_shared=no
11368
11369 # On AIX, shared libraries and static libraries use the same namespace, and
11370 # are all built from PIC.
11371 case $host_os in
11372 aix3*)
11373 test yes = "$enable_shared" && enable_static=no
11374 if test -n "$RANLIB"; then
11375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376 postinstall_cmds='$RANLIB $lib'
11377 fi
11378 ;;
11379
11380 aix[4-9]*)
11381 if test ia64 != "$host_cpu"; then
11382 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11383 yes,aix,yes) ;; # shared object as lib.so file only
11384 yes,svr4,*) ;; # shared object as lib.so archive member only
11385 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11386 esac
11387 fi
11388 ;;
11389 esac
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11391 $as_echo "$enable_shared" >&6; }
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11394 $as_echo_n "checking whether to build static libraries... " >&6; }
11395 # Make sure either enable_shared or enable_static is yes.
11396 test yes = "$enable_shared" || enable_static=yes
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11398 $as_echo "$enable_static" >&6; }
11399
11400
11401
11402
11403 fi
11404 ac_ext=c
11405 ac_cpp='$CPP $CPPFLAGS'
11406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11409
11410 CC=$lt_save_CC
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426 ac_config_commands="$ac_config_commands libtool"
11427
11428
11429
11430
11431 # Only expand once:
11432
11433
11434
11435 # If library source has changed since last release, increment revision
11436 # If public symbols have been added, removed or changed since last release,
11437 # increment current and set revision to 0
11438 # If public symbols have been added since last release, increment age
11439 # If public symbols have been removed since last release, set age to 0
11440
11441
11442
11443 LT_CURRENT=0
11444 LT_REVISION=0
11445 LT_AGE=0
11446
11447
11448
11449
11450 am__api_version='1.15'
11451
11452 # Find a good install program. We prefer a C program (faster),
11453 # so one script is as good as another. But avoid the broken or
11454 # incompatible versions:
11455 # SysV /etc/install, /usr/sbin/install
11456 # SunOS /usr/etc/install
11457 # IRIX /sbin/install
11458 # AIX /bin/install
11459 # AmigaOS /C/install, which installs bootblocks on floppy discs
11460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11463 # OS/2's system install, which has a completely different semantic
11464 # ./install, which can be erroneously created by make from ./install.sh.
11465 # Reject install programs that cannot install multiple files.
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11468 if test -z "$INSTALL"; then
11469 if ${ac_cv_path_install+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 # Account for people who put trailing slashes in PATH elements.
11478 case $as_dir/ in #((
11479 ./ | .// | /[cC]/* | \
11480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11482 /usr/ucb/* ) ;;
11483 *)
11484 # OSF1 and SCO ODT 3.0 have their own names for install.
11485 # Don't use installbsd from OSF since it installs stuff as root
11486 # by default.
11487 for ac_prog in ginstall scoinst install; do
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11490 if test $ac_prog = install &&
11491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11492 # AIX install. It has an incompatible calling convention.
11493 :
11494 elif test $ac_prog = install &&
11495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11496 # program-specific install script used by HP pwplus--don't use.
11497 :
11498 else
11499 rm -rf conftest.one conftest.two conftest.dir
11500 echo one > conftest.one
11501 echo two > conftest.two
11502 mkdir conftest.dir
11503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11504 test -s conftest.one && test -s conftest.two &&
11505 test -s conftest.dir/conftest.one &&
11506 test -s conftest.dir/conftest.two
11507 then
11508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11509 break 3
11510 fi
11511 fi
11512 fi
11513 done
11514 done
11515 ;;
11516 esac
11517
11518 done
11519 IFS=$as_save_IFS
11520
11521 rm -rf conftest.one conftest.two conftest.dir
11522
11523 fi
11524 if test "${ac_cv_path_install+set}" = set; then
11525 INSTALL=$ac_cv_path_install
11526 else
11527 # As a last resort, use the slow shell script. Don't cache a
11528 # value for INSTALL within a source directory, because that will
11529 # break other packages using the cache if that directory is
11530 # removed, or if the value is a relative name.
11531 INSTALL=$ac_install_sh
11532 fi
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11535 $as_echo "$INSTALL" >&6; }
11536
11537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11538 # It thinks the first close brace ends the variable substitution.
11539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11540
11541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11542
11543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11546 $as_echo_n "checking whether build environment is sane... " >&6; }
11547 # Reject unsafe characters in $srcdir or the absolute working directory
11548 # name. Accept space and tab only in the latter.
11549 am_lf='
11550 '
11551 case `pwd` in
11552 *[\\\"\#\$\&\'\`$am_lf]*)
11553 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11554 esac
11555 case $srcdir in
11556 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11557 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11558 esac
11559
11560 # Do 'set' in a subshell so we don't clobber the current shell's
11561 # arguments. Must try -L first in case configure is actually a
11562 # symlink; some systems play weird games with the mod time of symlinks
11563 # (eg FreeBSD returns the mod time of the symlink's containing
11564 # directory).
11565 if (
11566 am_has_slept=no
11567 for am_try in 1 2; do
11568 echo "timestamp, slept: $am_has_slept" > conftest.file
11569 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11570 if test "$*" = "X"; then
11571 # -L didn't work.
11572 set X `ls -t "$srcdir/configure" conftest.file`
11573 fi
11574 if test "$*" != "X $srcdir/configure conftest.file" \
11575 && test "$*" != "X conftest.file $srcdir/configure"; then
11576
11577 # If neither matched, then we have a broken ls. This can happen
11578 # if, for instance, CONFIG_SHELL is bash and it inherits a
11579 # broken ls alias from the environment. This has actually
11580 # happened. Such a system could not be considered "sane".
11581 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11582 alias in your environment" "$LINENO" 5
11583 fi
11584 if test "$2" = conftest.file || test $am_try -eq 2; then
11585 break
11586 fi
11587 # Just in case.
11588 sleep 1
11589 am_has_slept=yes
11590 done
11591 test "$2" = conftest.file
11592 )
11593 then
11594 # Ok.
11595 :
11596 else
11597 as_fn_error $? "newly created file is older than distributed files!
11598 Check your system clock" "$LINENO" 5
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601 $as_echo "yes" >&6; }
11602 # If we didn't sleep, we still need to ensure time stamps of config.status and
11603 # generated files are strictly newer.
11604 am_sleep_pid=
11605 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11606 ( sleep 1 ) &
11607 am_sleep_pid=$!
11608 fi
11609
11610 rm -f conftest.file
11611
11612 test "$program_prefix" != NONE &&
11613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11614 # Use a double $ so make ignores it.
11615 test "$program_suffix" != NONE &&
11616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11617 # Double any \ or $.
11618 # By default was `s,x,x', remove it if useless.
11619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11620 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11621
11622 if test x"${MISSING+set}" != xset; then
11623 case $am_aux_dir in
11624 *\ * | *\ *)
11625 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11626 *)
11627 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11628 esac
11629 fi
11630 # Use eval to expand $SHELL
11631 if eval "$MISSING --is-lightweight"; then
11632 am_missing_run="$MISSING "
11633 else
11634 am_missing_run=
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11636 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11637 fi
11638
11639 if test x"${install_sh+set}" != xset; then
11640 case $am_aux_dir in
11641 *\ * | *\ *)
11642 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11643 *)
11644 install_sh="\${SHELL} $am_aux_dir/install-sh"
11645 esac
11646 fi
11647
11648 # Installed binaries are usually stripped using 'strip' when the user
11649 # run "make install-strip". However 'strip' might not be the right
11650 # tool to use in cross-compilation environments, therefore Automake
11651 # will honor the 'STRIP' environment variable to overrule this program.
11652 if test "$cross_compiling" != no; then
11653 if test -n "$ac_tool_prefix"; then
11654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11655 set dummy ${ac_tool_prefix}strip; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_prog_STRIP+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 if test -n "$STRIP"; then
11662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11663 else
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11666 do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675 done
11676 done
11677 IFS=$as_save_IFS
11678
11679 fi
11680 fi
11681 STRIP=$ac_cv_prog_STRIP
11682 if test -n "$STRIP"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11684 $as_echo "$STRIP" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11688 fi
11689
11690
11691 fi
11692 if test -z "$ac_cv_prog_STRIP"; then
11693 ac_ct_STRIP=$STRIP
11694 # Extract the first word of "strip", so it can be a program name with args.
11695 set dummy strip; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$ac_ct_STRIP"; then
11702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_ac_ct_STRIP="strip"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11714 fi
11715 done
11716 done
11717 IFS=$as_save_IFS
11718
11719 fi
11720 fi
11721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11722 if test -n "$ac_ct_STRIP"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11724 $as_echo "$ac_ct_STRIP" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730 if test "x$ac_ct_STRIP" = x; then
11731 STRIP=":"
11732 else
11733 case $cross_compiling:$ac_tool_warned in
11734 yes:)
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11737 ac_tool_warned=yes ;;
11738 esac
11739 STRIP=$ac_ct_STRIP
11740 fi
11741 else
11742 STRIP="$ac_cv_prog_STRIP"
11743 fi
11744
11745 fi
11746 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11747
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11749 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11750 if test -z "$MKDIR_P"; then
11751 if ${ac_cv_path_mkdir+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11756 do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_prog in mkdir gmkdir; do
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11762 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11763 'mkdir (GNU coreutils) '* | \
11764 'mkdir (coreutils) '* | \
11765 'mkdir (fileutils) '4.1*)
11766 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11767 break 3;;
11768 esac
11769 done
11770 done
11771 done
11772 IFS=$as_save_IFS
11773
11774 fi
11775
11776 test -d ./--version && rmdir ./--version
11777 if test "${ac_cv_path_mkdir+set}" = set; then
11778 MKDIR_P="$ac_cv_path_mkdir -p"
11779 else
11780 # As a last resort, use the slow shell script. Don't cache a
11781 # value for MKDIR_P within a source directory, because that will
11782 # break other packages using the cache if that directory is
11783 # removed, or if the value is a relative name.
11784 MKDIR_P="$ac_install_sh -d"
11785 fi
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11788 $as_echo "$MKDIR_P" >&6; }
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11791 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11792 set x ${MAKE-make}
11793 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11794 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 cat >conftest.make <<\_ACEOF
11798 SHELL = /bin/sh
11799 all:
11800 @echo '@@@%%%=$(MAKE)=@@@%%%'
11801 _ACEOF
11802 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11803 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11804 *@@@%%%=?*=@@@%%%*)
11805 eval ac_cv_prog_make_${ac_make}_set=yes;;
11806 *)
11807 eval ac_cv_prog_make_${ac_make}_set=no;;
11808 esac
11809 rm -f conftest.make
11810 fi
11811 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11813 $as_echo "yes" >&6; }
11814 SET_MAKE=
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 SET_MAKE="MAKE=${MAKE-make}"
11819 fi
11820
11821 rm -rf .tst 2>/dev/null
11822 mkdir .tst 2>/dev/null
11823 if test -d .tst; then
11824 am__leading_dot=.
11825 else
11826 am__leading_dot=_
11827 fi
11828 rmdir .tst 2>/dev/null
11829
11830 DEPDIR="${am__leading_dot}deps"
11831
11832 ac_config_commands="$ac_config_commands depfiles"
11833
11834
11835 am_make=${MAKE-make}
11836 cat > confinc << 'END'
11837 am__doit:
11838 @echo this is the am__doit target
11839 .PHONY: am__doit
11840 END
11841 # If we don't find an include directive, just comment out the code.
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11843 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11844 am__include="#"
11845 am__quote=
11846 _am_result=none
11847 # First try GNU make style include.
11848 echo "include confinc" > confmf
11849 # Ignore all kinds of additional output from 'make'.
11850 case `$am_make -s -f confmf 2> /dev/null` in #(
11851 *the\ am__doit\ target*)
11852 am__include=include
11853 am__quote=
11854 _am_result=GNU
11855 ;;
11856 esac
11857 # Now try BSD make style include.
11858 if test "$am__include" = "#"; then
11859 echo '.include "confinc"' > confmf
11860 case `$am_make -s -f confmf 2> /dev/null` in #(
11861 *the\ am__doit\ target*)
11862 am__include=.include
11863 am__quote="\""
11864 _am_result=BSD
11865 ;;
11866 esac
11867 fi
11868
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11871 $as_echo "$_am_result" >&6; }
11872 rm -f confinc confmf
11873
11874 # Check whether --enable-dependency-tracking was given.
11875 if test "${enable_dependency_tracking+set}" = set; then :
11876 enableval=$enable_dependency_tracking;
11877 fi
11878
11879 if test "x$enable_dependency_tracking" != xno; then
11880 am_depcomp="$ac_aux_dir/depcomp"
11881 AMDEPBACKSLASH='\'
11882 am__nodep='_no'
11883 fi
11884 if test "x$enable_dependency_tracking" != xno; then
11885 AMDEP_TRUE=
11886 AMDEP_FALSE='#'
11887 else
11888 AMDEP_TRUE='#'
11889 AMDEP_FALSE=
11890 fi
11891
11892
11893 # Check whether --enable-silent-rules was given.
11894 if test "${enable_silent_rules+set}" = set; then :
11895 enableval=$enable_silent_rules;
11896 fi
11897
11898 case $enable_silent_rules in # (((
11899 yes) AM_DEFAULT_VERBOSITY=0;;
11900 no) AM_DEFAULT_VERBOSITY=1;;
11901 *) AM_DEFAULT_VERBOSITY=1;;
11902 esac
11903 am_make=${MAKE-make}
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11905 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11906 if ${am_cv_make_support_nested_variables+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if $as_echo 'TRUE=$(BAR$(V))
11910 BAR0=false
11911 BAR1=true
11912 V=1
11913 am__doit:
11914 @$(TRUE)
11915 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11916 am_cv_make_support_nested_variables=yes
11917 else
11918 am_cv_make_support_nested_variables=no
11919 fi
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11922 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11923 if test $am_cv_make_support_nested_variables = yes; then
11924 AM_V='$(V)'
11925 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11926 else
11927 AM_V=$AM_DEFAULT_VERBOSITY
11928 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11929 fi
11930 AM_BACKSLASH='\'
11931
11932 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11933 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11934 # is not polluted with repeated "-I."
11935 am__isrc=' -I$(srcdir)'
11936 # test to see if srcdir already configured
11937 if test -f $srcdir/config.status; then
11938 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11939 fi
11940 fi
11941
11942 # test whether we have cygpath
11943 if test -z "$CYGPATH_W"; then
11944 if (cygpath --version) >/dev/null 2>/dev/null; then
11945 CYGPATH_W='cygpath -w'
11946 else
11947 CYGPATH_W=echo
11948 fi
11949 fi
11950
11951
11952 # Define the identity of the package.
11953 PACKAGE='caribou'
11954 VERSION='0.4.21'
11955
11956
11957 cat >>confdefs.h <<_ACEOF
11958 #define PACKAGE "$PACKAGE"
11959 _ACEOF
11960
11961
11962 cat >>confdefs.h <<_ACEOF
11963 #define VERSION "$VERSION"
11964 _ACEOF
11965
11966 # Some tools Automake needs.
11967
11968 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11969
11970
11971 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11972
11973
11974 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11975
11976
11977 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11978
11979
11980 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11981
11982 # For better backward compatibility. To be removed once Automake 1.9.x
11983 # dies out for good. For more background, see:
11984 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11985 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11986 mkdir_p='$(MKDIR_P)'
11987
11988 # We need awk for the "check" target (and possibly the TAP driver). The
11989 # system "awk" is bad on some platforms.
11990 # Always define AMTAR for backward compatibility. Yes, it's still used
11991 # in the wild :-( We should find a proper way to deprecate it ...
11992 AMTAR='$${TAR-tar}'
11993
11994
11995 # We'll loop over all known methods to create a tar archive until one works.
11996 _am_tools='gnutar pax cpio none'
11997
11998 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11999
12000
12001
12002
12003
12004 depcc="$CC" am_compiler_list=
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12007 $as_echo_n "checking dependency style of $depcc... " >&6; }
12008 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12012 # We make a subdir and do the tests there. Otherwise we can end up
12013 # making bogus files that we don't know about and never remove. For
12014 # instance it was reported that on HP-UX the gcc test will end up
12015 # making a dummy file named 'D' -- because '-MD' means "put the output
12016 # in D".
12017 rm -rf conftest.dir
12018 mkdir conftest.dir
12019 # Copy depcomp to subdir because otherwise we won't find it if we're
12020 # using a relative directory.
12021 cp "$am_depcomp" conftest.dir
12022 cd conftest.dir
12023 # We will build objects and dependencies in a subdirectory because
12024 # it helps to detect inapplicable dependency modes. For instance
12025 # both Tru64's cc and ICC support -MD to output dependencies as a
12026 # side effect of compilation, but ICC will put the dependencies in
12027 # the current directory while Tru64 will put them in the object
12028 # directory.
12029 mkdir sub
12030
12031 am_cv_CC_dependencies_compiler_type=none
12032 if test "$am_compiler_list" = ""; then
12033 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12034 fi
12035 am__universal=false
12036 case " $depcc " in #(
12037 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12038 esac
12039
12040 for depmode in $am_compiler_list; do
12041 # Setup a source with many dependencies, because some compilers
12042 # like to wrap large dependency lists on column 80 (with \), and
12043 # we should not choose a depcomp mode which is confused by this.
12044 #
12045 # We need to recreate these files for each test, as the compiler may
12046 # overwrite some of them when testing with obscure command lines.
12047 # This happens at least with the AIX C compiler.
12048 : > sub/conftest.c
12049 for i in 1 2 3 4 5 6; do
12050 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12051 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12052 # Solaris 10 /bin/sh.
12053 echo '/* dummy */' > sub/conftst$i.h
12054 done
12055 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12056
12057 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12058 # mode. It turns out that the SunPro C++ compiler does not properly
12059 # handle '-M -o', and we need to detect this. Also, some Intel
12060 # versions had trouble with output in subdirs.
12061 am__obj=sub/conftest.${OBJEXT-o}
12062 am__minus_obj="-o $am__obj"
12063 case $depmode in
12064 gcc)
12065 # This depmode causes a compiler race in universal mode.
12066 test "$am__universal" = false || continue
12067 ;;
12068 nosideeffect)
12069 # After this tag, mechanisms are not by side-effect, so they'll
12070 # only be used when explicitly requested.
12071 if test "x$enable_dependency_tracking" = xyes; then
12072 continue
12073 else
12074 break
12075 fi
12076 ;;
12077 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12078 # This compiler won't grok '-c -o', but also, the minuso test has
12079 # not run yet. These depmodes are late enough in the game, and
12080 # so weak that their functioning should not be impacted.
12081 am__obj=conftest.${OBJEXT-o}
12082 am__minus_obj=
12083 ;;
12084 none) break ;;
12085 esac
12086 if depmode=$depmode \
12087 source=sub/conftest.c object=$am__obj \
12088 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12089 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12090 >/dev/null 2>conftest.err &&
12091 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12092 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12093 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12094 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12095 # icc doesn't choke on unknown options, it will just issue warnings
12096 # or remarks (even with -Werror). So we grep stderr for any message
12097 # that says an option was ignored or not supported.
12098 # When given -MP, icc 7.0 and 7.1 complain thusly:
12099 # icc: Command line warning: ignoring option '-M'; no argument required
12100 # The diagnosis changed in icc 8.0:
12101 # icc: Command line remark: option '-MP' not supported
12102 if (grep 'ignoring option' conftest.err ||
12103 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12104 am_cv_CC_dependencies_compiler_type=$depmode
12105 break
12106 fi
12107 fi
12108 done
12109
12110 cd ..
12111 rm -rf conftest.dir
12112 else
12113 am_cv_CC_dependencies_compiler_type=none
12114 fi
12115
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12118 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12119 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12120
12121 if
12122 test "x$enable_dependency_tracking" != xno \
12123 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12124 am__fastdepCC_TRUE=
12125 am__fastdepCC_FALSE='#'
12126 else
12127 am__fastdepCC_TRUE='#'
12128 am__fastdepCC_FALSE=
12129 fi
12130
12131
12132
12133 # POSIX will say in a future version that running "rm -f" with no argument
12134 # is OK; and we want to be able to make that assumption in our Makefile
12135 # recipes. So use an aggressive probe to check that the usage we want is
12136 # actually supported "in the wild" to an acceptable degree.
12137 # See automake bug#10828.
12138 # To make any issue more visible, cause the running configure to be aborted
12139 # by default if the 'rm' program in use doesn't match our expectations; the
12140 # user can still override this though.
12141 if rm -f && rm -fr && rm -rf; then : OK; else
12142 cat >&2 <<'END'
12143 Oops!
12144
12145 Your 'rm' program seems unable to run without file operands specified
12146 on the command line, even when the '-f' option is present. This is contrary
12147 to the behaviour of most rm programs out there, and not conforming with
12148 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12149
12150 Please tell [email protected] about your system, including the value
12151 of your $PATH and any error possibly output before this message. This
12152 can help us improve future automake versions.
12153
12154 END
12155 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12156 echo 'Configuration will proceed anyway, since you have set the' >&2
12157 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12158 echo >&2
12159 else
12160 cat >&2 <<'END'
12161 Aborting the configuration process, to ensure you take notice of the issue.
12162
12163 You can download and install GNU coreutils to get an 'rm' implementation
12164 that behaves properly: <http://www.gnu.org/software/coreutils/>.
12165
12166 If you want to complete the configuration process using your problematic
12167 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12168 to "yes", and re-run configure.
12169
12170 END
12171 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12172 fi
12173 fi
12174
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12177 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12178 # Check whether --enable-maintainer-mode was given.
12179 if test "${enable_maintainer_mode+set}" = set; then :
12180 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12181 else
12182 USE_MAINTAINER_MODE=yes
12183 fi
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12186 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12187 if test $USE_MAINTAINER_MODE = yes; then
12188 MAINTAINER_MODE_TRUE=
12189 MAINTAINER_MODE_FALSE='#'
12190 else
12191 MAINTAINER_MODE_TRUE='#'
12192 MAINTAINER_MODE_FALSE=
12193 fi
12194
12195 MAINT=$MAINTAINER_MODE_TRUE
12196
12197
12198 # Support silent build rules. Disable by either passing --disable-silent-rules
12199 # to configure or passing V=1 to make
12200 # Check whether --enable-silent-rules was given.
12201 if test "${enable_silent_rules+set}" = set; then :
12202 enableval=$enable_silent_rules;
12203 fi
12204
12205 case $enable_silent_rules in # (((
12206 yes) AM_DEFAULT_VERBOSITY=0;;
12207 no) AM_DEFAULT_VERBOSITY=1;;
12208 *) AM_DEFAULT_VERBOSITY=0;;
12209 esac
12210 am_make=${MAKE-make}
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12212 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12213 if ${am_cv_make_support_nested_variables+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 if $as_echo 'TRUE=$(BAR$(V))
12217 BAR0=false
12218 BAR1=true
12219 V=1
12220 am__doit:
12221 @$(TRUE)
12222 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12223 am_cv_make_support_nested_variables=yes
12224 else
12225 am_cv_make_support_nested_variables=no
12226 fi
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12229 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12230 if test $am_cv_make_support_nested_variables = yes; then
12231 AM_V='$(V)'
12232 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12233 else
12234 AM_V=$AM_DEFAULT_VERBOSITY
12235 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12236 fi
12237 AM_BACKSLASH='\'
12238
12239
12240 echo \#buildapi-variable-no-builddir >/dev/null
12241
12242 # Check whether --enable-glibtest was given.
12243 if test "${enable_glibtest+set}" = set; then :
12244 enableval=$enable_glibtest;
12245 else
12246 enable_glibtest=yes
12247 fi
12248
12249
12250 pkg_config_args=glib-2.0
12251 for module in . gobject
12252 do
12253 case "$module" in
12254 gmodule)
12255 pkg_config_args="$pkg_config_args gmodule-2.0"
12256 ;;
12257 gmodule-no-export)
12258 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
12259 ;;
12260 gobject)
12261 pkg_config_args="$pkg_config_args gobject-2.0"
12262 ;;
12263 gthread)
12264 pkg_config_args="$pkg_config_args gthread-2.0"
12265 ;;
12266 gio*)
12267 pkg_config_args="$pkg_config_args $module-2.0"
12268 ;;
12269 esac
12270 done
12271
12272
12273
12274
12275
12276
12277
12278
12279 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12280 if test -n "$ac_tool_prefix"; then
12281 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12282 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 case $PKG_CONFIG in
12289 [\\/]* | ?:[\\/]*)
12290 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12291 ;;
12292 *)
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304 done
12305 done
12306 IFS=$as_save_IFS
12307
12308 ;;
12309 esac
12310 fi
12311 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12312 if test -n "$PKG_CONFIG"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12314 $as_echo "$PKG_CONFIG" >&6; }
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318 fi
12319
12320
12321 fi
12322 if test -z "$ac_cv_path_PKG_CONFIG"; then
12323 ac_pt_PKG_CONFIG=$PKG_CONFIG
12324 # Extract the first word of "pkg-config", so it can be a program name with args.
12325 set dummy pkg-config; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 case $ac_pt_PKG_CONFIG in
12332 [\\/]* | ?:[\\/]*)
12333 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12334 ;;
12335 *)
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12338 do
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347 done
12348 done
12349 IFS=$as_save_IFS
12350
12351 ;;
12352 esac
12353 fi
12354 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12355 if test -n "$ac_pt_PKG_CONFIG"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12357 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363 if test "x$ac_pt_PKG_CONFIG" = x; then
12364 PKG_CONFIG=""
12365 else
12366 case $cross_compiling:$ac_tool_warned in
12367 yes:)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12370 ac_tool_warned=yes ;;
12371 esac
12372 PKG_CONFIG=$ac_pt_PKG_CONFIG
12373 fi
12374 else
12375 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12376 fi
12377
12378 fi
12379 if test -n "$PKG_CONFIG"; then
12380 _pkg_min_version=0.16
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12382 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12383 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12385 $as_echo "yes" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12389 PKG_CONFIG=""
12390 fi
12391 fi
12392
12393 no_glib=""
12394
12395 if test "x$PKG_CONFIG" = x ; then
12396 no_glib=yes
12397 PKG_CONFIG=no
12398 fi
12399
12400 min_glib_version=2.27.5
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
12402 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
12403
12404 if test x$PKG_CONFIG != xno ; then
12405 ## don't try to run the test against uninstalled libtool libs
12406 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12407 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
12408 enable_glibtest=no
12409 fi
12410
12411 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
12412 :
12413 else
12414 no_glib=yes
12415 fi
12416 fi
12417
12418 if test x"$no_glib" = x ; then
12419 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
12420 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
12421 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
12422 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
12423
12424 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
12425 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
12426 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
12427 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12428 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
12429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12430 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
12431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12432 if test "x$enable_glibtest" = "xyes" ; then
12433 ac_save_CFLAGS="$CFLAGS"
12434 ac_save_LIBS="$LIBS"
12435 CFLAGS="$CFLAGS $GLIB_CFLAGS"
12436 LIBS="$GLIB_LIBS $LIBS"
12437 rm -f conf.glibtest
12438 if test "$cross_compiling" = yes; then :
12439 echo $ac_n "cross compiling; assumed OK... $ac_c"
12440 else
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443
12444 #include <glib.h>
12445 #include <stdio.h>
12446 #include <stdlib.h>
12447
12448 int
12449 main ()
12450 {
12451 unsigned int major, minor, micro;
12452
12453 fclose (fopen ("conf.glibtest", "w"));
12454
12455 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
12456 printf("%s, bad version string\n", "$min_glib_version");
12457 exit(1);
12458 }
12459
12460 if ((glib_major_version != $glib_config_major_version) ||
12461 (glib_minor_version != $glib_config_minor_version) ||
12462 (glib_micro_version != $glib_config_micro_version))
12463 {
12464 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
12465 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
12466 glib_major_version, glib_minor_version, glib_micro_version);
12467 printf ("*** was found! If pkg-config was correct, then it is best\n");
12468 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
12469 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12470 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12471 printf("*** required on your system.\n");
12472 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12473 printf("*** to point to the correct configuration files\n");
12474 }
12475 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
12476 (glib_minor_version != GLIB_MINOR_VERSION) ||
12477 (glib_micro_version != GLIB_MICRO_VERSION))
12478 {
12479 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
12480 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
12481 printf("*** library (version %d.%d.%d)\n",
12482 glib_major_version, glib_minor_version, glib_micro_version);
12483 }
12484 else
12485 {
12486 if ((glib_major_version > major) ||
12487 ((glib_major_version == major) && (glib_minor_version > minor)) ||
12488 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
12489 {
12490 return 0;
12491 }
12492 else
12493 {
12494 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
12495 glib_major_version, glib_minor_version, glib_micro_version);
12496 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
12497 major, minor, micro);
12498 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
12499 printf("***\n");
12500 printf("*** If you have already installed a sufficiently new version, this error\n");
12501 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12502 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12503 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
12504 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12505 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12506 printf("*** so that the correct libraries are found at run-time))\n");
12507 }
12508 }
12509 return 1;
12510 }
12511
12512 _ACEOF
12513 if ac_fn_c_try_run "$LINENO"; then :
12514
12515 else
12516 no_glib=yes
12517 fi
12518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12519 conftest.$ac_objext conftest.beam conftest.$ac_ext
12520 fi
12521
12522 CFLAGS="$ac_save_CFLAGS"
12523 LIBS="$ac_save_LIBS"
12524 fi
12525 fi
12526 if test "x$no_glib" = x ; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
12528 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
12529 :
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12533 if test "$PKG_CONFIG" = "no" ; then
12534 echo "*** A new enough version of pkg-config was not found."
12535 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
12536 else
12537 if test -f conf.glibtest ; then
12538 :
12539 else
12540 echo "*** Could not run GLIB test program, checking why..."
12541 ac_save_CFLAGS="$CFLAGS"
12542 ac_save_LIBS="$LIBS"
12543 CFLAGS="$CFLAGS $GLIB_CFLAGS"
12544 LIBS="$LIBS $GLIB_LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547
12548 #include <glib.h>
12549 #include <stdio.h>
12550
12551 int
12552 main ()
12553 {
12554 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 echo "*** The test program compiled, but did not run. This usually means"
12561 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
12562 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
12563 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12564 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12565 echo "*** is required on your system"
12566 echo "***"
12567 echo "*** If you have an old version installed, it is best to remove it, although"
12568 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12569 else
12570 echo "*** The test program failed to compile or link. See the file config.log for the"
12571 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 CFLAGS="$ac_save_CFLAGS"
12576 LIBS="$ac_save_LIBS"
12577 fi
12578 fi
12579 GLIB_CFLAGS=""
12580 GLIB_LIBS=""
12581 GLIB_GENMARSHAL=""
12582 GOBJECT_QUERY=""
12583 GLIB_MKENUMS=""
12584 GLIB_COMPILE_RESOURCES=""
12585 :
12586 fi
12587
12588
12589
12590
12591
12592
12593 rm -f conf.glibtest
12594
12595 if test "$GLIB_LIBS" = ""; then
12596 as_fn_error $? "GLIB 2.27.5 or later is required to build libcaribou" "$LINENO" 5
12597 fi
12598
12599
12600
12601
12602
12603
12604
12605 if test -n "$PYTHON"; then
12606 # If the user set $PYTHON, use it and don't search something else.
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.4" >&5
12608 $as_echo_n "checking whether $PYTHON version is >= 2.4... " >&6; }
12609 prog="import sys
12610 # split strings by '.' and convert to numeric. Append some zeros
12611 # because we need at least 4 digits for the hex conversion.
12612 # map returns an iterator in Python 3.0 and a list in 2.x
12613 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
12614 minverhex = 0
12615 # xrange is not present in Python 3.0 and range returns an iterator
12616 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12617 sys.exit(sys.hexversion < minverhex)"
12618 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12619 ($PYTHON -c "$prog") >&5 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; then :
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624 $as_echo "yes" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
12629 fi
12630 am_display_PYTHON=$PYTHON
12631 else
12632 # Otherwise, try each interpreter until we find one that satisfies
12633 # VERSION.
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
12635 $as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
12636 if ${am_cv_pathless_PYTHON+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639
12640 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
12641 test "$am_cv_pathless_PYTHON" = none && break
12642 prog="import sys
12643 # split strings by '.' and convert to numeric. Append some zeros
12644 # because we need at least 4 digits for the hex conversion.
12645 # map returns an iterator in Python 3.0 and a list in 2.x
12646 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
12647 minverhex = 0
12648 # xrange is not present in Python 3.0 and range returns an iterator
12649 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12650 sys.exit(sys.hexversion < minverhex)"
12651 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12652 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; then :
12656 break
12657 fi
12658 done
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12661 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12662 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12663 if test "$am_cv_pathless_PYTHON" = none; then
12664 PYTHON=:
12665 else
12666 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12667 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 $as_echo_n "checking for $ac_word... " >&6; }
12670 if ${ac_cv_path_PYTHON+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 case $PYTHON in
12674 [\\/]* | ?:[\\/]*)
12675 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12676 ;;
12677 *)
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12680 do
12681 IFS=$as_save_IFS
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12685 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687 break 2
12688 fi
12689 done
12690 done
12691 IFS=$as_save_IFS
12692
12693 ;;
12694 esac
12695 fi
12696 PYTHON=$ac_cv_path_PYTHON
12697 if test -n "$PYTHON"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12699 $as_echo "$PYTHON" >&6; }
12700 else
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12703 fi
12704
12705
12706 fi
12707 am_display_PYTHON=$am_cv_pathless_PYTHON
12708 fi
12709
12710
12711 if test "$PYTHON" = :; then
12712 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12713 else
12714
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12717 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12718 if ${am_cv_python_version+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12722 fi
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12724 $as_echo "$am_cv_python_version" >&6; }
12725 PYTHON_VERSION=$am_cv_python_version
12726
12727
12728
12729 PYTHON_PREFIX='${prefix}'
12730
12731 PYTHON_EXEC_PREFIX='${exec_prefix}'
12732
12733
12734
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12736 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12737 if ${am_cv_python_platform+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12743 $as_echo "$am_cv_python_platform" >&6; }
12744 PYTHON_PLATFORM=$am_cv_python_platform
12745
12746
12747 # Just factor out some code duplication.
12748 am_python_setup_sysconfig="\
12749 import sys
12750 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12751 # with python 3.x. See automake bug#10227.
12752 try:
12753 import sysconfig
12754 except ImportError:
12755 can_use_sysconfig = 0
12756 else:
12757 can_use_sysconfig = 1
12758 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12759 # <https://github.com/pypa/virtualenv/issues/118>
12760 try:
12761 from platform import python_implementation
12762 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12763 can_use_sysconfig = 0
12764 except ImportError:
12765 pass"
12766
12767
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12769 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12770 if ${am_cv_python_pythondir+:} false; then :
12771 $as_echo_n "(cached) " >&6
12772 else
12773 if test "x$prefix" = xNONE
12774 then
12775 am_py_prefix=$ac_default_prefix
12776 else
12777 am_py_prefix=$prefix
12778 fi
12779 am_cv_python_pythondir=`$PYTHON -c "
12780 $am_python_setup_sysconfig
12781 if can_use_sysconfig:
12782 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12783 else:
12784 from distutils import sysconfig
12785 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12786 sys.stdout.write(sitedir)"`
12787 case $am_cv_python_pythondir in
12788 $am_py_prefix*)
12789 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12790 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12791 ;;
12792 *)
12793 case $am_py_prefix in
12794 /usr|/System*) ;;
12795 *)
12796 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12797 ;;
12798 esac
12799 ;;
12800 esac
12801
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12804 $as_echo "$am_cv_python_pythondir" >&6; }
12805 pythondir=$am_cv_python_pythondir
12806
12807
12808
12809 pkgpythondir=\${pythondir}/$PACKAGE
12810
12811
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12813 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12814 if ${am_cv_python_pyexecdir+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 if test "x$exec_prefix" = xNONE
12818 then
12819 am_py_exec_prefix=$am_py_prefix
12820 else
12821 am_py_exec_prefix=$exec_prefix
12822 fi
12823 am_cv_python_pyexecdir=`$PYTHON -c "
12824 $am_python_setup_sysconfig
12825 if can_use_sysconfig:
12826 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
12827 else:
12828 from distutils import sysconfig
12829 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
12830 sys.stdout.write(sitedir)"`
12831 case $am_cv_python_pyexecdir in
12832 $am_py_exec_prefix*)
12833 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12834 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12835 ;;
12836 *)
12837 case $am_py_exec_prefix in
12838 /usr|/System*) ;;
12839 *)
12840 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12841 ;;
12842 esac
12843 ;;
12844 esac
12845
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12848 $as_echo "$am_cv_python_pyexecdir" >&6; }
12849 pyexecdir=$am_cv_python_pyexecdir
12850
12851
12852
12853 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12854
12855
12856
12857 fi
12858
12859
12860
12861 PYGOBJECT_REQUIRED=2.90.3
12862 GTK_REQUIRED=3.0.0
12863 CLUTTER_REQUIRED=1.5.11
12864 GDK_REQUIRED=3.0.0
12865 VALADOC_REQUIRED=0.3.1
12866
12867
12868 pkg_failed=no
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARIBOU" >&5
12870 $as_echo_n "checking for CARIBOU... " >&6; }
12871
12872 if test -n "$CARIBOU_CFLAGS"; then
12873 pkg_cv_CARIBOU_CFLAGS="$CARIBOU_CFLAGS"
12874 elif test -n "$PKG_CONFIG"; then
12875 if test -n "$PKG_CONFIG" && \
12876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12877 pygobject-3.0 >= \$PYGOBJECT_REQUIRED,
12878 gtk+-3.0 >= \$GTK_REQUIRED,
12879 clutter-1.0 >= \$CLUTTER_REQUIRED,
12880 gdk-3.0 >= \$GDK_REQUIRED,
12881 x11,
12882 atspi-2
12883 \""; } >&5
12884 ($PKG_CONFIG --exists --print-errors "
12885 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12886 gtk+-3.0 >= $GTK_REQUIRED,
12887 clutter-1.0 >= $CLUTTER_REQUIRED,
12888 gdk-3.0 >= $GDK_REQUIRED,
12889 x11,
12890 atspi-2
12891 ") 2>&5
12892 ac_status=$?
12893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894 test $ac_status = 0; }; then
12895 pkg_cv_CARIBOU_CFLAGS=`$PKG_CONFIG --cflags "
12896 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12897 gtk+-3.0 >= $GTK_REQUIRED,
12898 clutter-1.0 >= $CLUTTER_REQUIRED,
12899 gdk-3.0 >= $GDK_REQUIRED,
12900 x11,
12901 atspi-2
12902 " 2>/dev/null`
12903 test "x$?" != "x0" && pkg_failed=yes
12904 else
12905 pkg_failed=yes
12906 fi
12907 else
12908 pkg_failed=untried
12909 fi
12910 if test -n "$CARIBOU_LIBS"; then
12911 pkg_cv_CARIBOU_LIBS="$CARIBOU_LIBS"
12912 elif test -n "$PKG_CONFIG"; then
12913 if test -n "$PKG_CONFIG" && \
12914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12915 pygobject-3.0 >= \$PYGOBJECT_REQUIRED,
12916 gtk+-3.0 >= \$GTK_REQUIRED,
12917 clutter-1.0 >= \$CLUTTER_REQUIRED,
12918 gdk-3.0 >= \$GDK_REQUIRED,
12919 x11,
12920 atspi-2
12921 \""; } >&5
12922 ($PKG_CONFIG --exists --print-errors "
12923 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12924 gtk+-3.0 >= $GTK_REQUIRED,
12925 clutter-1.0 >= $CLUTTER_REQUIRED,
12926 gdk-3.0 >= $GDK_REQUIRED,
12927 x11,
12928 atspi-2
12929 ") 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; then
12933 pkg_cv_CARIBOU_LIBS=`$PKG_CONFIG --libs "
12934 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12935 gtk+-3.0 >= $GTK_REQUIRED,
12936 clutter-1.0 >= $CLUTTER_REQUIRED,
12937 gdk-3.0 >= $GDK_REQUIRED,
12938 x11,
12939 atspi-2
12940 " 2>/dev/null`
12941 test "x$?" != "x0" && pkg_failed=yes
12942 else
12943 pkg_failed=yes
12944 fi
12945 else
12946 pkg_failed=untried
12947 fi
12948
12949
12950
12951 if test $pkg_failed = yes; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954
12955 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12956 _pkg_short_errors_supported=yes
12957 else
12958 _pkg_short_errors_supported=no
12959 fi
12960 if test $_pkg_short_errors_supported = yes; then
12961 CARIBOU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
12962 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12963 gtk+-3.0 >= $GTK_REQUIRED,
12964 clutter-1.0 >= $CLUTTER_REQUIRED,
12965 gdk-3.0 >= $GDK_REQUIRED,
12966 x11,
12967 atspi-2
12968 " 2>&1`
12969 else
12970 CARIBOU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
12971 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12972 gtk+-3.0 >= $GTK_REQUIRED,
12973 clutter-1.0 >= $CLUTTER_REQUIRED,
12974 gdk-3.0 >= $GDK_REQUIRED,
12975 x11,
12976 atspi-2
12977 " 2>&1`
12978 fi
12979 # Put the nasty error message in config.log where it belongs
12980 echo "$CARIBOU_PKG_ERRORS" >&5
12981
12982 as_fn_error $? "Package requirements (
12983 pygobject-3.0 >= $PYGOBJECT_REQUIRED,
12984 gtk+-3.0 >= $GTK_REQUIRED,
12985 clutter-1.0 >= $CLUTTER_REQUIRED,
12986 gdk-3.0 >= $GDK_REQUIRED,
12987 x11,
12988 atspi-2
12989 ) were not met:
12990
12991 $CARIBOU_PKG_ERRORS
12992
12993 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12994 installed software in a non-standard prefix.
12995
12996 Alternatively, you may set the environment variables CARIBOU_CFLAGS
12997 and CARIBOU_LIBS to avoid the need to call pkg-config.
12998 See the pkg-config man page for more details." "$LINENO" 5
12999 elif test $pkg_failed = untried; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13004 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13005 is in your PATH or set the PKG_CONFIG environment variable to the full
13006 path to pkg-config.
13007
13008 Alternatively, you may set the environment variables CARIBOU_CFLAGS
13009 and CARIBOU_LIBS to avoid the need to call pkg-config.
13010 See the pkg-config man page for more details.
13011
13012 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13013 See \`config.log' for more details" "$LINENO" 5; }
13014 else
13015 CARIBOU_CFLAGS=$pkg_cv_CARIBOU_CFLAGS
13016 CARIBOU_LIBS=$pkg_cv_CARIBOU_LIBS
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018 $as_echo "yes" >&6; }
13019
13020 fi
13021
13022
13023
13024 # Extract the first word of "valac", so it can be a program name with args.
13025 set dummy valac; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if ${ac_cv_path_VALAC+:} false; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 case $VALAC in
13032 [\\/]* | ?:[\\/]*)
13033 ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
13034 ;;
13035 *)
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13038 do
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13046 fi
13047 done
13048 done
13049 IFS=$as_save_IFS
13050
13051 test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
13052 ;;
13053 esac
13054 fi
13055 VALAC=$ac_cv_path_VALAC
13056 if test -n "$VALAC"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
13058 $as_echo "$VALAC" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13062 fi
13063
13064
13065 if test "$VALAC" != valac && test -n "0.13"; then :
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.13" >&5
13067 $as_echo_n "checking whether $VALAC is at least version 0.13... " >&6; }
13068 am__vala_version=`$VALAC --version | sed 's/Vala *//'`
13069 as_arg_v1=0.13
13070 as_arg_v2="$am__vala_version"
13071 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13072 case $? in #(
13073 1) :
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13075 $as_echo "yes" >&6; } ;; #(
13076 0) :
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; } ;; #(
13079 2) :
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 VALAC=valac ;; #(
13083 *) :
13084 ;;
13085 esac
13086 fi
13087 if test "$VALAC" = valac; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
13089 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
13091 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
13092 else
13093 :
13094 fi
13095
13096
13097
13098
13099 pkg_failed=no
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCARIBOU" >&5
13101 $as_echo_n "checking for LIBCARIBOU... " >&6; }
13102
13103 if test -n "$LIBCARIBOU_CFLAGS"; then
13104 pkg_cv_LIBCARIBOU_CFLAGS="$LIBCARIBOU_CFLAGS"
13105 elif test -n "$PKG_CONFIG"; then
13106 if test -n "$PKG_CONFIG" && \
13107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13108 gdk-3.0 >= \$GDK_REQUIRED,
13109 xtst,
13110 x11,
13111 libxklavier,
13112 libxml-2.0,
13113 gee-0.8,
13114 gio-2.0
13115 \""; } >&5
13116 ($PKG_CONFIG --exists --print-errors "
13117 gdk-3.0 >= $GDK_REQUIRED,
13118 xtst,
13119 x11,
13120 libxklavier,
13121 libxml-2.0,
13122 gee-0.8,
13123 gio-2.0
13124 ") 2>&5
13125 ac_status=$?
13126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127 test $ac_status = 0; }; then
13128 pkg_cv_LIBCARIBOU_CFLAGS=`$PKG_CONFIG --cflags "
13129 gdk-3.0 >= $GDK_REQUIRED,
13130 xtst,
13131 x11,
13132 libxklavier,
13133 libxml-2.0,
13134 gee-0.8,
13135 gio-2.0
13136 " 2>/dev/null`
13137 test "x$?" != "x0" && pkg_failed=yes
13138 else
13139 pkg_failed=yes
13140 fi
13141 else
13142 pkg_failed=untried
13143 fi
13144 if test -n "$LIBCARIBOU_LIBS"; then
13145 pkg_cv_LIBCARIBOU_LIBS="$LIBCARIBOU_LIBS"
13146 elif test -n "$PKG_CONFIG"; then
13147 if test -n "$PKG_CONFIG" && \
13148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13149 gdk-3.0 >= \$GDK_REQUIRED,
13150 xtst,
13151 x11,
13152 libxklavier,
13153 libxml-2.0,
13154 gee-0.8,
13155 gio-2.0
13156 \""; } >&5
13157 ($PKG_CONFIG --exists --print-errors "
13158 gdk-3.0 >= $GDK_REQUIRED,
13159 xtst,
13160 x11,
13161 libxklavier,
13162 libxml-2.0,
13163 gee-0.8,
13164 gio-2.0
13165 ") 2>&5
13166 ac_status=$?
13167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168 test $ac_status = 0; }; then
13169 pkg_cv_LIBCARIBOU_LIBS=`$PKG_CONFIG --libs "
13170 gdk-3.0 >= $GDK_REQUIRED,
13171 xtst,
13172 x11,
13173 libxklavier,
13174 libxml-2.0,
13175 gee-0.8,
13176 gio-2.0
13177 " 2>/dev/null`
13178 test "x$?" != "x0" && pkg_failed=yes
13179 else
13180 pkg_failed=yes
13181 fi
13182 else
13183 pkg_failed=untried
13184 fi
13185
13186
13187
13188 if test $pkg_failed = yes; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191
13192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13193 _pkg_short_errors_supported=yes
13194 else
13195 _pkg_short_errors_supported=no
13196 fi
13197 if test $_pkg_short_errors_supported = yes; then
13198 LIBCARIBOU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13199 gdk-3.0 >= $GDK_REQUIRED,
13200 xtst,
13201 x11,
13202 libxklavier,
13203 libxml-2.0,
13204 gee-0.8,
13205 gio-2.0
13206 " 2>&1`
13207 else
13208 LIBCARIBOU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13209 gdk-3.0 >= $GDK_REQUIRED,
13210 xtst,
13211 x11,
13212 libxklavier,
13213 libxml-2.0,
13214 gee-0.8,
13215 gio-2.0
13216 " 2>&1`
13217 fi
13218 # Put the nasty error message in config.log where it belongs
13219 echo "$LIBCARIBOU_PKG_ERRORS" >&5
13220
13221 as_fn_error $? "Package requirements (
13222 gdk-3.0 >= $GDK_REQUIRED,
13223 xtst,
13224 x11,
13225 libxklavier,
13226 libxml-2.0,
13227 gee-0.8,
13228 gio-2.0
13229 ) were not met:
13230
13231 $LIBCARIBOU_PKG_ERRORS
13232
13233 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13234 installed software in a non-standard prefix.
13235
13236 Alternatively, you may set the environment variables LIBCARIBOU_CFLAGS
13237 and LIBCARIBOU_LIBS to avoid the need to call pkg-config.
13238 See the pkg-config man page for more details." "$LINENO" 5
13239 elif test $pkg_failed = untried; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13244 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13245 is in your PATH or set the PKG_CONFIG environment variable to the full
13246 path to pkg-config.
13247
13248 Alternatively, you may set the environment variables LIBCARIBOU_CFLAGS
13249 and LIBCARIBOU_LIBS to avoid the need to call pkg-config.
13250 See the pkg-config man page for more details.
13251
13252 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13253 See \`config.log' for more details" "$LINENO" 5; }
13254 else
13255 LIBCARIBOU_CFLAGS=$pkg_cv_LIBCARIBOU_CFLAGS
13256 LIBCARIBOU_LIBS=$pkg_cv_LIBCARIBOU_LIBS
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258 $as_echo "yes" >&6; }
13259
13260 fi
13261
13262
13263
13264 GETTEXT_PACKAGE=caribou
13265
13266
13267 cat >>confdefs.h <<_ACEOF
13268 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13269 _ACEOF
13270
13271
13272 for ac_header in locale.h
13273 do :
13274 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13275 if test "x$ac_cv_header_locale_h" = xyes; then :
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_LOCALE_H 1
13278 _ACEOF
13279
13280 fi
13281
13282 done
13283
13284 if test $ac_cv_header_locale_h = yes; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13286 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13287 if ${am_cv_val_LC_MESSAGES+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #include <locale.h>
13293 int
13294 main ()
13295 {
13296 return LC_MESSAGES
13297 ;
13298 return 0;
13299 }
13300 _ACEOF
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 am_cv_val_LC_MESSAGES=yes
13303 else
13304 am_cv_val_LC_MESSAGES=no
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 fi
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13310 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13311 if test $am_cv_val_LC_MESSAGES = yes; then
13312
13313 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13314
13315 fi
13316 fi
13317 USE_NLS=yes
13318
13319
13320 gt_cv_have_gettext=no
13321
13322 CATOBJEXT=NONE
13323 XGETTEXT=:
13324 INTLLIBS=
13325
13326 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13327 if test "x$ac_cv_header_libintl_h" = xyes; then :
13328 gt_cv_func_dgettext_libintl="no"
13329 libintl_extra_libs=""
13330
13331 #
13332 # First check in libc
13333 #
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
13335 $as_echo_n "checking for ngettext in libc... " >&6; }
13336 if ${gt_cv_func_ngettext_libc+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341
13342 #include <libintl.h>
13343
13344 int
13345 main ()
13346 {
13347 return !ngettext ("","", 1)
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_link "$LINENO"; then :
13353 gt_cv_func_ngettext_libc=yes
13354 else
13355 gt_cv_func_ngettext_libc=no
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359
13360 fi
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
13362 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
13363
13364 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
13366 $as_echo_n "checking for dgettext in libc... " >&6; }
13367 if ${gt_cv_func_dgettext_libc+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372
13373 #include <libintl.h>
13374
13375 int
13376 main ()
13377 {
13378 return !dgettext ("","")
13379 ;
13380 return 0;
13381 }
13382 _ACEOF
13383 if ac_fn_c_try_link "$LINENO"; then :
13384 gt_cv_func_dgettext_libc=yes
13385 else
13386 gt_cv_func_dgettext_libc=no
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13390
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
13393 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
13394 fi
13395
13396 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13397 for ac_func in bind_textdomain_codeset
13398 do :
13399 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13400 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13401 cat >>confdefs.h <<_ACEOF
13402 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
13403 _ACEOF
13404
13405 fi
13406 done
13407
13408 fi
13409
13410 #
13411 # If we don't have everything we want, check in libintl
13412 #
13413 if test "$gt_cv_func_dgettext_libc" != "yes" \
13414 || test "$gt_cv_func_ngettext_libc" != "yes" \
13415 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
13418 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
13419 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-lintl $LIBS"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426
13427 /* Override any GCC internal prototype to avoid an error.
13428 Use char because int might match the return type of a GCC
13429 builtin and then its argument prototype would still apply. */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char bindtextdomain ();
13434 int
13435 main ()
13436 {
13437 return bindtextdomain ();
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 ac_cv_lib_intl_bindtextdomain=yes
13444 else
13445 ac_cv_lib_intl_bindtextdomain=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
13452 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
13453 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13455 $as_echo_n "checking for ngettext in -lintl... " >&6; }
13456 if ${ac_cv_lib_intl_ngettext+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-lintl $LIBS"
13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463
13464 /* Override any GCC internal prototype to avoid an error.
13465 Use char because int might match the return type of a GCC
13466 builtin and then its argument prototype would still apply. */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 char ngettext ();
13471 int
13472 main ()
13473 {
13474 return ngettext ();
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_link "$LINENO"; then :
13480 ac_cv_lib_intl_ngettext=yes
13481 else
13482 ac_cv_lib_intl_ngettext=no
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13487 fi
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13489 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13490 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13492 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13493 if ${ac_cv_lib_intl_dgettext+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-lintl $LIBS"
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500
13501 /* Override any GCC internal prototype to avoid an error.
13502 Use char because int might match the return type of a GCC
13503 builtin and then its argument prototype would still apply. */
13504 #ifdef __cplusplus
13505 extern "C"
13506 #endif
13507 char dgettext ();
13508 int
13509 main ()
13510 {
13511 return dgettext ();
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_lib_intl_dgettext=yes
13518 else
13519 ac_cv_lib_intl_dgettext=no
13520 fi
13521 rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13526 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13527 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
13528 gt_cv_func_dgettext_libintl=yes
13529 fi
13530
13531 fi
13532
13533 fi
13534
13535
13536 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
13538 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13540 $as_echo "" >&6; }
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13542 $as_echo_n "checking for ngettext in -lintl... " >&6; }
13543 if ${ac_cv_lib_intl_ngettext+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-lintl -liconv $LIBS"
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 char ngettext ();
13558 int
13559 main ()
13560 {
13561 return ngettext ();
13562 ;
13563 return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_lib_intl_ngettext=yes
13568 else
13569 ac_cv_lib_intl_ngettext=no
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13576 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13577 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
13579 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
13580 if ${ac_cv_lib_intl_dcgettext+:} false; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-lintl -liconv $LIBS"
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char dcgettext ();
13595 int
13596 main ()
13597 {
13598 return dcgettext ();
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 if ac_fn_c_try_link "$LINENO"; then :
13604 ac_cv_lib_intl_dcgettext=yes
13605 else
13606 ac_cv_lib_intl_dcgettext=no
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 LIBS=$ac_check_lib_save_LIBS
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
13613 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
13614 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
13615 gt_cv_func_dgettext_libintl=yes
13616 libintl_extra_libs=-liconv
13617 else
13618 :
13619 fi
13620
13621 else
13622 :
13623 fi
13624
13625 fi
13626
13627 #
13628 # If we found libintl, then check in it for bind_textdomain_codeset();
13629 # we'll prefer libc if neither have bind_textdomain_codeset(),
13630 # and both have dgettext and ngettext
13631 #
13632 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
13633 glib_save_LIBS="$LIBS"
13634 LIBS="$LIBS -lintl $libintl_extra_libs"
13635 unset ac_cv_func_bind_textdomain_codeset
13636 for ac_func in bind_textdomain_codeset
13637 do :
13638 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13639 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
13642 _ACEOF
13643
13644 fi
13645 done
13646
13647 LIBS="$glib_save_LIBS"
13648
13649 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
13650 gt_cv_func_dgettext_libc=no
13651 else
13652 if test "$gt_cv_func_dgettext_libc" = "yes" \
13653 && test "$gt_cv_func_ngettext_libc" = "yes"; then
13654 gt_cv_func_dgettext_libintl=no
13655 fi
13656 fi
13657 fi
13658 fi
13659
13660 if test "$gt_cv_func_dgettext_libc" = "yes" \
13661 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
13662 gt_cv_have_gettext=yes
13663 fi
13664
13665 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
13666 INTLLIBS="-lintl $libintl_extra_libs"
13667 fi
13668
13669 if test "$gt_cv_have_gettext" = "yes"; then
13670
13671 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13672
13673 # Extract the first word of "msgfmt", so it can be a program name with args.
13674 set dummy msgfmt; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_path_MSGFMT+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 case "$MSGFMT" in
13681 /*)
13682 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13683 ;;
13684 *)
13685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13686 for ac_dir in $PATH; do
13687 test -z "$ac_dir" && ac_dir=.
13688 if test -f $ac_dir/$ac_word; then
13689 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13690 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13691 break
13692 fi
13693 fi
13694 done
13695 IFS="$ac_save_ifs"
13696 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13697 ;;
13698 esac
13699 fi
13700 MSGFMT="$ac_cv_path_MSGFMT"
13701 if test "$MSGFMT" != "no"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13703 $as_echo "$MSGFMT" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708 if test "$MSGFMT" != "no"; then
13709 glib_save_LIBS="$LIBS"
13710 LIBS="$LIBS $INTLLIBS"
13711 for ac_func in dcgettext
13712 do :
13713 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
13714 if test "x$ac_cv_func_dcgettext" = xyes; then :
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_DCGETTEXT 1
13717 _ACEOF
13718
13719 fi
13720 done
13721
13722 MSGFMT_OPTS=
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
13724 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13725 cat >conftest.foo <<_ACEOF
13726
13727 msgid ""
13728 msgstr ""
13729 "Content-Type: text/plain; charset=UTF-8\n"
13730 "Project-Id-Version: test 1.0\n"
13731 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13732 "Last-Translator: test <[email protected]>\n"
13733 "Language-Team: C <[email protected]>\n"
13734 "MIME-Version: 1.0\n"
13735 "Content-Transfer-Encoding: 8bit\n"
13736
13737 _ACEOF
13738 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
13739 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13740 ac_status=$?
13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13742 test $ac_status = 0; }; then
13743 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13744 $as_echo "yes" >&6; }
13745 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 echo "$as_me: failed input was:" >&5
13748 sed 's/^/| /' conftest.foo >&5
13749 fi
13750
13751 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13752 set dummy gmsgfmt; ac_word=$2
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754 $as_echo_n "checking for $ac_word... " >&6; }
13755 if ${ac_cv_path_GMSGFMT+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 case $GMSGFMT in
13759 [\\/]* | ?:[\\/]*)
13760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13761 ;;
13762 *)
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13765 do
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13773 fi
13774 done
13775 done
13776 IFS=$as_save_IFS
13777
13778 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13779 ;;
13780 esac
13781 fi
13782 GMSGFMT=$ac_cv_path_GMSGFMT
13783 if test -n "$GMSGFMT"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13785 $as_echo "$GMSGFMT" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789 fi
13790
13791
13792 # Extract the first word of "xgettext", so it can be a program name with args.
13793 set dummy xgettext; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if ${ac_cv_path_XGETTEXT+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 case "$XGETTEXT" in
13800 /*)
13801 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13802 ;;
13803 *)
13804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13805 for ac_dir in $PATH; do
13806 test -z "$ac_dir" && ac_dir=.
13807 if test -f $ac_dir/$ac_word; then
13808 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13809 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13810 break
13811 fi
13812 fi
13813 done
13814 IFS="$ac_save_ifs"
13815 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13816 ;;
13817 esac
13818 fi
13819 XGETTEXT="$ac_cv_path_XGETTEXT"
13820 if test "$XGETTEXT" != ":"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13822 $as_echo "$XGETTEXT" >&6; }
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826 fi
13827
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830
13831 int
13832 main ()
13833 {
13834 extern int _nl_msg_cat_cntr;
13835 return _nl_msg_cat_cntr
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841 CATOBJEXT=.gmo
13842 DATADIRNAME=share
13843 else
13844 case $host in
13845 *-*-solaris*)
13846 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13847 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13848 CATOBJEXT=.gmo
13849 DATADIRNAME=share
13850 else
13851 CATOBJEXT=.mo
13852 DATADIRNAME=lib
13853 fi
13854
13855 ;;
13856 *-*-openbsd*)
13857 CATOBJEXT=.mo
13858 DATADIRNAME=share
13859 ;;
13860 *)
13861 CATOBJEXT=.mo
13862 DATADIRNAME=lib
13863 ;;
13864 esac
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS="$glib_save_LIBS"
13869 INSTOBJEXT=.mo
13870 else
13871 gt_cv_have_gettext=no
13872 fi
13873 fi
13874
13875 fi
13876
13877
13878
13879 if test "$gt_cv_have_gettext" = "yes" ; then
13880
13881 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13882
13883 fi
13884
13885 if test "$XGETTEXT" != ":"; then
13886 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13887 : ;
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13890 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13891 XGETTEXT=":"
13892 fi
13893 fi
13894
13895 # We need to process the po/ directory.
13896 POSUB=po
13897
13898 ac_config_commands="$ac_config_commands default-1"
13899
13900
13901 for lang in $ALL_LINGUAS; do
13902 GMOFILES="$GMOFILES $lang.gmo"
13903 POFILES="$POFILES $lang.po"
13904 done
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918 if test "$gt_cv_have_gettext" = "yes"; then
13919 if test "x$ALL_LINGUAS" = "x"; then
13920 LINGUAS=
13921 else
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13923 $as_echo_n "checking for catalogs to be installed... " >&6; }
13924 NEW_LINGUAS=
13925 for presentlang in $ALL_LINGUAS; do
13926 useit=no
13927 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13928 desiredlanguages="$LINGUAS"
13929 else
13930 desiredlanguages="$ALL_LINGUAS"
13931 fi
13932 for desiredlang in $desiredlanguages; do
13933 # Use the presentlang catalog if desiredlang is
13934 # a. equal to presentlang, or
13935 # b. a variant of presentlang (because in this case,
13936 # presentlang can be used as a fallback for messages
13937 # which are not translated in the desiredlang catalog).
13938 case "$desiredlang" in
13939 "$presentlang"*) useit=yes;;
13940 esac
13941 done
13942 if test $useit = yes; then
13943 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13944 fi
13945 done
13946 LINGUAS=$NEW_LINGUAS
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13948 $as_echo "$LINGUAS" >&6; }
13949 fi
13950
13951 if test -n "$LINGUAS"; then
13952 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13953 fi
13954 fi
13955
13956 MKINSTALLDIRS=
13957 if test -n "$ac_aux_dir"; then
13958 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13959 fi
13960 if test -z "$MKINSTALLDIRS"; then
13961 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13962 fi
13963
13964
13965 test -d po || mkdir po
13966 if test "x$srcdir" != "x."; then
13967 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13968 posrcprefix="$srcdir/"
13969 else
13970 posrcprefix="../$srcdir/"
13971 fi
13972 else
13973 posrcprefix="../"
13974 fi
13975 rm -f po/POTFILES
13976 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13977 < $srcdir/po/POTFILES.in > po/POTFILES
13978
13979
13980 # Check whether --enable-gtk3_module was given.
13981 if test "${enable_gtk3_module+set}" = set; then :
13982 enableval=$enable_gtk3_module; enable_gtk3_module=$enableval
13983 else
13984 enable_gtk3_module=yes
13985
13986 fi
13987
13988 if test x"$enable_gtk3_module" = x"yes"; then
13989 ENABLE_GTK3_MODULES_TRUE=
13990 ENABLE_GTK3_MODULES_FALSE='#'
13991 else
13992 ENABLE_GTK3_MODULES_TRUE='#'
13993 ENABLE_GTK3_MODULES_FALSE=
13994 fi
13995
13996
13997 if test x"$enable_gtk3_module" = x"yes"; then
13998
13999 pkg_failed=no
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
14001 $as_echo_n "checking for GTK3... " >&6; }
14002
14003 if test -n "$GTK3_CFLAGS"; then
14004 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
14005 elif test -n "$PKG_CONFIG"; then
14006 if test -n "$PKG_CONFIG" && \
14007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14008 gtk+-3.0
14009 \""; } >&5
14010 ($PKG_CONFIG --exists --print-errors "
14011 gtk+-3.0
14012 ") 2>&5
14013 ac_status=$?
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015 test $ac_status = 0; }; then
14016 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "
14017 gtk+-3.0
14018 " 2>/dev/null`
14019 test "x$?" != "x0" && pkg_failed=yes
14020 else
14021 pkg_failed=yes
14022 fi
14023 else
14024 pkg_failed=untried
14025 fi
14026 if test -n "$GTK3_LIBS"; then
14027 pkg_cv_GTK3_LIBS="$GTK3_LIBS"
14028 elif test -n "$PKG_CONFIG"; then
14029 if test -n "$PKG_CONFIG" && \
14030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14031 gtk+-3.0
14032 \""; } >&5
14033 ($PKG_CONFIG --exists --print-errors "
14034 gtk+-3.0
14035 ") 2>&5
14036 ac_status=$?
14037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14038 test $ac_status = 0; }; then
14039 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "
14040 gtk+-3.0
14041 " 2>/dev/null`
14042 test "x$?" != "x0" && pkg_failed=yes
14043 else
14044 pkg_failed=yes
14045 fi
14046 else
14047 pkg_failed=untried
14048 fi
14049
14050
14051
14052 if test $pkg_failed = yes; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14055
14056 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14057 _pkg_short_errors_supported=yes
14058 else
14059 _pkg_short_errors_supported=no
14060 fi
14061 if test $_pkg_short_errors_supported = yes; then
14062 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14063 gtk+-3.0
14064 " 2>&1`
14065 else
14066 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14067 gtk+-3.0
14068 " 2>&1`
14069 fi
14070 # Put the nasty error message in config.log where it belongs
14071 echo "$GTK3_PKG_ERRORS" >&5
14072
14073 as_fn_error $? "Package requirements (
14074 gtk+-3.0
14075 ) were not met:
14076
14077 $GTK3_PKG_ERRORS
14078
14079 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14080 installed software in a non-standard prefix.
14081
14082 Alternatively, you may set the environment variables GTK3_CFLAGS
14083 and GTK3_LIBS to avoid the need to call pkg-config.
14084 See the pkg-config man page for more details." "$LINENO" 5
14085 elif test $pkg_failed = untried; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 $as_echo "no" >&6; }
14088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14090 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14091 is in your PATH or set the PKG_CONFIG environment variable to the full
14092 path to pkg-config.
14093
14094 Alternatively, you may set the environment variables GTK3_CFLAGS
14095 and GTK3_LIBS to avoid the need to call pkg-config.
14096 See the pkg-config man page for more details.
14097
14098 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14099 See \`config.log' for more details" "$LINENO" 5; }
14100 else
14101 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
14102 GTK3_LIBS=$pkg_cv_GTK3_LIBS
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14104 $as_echo "yes" >&6; }
14105
14106 fi
14107
14108 GTK3_MODULES_DIR="$libdir"/gtk-3.0/modules
14109
14110 fi
14111
14112 # Check whether --enable-gtk2_module was given.
14113 if test "${enable_gtk2_module+set}" = set; then :
14114 enableval=$enable_gtk2_module; enable_gtk2_module=$enableval
14115 else
14116 enable_gtk2_module=yes
14117
14118 fi
14119
14120 if test x"$enable_gtk2_module" = x"yes"; then
14121 ENABLE_GTK2_MODULES_TRUE=
14122 ENABLE_GTK2_MODULES_FALSE='#'
14123 else
14124 ENABLE_GTK2_MODULES_TRUE='#'
14125 ENABLE_GTK2_MODULES_FALSE=
14126 fi
14127
14128
14129 if test x"$enable_gtk2_module" = x"yes"; then
14130
14131 pkg_failed=no
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
14133 $as_echo_n "checking for GTK2... " >&6; }
14134
14135 if test -n "$GTK2_CFLAGS"; then
14136 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
14137 elif test -n "$PKG_CONFIG"; then
14138 if test -n "$PKG_CONFIG" && \
14139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14140 gtk+-2.0
14141 \""; } >&5
14142 ($PKG_CONFIG --exists --print-errors "
14143 gtk+-2.0
14144 ") 2>&5
14145 ac_status=$?
14146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147 test $ac_status = 0; }; then
14148 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "
14149 gtk+-2.0
14150 " 2>/dev/null`
14151 test "x$?" != "x0" && pkg_failed=yes
14152 else
14153 pkg_failed=yes
14154 fi
14155 else
14156 pkg_failed=untried
14157 fi
14158 if test -n "$GTK2_LIBS"; then
14159 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
14160 elif test -n "$PKG_CONFIG"; then
14161 if test -n "$PKG_CONFIG" && \
14162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14163 gtk+-2.0
14164 \""; } >&5
14165 ($PKG_CONFIG --exists --print-errors "
14166 gtk+-2.0
14167 ") 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "
14172 gtk+-2.0
14173 " 2>/dev/null`
14174 test "x$?" != "x0" && pkg_failed=yes
14175 else
14176 pkg_failed=yes
14177 fi
14178 else
14179 pkg_failed=untried
14180 fi
14181
14182
14183
14184 if test $pkg_failed = yes; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14187
14188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14189 _pkg_short_errors_supported=yes
14190 else
14191 _pkg_short_errors_supported=no
14192 fi
14193 if test $_pkg_short_errors_supported = yes; then
14194 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14195 gtk+-2.0
14196 " 2>&1`
14197 else
14198 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14199 gtk+-2.0
14200 " 2>&1`
14201 fi
14202 # Put the nasty error message in config.log where it belongs
14203 echo "$GTK2_PKG_ERRORS" >&5
14204
14205 as_fn_error $? "Package requirements (
14206 gtk+-2.0
14207 ) were not met:
14208
14209 $GTK2_PKG_ERRORS
14210
14211 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14212 installed software in a non-standard prefix.
14213
14214 Alternatively, you may set the environment variables GTK2_CFLAGS
14215 and GTK2_LIBS to avoid the need to call pkg-config.
14216 See the pkg-config man page for more details." "$LINENO" 5
14217 elif test $pkg_failed = untried; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219 $as_echo "no" >&6; }
14220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14222 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14223 is in your PATH or set the PKG_CONFIG environment variable to the full
14224 path to pkg-config.
14225
14226 Alternatively, you may set the environment variables GTK2_CFLAGS
14227 and GTK2_LIBS to avoid the need to call pkg-config.
14228 See the pkg-config man page for more details.
14229
14230 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14231 See \`config.log' for more details" "$LINENO" 5; }
14232 else
14233 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
14234 GTK2_LIBS=$pkg_cv_GTK2_LIBS
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14236 $as_echo "yes" >&6; }
14237
14238 fi
14239
14240 GTK2_MODULES_DIR="$libdir"/gtk-2.0/modules
14241
14242 fi
14243
14244 if test x"enable_gtk2_module" = x"yes" -o x"$enable_gtk3_module" = x"yes"; then
14245 ENABLE_GTK_MODULES_TRUE=
14246 ENABLE_GTK_MODULES_FALSE='#'
14247 else
14248 ENABLE_GTK_MODULES_TRUE='#'
14249 ENABLE_GTK_MODULES_FALSE=
14250 fi
14251
14252
14253
14254
14255 # Check whether --enable-schemas-compile was given.
14256 if test "${enable_schemas_compile+set}" = set; then :
14257 enableval=$enable_schemas_compile; case ${enableval} in
14258 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
14259 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
14260 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
14261 esac
14262 fi
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14273 if test -n "$ac_tool_prefix"; then
14274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14275 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14277 $as_echo_n "checking for $ac_word... " >&6; }
14278 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14279 $as_echo_n "(cached) " >&6
14280 else
14281 case $PKG_CONFIG in
14282 [\\/]* | ?:[\\/]*)
14283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14284 ;;
14285 *)
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14288 do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297 done
14298 done
14299 IFS=$as_save_IFS
14300
14301 ;;
14302 esac
14303 fi
14304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14305 if test -n "$PKG_CONFIG"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14307 $as_echo "$PKG_CONFIG" >&6; }
14308 else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14311 fi
14312
14313
14314 fi
14315 if test -z "$ac_cv_path_PKG_CONFIG"; then
14316 ac_pt_PKG_CONFIG=$PKG_CONFIG
14317 # Extract the first word of "pkg-config", so it can be a program name with args.
14318 set dummy pkg-config; ac_word=$2
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 case $ac_pt_PKG_CONFIG in
14325 [\\/]* | ?:[\\/]*)
14326 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14327 ;;
14328 *)
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14331 do
14332 IFS=$as_save_IFS
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14336 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 break 2
14339 fi
14340 done
14341 done
14342 IFS=$as_save_IFS
14343
14344 ;;
14345 esac
14346 fi
14347 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14348 if test -n "$ac_pt_PKG_CONFIG"; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14350 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14351 else
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353 $as_echo "no" >&6; }
14354 fi
14355
14356 if test "x$ac_pt_PKG_CONFIG" = x; then
14357 PKG_CONFIG=""
14358 else
14359 case $cross_compiling:$ac_tool_warned in
14360 yes:)
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14363 ac_tool_warned=yes ;;
14364 esac
14365 PKG_CONFIG=$ac_pt_PKG_CONFIG
14366 fi
14367 else
14368 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14369 fi
14370
14371 fi
14372 if test -n "$PKG_CONFIG"; then
14373 _pkg_min_version=0.16
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14375 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14376 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14379 else
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 $as_echo "no" >&6; }
14382 PKG_CONFIG=""
14383 fi
14384 fi
14385 gsettingsschemadir=${datadir}/glib-2.0/schemas
14386
14387 if test x$cross_compiling != xyes; then
14388 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
14389 else
14390 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
14391 set dummy glib-compile-schemas; ac_word=$2
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14393 $as_echo_n "checking for $ac_word... " >&6; }
14394 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 case $GLIB_COMPILE_SCHEMAS in
14398 [\\/]* | ?:[\\/]*)
14399 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
14400 ;;
14401 *)
14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403 for as_dir in $PATH
14404 do
14405 IFS=$as_save_IFS
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14409 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
14410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413 done
14414 done
14415 IFS=$as_save_IFS
14416
14417 ;;
14418 esac
14419 fi
14420 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
14421 if test -n "$GLIB_COMPILE_SCHEMAS"; then
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
14423 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
14424 else
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14427 fi
14428
14429
14430 fi
14431
14432 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
14433 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
14434 else
14435 :
14436 fi
14437
14438 GSETTINGS_RULES='
14439 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
14440
14441 mostlyclean-am: clean-gsettings-schemas
14442
14443 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
14444
14445 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
14446 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
14447
14448 all-am: $(gsettings_SCHEMAS:.xml=.valid)
14449 uninstall-am: uninstall-gsettings-schemas
14450 install-data-am: install-gsettings-schemas
14451
14452 .SECONDARY: $(gsettings_SCHEMAS)
14453
14454 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
14455 @$(NORMAL_INSTALL)
14456 if test -n "$^"; then \
14457 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
14458 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
14459 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
14460 fi
14461
14462 uninstall-gsettings-schemas:
14463 @$(NORMAL_UNINSTALL)
14464 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
14465 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
14466 test -n "$$files" || exit 0; \
14467 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
14468 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
14469 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
14470
14471 clean-gsettings-schemas:
14472 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
14473
14474 ifdef gsettings_ENUM_NAMESPACE
14475 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
14476 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > [email protected] && mv [email protected] $@
14477 endif
14478 '
14479
14480
14481
14482
14483
14484
14485
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14488 $as_echo_n "checking whether NLS is requested... " >&6; }
14489 # Check whether --enable-nls was given.
14490 if test "${enable_nls+set}" = set; then :
14491 enableval=$enable_nls; USE_NLS=$enableval
14492 else
14493 USE_NLS=yes
14494 fi
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14497 $as_echo "$USE_NLS" >&6; }
14498
14499
14500
14501
14502 case "$am__api_version" in
14503 1.01234)
14504 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
14505 ;;
14506 *)
14507 ;;
14508 esac
14509
14510 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
14511 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
14512 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
14513 if test -n "0.35.0"; then
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
14515 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
14517 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
14518 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
14519 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
14520 fi
14521
14522 # Extract the first word of "intltool-update", so it can be a program name with args.
14523 set dummy intltool-update; ac_word=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14525 $as_echo_n "checking for $ac_word... " >&6; }
14526 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 case $INTLTOOL_UPDATE in
14530 [\\/]* | ?:[\\/]*)
14531 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
14532 ;;
14533 *)
14534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535 for as_dir in $PATH
14536 do
14537 IFS=$as_save_IFS
14538 test -z "$as_dir" && as_dir=.
14539 for ac_exec_ext in '' $ac_executable_extensions; do
14540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14541 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
14542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14543 break 2
14544 fi
14545 done
14546 done
14547 IFS=$as_save_IFS
14548
14549 ;;
14550 esac
14551 fi
14552 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
14553 if test -n "$INTLTOOL_UPDATE"; then
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
14555 $as_echo "$INTLTOOL_UPDATE" >&6; }
14556 else
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558 $as_echo "no" >&6; }
14559 fi
14560
14561
14562 # Extract the first word of "intltool-merge", so it can be a program name with args.
14563 set dummy intltool-merge; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565 $as_echo_n "checking for $ac_word... " >&6; }
14566 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 case $INTLTOOL_MERGE in
14570 [\\/]* | ?:[\\/]*)
14571 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
14572 ;;
14573 *)
14574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575 for as_dir in $PATH
14576 do
14577 IFS=$as_save_IFS
14578 test -z "$as_dir" && as_dir=.
14579 for ac_exec_ext in '' $ac_executable_extensions; do
14580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14581 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
14582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14583 break 2
14584 fi
14585 done
14586 done
14587 IFS=$as_save_IFS
14588
14589 ;;
14590 esac
14591 fi
14592 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
14593 if test -n "$INTLTOOL_MERGE"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
14595 $as_echo "$INTLTOOL_MERGE" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 fi
14600
14601
14602 # Extract the first word of "intltool-extract", so it can be a program name with args.
14603 set dummy intltool-extract; ac_word=$2
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14605 $as_echo_n "checking for $ac_word... " >&6; }
14606 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 case $INTLTOOL_EXTRACT in
14610 [\\/]* | ?:[\\/]*)
14611 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
14612 ;;
14613 *)
14614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615 for as_dir in $PATH
14616 do
14617 IFS=$as_save_IFS
14618 test -z "$as_dir" && as_dir=.
14619 for ac_exec_ext in '' $ac_executable_extensions; do
14620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14621 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
14622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14623 break 2
14624 fi
14625 done
14626 done
14627 IFS=$as_save_IFS
14628
14629 ;;
14630 esac
14631 fi
14632 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
14633 if test -n "$INTLTOOL_EXTRACT"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
14635 $as_echo "$INTLTOOL_EXTRACT" >&6; }
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639 fi
14640
14641
14642 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
14643 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
14644 fi
14645
14646 if test -z "$AM_DEFAULT_VERBOSITY"; then
14647 AM_DEFAULT_VERBOSITY=1
14648 fi
14649
14650
14651 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
14652 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
14653 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
14654
14655
14656
14657
14658 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
14659 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
14660 intltool__v_merge_options_0='-q'
14661
14662
14663
14664
14665 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 $< $@'
14666 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 $< $@'
14667 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 $< $@'
14668 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 $< $@'
14669 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 $< $@'
14670 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 $< $@'
14671 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 $< $@'
14672 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 $< $@'
14673 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 $< $@'
14674 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 $< $@'
14675 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 $< $@'
14676 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
14677 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 $< $@'
14678 else
14679 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'
14680 fi
14681 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 $< $@'
14682 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 $< $@'
14683 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 $< $@'
14684 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 $< $@'
14685 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 $< $@'
14686 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 $< $@'
14687 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 $< $@'
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785 # Check the gettext tools to make sure they are GNU
14786 # Extract the first word of "xgettext", so it can be a program name with args.
14787 set dummy xgettext; ac_word=$2
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 $as_echo_n "checking for $ac_word... " >&6; }
14790 if ${ac_cv_path_XGETTEXT+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 case $XGETTEXT in
14794 [\\/]* | ?:[\\/]*)
14795 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14796 ;;
14797 *)
14798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799 for as_dir in $PATH
14800 do
14801 IFS=$as_save_IFS
14802 test -z "$as_dir" && as_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
14806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14807 break 2
14808 fi
14809 done
14810 done
14811 IFS=$as_save_IFS
14812
14813 ;;
14814 esac
14815 fi
14816 XGETTEXT=$ac_cv_path_XGETTEXT
14817 if test -n "$XGETTEXT"; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14819 $as_echo "$XGETTEXT" >&6; }
14820 else
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822 $as_echo "no" >&6; }
14823 fi
14824
14825
14826 # Extract the first word of "msgmerge", so it can be a program name with args.
14827 set dummy msgmerge; ac_word=$2
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14829 $as_echo_n "checking for $ac_word... " >&6; }
14830 if ${ac_cv_path_MSGMERGE+:} false; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 case $MSGMERGE in
14834 [\\/]* | ?:[\\/]*)
14835 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14836 ;;
14837 *)
14838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14839 for as_dir in $PATH
14840 do
14841 IFS=$as_save_IFS
14842 test -z "$as_dir" && as_dir=.
14843 for ac_exec_ext in '' $ac_executable_extensions; do
14844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14845 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
14846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14847 break 2
14848 fi
14849 done
14850 done
14851 IFS=$as_save_IFS
14852
14853 ;;
14854 esac
14855 fi
14856 MSGMERGE=$ac_cv_path_MSGMERGE
14857 if test -n "$MSGMERGE"; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14859 $as_echo "$MSGMERGE" >&6; }
14860 else
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14862 $as_echo "no" >&6; }
14863 fi
14864
14865
14866 # Extract the first word of "msgfmt", so it can be a program name with args.
14867 set dummy msgfmt; ac_word=$2
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14869 $as_echo_n "checking for $ac_word... " >&6; }
14870 if ${ac_cv_path_MSGFMT+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872 else
14873 case $MSGFMT in
14874 [\\/]* | ?:[\\/]*)
14875 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14876 ;;
14877 *)
14878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14880 do
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 for ac_exec_ext in '' $ac_executable_extensions; do
14884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14885 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
14886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14887 break 2
14888 fi
14889 done
14890 done
14891 IFS=$as_save_IFS
14892
14893 ;;
14894 esac
14895 fi
14896 MSGFMT=$ac_cv_path_MSGFMT
14897 if test -n "$MSGFMT"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14899 $as_echo "$MSGFMT" >&6; }
14900 else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14903 fi
14904
14905
14906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14907 set dummy gmsgfmt; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14909 $as_echo_n "checking for $ac_word... " >&6; }
14910 if ${ac_cv_path_GMSGFMT+:} false; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 case $GMSGFMT in
14914 [\\/]* | ?:[\\/]*)
14915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14916 ;;
14917 *)
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 for ac_exec_ext in '' $ac_executable_extensions; do
14924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14925 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14927 break 2
14928 fi
14929 done
14930 done
14931 IFS=$as_save_IFS
14932
14933 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14934 ;;
14935 esac
14936 fi
14937 GMSGFMT=$ac_cv_path_GMSGFMT
14938 if test -n "$GMSGFMT"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14940 $as_echo "$GMSGFMT" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14944 fi
14945
14946
14947 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
14948 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
14949 fi
14950 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
14951 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
14952 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
14953 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
14954 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
14955 fi
14956
14957 # Extract the first word of "perl", so it can be a program name with args.
14958 set dummy perl; ac_word=$2
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960 $as_echo_n "checking for $ac_word... " >&6; }
14961 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 case $INTLTOOL_PERL in
14965 [\\/]* | ?:[\\/]*)
14966 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
14967 ;;
14968 *)
14969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970 for as_dir in $PATH
14971 do
14972 IFS=$as_save_IFS
14973 test -z "$as_dir" && as_dir=.
14974 for ac_exec_ext in '' $ac_executable_extensions; do
14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
14977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14978 break 2
14979 fi
14980 done
14981 done
14982 IFS=$as_save_IFS
14983
14984 ;;
14985 esac
14986 fi
14987 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
14988 if test -n "$INTLTOOL_PERL"; then
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
14990 $as_echo "$INTLTOOL_PERL" >&6; }
14991 else
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14994 fi
14995
14996
14997 if test -z "$INTLTOOL_PERL"; then
14998 as_fn_error $? "perl not found" "$LINENO" 5
14999 fi
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
15001 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
15002 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
15003 if test $? -ne 0; then
15004 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
15005 else
15006 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
15008 $as_echo "$IT_PERL_VERSION" >&6; }
15009 fi
15010 if test "x" != "xno-xml"; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
15012 $as_echo_n "checking for XML::Parser... " >&6; }
15013 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15015 $as_echo "ok" >&6; }
15016 else
15017 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
15018 fi
15019 fi
15020
15021 # Substitute ALL_LINGUAS so we can use it in po/Makefile
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031 enable_introspection=yes
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
15034 $as_echo_n "checking for gobject-introspection... " >&6; }
15035
15036 case $enable_introspection in #(
15037 no) :
15038 found_introspection="no (disabled, use --enable-introspection to enable)"
15039 ;; #(
15040 yes) :
15041 if test -n "$PKG_CONFIG" && \
15042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
15043 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
15044 ac_status=$?
15045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15046 test $ac_status = 0; }; then
15047 :
15048 else
15049 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
15050 fi
15051 if test -n "$PKG_CONFIG" && \
15052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.10.7\""; } >&5
15053 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.10.7") 2>&5
15054 ac_status=$?
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056 test $ac_status = 0; }; then
15057 found_introspection=yes
15058 else
15059 as_fn_error $? "You need to have gobject-introspection >= 0.10.7 installed to build caribou" "$LINENO" 5
15060 fi
15061 ;; #(
15062 auto) :
15063 if test -n "$PKG_CONFIG" && \
15064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.10.7\""; } >&5
15065 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.10.7") 2>&5
15066 ac_status=$?
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; }; then
15069 found_introspection=yes
15070 else
15071 found_introspection=no
15072 fi
15073 enable_introspection=$found_introspection
15074 ;; #(
15075 *) :
15076 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
15077 ;;
15078 esac
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
15080 $as_echo "$found_introspection" >&6; }
15081
15082 INTROSPECTION_SCANNER=
15083 INTROSPECTION_COMPILER=
15084 INTROSPECTION_GENERATE=
15085 INTROSPECTION_GIRDIR=
15086 INTROSPECTION_TYPELIBDIR=
15087 if test "x$found_introspection" = "xyes"; then
15088 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
15089 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
15090 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
15091 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
15092 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
15093 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
15094 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
15095 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
15096 fi
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106 if test "x$found_introspection" = "xyes"; then
15107 HAVE_INTROSPECTION_TRUE=
15108 HAVE_INTROSPECTION_FALSE='#'
15109 else
15110 HAVE_INTROSPECTION_TRUE='#'
15111 HAVE_INTROSPECTION_FALSE=
15112 fi
15113
15114
15115
15116
15117 # Check whether --enable-docs was given.
15118 if test "${enable_docs+set}" = set; then :
15119 enableval=$enable_docs; enable_docs=$enableval
15120 else
15121 enable_docs=no
15122 fi
15123
15124 if test x$enable_docs = xyes; then
15125 ENABLE_DOCS_TRUE=
15126 ENABLE_DOCS_FALSE='#'
15127 else
15128 ENABLE_DOCS_TRUE='#'
15129 ENABLE_DOCS_FALSE=
15130 fi
15131
15132
15133 have_valadoc=no
15134 if test x$enable_docs = xyes; then :
15135
15136 # make sure the library is new enough and the program exists
15137
15138 pkg_failed=no
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALADOC" >&5
15140 $as_echo_n "checking for VALADOC... " >&6; }
15141
15142 if test -n "$VALADOC_CFLAGS"; then
15143 pkg_cv_VALADOC_CFLAGS="$VALADOC_CFLAGS"
15144 elif test -n "$PKG_CONFIG"; then
15145 if test -n "$PKG_CONFIG" && \
15146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valadoc-1.0 >= \$VALADOC_REQUIRED\""; } >&5
15147 ($PKG_CONFIG --exists --print-errors "valadoc-1.0 >= $VALADOC_REQUIRED") 2>&5
15148 ac_status=$?
15149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15150 test $ac_status = 0; }; then
15151 pkg_cv_VALADOC_CFLAGS=`$PKG_CONFIG --cflags "valadoc-1.0 >= $VALADOC_REQUIRED" 2>/dev/null`
15152 test "x$?" != "x0" && pkg_failed=yes
15153 else
15154 pkg_failed=yes
15155 fi
15156 else
15157 pkg_failed=untried
15158 fi
15159 if test -n "$VALADOC_LIBS"; then
15160 pkg_cv_VALADOC_LIBS="$VALADOC_LIBS"
15161 elif test -n "$PKG_CONFIG"; then
15162 if test -n "$PKG_CONFIG" && \
15163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valadoc-1.0 >= \$VALADOC_REQUIRED\""; } >&5
15164 ($PKG_CONFIG --exists --print-errors "valadoc-1.0 >= $VALADOC_REQUIRED") 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }; then
15168 pkg_cv_VALADOC_LIBS=`$PKG_CONFIG --libs "valadoc-1.0 >= $VALADOC_REQUIRED" 2>/dev/null`
15169 test "x$?" != "x0" && pkg_failed=yes
15170 else
15171 pkg_failed=yes
15172 fi
15173 else
15174 pkg_failed=untried
15175 fi
15176
15177
15178
15179 if test $pkg_failed = yes; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 $as_echo "no" >&6; }
15182
15183 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15184 _pkg_short_errors_supported=yes
15185 else
15186 _pkg_short_errors_supported=no
15187 fi
15188 if test $_pkg_short_errors_supported = yes; then
15189 VALADOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valadoc-1.0 >= $VALADOC_REQUIRED" 2>&1`
15190 else
15191 VALADOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valadoc-1.0 >= $VALADOC_REQUIRED" 2>&1`
15192 fi
15193 # Put the nasty error message in config.log where it belongs
15194 echo "$VALADOC_PKG_ERRORS" >&5
15195
15196 as_fn_error $? "Package requirements (valadoc-1.0 >= $VALADOC_REQUIRED) were not met:
15197
15198 $VALADOC_PKG_ERRORS
15199
15200 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15201 installed software in a non-standard prefix.
15202
15203 Alternatively, you may set the environment variables VALADOC_CFLAGS
15204 and VALADOC_LIBS to avoid the need to call pkg-config.
15205 See the pkg-config man page for more details." "$LINENO" 5
15206 elif test $pkg_failed = untried; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15211 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15212 is in your PATH or set the PKG_CONFIG environment variable to the full
15213 path to pkg-config.
15214
15215 Alternatively, you may set the environment variables VALADOC_CFLAGS
15216 and VALADOC_LIBS to avoid the need to call pkg-config.
15217 See the pkg-config man page for more details.
15218
15219 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15220 See \`config.log' for more details" "$LINENO" 5; }
15221 else
15222 VALADOC_CFLAGS=$pkg_cv_VALADOC_CFLAGS
15223 VALADOC_LIBS=$pkg_cv_VALADOC_LIBS
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225 $as_echo "yes" >&6; }
15226
15227 fi
15228 # Extract the first word of "valadoc", so it can be a program name with args.
15229 set dummy valadoc; ac_word=$2
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15231 $as_echo_n "checking for $ac_word... " >&6; }
15232 if ${ac_cv_path_VALADOC+:} false; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 case $VALADOC in
15236 [\\/]* | ?:[\\/]*)
15237 ac_cv_path_VALADOC="$VALADOC" # Let the user override the test with a path.
15238 ;;
15239 *)
15240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15241 for as_dir in $PATH
15242 do
15243 IFS=$as_save_IFS
15244 test -z "$as_dir" && as_dir=.
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15247 ac_cv_path_VALADOC="$as_dir/$ac_word$ac_exec_ext"
15248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15249 break 2
15250 fi
15251 done
15252 done
15253 IFS=$as_save_IFS
15254
15255 test -z "$ac_cv_path_VALADOC" && ac_cv_path_VALADOC=":"
15256 ;;
15257 esac
15258 fi
15259 VALADOC=$ac_cv_path_VALADOC
15260 if test -n "$VALADOC"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALADOC" >&5
15262 $as_echo "$VALADOC" >&6; }
15263 else
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 $as_echo "no" >&6; }
15266 fi
15267
15268
15269 if test "$VALADOC" != :; then :
15270 have_valadoc=yes
15271 fi
15272
15273 fi
15274 if test x$have_valadoc = xyes; then
15275 HAVE_VALADOC_TRUE=
15276 HAVE_VALADOC_FALSE='#'
15277 else
15278 HAVE_VALADOC_TRUE='#'
15279 HAVE_VALADOC_FALSE=
15280 fi
15281
15282
15283 if test "x$enable_docs" = "xyes" -a "x$have_valadoc" != "xyes"; then :
15284
15285 as_fn_error $? "Doc building requested but valadoc not installed." "$LINENO" 5
15286
15287 fi
15288
15289 ac_config_files="$ac_config_files Makefile po/Makefile.in caribou/Makefile caribou/i18n.py caribou/antler/Makefile caribou/settings/Makefile bin/Makefile bin/caribou-preferences bin/antler-keyboard data/Makefile data/antler/Makefile data/layouts/Makefile data/layouts/touch/Makefile data/layouts/scan/Makefile data/layouts/fullscale/Makefile data/layouts/tablet/Makefile libcaribou/Makefile libcaribou/caribou-1.0.pc modules/Makefile modules/gtk3/Makefile modules/gtk2/Makefile tools/Makefile docs/Makefile vapi/Makefile daemon/Makefile"
15290
15291 cat >confcache <<\_ACEOF
15292 # This file is a shell script that caches the results of configure
15293 # tests run on this system so they can be shared between configure
15294 # scripts and configure runs, see configure's option --config-cache.
15295 # It is not useful on other systems. If it contains results you don't
15296 # want to keep, you may remove or edit it.
15297 #
15298 # config.status only pays attention to the cache file if you give it
15299 # the --recheck option to rerun configure.
15300 #
15301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15303 # following values.
15304
15305 _ACEOF
15306
15307 # The following way of writing the cache mishandles newlines in values,
15308 # but we know of no workaround that is simple, portable, and efficient.
15309 # So, we kill variables containing newlines.
15310 # Ultrix sh set writes to stderr and can't be redirected directly,
15311 # and sets the high bit in the cache file unless we assign to the vars.
15312 (
15313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15314 eval ac_val=\$$ac_var
15315 case $ac_val in #(
15316 *${as_nl}*)
15317 case $ac_var in #(
15318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15320 esac
15321 case $ac_var in #(
15322 _ | IFS | as_nl) ;; #(
15323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15324 *) { eval $ac_var=; unset $ac_var;} ;;
15325 esac ;;
15326 esac
15327 done
15328
15329 (set) 2>&1 |
15330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15331 *${as_nl}ac_space=\ *)
15332 # `set' does not quote correctly, so add quotes: double-quote
15333 # substitution turns \\\\ into \\, and sed turns \\ into \.
15334 sed -n \
15335 "s/'/'\\\\''/g;
15336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15337 ;; #(
15338 *)
15339 # `set' quotes correctly as required by POSIX, so do not add quotes.
15340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15341 ;;
15342 esac |
15343 sort
15344 ) |
15345 sed '
15346 /^ac_cv_env_/b end
15347 t clear
15348 :clear
15349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15350 t end
15351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15352 :end' >>confcache
15353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15354 if test -w "$cache_file"; then
15355 if test "x$cache_file" != "x/dev/null"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15357 $as_echo "$as_me: updating cache $cache_file" >&6;}
15358 if test ! -f "$cache_file" || test -h "$cache_file"; then
15359 cat confcache >"$cache_file"
15360 else
15361 case $cache_file in #(
15362 */* | ?:*)
15363 mv -f confcache "$cache_file"$$ &&
15364 mv -f "$cache_file"$$ "$cache_file" ;; #(
15365 *)
15366 mv -f confcache "$cache_file" ;;
15367 esac
15368 fi
15369 fi
15370 else
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15373 fi
15374 fi
15375 rm -f confcache
15376
15377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15378 # Let make expand exec_prefix.
15379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15380
15381 # Transform confdefs.h into DEFS.
15382 # Protect against shell expansion while executing Makefile rules.
15383 # Protect against Makefile macro expansion.
15384 #
15385 # If the first sed substitution is executed (which looks for macros that
15386 # take arguments), then branch to the quote section. Otherwise,
15387 # look for a macro that doesn't take arguments.
15388 ac_script='
15389 :mline
15390 /\\$/{
15391 N
15392 s,\\\n,,
15393 b mline
15394 }
15395 t clear
15396 :clear
15397 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15398 t quote
15399 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15400 t quote
15401 b any
15402 :quote
15403 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15404 s/\[/\\&/g
15405 s/\]/\\&/g
15406 s/\$/$$/g
15407 H
15408 :any
15409 ${
15410 g
15411 s/^\n//
15412 s/\n/ /g
15413 p
15414 }
15415 '
15416 DEFS=`sed -n "$ac_script" confdefs.h`
15417
15418
15419 ac_libobjs=
15420 ac_ltlibobjs=
15421 U=
15422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15423 # 1. Remove the extension, and $U if already installed.
15424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15427 # will be set to the directory where LIBOBJS objects are built.
15428 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15429 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15430 done
15431 LIBOBJS=$ac_libobjs
15432
15433 LTLIBOBJS=$ac_ltlibobjs
15434
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15437 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15438 if test -n "$am_sleep_pid"; then
15439 # Hide warnings about reused PIDs.
15440 wait $am_sleep_pid 2>/dev/null
15441 fi
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15443 $as_echo "done" >&6; }
15444 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15445 as_fn_error $? "conditional \"AMDEP\" was never defined.
15446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15447 fi
15448 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15449 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451 fi
15452 if test -n "$EXEEXT"; then
15453 am__EXEEXT_TRUE=
15454 am__EXEEXT_FALSE='#'
15455 else
15456 am__EXEEXT_TRUE='#'
15457 am__EXEEXT_FALSE=
15458 fi
15459
15460 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15461 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15463 fi
15464 if test -z "${ENABLE_GTK3_MODULES_TRUE}" && test -z "${ENABLE_GTK3_MODULES_FALSE}"; then
15465 as_fn_error $? "conditional \"ENABLE_GTK3_MODULES\" was never defined.
15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467 fi
15468 if test -z "${ENABLE_GTK2_MODULES_TRUE}" && test -z "${ENABLE_GTK2_MODULES_FALSE}"; then
15469 as_fn_error $? "conditional \"ENABLE_GTK2_MODULES\" was never defined.
15470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15471 fi
15472 if test -z "${ENABLE_GTK_MODULES_TRUE}" && test -z "${ENABLE_GTK_MODULES_FALSE}"; then
15473 as_fn_error $? "conditional \"ENABLE_GTK_MODULES\" was never defined.
15474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15475 fi
15476
15477 ac_config_commands="$ac_config_commands po/stamp-it"
15478
15479
15480 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
15481 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
15482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15483 fi
15484 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
15485 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
15486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15487 fi
15488 if test -z "${HAVE_VALADOC_TRUE}" && test -z "${HAVE_VALADOC_FALSE}"; then
15489 as_fn_error $? "conditional \"HAVE_VALADOC\" was never defined.
15490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15491 fi
15492
15493 : "${CONFIG_STATUS=./config.status}"
15494 ac_write_fail=0
15495 ac_clean_files_save=$ac_clean_files
15496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15499 as_write_fail=0
15500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15501 #! $SHELL
15502 # Generated by $as_me.
15503 # Run this file to recreate the current configuration.
15504 # Compiler output produced by configure, useful for debugging
15505 # configure, is in config.log if it exists.
15506
15507 debug=false
15508 ac_cs_recheck=false
15509 ac_cs_silent=false
15510
15511 SHELL=\${CONFIG_SHELL-$SHELL}
15512 export SHELL
15513 _ASEOF
15514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15515 ## -------------------- ##
15516 ## M4sh Initialization. ##
15517 ## -------------------- ##
15518
15519 # Be more Bourne compatible
15520 DUALCASE=1; export DUALCASE # for MKS sh
15521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15522 emulate sh
15523 NULLCMD=:
15524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15525 # is contrary to our usage. Disable this feature.
15526 alias -g '${1+"$@"}'='"$@"'
15527 setopt NO_GLOB_SUBST
15528 else
15529 case `(set -o) 2>/dev/null` in #(
15530 *posix*) :
15531 set -o posix ;; #(
15532 *) :
15533 ;;
15534 esac
15535 fi
15536
15537
15538 as_nl='
15539 '
15540 export as_nl
15541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15545 # Prefer a ksh shell builtin over an external printf program on Solaris,
15546 # but without wasting forks for bash or zsh.
15547 if test -z "$BASH_VERSION$ZSH_VERSION" \
15548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15549 as_echo='print -r --'
15550 as_echo_n='print -rn --'
15551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15552 as_echo='printf %s\n'
15553 as_echo_n='printf %s'
15554 else
15555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15557 as_echo_n='/usr/ucb/echo -n'
15558 else
15559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15560 as_echo_n_body='eval
15561 arg=$1;
15562 case $arg in #(
15563 *"$as_nl"*)
15564 expr "X$arg" : "X\\(.*\\)$as_nl";
15565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15566 esac;
15567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15568 '
15569 export as_echo_n_body
15570 as_echo_n='sh -c $as_echo_n_body as_echo'
15571 fi
15572 export as_echo_body
15573 as_echo='sh -c $as_echo_body as_echo'
15574 fi
15575
15576 # The user is always right.
15577 if test "${PATH_SEPARATOR+set}" != set; then
15578 PATH_SEPARATOR=:
15579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15581 PATH_SEPARATOR=';'
15582 }
15583 fi
15584
15585
15586 # IFS
15587 # We need space, tab and new line, in precisely that order. Quoting is
15588 # there to prevent editors from complaining about space-tab.
15589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15590 # splitting by setting IFS to empty value.)
15591 IFS=" "" $as_nl"
15592
15593 # Find who we are. Look in the path if we contain no directory separator.
15594 as_myself=
15595 case $0 in #((
15596 *[\\/]* ) as_myself=$0 ;;
15597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15598 for as_dir in $PATH
15599 do
15600 IFS=$as_save_IFS
15601 test -z "$as_dir" && as_dir=.
15602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15603 done
15604 IFS=$as_save_IFS
15605
15606 ;;
15607 esac
15608 # We did not find ourselves, most probably we were run as `sh COMMAND'
15609 # in which case we are not to be found in the path.
15610 if test "x$as_myself" = x; then
15611 as_myself=$0
15612 fi
15613 if test ! -f "$as_myself"; then
15614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15615 exit 1
15616 fi
15617
15618 # Unset variables that we do not need and which cause bugs (e.g. in
15619 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15620 # suppresses any "Segmentation fault" message there. '((' could
15621 # trigger a bug in pdksh 5.2.14.
15622 for as_var in BASH_ENV ENV MAIL MAILPATH
15623 do eval test x\${$as_var+set} = xset \
15624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15625 done
15626 PS1='$ '
15627 PS2='> '
15628 PS4='+ '
15629
15630 # NLS nuisances.
15631 LC_ALL=C
15632 export LC_ALL
15633 LANGUAGE=C
15634 export LANGUAGE
15635
15636 # CDPATH.
15637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15638
15639
15640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15641 # ----------------------------------------
15642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15644 # script with STATUS, using 1 if that was 0.
15645 as_fn_error ()
15646 {
15647 as_status=$1; test $as_status -eq 0 && as_status=1
15648 if test "$4"; then
15649 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15651 fi
15652 $as_echo "$as_me: error: $2" >&2
15653 as_fn_exit $as_status
15654 } # as_fn_error
15655
15656
15657 # as_fn_set_status STATUS
15658 # -----------------------
15659 # Set $? to STATUS, without forking.
15660 as_fn_set_status ()
15661 {
15662 return $1
15663 } # as_fn_set_status
15664
15665 # as_fn_exit STATUS
15666 # -----------------
15667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15668 as_fn_exit ()
15669 {
15670 set +e
15671 as_fn_set_status $1
15672 exit $1
15673 } # as_fn_exit
15674
15675 # as_fn_unset VAR
15676 # ---------------
15677 # Portably unset VAR.
15678 as_fn_unset ()
15679 {
15680 { eval $1=; unset $1;}
15681 }
15682 as_unset=as_fn_unset
15683 # as_fn_append VAR VALUE
15684 # ----------------------
15685 # Append the text in VALUE to the end of the definition contained in VAR. Take
15686 # advantage of any shell optimizations that allow amortized linear growth over
15687 # repeated appends, instead of the typical quadratic growth present in naive
15688 # implementations.
15689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15690 eval 'as_fn_append ()
15691 {
15692 eval $1+=\$2
15693 }'
15694 else
15695 as_fn_append ()
15696 {
15697 eval $1=\$$1\$2
15698 }
15699 fi # as_fn_append
15700
15701 # as_fn_arith ARG...
15702 # ------------------
15703 # Perform arithmetic evaluation on the ARGs, and store the result in the
15704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15705 # must be portable across $(()) and expr.
15706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15707 eval 'as_fn_arith ()
15708 {
15709 as_val=$(( $* ))
15710 }'
15711 else
15712 as_fn_arith ()
15713 {
15714 as_val=`expr "$@" || test $? -eq 1`
15715 }
15716 fi # as_fn_arith
15717
15718
15719 if expr a : '\(a\)' >/dev/null 2>&1 &&
15720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15721 as_expr=expr
15722 else
15723 as_expr=false
15724 fi
15725
15726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15727 as_basename=basename
15728 else
15729 as_basename=false
15730 fi
15731
15732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15733 as_dirname=dirname
15734 else
15735 as_dirname=false
15736 fi
15737
15738 as_me=`$as_basename -- "$0" ||
15739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15740 X"$0" : 'X\(//\)$' \| \
15741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15742 $as_echo X/"$0" |
15743 sed '/^.*\/\([^/][^/]*\)\/*$/{
15744 s//\1/
15745 q
15746 }
15747 /^X\/\(\/\/\)$/{
15748 s//\1/
15749 q
15750 }
15751 /^X\/\(\/\).*/{
15752 s//\1/
15753 q
15754 }
15755 s/.*/./; q'`
15756
15757 # Avoid depending upon Character Ranges.
15758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15761 as_cr_digits='0123456789'
15762 as_cr_alnum=$as_cr_Letters$as_cr_digits
15763
15764 ECHO_C= ECHO_N= ECHO_T=
15765 case `echo -n x` in #(((((
15766 -n*)
15767 case `echo 'xy\c'` in
15768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15769 xy) ECHO_C='\c';;
15770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15771 ECHO_T=' ';;
15772 esac;;
15773 *)
15774 ECHO_N='-n';;
15775 esac
15776
15777 rm -f conf$$ conf$$.exe conf$$.file
15778 if test -d conf$$.dir; then
15779 rm -f conf$$.dir/conf$$.file
15780 else
15781 rm -f conf$$.dir
15782 mkdir conf$$.dir 2>/dev/null
15783 fi
15784 if (echo >conf$$.file) 2>/dev/null; then
15785 if ln -s conf$$.file conf$$ 2>/dev/null; then
15786 as_ln_s='ln -s'
15787 # ... but there are two gotchas:
15788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15790 # In both cases, we have to default to `cp -pR'.
15791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15792 as_ln_s='cp -pR'
15793 elif ln conf$$.file conf$$ 2>/dev/null; then
15794 as_ln_s=ln
15795 else
15796 as_ln_s='cp -pR'
15797 fi
15798 else
15799 as_ln_s='cp -pR'
15800 fi
15801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15802 rmdir conf$$.dir 2>/dev/null
15803
15804
15805 # as_fn_mkdir_p
15806 # -------------
15807 # Create "$as_dir" as a directory, including parents if necessary.
15808 as_fn_mkdir_p ()
15809 {
15810
15811 case $as_dir in #(
15812 -*) as_dir=./$as_dir;;
15813 esac
15814 test -d "$as_dir" || eval $as_mkdir_p || {
15815 as_dirs=
15816 while :; do
15817 case $as_dir in #(
15818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15819 *) as_qdir=$as_dir;;
15820 esac
15821 as_dirs="'$as_qdir' $as_dirs"
15822 as_dir=`$as_dirname -- "$as_dir" ||
15823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15824 X"$as_dir" : 'X\(//\)[^/]' \| \
15825 X"$as_dir" : 'X\(//\)$' \| \
15826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15827 $as_echo X"$as_dir" |
15828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15829 s//\1/
15830 q
15831 }
15832 /^X\(\/\/\)[^/].*/{
15833 s//\1/
15834 q
15835 }
15836 /^X\(\/\/\)$/{
15837 s//\1/
15838 q
15839 }
15840 /^X\(\/\).*/{
15841 s//\1/
15842 q
15843 }
15844 s/.*/./; q'`
15845 test -d "$as_dir" && break
15846 done
15847 test -z "$as_dirs" || eval "mkdir $as_dirs"
15848 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15849
15850
15851 } # as_fn_mkdir_p
15852 if mkdir -p . 2>/dev/null; then
15853 as_mkdir_p='mkdir -p "$as_dir"'
15854 else
15855 test -d ./-p && rmdir ./-p
15856 as_mkdir_p=false
15857 fi
15858
15859
15860 # as_fn_executable_p FILE
15861 # -----------------------
15862 # Test if FILE is an executable regular file.
15863 as_fn_executable_p ()
15864 {
15865 test -f "$1" && test -x "$1"
15866 } # as_fn_executable_p
15867 as_test_x='test -x'
15868 as_executable_p=as_fn_executable_p
15869
15870 # Sed expression to map a string onto a valid CPP name.
15871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15872
15873 # Sed expression to map a string onto a valid variable name.
15874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15875
15876
15877 exec 6>&1
15878 ## ----------------------------------- ##
15879 ## Main body of $CONFIG_STATUS script. ##
15880 ## ----------------------------------- ##
15881 _ASEOF
15882 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15883
15884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15885 # Save the log message, to keep $0 and so on meaningful, and to
15886 # report actual input values of CONFIG_FILES etc. instead of their
15887 # values after options handling.
15888 ac_log="
15889 This file was extended by caribou $as_me 0.4.21, which was
15890 generated by GNU Autoconf 2.69. Invocation command line was
15891
15892 CONFIG_FILES = $CONFIG_FILES
15893 CONFIG_HEADERS = $CONFIG_HEADERS
15894 CONFIG_LINKS = $CONFIG_LINKS
15895 CONFIG_COMMANDS = $CONFIG_COMMANDS
15896 $ $0 $@
15897
15898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15899 "
15900
15901 _ACEOF
15902
15903 case $ac_config_files in *"
15904 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15905 esac
15906
15907
15908
15909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15910 # Files that config.status was made for.
15911 config_files="$ac_config_files"
15912 config_commands="$ac_config_commands"
15913
15914 _ACEOF
15915
15916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15917 ac_cs_usage="\
15918 \`$as_me' instantiates files and other configuration actions
15919 from templates according to the current configuration. Unless the files
15920 and actions are specified as TAGs, all are instantiated by default.
15921
15922 Usage: $0 [OPTION]... [TAG]...
15923
15924 -h, --help print this help, then exit
15925 -V, --version print version number and configuration settings, then exit
15926 --config print configuration, then exit
15927 -q, --quiet, --silent
15928 do not print progress messages
15929 -d, --debug don't remove temporary files
15930 --recheck update $as_me by reconfiguring in the same conditions
15931 --file=FILE[:TEMPLATE]
15932 instantiate the configuration file FILE
15933
15934 Configuration files:
15935 $config_files
15936
15937 Configuration commands:
15938 $config_commands
15939
15940 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=caribou>."
15941
15942 _ACEOF
15943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15944 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15945 ac_cs_version="\\
15946 caribou config.status 0.4.21
15947 configured by $0, generated by GNU Autoconf 2.69,
15948 with options \\"\$ac_cs_config\\"
15949
15950 Copyright (C) 2012 Free Software Foundation, Inc.
15951 This config.status script is free software; the Free Software Foundation
15952 gives unlimited permission to copy, distribute and modify it."
15953
15954 ac_pwd='$ac_pwd'
15955 srcdir='$srcdir'
15956 INSTALL='$INSTALL'
15957 MKDIR_P='$MKDIR_P'
15958 AWK='$AWK'
15959 test -n "\$AWK" || AWK=awk
15960 _ACEOF
15961
15962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15963 # The default lists apply if the user does not specify any file.
15964 ac_need_defaults=:
15965 while test $# != 0
15966 do
15967 case $1 in
15968 --*=?*)
15969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15970 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15971 ac_shift=:
15972 ;;
15973 --*=)
15974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15975 ac_optarg=
15976 ac_shift=:
15977 ;;
15978 *)
15979 ac_option=$1
15980 ac_optarg=$2
15981 ac_shift=shift
15982 ;;
15983 esac
15984
15985 case $ac_option in
15986 # Handling of the options.
15987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15988 ac_cs_recheck=: ;;
15989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15990 $as_echo "$ac_cs_version"; exit ;;
15991 --config | --confi | --conf | --con | --co | --c )
15992 $as_echo "$ac_cs_config"; exit ;;
15993 --debug | --debu | --deb | --de | --d | -d )
15994 debug=: ;;
15995 --file | --fil | --fi | --f )
15996 $ac_shift
15997 case $ac_optarg in
15998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15999 '') as_fn_error $? "missing file argument" ;;
16000 esac
16001 as_fn_append CONFIG_FILES " '$ac_optarg'"
16002 ac_need_defaults=false;;
16003 --he | --h | --help | --hel | -h )
16004 $as_echo "$ac_cs_usage"; exit ;;
16005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16007 ac_cs_silent=: ;;
16008
16009 # This is an error.
16010 -*) as_fn_error $? "unrecognized option: \`$1'
16011 Try \`$0 --help' for more information." ;;
16012
16013 *) as_fn_append ac_config_targets " $1"
16014 ac_need_defaults=false ;;
16015
16016 esac
16017 shift
16018 done
16019
16020 ac_configure_extra_args=
16021
16022 if $ac_cs_silent; then
16023 exec 6>/dev/null
16024 ac_configure_extra_args="$ac_configure_extra_args --silent"
16025 fi
16026
16027 _ACEOF
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 if \$ac_cs_recheck; then
16030 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16031 shift
16032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16033 CONFIG_SHELL='$SHELL'
16034 export CONFIG_SHELL
16035 exec "\$@"
16036 fi
16037
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 exec 5>>config.log
16041 {
16042 echo
16043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16044 ## Running $as_me. ##
16045 _ASBOX
16046 $as_echo "$ac_log"
16047 } >&5
16048
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 #
16052 # INIT-COMMANDS
16053 #
16054
16055
16056 # The HP-UX ksh and POSIX shell print the target directory to stdout
16057 # if CDPATH is set.
16058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16059
16060 sed_quote_subst='$sed_quote_subst'
16061 double_quote_subst='$double_quote_subst'
16062 delay_variable_subst='$delay_variable_subst'
16063 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16064 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16065 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16066 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16067 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16068 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16069 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16070 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16071 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16072 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16073 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16074 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16075 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16076 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16077 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16078 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16079 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16080 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16081 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16082 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16083 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16084 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16085 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16086 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16087 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16088 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16089 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16090 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16091 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16092 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16093 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16094 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16095 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16096 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16097 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16098 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16099 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16100 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16101 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16102 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16103 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16104 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16105 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16106 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16107 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16108 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16109 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16110 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16111 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16112 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16113 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16114 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16115 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16116 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16117 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16118 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16119 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16120 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16121 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"`'
16122 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16123 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16124 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16125 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16126 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16127 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16128 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16129 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16130 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16131 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16132 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16133 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16134 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16135 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16136 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16137 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16138 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16139 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16140 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16141 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16142 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16143 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16144 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16145 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16146 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16147 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16148 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16149 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16150 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16151 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16152 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16153 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16154 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16155 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16156 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16157 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16158 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16159 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16160 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16161 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16162 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16163 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16164 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16165 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16166 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16167 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16168 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16169 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16170 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16171 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16172 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16173 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16174 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16175 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16176 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16177 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16178 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16179 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16180 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16181 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16182 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16183 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16184 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16185 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16186 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16187 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16188 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16189 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16190 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16191 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16192 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16193 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16194 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16195 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16196 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16197 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16198
16199 LTCC='$LTCC'
16200 LTCFLAGS='$LTCFLAGS'
16201 compiler='$compiler_DEFAULT'
16202
16203 # A function that is used when there is no print builtin or printf.
16204 func_fallback_echo ()
16205 {
16206 eval 'cat <<_LTECHO_EOF
16207 \$1
16208 _LTECHO_EOF'
16209 }
16210
16211 # Quote evaled strings.
16212 for var in SHELL \
16213 ECHO \
16214 PATH_SEPARATOR \
16215 SED \
16216 GREP \
16217 EGREP \
16218 FGREP \
16219 LD \
16220 NM \
16221 LN_S \
16222 lt_SP2NL \
16223 lt_NL2SP \
16224 reload_flag \
16225 OBJDUMP \
16226 deplibs_check_method \
16227 file_magic_cmd \
16228 file_magic_glob \
16229 want_nocaseglob \
16230 DLLTOOL \
16231 sharedlib_from_linklib_cmd \
16232 AR \
16233 AR_FLAGS \
16234 archiver_list_spec \
16235 STRIP \
16236 RANLIB \
16237 CC \
16238 CFLAGS \
16239 compiler \
16240 lt_cv_sys_global_symbol_pipe \
16241 lt_cv_sys_global_symbol_to_cdecl \
16242 lt_cv_sys_global_symbol_to_import \
16243 lt_cv_sys_global_symbol_to_c_name_address \
16244 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16245 lt_cv_nm_interface \
16246 nm_file_list_spec \
16247 lt_cv_truncate_bin \
16248 lt_prog_compiler_no_builtin_flag \
16249 lt_prog_compiler_pic \
16250 lt_prog_compiler_wl \
16251 lt_prog_compiler_static \
16252 lt_cv_prog_compiler_c_o \
16253 need_locks \
16254 MANIFEST_TOOL \
16255 DSYMUTIL \
16256 NMEDIT \
16257 LIPO \
16258 OTOOL \
16259 OTOOL64 \
16260 shrext_cmds \
16261 export_dynamic_flag_spec \
16262 whole_archive_flag_spec \
16263 compiler_needs_object \
16264 with_gnu_ld \
16265 allow_undefined_flag \
16266 no_undefined_flag \
16267 hardcode_libdir_flag_spec \
16268 hardcode_libdir_separator \
16269 exclude_expsyms \
16270 include_expsyms \
16271 file_list_spec \
16272 variables_saved_for_relink \
16273 libname_spec \
16274 library_names_spec \
16275 soname_spec \
16276 install_override_mode \
16277 finish_eval \
16278 old_striplib \
16279 striplib; do
16280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16281 *[\\\\\\\`\\"\\\$]*)
16282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16283 ;;
16284 *)
16285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16286 ;;
16287 esac
16288 done
16289
16290 # Double-quote double-evaled strings.
16291 for var in reload_cmds \
16292 old_postinstall_cmds \
16293 old_postuninstall_cmds \
16294 old_archive_cmds \
16295 extract_expsyms_cmds \
16296 old_archive_from_new_cmds \
16297 old_archive_from_expsyms_cmds \
16298 archive_cmds \
16299 archive_expsym_cmds \
16300 module_cmds \
16301 module_expsym_cmds \
16302 export_symbols_cmds \
16303 prelink_cmds \
16304 postlink_cmds \
16305 postinstall_cmds \
16306 postuninstall_cmds \
16307 finish_cmds \
16308 sys_lib_search_path_spec \
16309 configure_time_dlsearch_path \
16310 configure_time_lt_sys_library_path; do
16311 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16312 *[\\\\\\\`\\"\\\$]*)
16313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16314 ;;
16315 *)
16316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16317 ;;
16318 esac
16319 done
16320
16321 ac_aux_dir='$ac_aux_dir'
16322
16323 # See if we are running on zsh, and set the options that allow our
16324 # commands through without removal of \ escapes INIT.
16325 if test -n "\${ZSH_VERSION+set}"; then
16326 setopt NO_GLOB_SUBST
16327 fi
16328
16329
16330 PACKAGE='$PACKAGE'
16331 VERSION='$VERSION'
16332 RM='$RM'
16333 ofile='$ofile'
16334
16335
16336
16337 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16338
16339
16340 _ACEOF
16341
16342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16343
16344 # Handling of arguments.
16345 for ac_config_target in $ac_config_targets
16346 do
16347 case $ac_config_target in
16348 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16350 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16351 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16352 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16353 "caribou/Makefile") CONFIG_FILES="$CONFIG_FILES caribou/Makefile" ;;
16354 "caribou/i18n.py") CONFIG_FILES="$CONFIG_FILES caribou/i18n.py" ;;
16355 "caribou/antler/Makefile") CONFIG_FILES="$CONFIG_FILES caribou/antler/Makefile" ;;
16356 "caribou/settings/Makefile") CONFIG_FILES="$CONFIG_FILES caribou/settings/Makefile" ;;
16357 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
16358 "bin/caribou-preferences") CONFIG_FILES="$CONFIG_FILES bin/caribou-preferences" ;;
16359 "bin/antler-keyboard") CONFIG_FILES="$CONFIG_FILES bin/antler-keyboard" ;;
16360 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
16361 "data/antler/Makefile") CONFIG_FILES="$CONFIG_FILES data/antler/Makefile" ;;
16362 "data/layouts/Makefile") CONFIG_FILES="$CONFIG_FILES data/layouts/Makefile" ;;
16363 "data/layouts/touch/Makefile") CONFIG_FILES="$CONFIG_FILES data/layouts/touch/Makefile" ;;
16364 "data/layouts/scan/Makefile") CONFIG_FILES="$CONFIG_FILES data/layouts/scan/Makefile" ;;
16365 "data/layouts/fullscale/Makefile") CONFIG_FILES="$CONFIG_FILES data/layouts/fullscale/Makefile" ;;
16366 "data/layouts/tablet/Makefile") CONFIG_FILES="$CONFIG_FILES data/layouts/tablet/Makefile" ;;
16367 "libcaribou/Makefile") CONFIG_FILES="$CONFIG_FILES libcaribou/Makefile" ;;
16368 "libcaribou/caribou-1.0.pc") CONFIG_FILES="$CONFIG_FILES libcaribou/caribou-1.0.pc" ;;
16369 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16370 "modules/gtk3/Makefile") CONFIG_FILES="$CONFIG_FILES modules/gtk3/Makefile" ;;
16371 "modules/gtk2/Makefile") CONFIG_FILES="$CONFIG_FILES modules/gtk2/Makefile" ;;
16372 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16373 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16374 "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
16375 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
16376 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16377
16378 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16379 esac
16380 done
16381
16382
16383 # If the user did not use the arguments to specify the items to instantiate,
16384 # then the envvar interface is used. Set only those that are not.
16385 # We use the long form for the default assignment because of an extremely
16386 # bizarre bug on SunOS 4.1.3.
16387 if $ac_need_defaults; then
16388 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16390 fi
16391
16392 # Have a temporary directory for convenience. Make it in the build tree
16393 # simply because there is no reason against having it here, and in addition,
16394 # creating and moving files from /tmp can sometimes cause problems.
16395 # Hook for its removal unless debugging.
16396 # Note that there is a small window in which the directory will not be cleaned:
16397 # after its creation but before its name has been assigned to `$tmp'.
16398 $debug ||
16399 {
16400 tmp= ac_tmp=
16401 trap 'exit_status=$?
16402 : "${ac_tmp:=$tmp}"
16403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16404 ' 0
16405 trap 'as_fn_exit 1' 1 2 13 15
16406 }
16407 # Create a (secure) tmp directory for tmp files.
16408
16409 {
16410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16411 test -d "$tmp"
16412 } ||
16413 {
16414 tmp=./conf$$-$RANDOM
16415 (umask 077 && mkdir "$tmp")
16416 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16417 ac_tmp=$tmp
16418
16419 # Set up the scripts for CONFIG_FILES section.
16420 # No need to generate them if there are no CONFIG_FILES.
16421 # This happens for instance with `./config.status config.h'.
16422 if test -n "$CONFIG_FILES"; then
16423
16424
16425 ac_cr=`echo X | tr X '\015'`
16426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16427 # But we know of no other shell where ac_cr would be empty at this
16428 # point, so we can use a bashism as a fallback.
16429 if test "x$ac_cr" = x; then
16430 eval ac_cr=\$\'\\r\'
16431 fi
16432 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16434 ac_cs_awk_cr='\\r'
16435 else
16436 ac_cs_awk_cr=$ac_cr
16437 fi
16438
16439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16440 _ACEOF
16441
16442
16443 {
16444 echo "cat >conf$$subs.awk <<_ACEOF" &&
16445 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16446 echo "_ACEOF"
16447 } >conf$$subs.sh ||
16448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16449 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16450 ac_delim='%!_!# '
16451 for ac_last_try in false false false false false :; do
16452 . ./conf$$subs.sh ||
16453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16454
16455 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16456 if test $ac_delim_n = $ac_delim_num; then
16457 break
16458 elif $ac_last_try; then
16459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16460 else
16461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16462 fi
16463 done
16464 rm -f conf$$subs.sh
16465
16466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16467 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16468 _ACEOF
16469 sed -n '
16470 h
16471 s/^/S["/; s/!.*/"]=/
16472 p
16473 g
16474 s/^[^!]*!//
16475 :repl
16476 t repl
16477 s/'"$ac_delim"'$//
16478 t delim
16479 :nl
16480 h
16481 s/\(.\{148\}\)..*/\1/
16482 t more1
16483 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16484 p
16485 n
16486 b repl
16487 :more1
16488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16489 p
16490 g
16491 s/.\{148\}//
16492 t nl
16493 :delim
16494 h
16495 s/\(.\{148\}\)..*/\1/
16496 t more2
16497 s/["\\]/\\&/g; s/^/"/; s/$/"/
16498 p
16499 b
16500 :more2
16501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16502 p
16503 g
16504 s/.\{148\}//
16505 t delim
16506 ' <conf$$subs.awk | sed '
16507 /^[^""]/{
16508 N
16509 s/\n//
16510 }
16511 ' >>$CONFIG_STATUS || ac_write_fail=1
16512 rm -f conf$$subs.awk
16513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514 _ACAWK
16515 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16516 for (key in S) S_is_set[key] = 1
16517 FS = ""
16518
16519 }
16520 {
16521 line = $ 0
16522 nfields = split(line, field, "@")
16523 substed = 0
16524 len = length(field[1])
16525 for (i = 2; i < nfields; i++) {
16526 key = field[i]
16527 keylen = length(key)
16528 if (S_is_set[key]) {
16529 value = S[key]
16530 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16531 len += length(value) + length(field[++i])
16532 substed = 1
16533 } else
16534 len += 1 + keylen
16535 }
16536
16537 print line
16538 }
16539
16540 _ACAWK
16541 _ACEOF
16542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16543 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16544 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16545 else
16546 cat
16547 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16548 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16549 _ACEOF
16550
16551 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16552 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16553 # trailing colons and then remove the whole line if VPATH becomes empty
16554 # (actually we leave an empty line to preserve line numbers).
16555 if test "x$srcdir" = x.; then
16556 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16557 h
16558 s///
16559 s/^/:/
16560 s/[ ]*$/:/
16561 s/:\$(srcdir):/:/g
16562 s/:\${srcdir}:/:/g
16563 s/:@srcdir@:/:/g
16564 s/^:*//
16565 s/:*$//
16566 x
16567 s/\(=[ ]*\).*/\1/
16568 G
16569 s/\n//
16570 s/^[^=]*=[ ]*$//
16571 }'
16572 fi
16573
16574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16575 fi # test -n "$CONFIG_FILES"
16576
16577
16578 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16579 shift
16580 for ac_tag
16581 do
16582 case $ac_tag in
16583 :[FHLC]) ac_mode=$ac_tag; continue;;
16584 esac
16585 case $ac_mode$ac_tag in
16586 :[FHL]*:*);;
16587 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16588 :[FH]-) ac_tag=-:-;;
16589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16590 esac
16591 ac_save_IFS=$IFS
16592 IFS=:
16593 set x $ac_tag
16594 IFS=$ac_save_IFS
16595 shift
16596 ac_file=$1
16597 shift
16598
16599 case $ac_mode in
16600 :L) ac_source=$1;;
16601 :[FH])
16602 ac_file_inputs=
16603 for ac_f
16604 do
16605 case $ac_f in
16606 -) ac_f="$ac_tmp/stdin";;
16607 *) # Look for the file first in the build tree, then in the source tree
16608 # (if the path is not absolute). The absolute path cannot be DOS-style,
16609 # because $ac_f cannot contain `:'.
16610 test -f "$ac_f" ||
16611 case $ac_f in
16612 [\\/$]*) false;;
16613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16614 esac ||
16615 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16616 esac
16617 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16618 as_fn_append ac_file_inputs " '$ac_f'"
16619 done
16620
16621 # Let's still pretend it is `configure' which instantiates (i.e., don't
16622 # use $as_me), people would be surprised to read:
16623 # /* config.h. Generated by config.status. */
16624 configure_input='Generated from '`
16625 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16626 `' by configure.'
16627 if test x"$ac_file" != x-; then
16628 configure_input="$ac_file. $configure_input"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16630 $as_echo "$as_me: creating $ac_file" >&6;}
16631 fi
16632 # Neutralize special characters interpreted by sed in replacement strings.
16633 case $configure_input in #(
16634 *\&* | *\|* | *\\* )
16635 ac_sed_conf_input=`$as_echo "$configure_input" |
16636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16637 *) ac_sed_conf_input=$configure_input;;
16638 esac
16639
16640 case $ac_tag in
16641 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16643 esac
16644 ;;
16645 esac
16646
16647 ac_dir=`$as_dirname -- "$ac_file" ||
16648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16649 X"$ac_file" : 'X\(//\)[^/]' \| \
16650 X"$ac_file" : 'X\(//\)$' \| \
16651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16652 $as_echo X"$ac_file" |
16653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16654 s//\1/
16655 q
16656 }
16657 /^X\(\/\/\)[^/].*/{
16658 s//\1/
16659 q
16660 }
16661 /^X\(\/\/\)$/{
16662 s//\1/
16663 q
16664 }
16665 /^X\(\/\).*/{
16666 s//\1/
16667 q
16668 }
16669 s/.*/./; q'`
16670 as_dir="$ac_dir"; as_fn_mkdir_p
16671 ac_builddir=.
16672
16673 case "$ac_dir" in
16674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16675 *)
16676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16677 # A ".." for each directory in $ac_dir_suffix.
16678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16679 case $ac_top_builddir_sub in
16680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16682 esac ;;
16683 esac
16684 ac_abs_top_builddir=$ac_pwd
16685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16686 # for backward compatibility:
16687 ac_top_builddir=$ac_top_build_prefix
16688
16689 case $srcdir in
16690 .) # We are building in place.
16691 ac_srcdir=.
16692 ac_top_srcdir=$ac_top_builddir_sub
16693 ac_abs_top_srcdir=$ac_pwd ;;
16694 [\\/]* | ?:[\\/]* ) # Absolute name.
16695 ac_srcdir=$srcdir$ac_dir_suffix;
16696 ac_top_srcdir=$srcdir
16697 ac_abs_top_srcdir=$srcdir ;;
16698 *) # Relative name.
16699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16700 ac_top_srcdir=$ac_top_build_prefix$srcdir
16701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16702 esac
16703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16704
16705
16706 case $ac_mode in
16707 :F)
16708 #
16709 # CONFIG_FILE
16710 #
16711
16712 case $INSTALL in
16713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16714 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16715 esac
16716 ac_MKDIR_P=$MKDIR_P
16717 case $MKDIR_P in
16718 [\\/$]* | ?:[\\/]* ) ;;
16719 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16720 esac
16721 _ACEOF
16722
16723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724 # If the template does not know about datarootdir, expand it.
16725 # FIXME: This hack should be removed a few years after 2.60.
16726 ac_datarootdir_hack=; ac_datarootdir_seen=
16727 ac_sed_dataroot='
16728 /datarootdir/ {
16729 p
16730 q
16731 }
16732 /@datadir@/p
16733 /@docdir@/p
16734 /@infodir@/p
16735 /@localedir@/p
16736 /@mandir@/p'
16737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16738 *datarootdir*) ac_datarootdir_seen=yes;;
16739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16741 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16742 _ACEOF
16743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16744 ac_datarootdir_hack='
16745 s&@datadir@&$datadir&g
16746 s&@docdir@&$docdir&g
16747 s&@infodir@&$infodir&g
16748 s&@localedir@&$localedir&g
16749 s&@mandir@&$mandir&g
16750 s&\\\${datarootdir}&$datarootdir&g' ;;
16751 esac
16752 _ACEOF
16753
16754 # Neutralize VPATH when `$srcdir' = `.'.
16755 # Shell code in configure.ac might set extrasub.
16756 # FIXME: do we really want to maintain this feature?
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 ac_sed_extra="$ac_vpsub
16759 $extrasub
16760 _ACEOF
16761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16762 :t
16763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16764 s|@configure_input@|$ac_sed_conf_input|;t t
16765 s&@top_builddir@&$ac_top_builddir_sub&;t t
16766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16767 s&@srcdir@&$ac_srcdir&;t t
16768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16769 s&@top_srcdir@&$ac_top_srcdir&;t t
16770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16771 s&@builddir@&$ac_builddir&;t t
16772 s&@abs_builddir@&$ac_abs_builddir&;t t
16773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16774 s&@INSTALL@&$ac_INSTALL&;t t
16775 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16776 $ac_datarootdir_hack
16777 "
16778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16779 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16780
16781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16782 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16783 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16784 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16786 which seems to be undefined. Please make sure it is defined" >&5
16787 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16788 which seems to be undefined. Please make sure it is defined" >&2;}
16789
16790 rm -f "$ac_tmp/stdin"
16791 case $ac_file in
16792 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16793 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16794 esac \
16795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16796 ;;
16797
16798
16799 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16800 $as_echo "$as_me: executing $ac_file commands" >&6;}
16801 ;;
16802 esac
16803
16804
16805 case $ac_file$ac_mode in
16806 "libtool":C)
16807
16808 # See if we are running on zsh, and set the options that allow our
16809 # commands through without removal of \ escapes.
16810 if test -n "${ZSH_VERSION+set}"; then
16811 setopt NO_GLOB_SUBST
16812 fi
16813
16814 cfgfile=${ofile}T
16815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16816 $RM "$cfgfile"
16817
16818 cat <<_LT_EOF >> "$cfgfile"
16819 #! $SHELL
16820 # Generated automatically by $as_me ($PACKAGE) $VERSION
16821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16823
16824 # Provide generalized library-building support services.
16825 # Written by Gordon Matzigkeit, 1996
16826
16827 # Copyright (C) 2014 Free Software Foundation, Inc.
16828 # This is free software; see the source for copying conditions. There is NO
16829 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16830
16831 # GNU Libtool is free software; you can redistribute it and/or modify
16832 # it under the terms of the GNU General Public License as published by
16833 # the Free Software Foundation; either version 2 of of the License, or
16834 # (at your option) any later version.
16835 #
16836 # As a special exception to the GNU General Public License, if you
16837 # distribute this file as part of a program or library that is built
16838 # using GNU Libtool, you may include this file under the same
16839 # distribution terms that you use for the rest of that program.
16840 #
16841 # GNU Libtool is distributed in the hope that it will be useful, but
16842 # WITHOUT ANY WARRANTY; without even the implied warranty of
16843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16844 # GNU General Public License for more details.
16845 #
16846 # You should have received a copy of the GNU General Public License
16847 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16848
16849
16850 # The names of the tagged configurations supported by this script.
16851 available_tags=''
16852
16853 # Configured defaults for sys_lib_dlsearch_path munging.
16854 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16855
16856 # ### BEGIN LIBTOOL CONFIG
16857
16858 # Which release of libtool.m4 was used?
16859 macro_version=$macro_version
16860 macro_revision=$macro_revision
16861
16862 # Whether or not to build shared libraries.
16863 build_libtool_libs=$enable_shared
16864
16865 # Whether or not to build static libraries.
16866 build_old_libs=$enable_static
16867
16868 # What type of objects to build.
16869 pic_mode=$pic_mode
16870
16871 # Whether or not to optimize for fast installation.
16872 fast_install=$enable_fast_install
16873
16874 # Shared archive member basename,for filename based shared library versioning on AIX.
16875 shared_archive_member_spec=$shared_archive_member_spec
16876
16877 # Shell to use when invoking shell scripts.
16878 SHELL=$lt_SHELL
16879
16880 # An echo program that protects backslashes.
16881 ECHO=$lt_ECHO
16882
16883 # The PATH separator for the build system.
16884 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16885
16886 # The host system.
16887 host_alias=$host_alias
16888 host=$host
16889 host_os=$host_os
16890
16891 # The build system.
16892 build_alias=$build_alias
16893 build=$build
16894 build_os=$build_os
16895
16896 # A sed program that does not truncate output.
16897 SED=$lt_SED
16898
16899 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16900 Xsed="\$SED -e 1s/^X//"
16901
16902 # A grep program that handles long lines.
16903 GREP=$lt_GREP
16904
16905 # An ERE matcher.
16906 EGREP=$lt_EGREP
16907
16908 # A literal string matcher.
16909 FGREP=$lt_FGREP
16910
16911 # A BSD- or MS-compatible name lister.
16912 NM=$lt_NM
16913
16914 # Whether we need soft or hard links.
16915 LN_S=$lt_LN_S
16916
16917 # What is the maximum length of a command?
16918 max_cmd_len=$max_cmd_len
16919
16920 # Object file suffix (normally "o").
16921 objext=$ac_objext
16922
16923 # Executable file suffix (normally "").
16924 exeext=$exeext
16925
16926 # whether the shell understands "unset".
16927 lt_unset=$lt_unset
16928
16929 # turn spaces into newlines.
16930 SP2NL=$lt_lt_SP2NL
16931
16932 # turn newlines into spaces.
16933 NL2SP=$lt_lt_NL2SP
16934
16935 # convert \$build file names to \$host format.
16936 to_host_file_cmd=$lt_cv_to_host_file_cmd
16937
16938 # convert \$build files to toolchain format.
16939 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16940
16941 # An object symbol dumper.
16942 OBJDUMP=$lt_OBJDUMP
16943
16944 # Method to check whether dependent libraries are shared objects.
16945 deplibs_check_method=$lt_deplibs_check_method
16946
16947 # Command to use when deplibs_check_method = "file_magic".
16948 file_magic_cmd=$lt_file_magic_cmd
16949
16950 # How to find potential files when deplibs_check_method = "file_magic".
16951 file_magic_glob=$lt_file_magic_glob
16952
16953 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16954 want_nocaseglob=$lt_want_nocaseglob
16955
16956 # DLL creation program.
16957 DLLTOOL=$lt_DLLTOOL
16958
16959 # Command to associate shared and link libraries.
16960 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16961
16962 # The archiver.
16963 AR=$lt_AR
16964
16965 # Flags to create an archive.
16966 AR_FLAGS=$lt_AR_FLAGS
16967
16968 # How to feed a file listing to the archiver.
16969 archiver_list_spec=$lt_archiver_list_spec
16970
16971 # A symbol stripping program.
16972 STRIP=$lt_STRIP
16973
16974 # Commands used to install an old-style archive.
16975 RANLIB=$lt_RANLIB
16976 old_postinstall_cmds=$lt_old_postinstall_cmds
16977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16978
16979 # Whether to use a lock for old archive extraction.
16980 lock_old_archive_extraction=$lock_old_archive_extraction
16981
16982 # A C compiler.
16983 LTCC=$lt_CC
16984
16985 # LTCC compiler flags.
16986 LTCFLAGS=$lt_CFLAGS
16987
16988 # Take the output of nm and produce a listing of raw symbols and C names.
16989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16990
16991 # Transform the output of nm in a proper C declaration.
16992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16993
16994 # Transform the output of nm into a list of symbols to manually relocate.
16995 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16996
16997 # Transform the output of nm in a C name address pair.
16998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16999
17000 # Transform the output of nm in a C name address pair when lib prefix is needed.
17001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17002
17003 # The name lister interface.
17004 nm_interface=$lt_lt_cv_nm_interface
17005
17006 # Specify filename containing input files for \$NM.
17007 nm_file_list_spec=$lt_nm_file_list_spec
17008
17009 # The root where to search for dependent libraries,and where our libraries should be installed.
17010 lt_sysroot=$lt_sysroot
17011
17012 # Command to truncate a binary pipe.
17013 lt_truncate_bin=$lt_lt_cv_truncate_bin
17014
17015 # The name of the directory that contains temporary libtool files.
17016 objdir=$objdir
17017
17018 # Used to examine libraries when file_magic_cmd begins with "file".
17019 MAGIC_CMD=$MAGIC_CMD
17020
17021 # Must we lock files when doing compilation?
17022 need_locks=$lt_need_locks
17023
17024 # Manifest tool.
17025 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17026
17027 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17028 DSYMUTIL=$lt_DSYMUTIL
17029
17030 # Tool to change global to local symbols on Mac OS X.
17031 NMEDIT=$lt_NMEDIT
17032
17033 # Tool to manipulate fat objects and archives on Mac OS X.
17034 LIPO=$lt_LIPO
17035
17036 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17037 OTOOL=$lt_OTOOL
17038
17039 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17040 OTOOL64=$lt_OTOOL64
17041
17042 # Old archive suffix (normally "a").
17043 libext=$libext
17044
17045 # Shared library suffix (normally ".so").
17046 shrext_cmds=$lt_shrext_cmds
17047
17048 # The commands to extract the exported symbol list from a shared archive.
17049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17050
17051 # Variables whose values should be saved in libtool wrapper scripts and
17052 # restored at link time.
17053 variables_saved_for_relink=$lt_variables_saved_for_relink
17054
17055 # Do we need the "lib" prefix for modules?
17056 need_lib_prefix=$need_lib_prefix
17057
17058 # Do we need a version for libraries?
17059 need_version=$need_version
17060
17061 # Library versioning type.
17062 version_type=$version_type
17063
17064 # Shared library runtime path variable.
17065 runpath_var=$runpath_var
17066
17067 # Shared library path variable.
17068 shlibpath_var=$shlibpath_var
17069
17070 # Is shlibpath searched before the hard-coded library search path?
17071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17072
17073 # Format of library name prefix.
17074 libname_spec=$lt_libname_spec
17075
17076 # List of archive names. First name is the real one, the rest are links.
17077 # The last name is the one that the linker finds with -lNAME
17078 library_names_spec=$lt_library_names_spec
17079
17080 # The coded name of the library, if different from the real name.
17081 soname_spec=$lt_soname_spec
17082
17083 # Permission mode override for installation of shared libraries.
17084 install_override_mode=$lt_install_override_mode
17085
17086 # Command to use after installation of a shared archive.
17087 postinstall_cmds=$lt_postinstall_cmds
17088
17089 # Command to use after uninstallation of a shared archive.
17090 postuninstall_cmds=$lt_postuninstall_cmds
17091
17092 # Commands used to finish a libtool library installation in a directory.
17093 finish_cmds=$lt_finish_cmds
17094
17095 # As "finish_cmds", except a single script fragment to be evaled but
17096 # not shown.
17097 finish_eval=$lt_finish_eval
17098
17099 # Whether we should hardcode library paths into libraries.
17100 hardcode_into_libs=$hardcode_into_libs
17101
17102 # Compile-time system search path for libraries.
17103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17104
17105 # Detected run-time system search path for libraries.
17106 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17107
17108 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17109 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17110
17111 # Whether dlopen is supported.
17112 dlopen_support=$enable_dlopen
17113
17114 # Whether dlopen of programs is supported.
17115 dlopen_self=$enable_dlopen_self
17116
17117 # Whether dlopen of statically linked programs is supported.
17118 dlopen_self_static=$enable_dlopen_self_static
17119
17120 # Commands to strip libraries.
17121 old_striplib=$lt_old_striplib
17122 striplib=$lt_striplib
17123
17124
17125 # The linker used to build libraries.
17126 LD=$lt_LD
17127
17128 # How to create reloadable object files.
17129 reload_flag=$lt_reload_flag
17130 reload_cmds=$lt_reload_cmds
17131
17132 # Commands used to build an old-style archive.
17133 old_archive_cmds=$lt_old_archive_cmds
17134
17135 # A language specific compiler.
17136 CC=$lt_compiler
17137
17138 # Is the compiler the GNU compiler?
17139 with_gcc=$GCC
17140
17141 # Compiler flag to turn off builtin functions.
17142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17143
17144 # Additional compiler flags for building library objects.
17145 pic_flag=$lt_lt_prog_compiler_pic
17146
17147 # How to pass a linker flag through the compiler.
17148 wl=$lt_lt_prog_compiler_wl
17149
17150 # Compiler flag to prevent dynamic linking.
17151 link_static_flag=$lt_lt_prog_compiler_static
17152
17153 # Does compiler simultaneously support -c and -o options?
17154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17155
17156 # Whether or not to add -lc for building shared libraries.
17157 build_libtool_need_lc=$archive_cmds_need_lc
17158
17159 # Whether or not to disallow shared libs when runtime libs are static.
17160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17161
17162 # Compiler flag to allow reflexive dlopens.
17163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17164
17165 # Compiler flag to generate shared objects directly from archives.
17166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17167
17168 # Whether the compiler copes with passing no objects directly.
17169 compiler_needs_object=$lt_compiler_needs_object
17170
17171 # Create an old-style archive from a shared archive.
17172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17173
17174 # Create a temporary old-style archive to link instead of a shared archive.
17175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17176
17177 # Commands used to build a shared archive.
17178 archive_cmds=$lt_archive_cmds
17179 archive_expsym_cmds=$lt_archive_expsym_cmds
17180
17181 # Commands used to build a loadable module if different from building
17182 # a shared archive.
17183 module_cmds=$lt_module_cmds
17184 module_expsym_cmds=$lt_module_expsym_cmds
17185
17186 # Whether we are building with GNU ld or not.
17187 with_gnu_ld=$lt_with_gnu_ld
17188
17189 # Flag that allows shared libraries with undefined symbols to be built.
17190 allow_undefined_flag=$lt_allow_undefined_flag
17191
17192 # Flag that enforces no undefined symbols.
17193 no_undefined_flag=$lt_no_undefined_flag
17194
17195 # Flag to hardcode \$libdir into a binary during linking.
17196 # This must work even if \$libdir does not exist
17197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17198
17199 # Whether we need a single "-rpath" flag with a separated argument.
17200 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17201
17202 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17203 # DIR into the resulting binary.
17204 hardcode_direct=$hardcode_direct
17205
17206 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17207 # DIR into the resulting binary and the resulting library dependency is
17208 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17209 # library is relocated.
17210 hardcode_direct_absolute=$hardcode_direct_absolute
17211
17212 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17213 # into the resulting binary.
17214 hardcode_minus_L=$hardcode_minus_L
17215
17216 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17217 # into the resulting binary.
17218 hardcode_shlibpath_var=$hardcode_shlibpath_var
17219
17220 # Set to "yes" if building a shared library automatically hardcodes DIR
17221 # into the library and all subsequent libraries and executables linked
17222 # against it.
17223 hardcode_automatic=$hardcode_automatic
17224
17225 # Set to yes if linker adds runtime paths of dependent libraries
17226 # to runtime path list.
17227 inherit_rpath=$inherit_rpath
17228
17229 # Whether libtool must link a program against all its dependency libraries.
17230 link_all_deplibs=$link_all_deplibs
17231
17232 # Set to "yes" if exported symbols are required.
17233 always_export_symbols=$always_export_symbols
17234
17235 # The commands to list exported symbols.
17236 export_symbols_cmds=$lt_export_symbols_cmds
17237
17238 # Symbols that should not be listed in the preloaded symbols.
17239 exclude_expsyms=$lt_exclude_expsyms
17240
17241 # Symbols that must always be exported.
17242 include_expsyms=$lt_include_expsyms
17243
17244 # Commands necessary for linking programs (against libraries) with templates.
17245 prelink_cmds=$lt_prelink_cmds
17246
17247 # Commands necessary for finishing linking programs.
17248 postlink_cmds=$lt_postlink_cmds
17249
17250 # Specify filename containing input files.
17251 file_list_spec=$lt_file_list_spec
17252
17253 # How to hardcode a shared library path into an executable.
17254 hardcode_action=$hardcode_action
17255
17256 # ### END LIBTOOL CONFIG
17257
17258 _LT_EOF
17259
17260 cat <<'_LT_EOF' >> "$cfgfile"
17261
17262 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17263
17264 # func_munge_path_list VARIABLE PATH
17265 # -----------------------------------
17266 # VARIABLE is name of variable containing _space_ separated list of
17267 # directories to be munged by the contents of PATH, which is string
17268 # having a format:
17269 # "DIR[:DIR]:"
17270 # string "DIR[ DIR]" will be prepended to VARIABLE
17271 # ":DIR[:DIR]"
17272 # string "DIR[ DIR]" will be appended to VARIABLE
17273 # "DIRP[:DIRP]::[DIRA:]DIRA"
17274 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17275 # "DIRA[ DIRA]" will be appended to VARIABLE
17276 # "DIR[:DIR]"
17277 # VARIABLE will be replaced by "DIR[ DIR]"
17278 func_munge_path_list ()
17279 {
17280 case x$2 in
17281 x)
17282 ;;
17283 *:)
17284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17285 ;;
17286 x:*)
17287 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17288 ;;
17289 *::*)
17290 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17291 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17292 ;;
17293 *)
17294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17295 ;;
17296 esac
17297 }
17298
17299
17300 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17301 func_cc_basename ()
17302 {
17303 for cc_temp in $*""; do
17304 case $cc_temp in
17305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17307 \-*) ;;
17308 *) break;;
17309 esac
17310 done
17311 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17312 }
17313
17314
17315 # ### END FUNCTIONS SHARED WITH CONFIGURE
17316
17317 _LT_EOF
17318
17319 case $host_os in
17320 aix3*)
17321 cat <<\_LT_EOF >> "$cfgfile"
17322 # AIX sometimes has problems with the GCC collect2 program. For some
17323 # reason, if we set the COLLECT_NAMES environment variable, the problems
17324 # vanish in a puff of smoke.
17325 if test set != "${COLLECT_NAMES+set}"; then
17326 COLLECT_NAMES=
17327 export COLLECT_NAMES
17328 fi
17329 _LT_EOF
17330 ;;
17331 esac
17332
17333
17334 ltmain=$ac_aux_dir/ltmain.sh
17335
17336
17337 # We use sed instead of cat because bash on DJGPP gets confused if
17338 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17339 # text mode, it properly converts lines to CR/LF. This bash problem
17340 # is reportedly fixed, but why not run on old versions too?
17341 sed '$q' "$ltmain" >> "$cfgfile" \
17342 || (rm -f "$cfgfile"; exit 1)
17343
17344 mv -f "$cfgfile" "$ofile" ||
17345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17346 chmod +x "$ofile"
17347
17348 ;;
17349 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17350 # Older Autoconf quotes --file arguments for eval, but not when files
17351 # are listed without --file. Let's play safe and only enable the eval
17352 # if we detect the quoting.
17353 case $CONFIG_FILES in
17354 *\'*) eval set x "$CONFIG_FILES" ;;
17355 *) set x $CONFIG_FILES ;;
17356 esac
17357 shift
17358 for mf
17359 do
17360 # Strip MF so we end up with the name of the file.
17361 mf=`echo "$mf" | sed -e 's/:.*$//'`
17362 # Check whether this is an Automake generated Makefile or not.
17363 # We used to match only the files named 'Makefile.in', but
17364 # some people rename them; so instead we look at the file content.
17365 # Grep'ing the first line is not enough: some people post-process
17366 # each Makefile.in and add a new line on top of each file to say so.
17367 # Grep'ing the whole file is not good either: AIX grep has a line
17368 # limit of 2048, but all sed's we know have understand at least 4000.
17369 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17370 dirpart=`$as_dirname -- "$mf" ||
17371 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17372 X"$mf" : 'X\(//\)[^/]' \| \
17373 X"$mf" : 'X\(//\)$' \| \
17374 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17375 $as_echo X"$mf" |
17376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17377 s//\1/
17378 q
17379 }
17380 /^X\(\/\/\)[^/].*/{
17381 s//\1/
17382 q
17383 }
17384 /^X\(\/\/\)$/{
17385 s//\1/
17386 q
17387 }
17388 /^X\(\/\).*/{
17389 s//\1/
17390 q
17391 }
17392 s/.*/./; q'`
17393 else
17394 continue
17395 fi
17396 # Extract the definition of DEPDIR, am__include, and am__quote
17397 # from the Makefile without running 'make'.
17398 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17399 test -z "$DEPDIR" && continue
17400 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17401 test -z "$am__include" && continue
17402 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17403 # Find all dependency output files, they are included files with
17404 # $(DEPDIR) in their names. We invoke sed twice because it is the
17405 # simplest approach to changing $(DEPDIR) to its actual value in the
17406 # expansion.
17407 for file in `sed -n "
17408 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17409 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17410 # Make sure the directory exists.
17411 test -f "$dirpart/$file" && continue
17412 fdir=`$as_dirname -- "$file" ||
17413 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17414 X"$file" : 'X\(//\)[^/]' \| \
17415 X"$file" : 'X\(//\)$' \| \
17416 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17417 $as_echo X"$file" |
17418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17419 s//\1/
17420 q
17421 }
17422 /^X\(\/\/\)[^/].*/{
17423 s//\1/
17424 q
17425 }
17426 /^X\(\/\/\)$/{
17427 s//\1/
17428 q
17429 }
17430 /^X\(\/\).*/{
17431 s//\1/
17432 q
17433 }
17434 s/.*/./; q'`
17435 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17436 # echo "creating $dirpart/$file"
17437 echo '# dummy' > "$dirpart/$file"
17438 done
17439 done
17440 }
17441 ;;
17442 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17443 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17444 esac ;;
17445 "po/stamp-it":C)
17446 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17447 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
17448 fi
17449 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17450 >"po/stamp-it.tmp"
17451 sed '/^#/d
17452 s/^[[].*] *//
17453 /^[ ]*$/d
17454 '"s|^| $ac_top_srcdir/|" \
17455 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17456
17457 sed '/^POTFILES =/,/[^\\]$/ {
17458 /^POTFILES =/!d
17459 r po/POTFILES
17460 }
17461 ' "po/Makefile.in" >"po/Makefile"
17462 rm -f "po/Makefile.tmp"
17463 mv "po/stamp-it.tmp" "po/stamp-it"
17464 ;;
17465
17466 esac
17467 done # for ac_tag
17468
17469
17470 as_fn_exit 0
17471 _ACEOF
17472 ac_clean_files=$ac_clean_files_save
17473
17474 test $ac_write_fail = 0 ||
17475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17476
17477
17478 # configure is writing to config.log, and then calls config.status.
17479 # config.status does its own redirection, appending to config.log.
17480 # Unfortunately, on DOS this fails, as config.log is still kept open
17481 # by configure, so config.status won't be able to write to it; its
17482 # output is simply discarded. So we exec the FD to /dev/null,
17483 # effectively closing config.log, so it can be properly (re)opened and
17484 # appended to by config.status. When coming back to configure, we
17485 # need to make the FD available again.
17486 if test "$no_create" != yes; then
17487 ac_cs_success=:
17488 ac_config_status_args=
17489 test "$silent" = yes &&
17490 ac_config_status_args="$ac_config_status_args --quiet"
17491 exec 5>/dev/null
17492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17493 exec 5>>config.log
17494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17495 # would make configure fail if this is the last instruction.
17496 $ac_cs_success || as_fn_exit 1
17497 fi
17498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17501 fi
17502