Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for curtain 0.3.
4 #
5 # Report bugs to <http://code.google.com/p/ardesia/issues/list>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and
250 $0: http://code.google.com/p/ardesia/issues/list about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='curtain'
572 PACKAGE_TARNAME='curtain'
573 PACKAGE_VERSION='0.3'
574 PACKAGE_STRING='curtain 0.3'
575 PACKAGE_BUGREPORT='http://code.google.com/p/ardesia/issues/list'
576 PACKAGE_URL=''
577
578 ac_default_prefix=/usr
579 ac_unique_file="src/curtain.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 XDG_UTILS
621 curtain_LIBS
622 curtain_CFLAGS
623 PLATFORM_WIN32_FALSE
624 PLATFORM_WIN32_TRUE
625 WITH_GNU_LD_FALSE
626 WITH_GNU_LD_TRUE
627 GTK_LIBS
628 GTK_CFLAGS
629 MKINSTALLDIRS
630 POSUB
631 POFILES
632 PO_IN_DATADIR_FALSE
633 PO_IN_DATADIR_TRUE
634 INTLLIBS
635 INSTOBJEXT
636 GMOFILES
637 CATOBJEXT
638 CATALOGS
639 MSGFMT_OPTS
640 DATADIRNAME
641 ALL_LINGUAS
642 INTLTOOL_PERL
643 GMSGFMT
644 MSGFMT
645 MSGMERGE
646 XGETTEXT
647 INTLTOOL_POLICY_RULE
648 INTLTOOL_SERVICE_RULE
649 INTLTOOL_THEME_RULE
650 INTLTOOL_SCHEMAS_RULE
651 INTLTOOL_CAVES_RULE
652 INTLTOOL_XML_NOMERGE_RULE
653 INTLTOOL_XML_RULE
654 INTLTOOL_KBD_RULE
655 INTLTOOL_XAM_RULE
656 INTLTOOL_UI_RULE
657 INTLTOOL_SOUNDLIST_RULE
658 INTLTOOL_SHEET_RULE
659 INTLTOOL_SERVER_RULE
660 INTLTOOL_PONG_RULE
661 INTLTOOL_OAF_RULE
662 INTLTOOL_PROP_RULE
663 INTLTOOL_KEYS_RULE
664 INTLTOOL_DIRECTORY_RULE
665 INTLTOOL_DESKTOP_RULE
666 intltool__v_merge_options_0
667 intltool__v_merge_options_
668 INTLTOOL_V_MERGE_OPTIONS
669 INTLTOOL__v_MERGE_0
670 INTLTOOL__v_MERGE_
671 INTLTOOL_V_MERGE
672 INTLTOOL_EXTRACT
673 INTLTOOL_MERGE
674 INTLTOOL_UPDATE
675 USE_NLS
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 MAINT
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 am__fastdepCCAS_FALSE
683 am__fastdepCCAS_TRUE
684 CCASDEPMODE
685 CCASFLAGS
686 CCAS
687 CPP
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 LN_S
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 EGREP
704 GREP
705 SED
706 LIBTOOL
707 OBJDUMP
708 DLLTOOL
709 AS
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__quote
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 GETTEXT_PACKAGE
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_silent_rules
805 enable_dependency_tracking
806 enable_static
807 enable_shared
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 with_sysroot
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_nls
815 enable_gtktest
816 '
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CPP
826 CCAS
827 CCASFLAGS
828 PKG_CONFIG
829 PKG_CONFIG_PATH
830 PKG_CONFIG_LIBDIR
831 curtain_CFLAGS
832 curtain_LIBS'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used" >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures curtain 0.3 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/curtain]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of curtain 0.3:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: `make V=1')
1454 --disable-silent-rules verbose build output (undo: `make V=0')
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
1457 --enable-static[=PKGS] build static libraries [default=no]
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-maintainer-mode enable make rules and dependencies not useful
1463 (and sometimes confusing) to the casual installer
1464 --disable-nls do not use Native Language Support
1465 --disable-gtktest do not try to compile and run a test GTK+ program
1466
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 both]
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-sysroot=DIR Search for dependent libraries within DIR
1474 (or the compiler's sysroot if not specified).
1475
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485 CCAS assembler compiler command (defaults to CC)
1486 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1487 PKG_CONFIG path to pkg-config utility
1488 PKG_CONFIG_PATH
1489 directories to add to pkg-config's search path
1490 PKG_CONFIG_LIBDIR
1491 path overriding pkg-config's built-in search path
1492 curtain_CFLAGS
1493 C compiler flags for curtain, overriding pkg-config
1494 curtain_LIBS
1495 linker flags for curtain, overriding pkg-config
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <http://code.google.com/p/ardesia/issues/list>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 curtain configure 0.3
1564 generated by GNU Autoconf 2.68
1565
1566 Copyright (C) 2010 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_link ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 $as_test_x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_link
1660
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
1691
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_cpp
1728
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
1764 fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_run
1770
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1798
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_func
1837
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_header_mongrel ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval \${$3+:} false; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 else
1856 # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1866 else
1867 ac_header_compiler=no
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1872
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1882 else
1883 ac_header_preproc=no
1884 fi
1885 rm -f conftest.err conftest.i conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1888
1889 # So? What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891 yes:no: )
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 ;;
1897 no:yes:* )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ( $as_echo "## ----------------------------------------------------------- ##
1909 ## Report this to http://code.google.com/p/ardesia/issues/list ##
1910 ## ----------------------------------------------------------- ##"
1911 ) | sed "s/^/$as_me: WARNING: /" >&2
1912 ;;
1913 esac
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 eval "$3=\$ac_header_compiler"
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_mongrel
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1931
1932 It was created by curtain $as_me 0.3, which was
1933 generated by GNU Autoconf 2.68. Invocation command line was
1934
1935 $ $0 $@
1936
1937 _ACEOF
1938 exec 5>>config.log
1939 {
1940 cat <<_ASUNAME
1941 ## --------- ##
1942 ## Platform. ##
1943 ## --------- ##
1944
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1953
1954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1961
1962 _ASUNAME
1963
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 $as_echo "PATH: $as_dir"
1970 done
1971 IFS=$as_save_IFS
1972
1973 } >&5
1974
1975 cat >&5 <<_ACEOF
1976
1977
1978 ## ----------- ##
1979 ## Core tests. ##
1980 ## ----------- ##
1981
1982 _ACEOF
1983
1984
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_configure_args=
1991 ac_configure_args0=
1992 ac_configure_args1=
1993 ac_must_keep_next=false
1994 for ac_pass in 1 2
1995 do
1996 for ac_arg
1997 do
1998 case $ac_arg in
1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001 | -silent | --silent | --silen | --sile | --sil)
2002 continue ;;
2003 *\'*)
2004 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 esac
2006 case $ac_pass in
2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008 2)
2009 as_fn_append ac_configure_args1 " '$ac_arg'"
2010 if test $ac_must_keep_next = true; then
2011 ac_must_keep_next=false # Got value, back to normal.
2012 else
2013 case $ac_arg in
2014 *=* | --config-cache | -C | -disable-* | --disable-* \
2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017 | -with-* | --with-* | -without-* | --without-* | --x)
2018 case "$ac_configure_args0 " in
2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020 esac
2021 ;;
2022 -* ) ac_must_keep_next=true ;;
2023 esac
2024 fi
2025 as_fn_append ac_configure_args " '$ac_arg'"
2026 ;;
2027 esac
2028 done
2029 done
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2032
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log. We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039 # Save into config.log some information that might help in debugging.
2040 {
2041 echo
2042
2043 $as_echo "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2046 echo
2047 # The following way of writing the cache mishandles newlines in values,
2048 (
2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in #(
2052 *${as_nl}*)
2053 case $ac_var in #(
2054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056 esac
2057 case $ac_var in #(
2058 _ | IFS | as_nl) ;; #(
2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060 *) { eval $ac_var=; unset $ac_var;} ;;
2061 esac ;;
2062 esac
2063 done
2064 (set) 2>&1 |
2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066 *${as_nl}ac_space=\ *)
2067 sed -n \
2068 "s/'\''/'\''\\\\'\'''\''/g;
2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070 ;; #(
2071 *)
2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073 ;;
2074 esac |
2075 sort
2076 )
2077 echo
2078
2079 $as_echo "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2082 echo
2083 for ac_var in $ac_subst_vars
2084 do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac
2089 $as_echo "$ac_var='\''$ac_val'\''"
2090 done | sort
2091 echo
2092
2093 if test -n "$ac_subst_files"; then
2094 $as_echo "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2097 echo
2098 for ac_var in $ac_subst_files
2099 do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 esac
2104 $as_echo "$ac_var='\''$ac_val'\''"
2105 done | sort
2106 echo
2107 fi
2108
2109 if test -s confdefs.h; then
2110 $as_echo "## ----------- ##
2111 ## confdefs.h. ##
2112 ## ----------- ##"
2113 echo
2114 cat confdefs.h
2115 echo
2116 fi
2117 test "$ac_signal" != 0 &&
2118 $as_echo "$as_me: caught signal $ac_signal"
2119 $as_echo "$as_me: exit $exit_status"
2120 } >&5
2121 rm -f core *.core core.conftest.* &&
2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123 exit $exit_status
2124 ' 0
2125 for ac_signal in 1 2 13 15; do
2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127 done
2128 ac_signal=0
2129
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2132
2133 $as_echo "/* confdefs.h */" > confdefs.h
2134
2135 # Predefined preprocessor variables.
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_NAME "$PACKAGE_NAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_STRING "$PACKAGE_STRING"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_URL "$PACKAGE_URL"
2159 _ACEOF
2160
2161
2162 # Let the site file select an alternate cache file if it wants to.
2163 # Prefer an explicitly selected file to automatically selected ones.
2164 ac_site_file1=NONE
2165 ac_site_file2=NONE
2166 if test -n "$CONFIG_SITE"; then
2167 # We do not want a PATH search for config.site.
2168 case $CONFIG_SITE in #((
2169 -*) ac_site_file1=./$CONFIG_SITE;;
2170 */*) ac_site_file1=$CONFIG_SITE;;
2171 *) ac_site_file1=./$CONFIG_SITE;;
2172 esac
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2176 else
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182 test "x$ac_site_file" = xNONE && continue
2183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2187 . "$ac_site_file" \
2188 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 as_fn_error $? "failed to load site script $ac_site_file
2191 See \`config.log' for more details" "$LINENO" 5; }
2192 fi
2193 done
2194
2195 if test -r "$cache_file"; then
2196 # Some versions of bash will fail to source /dev/null (special files
2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200 $as_echo "$as_me: loading cache $cache_file" >&6;}
2201 case $cache_file in
2202 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203 *) . "./$cache_file";;
2204 esac
2205 fi
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208 $as_echo "$as_me: creating cache $cache_file" >&6;}
2209 >$cache_file
2210 fi
2211
2212 # Check that the precious variables saved in the cache have kept the same
2213 # value.
2214 ac_cache_corrupted=false
2215 for ac_var in $ac_precious_vars; do
2216 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217 eval ac_new_set=\$ac_env_${ac_var}_set
2218 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219 eval ac_new_val=\$ac_env_${ac_var}_value
2220 case $ac_old_set,$ac_new_set in
2221 set,)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,set)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,);;
2230 *)
2231 if test "x$ac_old_val" != "x$ac_new_val"; then
2232 # differences in whitespace do not lead to failure.
2233 ac_old_val_w=`echo x $ac_old_val`
2234 ac_new_val_w=`echo x $ac_new_val`
2235 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238 ac_cache_corrupted=:
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242 eval $ac_var=\$ac_old_val
2243 fi
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2245 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2247 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2248 fi;;
2249 esac
2250 # Pass precious variables to config.status.
2251 if test "$ac_new_set" = set; then
2252 case $ac_new_val in
2253 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 *) ac_arg=$ac_var=$ac_new_val ;;
2255 esac
2256 case " $ac_configure_args " in
2257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2258 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2259 esac
2260 fi
2261 done
2262 if $ac_cache_corrupted; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 fi
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2272
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279
2280
2281
2282
2283
2284
2285 am__api_version='1.11'
2286
2287 ac_aux_dir=
2288 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289 if test -f "$ac_dir/install-sh"; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 break
2293 elif test -f "$ac_dir/install.sh"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 break
2297 elif test -f "$ac_dir/shtool"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/shtool install -c"
2300 break
2301 fi
2302 done
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305 fi
2306
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
2315
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2322 # AIX /bin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343 ./ | .// | /[cC]/* | \
2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346 /usr/ucb/* ) ;;
2347 *)
2348 # OSF1 and SCO ODT 3.0 have their own names for install.
2349 # Don't use installbsd from OSF since it installs stuff as root
2350 # by default.
2351 for ac_prog in ginstall scoinst install; do
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2354 if test $ac_prog = install &&
2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356 # AIX install. It has an incompatible calling convention.
2357 :
2358 elif test $ac_prog = install &&
2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # program-specific install script used by HP pwplus--don't use.
2361 :
2362 else
2363 rm -rf conftest.one conftest.two conftest.dir
2364 echo one > conftest.one
2365 echo two > conftest.two
2366 mkdir conftest.dir
2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368 test -s conftest.one && test -s conftest.two &&
2369 test -s conftest.dir/conftest.one &&
2370 test -s conftest.dir/conftest.two
2371 then
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373 break 3
2374 fi
2375 fi
2376 fi
2377 done
2378 done
2379 ;;
2380 esac
2381
2382 done
2383 IFS=$as_save_IFS
2384
2385 rm -rf conftest.one conftest.two conftest.dir
2386
2387 fi
2388 if test "${ac_cv_path_install+set}" = set; then
2389 INSTALL=$ac_cv_path_install
2390 else
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for INSTALL within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 INSTALL=$ac_install_sh
2396 fi
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2400
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Just in case
2412 sleep 1
2413 echo timestamp > conftest.file
2414 # Reject unsafe characters in $srcdir or the absolute working directory
2415 # name. Accept space and tab only in the latter.
2416 am_lf='
2417 '
2418 case `pwd` in
2419 *[\\\"\#\$\&\'\`$am_lf]*)
2420 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2421 esac
2422 case $srcdir in
2423 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2424 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2425 esac
2426
2427 # Do `set' in a subshell so we don't clobber the current shell's
2428 # arguments. Must try -L first in case configure is actually a
2429 # symlink; some systems play weird games with the mod time of symlinks
2430 # (eg FreeBSD returns the mod time of the symlink's containing
2431 # directory).
2432 if (
2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434 if test "$*" = "X"; then
2435 # -L didn't work.
2436 set X `ls -t "$srcdir/configure" conftest.file`
2437 fi
2438 rm -f conftest.file
2439 if test "$*" != "X $srcdir/configure conftest.file" \
2440 && test "$*" != "X conftest.file $srcdir/configure"; then
2441
2442 # If neither matched, then we have a broken ls. This can happen
2443 # if, for instance, CONFIG_SHELL is bash and it inherits a
2444 # broken ls alias from the environment. This has actually
2445 # happened. Such a system could not be considered "sane".
2446 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2447 alias in your environment" "$LINENO" 5
2448 fi
2449
2450 test "$2" = conftest.file
2451 )
2452 then
2453 # Ok.
2454 :
2455 else
2456 as_fn_error $? "newly created file is older than distributed files!
2457 Check your system clock" "$LINENO" 5
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2460 $as_echo "yes" >&6; }
2461 test "$program_prefix" != NONE &&
2462 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2463 # Use a double $ so make ignores it.
2464 test "$program_suffix" != NONE &&
2465 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2466 # Double any \ or $.
2467 # By default was `s,x,x', remove it if useless.
2468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2470
2471 # expand $ac_aux_dir to an absolute path
2472 am_aux_dir=`cd $ac_aux_dir && pwd`
2473
2474 if test x"${MISSING+set}" != xset; then
2475 case $am_aux_dir in
2476 *\ * | *\ *)
2477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478 *)
2479 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2480 esac
2481 fi
2482 # Use eval to expand $SHELL
2483 if eval "$MISSING --run true"; then
2484 am_missing_run="$MISSING --run "
2485 else
2486 am_missing_run=
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2488 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2489 fi
2490
2491 if test x"${install_sh}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495 *)
2496 install_sh="\${SHELL} $am_aux_dir/install-sh"
2497 esac
2498 fi
2499
2500 # Installed binaries are usually stripped using `strip' when the user
2501 # run `make install-strip'. However `strip' might not be the right
2502 # tool to use in cross-compilation environments, therefore Automake
2503 # will honor the `STRIP' environment variable to overrule this program.
2504 if test "$cross_compiling" != no; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}strip; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_STRIP+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$STRIP"; then
2514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 STRIP=$ac_cv_prog_STRIP
2534 if test -n "$STRIP"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2536 $as_echo "$STRIP" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$ac_cv_prog_STRIP"; then
2545 ac_ct_STRIP=$STRIP
2546 # Extract the first word of "strip", so it can be a program name with args.
2547 set dummy strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$ac_ct_STRIP"; then
2554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_ac_ct_STRIP="strip"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574 if test -n "$ac_ct_STRIP"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2576 $as_echo "$ac_ct_STRIP" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582 if test "x$ac_ct_STRIP" = x; then
2583 STRIP=":"
2584 else
2585 case $cross_compiling:$ac_tool_warned in
2586 yes:)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591 STRIP=$ac_ct_STRIP
2592 fi
2593 else
2594 STRIP="$ac_cv_prog_STRIP"
2595 fi
2596
2597 fi
2598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2602 if test -z "$MKDIR_P"; then
2603 if ${ac_cv_path_mkdir+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in mkdir gmkdir; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2615 'mkdir (GNU coreutils) '* | \
2616 'mkdir (coreutils) '* | \
2617 'mkdir (fileutils) '4.1*)
2618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2619 break 3;;
2620 esac
2621 done
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627
2628 test -d ./--version && rmdir ./--version
2629 if test "${ac_cv_path_mkdir+set}" = set; then
2630 MKDIR_P="$ac_cv_path_mkdir -p"
2631 else
2632 # As a last resort, use the slow shell script. Don't cache a
2633 # value for MKDIR_P within a source directory, because that will
2634 # break other packages using the cache if that directory is
2635 # removed, or if the value is a relative name.
2636 MKDIR_P="$ac_install_sh -d"
2637 fi
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2640 $as_echo "$MKDIR_P" >&6; }
2641
2642 mkdir_p="$MKDIR_P"
2643 case $mkdir_p in
2644 [\\/$]* | ?:[\\/]*) ;;
2645 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2646 esac
2647
2648 for ac_prog in gawk mawk nawk awk
2649 do
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if ${ac_cv_prog_AWK+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$AWK"; then
2658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_AWK="$ac_prog"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 AWK=$ac_cv_prog_AWK
2678 if test -n "$AWK"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2680 $as_echo "$AWK" >&6; }
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687 test -n "$AWK" && break
2688 done
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2692 set x ${MAKE-make}
2693 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2694 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 cat >conftest.make <<\_ACEOF
2698 SHELL = /bin/sh
2699 all:
2700 @echo '@@@%%%=$(MAKE)=@@@%%%'
2701 _ACEOF
2702 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2704 *@@@%%%=?*=@@@%%%*)
2705 eval ac_cv_prog_make_${ac_make}_set=yes;;
2706 *)
2707 eval ac_cv_prog_make_${ac_make}_set=no;;
2708 esac
2709 rm -f conftest.make
2710 fi
2711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2713 $as_echo "yes" >&6; }
2714 SET_MAKE=
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 SET_MAKE="MAKE=${MAKE-make}"
2719 fi
2720
2721 rm -rf .tst 2>/dev/null
2722 mkdir .tst 2>/dev/null
2723 if test -d .tst; then
2724 am__leading_dot=.
2725 else
2726 am__leading_dot=_
2727 fi
2728 rmdir .tst 2>/dev/null
2729
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732 # is not polluted with repeated "-I."
2733 am__isrc=' -I$(srcdir)'
2734 # test to see if srcdir already configured
2735 if test -f $srcdir/config.status; then
2736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2737 fi
2738 fi
2739
2740 # test whether we have cygpath
2741 if test -z "$CYGPATH_W"; then
2742 if (cygpath --version) >/dev/null 2>/dev/null; then
2743 CYGPATH_W='cygpath -w'
2744 else
2745 CYGPATH_W=echo
2746 fi
2747 fi
2748
2749
2750 # Define the identity of the package.
2751 PACKAGE='curtain'
2752 VERSION='0.3'
2753
2754
2755 # Some tools Automake needs.
2756
2757 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771 # We need awk for the "check" target. The system "awk" is bad on
2772 # some platforms.
2773 # Always define AMTAR for backward compatibility. Yes, it's still used
2774 # in the wild :-( We should find a proper way to deprecate it ...
2775 AMTAR='$${TAR-tar}'
2776
2777 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2778
2779
2780
2781
2782
2783 ac_config_headers="$ac_config_headers config.h"
2784
2785
2786 # Enable silent build rules by default, requires at least
2787 # Automake-1.11. Disable by either passing --disable-silent-rules to
2788 # configure or passing V=1 to make
2789 # Check whether --enable-silent-rules was given.
2790 if test "${enable_silent_rules+set}" = set; then :
2791 enableval=$enable_silent_rules;
2792 fi
2793
2794 case $enable_silent_rules in
2795 yes) AM_DEFAULT_VERBOSITY=0;;
2796 no) AM_DEFAULT_VERBOSITY=1;;
2797 *) AM_DEFAULT_VERBOSITY=0;;
2798 esac
2799 am_make=${MAKE-make}
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2801 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2802 if ${am_cv_make_support_nested_variables+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if $as_echo 'TRUE=$(BAR$(V))
2806 BAR0=false
2807 BAR1=true
2808 V=1
2809 am__doit:
2810 @$(TRUE)
2811 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2812 am_cv_make_support_nested_variables=yes
2813 else
2814 am_cv_make_support_nested_variables=no
2815 fi
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2818 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2819 if test $am_cv_make_support_nested_variables = yes; then
2820 AM_V='$(V)'
2821 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2822 else
2823 AM_V=$AM_DEFAULT_VERBOSITY
2824 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2825 fi
2826 AM_BACKSLASH='\'
2827
2828
2829 # gettext i18n support
2830 GETTEXT_PACKAGE=curtain
2831
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
2835 _ACEOF
2836
2837
2838 # Determine a C compiler to use
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_CC+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$ac_cv_prog_CC"; then
2884 ac_ct_CC=$CC
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 else
2933 CC="$ac_cv_prog_CC"
2934 fi
2935
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 fi
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 ac_prog_rejected=no
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
2998 continue
2999 fi
3000 ac_cv_prog_CC="cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3011 shift
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3016 shift
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018 fi
3019 fi
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_CC+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$CC" && break
3075 done
3076 fi
3077 if test -z "$CC"; then
3078 ac_ct_CC=$CC
3079 for ac_prog in cl.exe
3080 do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 test -n "$ac_ct_CC" && break
3119 done
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 fi
3133
3134 fi
3135
3136
3137 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details" "$LINENO" 5; }
3141
3142 # Provide some information about the compiler.
3143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144 set X $ac_compile
3145 ac_compiler=$2
3146 for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3155 ac_status=$?
3156 if test -s conftest.err; then
3157 sed '10a\
3158 ... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
3161 fi
3162 rm -f conftest.er1 conftest.err
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165 done
3166
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3169
3170 int
3171 main ()
3172 {
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3182 # of exeext.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3184 $as_echo_n "checking whether the C compiler works... " >&6; }
3185 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186
3187 # The possible output files:
3188 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
3190 ac_rmfiles=
3191 for ac_file in $ac_files
3192 do
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 esac
3197 done
3198 rm -f $ac_rmfiles
3199
3200 if { { ac_try="$ac_link_default"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_link_default") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3214 # so that the user can short-circuit this test for compilers unknown to
3215 # Autoconf.
3216 for ac_file in $ac_files ''
3217 do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3221 ;;
3222 [ab].out )
3223 # We found the default executable, but exeext='' is most
3224 # certainly right.
3225 break;;
3226 *.* )
3227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3228 then :; else
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 fi
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3235 # actually working.
3236 break;;
3237 * )
3238 break;;
3239 esac
3240 done
3241 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242
3243 else
3244 ac_file=''
3245 fi
3246 if test -z "$ac_file"; then :
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error 77 "C compiler cannot create executables
3255 See \`config.log' for more details" "$LINENO" 5; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3261 $as_echo_n "checking for C compiler default output file name... " >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3263 $as_echo "$ac_file" >&6; }
3264 ac_exeext=$ac_cv_exeext
3265
3266 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3267 ac_clean_files=$ac_clean_files_save
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3269 $as_echo_n "checking for suffix of executables... " >&6; }
3270 if { { ac_try="$ac_link"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3283 # work properly (i.e., refer to `conftest.exe'), while it won't with
3284 # `rm'.
3285 for ac_file in conftest.exe conftest conftest.*; do
3286 test -f "$ac_file" || continue
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 break;;
3291 * ) break;;
3292 esac
3293 done
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details" "$LINENO" 5; }
3299 fi
3300 rm -f conftest conftest$ac_cv_exeext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3302 $as_echo "$ac_cv_exeext" >&6; }
3303
3304 rm -f conftest.$ac_ext
3305 EXEEXT=$ac_cv_exeext
3306 ac_exeext=$EXEEXT
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309 #include <stdio.h>
3310 int
3311 main ()
3312 {
3313 FILE *f = fopen ("conftest.out", "w");
3314 return ferror (f) || fclose (f) != 0;
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 ac_clean_files="$ac_clean_files conftest.out"
3321 # Check that the compiler produces executables we can run. If not, either
3322 # the compiler is broken, or we cross compile.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3324 $as_echo_n "checking whether we are cross compiling... " >&6; }
3325 if test "$cross_compiling" != yes; then
3326 { { ac_try="$ac_link"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 if { ac_try='./conftest$ac_cv_exeext'
3338 { { case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_try") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; }; then
3348 cross_compiling=no
3349 else
3350 if test "$cross_compiling" = maybe; then
3351 cross_compiling=yes
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot run C compiled programs.
3356 If you meant to cross compile, use \`--host'.
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 fi
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3362 $as_echo "$cross_compiling" >&6; }
3363
3364 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3365 ac_clean_files=$ac_clean_files_save
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3367 $as_echo_n "checking for suffix of object files... " >&6; }
3368 if ${ac_cv_objext+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main ()
3376 {
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.o conftest.obj
3383 if { { ac_try="$ac_compile"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compile") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 for ac_file in conftest.o conftest.obj conftest.*; do
3395 test -f "$ac_file" || continue;
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3399 break;;
3400 esac
3401 done
3402 else
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of object files: cannot compile
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3414 $as_echo "$ac_cv_objext" >&6; }
3415 OBJEXT=$ac_cv_objext
3416 ac_objext=$OBJEXT
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3418 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3419 if ${ac_cv_c_compiler_gnu+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428 #ifndef __GNUC__
3429 choke me
3430 #endif
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_compiler_gnu=yes
3438 else
3439 ac_compiler_gnu=no
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3446 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3447 if test $ac_compiler_gnu = yes; then
3448 GCC=yes
3449 else
3450 GCC=
3451 fi
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3455 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3456 if ${ac_cv_prog_cc_g+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_g=yes
3476 else
3477 CFLAGS=""
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490
3491 else
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3493 CFLAGS="-g"
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_g=yes
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3516 $as_echo "$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3521 CFLAGS="-g -O2"
3522 else
3523 CFLAGS="-g"
3524 fi
3525 else
3526 if test "$GCC" = yes; then
3527 CFLAGS="-O2"
3528 else
3529 CFLAGS=
3530 fi
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3533 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3534 if ${ac_cv_prog_cc_c89+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 ac_cv_prog_cc_c89=no
3538 ac_save_CC=$CC
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3549 char **p;
3550 int i;
3551 {
3552 return p[i];
3553 }
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3555 {
3556 char *s;
3557 va_list v;
3558 va_start (v,p);
3559 s = g (p, va_arg (v,int));
3560 va_end (v);
3561 return s;
3562 }
3563
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3575 #define FOO(x) 'x'
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3577
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 int argc;
3583 char **argv;
3584 int
3585 main ()
3586 {
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594 do
3595 CC="$ac_save_CC $ac_arg"
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_c89=$ac_arg
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext
3600 test "x$ac_cv_prog_cc_c89" != "xno" && break
3601 done
3602 rm -f conftest.$ac_ext
3603 CC=$ac_save_CC
3604
3605 fi
3606 # AC_CACHE_VAL
3607 case "x$ac_cv_prog_cc_c89" in
3608 x)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3610 $as_echo "none needed" >&6; } ;;
3611 xno)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3613 $as_echo "unsupported" >&6; } ;;
3614 *)
3615 CC="$CC $ac_cv_prog_cc_c89"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3617 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3618 esac
3619 if test "x$ac_cv_prog_cc_c89" != xno; then :
3620
3621 fi
3622
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 DEPDIR="${am__leading_dot}deps"
3629
3630 ac_config_commands="$ac_config_commands depfiles"
3631
3632
3633 am_make=${MAKE-make}
3634 cat > confinc << 'END'
3635 am__doit:
3636 @echo this is the am__doit target
3637 .PHONY: am__doit
3638 END
3639 # If we don't find an include directive, just comment out the code.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3641 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3642 am__include="#"
3643 am__quote=
3644 _am_result=none
3645 # First try GNU make style include.
3646 echo "include confinc" > confmf
3647 # Ignore all kinds of additional output from `make'.
3648 case `$am_make -s -f confmf 2> /dev/null` in #(
3649 *the\ am__doit\ target*)
3650 am__include=include
3651 am__quote=
3652 _am_result=GNU
3653 ;;
3654 esac
3655 # Now try BSD make style include.
3656 if test "$am__include" = "#"; then
3657 echo '.include "confinc"' > confmf
3658 case `$am_make -s -f confmf 2> /dev/null` in #(
3659 *the\ am__doit\ target*)
3660 am__include=.include
3661 am__quote="\""
3662 _am_result=BSD
3663 ;;
3664 esac
3665 fi
3666
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3669 $as_echo "$_am_result" >&6; }
3670 rm -f confinc confmf
3671
3672 # Check whether --enable-dependency-tracking was given.
3673 if test "${enable_dependency_tracking+set}" = set; then :
3674 enableval=$enable_dependency_tracking;
3675 fi
3676
3677 if test "x$enable_dependency_tracking" != xno; then
3678 am_depcomp="$ac_aux_dir/depcomp"
3679 AMDEPBACKSLASH='\'
3680 am__nodep='_no'
3681 fi
3682 if test "x$enable_dependency_tracking" != xno; then
3683 AMDEP_TRUE=
3684 AMDEP_FALSE='#'
3685 else
3686 AMDEP_TRUE='#'
3687 AMDEP_FALSE=
3688 fi
3689
3690
3691
3692 depcc="$CC" am_compiler_list=
3693
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3695 $as_echo_n "checking dependency style of $depcc... " >&6; }
3696 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700 # We make a subdir and do the tests there. Otherwise we can end up
3701 # making bogus files that we don't know about and never remove. For
3702 # instance it was reported that on HP-UX the gcc test will end up
3703 # making a dummy file named `D' -- because `-MD' means `put the output
3704 # in D'.
3705 rm -rf conftest.dir
3706 mkdir conftest.dir
3707 # Copy depcomp to subdir because otherwise we won't find it if we're
3708 # using a relative directory.
3709 cp "$am_depcomp" conftest.dir
3710 cd conftest.dir
3711 # We will build objects and dependencies in a subdirectory because
3712 # it helps to detect inapplicable dependency modes. For instance
3713 # both Tru64's cc and ICC support -MD to output dependencies as a
3714 # side effect of compilation, but ICC will put the dependencies in
3715 # the current directory while Tru64 will put them in the object
3716 # directory.
3717 mkdir sub
3718
3719 am_cv_CC_dependencies_compiler_type=none
3720 if test "$am_compiler_list" = ""; then
3721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3722 fi
3723 am__universal=false
3724 case " $depcc " in #(
3725 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3726 esac
3727
3728 for depmode in $am_compiler_list; do
3729 # Setup a source with many dependencies, because some compilers
3730 # like to wrap large dependency lists on column 80 (with \), and
3731 # we should not choose a depcomp mode which is confused by this.
3732 #
3733 # We need to recreate these files for each test, as the compiler may
3734 # overwrite some of them when testing with obscure command lines.
3735 # This happens at least with the AIX C compiler.
3736 : > sub/conftest.c
3737 for i in 1 2 3 4 5 6; do
3738 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3739 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3740 # Solaris 8's {/usr,}/bin/sh.
3741 touch sub/conftst$i.h
3742 done
3743 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3744
3745 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3746 # mode. It turns out that the SunPro C++ compiler does not properly
3747 # handle `-M -o', and we need to detect this. Also, some Intel
3748 # versions had trouble with output in subdirs
3749 am__obj=sub/conftest.${OBJEXT-o}
3750 am__minus_obj="-o $am__obj"
3751 case $depmode in
3752 gcc)
3753 # This depmode causes a compiler race in universal mode.
3754 test "$am__universal" = false || continue
3755 ;;
3756 nosideeffect)
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3760 continue
3761 else
3762 break
3763 fi
3764 ;;
3765 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3766 # This compiler won't grok `-c -o', but also, the minuso test has
3767 # not run yet. These depmodes are late enough in the game, and
3768 # so weak that their functioning should not be impacted.
3769 am__obj=conftest.${OBJEXT-o}
3770 am__minus_obj=
3771 ;;
3772 none) break ;;
3773 esac
3774 if depmode=$depmode \
3775 source=sub/conftest.c object=$am__obj \
3776 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3777 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3778 >/dev/null 2>conftest.err &&
3779 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3780 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3781 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3782 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3783 # icc doesn't choke on unknown options, it will just issue warnings
3784 # or remarks (even with -Werror). So we grep stderr for any message
3785 # that says an option was ignored or not supported.
3786 # When given -MP, icc 7.0 and 7.1 complain thusly:
3787 # icc: Command line warning: ignoring option '-M'; no argument required
3788 # The diagnosis changed in icc 8.0:
3789 # icc: Command line remark: option '-MP' not supported
3790 if (grep 'ignoring option' conftest.err ||
3791 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3792 am_cv_CC_dependencies_compiler_type=$depmode
3793 break
3794 fi
3795 fi
3796 done
3797
3798 cd ..
3799 rm -rf conftest.dir
3800 else
3801 am_cv_CC_dependencies_compiler_type=none
3802 fi
3803
3804 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3806 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3807 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3808
3809 if
3810 test "x$enable_dependency_tracking" != xno \
3811 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3812 am__fastdepCC_TRUE=
3813 am__fastdepCC_FALSE='#'
3814 else
3815 am__fastdepCC_TRUE='#'
3816 am__fastdepCC_FALSE=
3817 fi
3818
3819
3820 if test "x$CC" != xcc; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3822 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3825 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3826 fi
3827 set dummy $CC; ac_cc=`$as_echo "$2" |
3828 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3829 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834
3835 int
3836 main ()
3837 {
3838
3839 ;
3840 return 0;
3841 }
3842 _ACEOF
3843 # Make sure it works both with $CC and with simple cc.
3844 # We do the test twice because some compilers refuse to overwrite an
3845 # existing .o file with -o, though they will create one.
3846 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3847 rm -f conftest2.*
3848 if { { case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_try") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; } &&
3858 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_try") 2>&5
3865 ac_status=$?
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; };
3868 then
3869 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3870 if test "x$CC" != xcc; then
3871 # Test first that cc exists at all.
3872 if { ac_try='cc -c conftest.$ac_ext >&5'
3873 { { case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_try") 2>&5
3880 ac_status=$?
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }; }; then
3883 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3884 rm -f conftest2.*
3885 if { { case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_try") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; } &&
3895 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_try") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; };
3905 then
3906 # cc works too.
3907 :
3908 else
3909 # cc exists but doesn't like -o.
3910 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3911 fi
3912 fi
3913 fi
3914 else
3915 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3916 fi
3917 rm -f core conftest*
3918
3919 fi
3920 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3922 $as_echo "yes" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926
3927 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3928
3929 fi
3930
3931 # FIXME: we rely on the cache variable name because
3932 # there is no other way.
3933 set dummy $CC
3934 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3935 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3936 if test "$am_t" != yes; then
3937 # Losing compiler, so override with the script.
3938 # FIXME: It is wrong to rewrite CC.
3939 # But if we don't then we get into trouble of one sort or another.
3940 # A longer-term fix would be to have automake use am__CC in this case,
3941 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3942 CC="$am_aux_dir/compile $CC"
3943 fi
3944
3945
3946
3947 # Initialize libtool
3948 # Check whether --enable-static was given.
3949 if test "${enable_static+set}" = set; then :
3950 enableval=$enable_static; p=${PACKAGE-default}
3951 case $enableval in
3952 yes) enable_static=yes ;;
3953 no) enable_static=no ;;
3954 *)
3955 enable_static=no
3956 # Look at the argument we got. We use all the common list separators.
3957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3958 for pkg in $enableval; do
3959 IFS="$lt_save_ifs"
3960 if test "X$pkg" = "X$p"; then
3961 enable_static=yes
3962 fi
3963 done
3964 IFS="$lt_save_ifs"
3965 ;;
3966 esac
3967 else
3968 enable_static=no
3969 fi
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979 # Make sure we can run config.sub.
3980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3981 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3984 $as_echo_n "checking build system type... " >&6; }
3985 if ${ac_cv_build+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 ac_build_alias=$build_alias
3989 test "x$ac_build_alias" = x &&
3990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3991 test "x$ac_build_alias" = x &&
3992 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3995
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3998 $as_echo "$ac_cv_build" >&6; }
3999 case $ac_cv_build in
4000 *-*-*) ;;
4001 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4002 esac
4003 build=$ac_cv_build
4004 ac_save_IFS=$IFS; IFS='-'
4005 set x $ac_cv_build
4006 shift
4007 build_cpu=$1
4008 build_vendor=$2
4009 shift; shift
4010 # Remember, the first character of IFS is used to create $*,
4011 # except with old shells:
4012 build_os=$*
4013 IFS=$ac_save_IFS
4014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4015
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4018 $as_echo_n "checking host system type... " >&6; }
4019 if ${ac_cv_host+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 if test "x$host_alias" = x; then
4023 ac_cv_host=$ac_cv_build
4024 else
4025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4026 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4027 fi
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4031 $as_echo "$ac_cv_host" >&6; }
4032 case $ac_cv_host in
4033 *-*-*) ;;
4034 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4035 esac
4036 host=$ac_cv_host
4037 ac_save_IFS=$IFS; IFS='-'
4038 set x $ac_cv_host
4039 shift
4040 host_cpu=$1
4041 host_vendor=$2
4042 shift; shift
4043 # Remember, the first character of IFS is used to create $*,
4044 # except with old shells:
4045 host_os=$*
4046 IFS=$ac_save_IFS
4047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4048
4049
4050 enable_win32_dll=yes
4051
4052 case $host in
4053 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}as; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_AS+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$AS"; then
4063 ac_cv_prog_AS="$AS" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_prog_AS="${ac_tool_prefix}as"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 AS=$ac_cv_prog_AS
4083 if test -n "$AS"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4085 $as_echo "$AS" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 fi
4093 if test -z "$ac_cv_prog_AS"; then
4094 ac_ct_AS=$AS
4095 # Extract the first word of "as", so it can be a program name with args.
4096 set dummy as; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$ac_ct_AS"; then
4103 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_ac_ct_AS="as"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4123 if test -n "$ac_ct_AS"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4125 $as_echo "$ac_ct_AS" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131 if test "x$ac_ct_AS" = x; then
4132 AS="false"
4133 else
4134 case $cross_compiling:$ac_tool_warned in
4135 yes:)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138 ac_tool_warned=yes ;;
4139 esac
4140 AS=$ac_ct_AS
4141 fi
4142 else
4143 AS="$ac_cv_prog_AS"
4144 fi
4145
4146 if test -n "$ac_tool_prefix"; then
4147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4148 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_DLLTOOL+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -n "$DLLTOOL"; then
4155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 DLLTOOL=$ac_cv_prog_DLLTOOL
4175 if test -n "$DLLTOOL"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4177 $as_echo "$DLLTOOL" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184 fi
4185 if test -z "$ac_cv_prog_DLLTOOL"; then
4186 ac_ct_DLLTOOL=$DLLTOOL
4187 # Extract the first word of "dlltool", so it can be a program name with args.
4188 set dummy dlltool; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$ac_ct_DLLTOOL"; then
4195 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4215 if test -n "$ac_ct_DLLTOOL"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4217 $as_echo "$ac_ct_DLLTOOL" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223 if test "x$ac_ct_DLLTOOL" = x; then
4224 DLLTOOL="false"
4225 else
4226 case $cross_compiling:$ac_tool_warned in
4227 yes:)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4231 esac
4232 DLLTOOL=$ac_ct_DLLTOOL
4233 fi
4234 else
4235 DLLTOOL="$ac_cv_prog_DLLTOOL"
4236 fi
4237
4238 if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_OBJDUMP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$OBJDUMP"; then
4247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 fi
4265 fi
4266 OBJDUMP=$ac_cv_prog_OBJDUMP
4267 if test -n "$OBJDUMP"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4269 $as_echo "$OBJDUMP" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275
4276 fi
4277 if test -z "$ac_cv_prog_OBJDUMP"; then
4278 ac_ct_OBJDUMP=$OBJDUMP
4279 # Extract the first word of "objdump", so it can be a program name with args.
4280 set dummy objdump; ac_word=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test -n "$ac_ct_OBJDUMP"; then
4287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4291 do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300 done
4301 done
4302 IFS=$as_save_IFS
4303
4304 fi
4305 fi
4306 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4307 if test -n "$ac_ct_OBJDUMP"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4309 $as_echo "$ac_ct_OBJDUMP" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 fi
4314
4315 if test "x$ac_ct_OBJDUMP" = x; then
4316 OBJDUMP="false"
4317 else
4318 case $cross_compiling:$ac_tool_warned in
4319 yes:)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322 ac_tool_warned=yes ;;
4323 esac
4324 OBJDUMP=$ac_ct_OBJDUMP
4325 fi
4326 else
4327 OBJDUMP="$ac_cv_prog_OBJDUMP"
4328 fi
4329
4330 ;;
4331 esac
4332
4333 test -z "$AS" && AS=as
4334
4335
4336
4337
4338
4339 test -z "$DLLTOOL" && DLLTOOL=dlltool
4340
4341
4342
4343
4344
4345 test -z "$OBJDUMP" && OBJDUMP=objdump
4346
4347
4348
4349
4350
4351
4352
4353 case `pwd` in
4354 *\ * | *\ *)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4356 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4357 esac
4358
4359
4360
4361 macro_version='2.4.2'
4362 macro_revision='1.3337'
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 ltmain="$ac_aux_dir/ltmain.sh"
4377
4378 # Backslashify metacharacters that are still active within
4379 # double-quoted strings.
4380 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4381
4382 # Same as above, but do not quote variable references.
4383 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4384
4385 # Sed substitution to delay expansion of an escaped shell variable in a
4386 # double_quote_subst'ed string.
4387 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4388
4389 # Sed substitution to delay expansion of an escaped single quote.
4390 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4391
4392 # Sed substitution to avoid accidental globbing in evaled expressions
4393 no_glob_subst='s/\*/\\\*/g'
4394
4395 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4396 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4397 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4400 $as_echo_n "checking how to print strings... " >&6; }
4401 # Test print first, because it will be a builtin if present.
4402 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4403 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4404 ECHO='print -r --'
4405 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4406 ECHO='printf %s\n'
4407 else
4408 # Use this function as a fallback that always works.
4409 func_fallback_echo ()
4410 {
4411 eval 'cat <<_LTECHO_EOF
4412 $1
4413 _LTECHO_EOF'
4414 }
4415 ECHO='func_fallback_echo'
4416 fi
4417
4418 # func_echo_all arg...
4419 # Invoke $ECHO with all args, space-separated.
4420 func_echo_all ()
4421 {
4422 $ECHO ""
4423 }
4424
4425 case "$ECHO" in
4426 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4427 $as_echo "printf" >&6; } ;;
4428 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4429 $as_echo "print -r" >&6; } ;;
4430 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4431 $as_echo "cat" >&6; } ;;
4432 esac
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4448 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4449 if ${ac_cv_path_SED+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4453 for ac_i in 1 2 3 4 5 6 7; do
4454 ac_script="$ac_script$as_nl$ac_script"
4455 done
4456 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4457 { ac_script=; unset ac_script;}
4458 if test -z "$SED"; then
4459 ac_path_SED_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in sed gsed; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4470 # Check for GNU ac_path_SED and select it if it is found.
4471 # Check for GNU $ac_path_SED
4472 case `"$ac_path_SED" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4475 *)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo '' >> "conftest.nl"
4484 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_SED_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_SED="$ac_path_SED"
4490 ac_path_SED_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498 $ac_path_SED_found && break 3
4499 done
4500 done
4501 done
4502 IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_SED"; then
4504 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4505 fi
4506 else
4507 ac_cv_path_SED=$SED
4508 fi
4509
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4512 $as_echo "$ac_cv_path_SED" >&6; }
4513 SED="$ac_cv_path_SED"
4514 rm -f conftest.sed
4515
4516 test -z "$SED" && SED=sed
4517 Xsed="$SED -e 1s/^X//"
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4530 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4531 if ${ac_cv_path_GREP+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -z "$GREP"; then
4535 ac_path_GREP_found=false
4536 # Loop through the user's path and test for each of PROGNAME-LIST
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_prog in grep ggrep; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4545 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4546 # Check for GNU ac_path_GREP and select it if it is found.
4547 # Check for GNU $ac_path_GREP
4548 case `"$ac_path_GREP" --version 2>&1` in
4549 *GNU*)
4550 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4551 *)
4552 ac_count=0
4553 $as_echo_n 0123456789 >"conftest.in"
4554 while :
4555 do
4556 cat "conftest.in" "conftest.in" >"conftest.tmp"
4557 mv "conftest.tmp" "conftest.in"
4558 cp "conftest.in" "conftest.nl"
4559 $as_echo 'GREP' >> "conftest.nl"
4560 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562 as_fn_arith $ac_count + 1 && ac_count=$as_val
4563 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4564 # Best one so far, save it but keep looking for a better one
4565 ac_cv_path_GREP="$ac_path_GREP"
4566 ac_path_GREP_max=$ac_count
4567 fi
4568 # 10*(2^10) chars as input seems more than enough
4569 test $ac_count -gt 10 && break
4570 done
4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4572 esac
4573
4574 $ac_path_GREP_found && break 3
4575 done
4576 done
4577 done
4578 IFS=$as_save_IFS
4579 if test -z "$ac_cv_path_GREP"; then
4580 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4581 fi
4582 else
4583 ac_cv_path_GREP=$GREP
4584 fi
4585
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4588 $as_echo "$ac_cv_path_GREP" >&6; }
4589 GREP="$ac_cv_path_GREP"
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4593 $as_echo_n "checking for egrep... " >&6; }
4594 if ${ac_cv_path_EGREP+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4598 then ac_cv_path_EGREP="$GREP -E"
4599 else
4600 if test -z "$EGREP"; then
4601 ac_path_EGREP_found=false
4602 # Loop through the user's path and test for each of PROGNAME-LIST
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_prog in egrep; do
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4611 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4612 # Check for GNU ac_path_EGREP and select it if it is found.
4613 # Check for GNU $ac_path_EGREP
4614 case `"$ac_path_EGREP" --version 2>&1` in
4615 *GNU*)
4616 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4617 *)
4618 ac_count=0
4619 $as_echo_n 0123456789 >"conftest.in"
4620 while :
4621 do
4622 cat "conftest.in" "conftest.in" >"conftest.tmp"
4623 mv "conftest.tmp" "conftest.in"
4624 cp "conftest.in" "conftest.nl"
4625 $as_echo 'EGREP' >> "conftest.nl"
4626 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4628 as_fn_arith $ac_count + 1 && ac_count=$as_val
4629 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4630 # Best one so far, save it but keep looking for a better one
4631 ac_cv_path_EGREP="$ac_path_EGREP"
4632 ac_path_EGREP_max=$ac_count
4633 fi
4634 # 10*(2^10) chars as input seems more than enough
4635 test $ac_count -gt 10 && break
4636 done
4637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4638 esac
4639
4640 $ac_path_EGREP_found && break 3
4641 done
4642 done
4643 done
4644 IFS=$as_save_IFS
4645 if test -z "$ac_cv_path_EGREP"; then
4646 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4647 fi
4648 else
4649 ac_cv_path_EGREP=$EGREP
4650 fi
4651
4652 fi
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4655 $as_echo "$ac_cv_path_EGREP" >&6; }
4656 EGREP="$ac_cv_path_EGREP"
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4660 $as_echo_n "checking for fgrep... " >&6; }
4661 if ${ac_cv_path_FGREP+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4665 then ac_cv_path_FGREP="$GREP -F"
4666 else
4667 if test -z "$FGREP"; then
4668 ac_path_FGREP_found=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_prog in fgrep; do
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4678 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4679 # Check for GNU ac_path_FGREP and select it if it is found.
4680 # Check for GNU $ac_path_FGREP
4681 case `"$ac_path_FGREP" --version 2>&1` in
4682 *GNU*)
4683 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4684 *)
4685 ac_count=0
4686 $as_echo_n 0123456789 >"conftest.in"
4687 while :
4688 do
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo 'FGREP' >> "conftest.nl"
4693 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_FGREP="$ac_path_FGREP"
4699 ac_path_FGREP_max=$ac_count
4700 fi
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4703 done
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4706
4707 $ac_path_FGREP_found && break 3
4708 done
4709 done
4710 done
4711 IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_FGREP"; then
4713 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4714 fi
4715 else
4716 ac_cv_path_FGREP=$FGREP
4717 fi
4718
4719 fi
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4722 $as_echo "$ac_cv_path_FGREP" >&6; }
4723 FGREP="$ac_cv_path_FGREP"
4724
4725
4726 test -z "$GREP" && GREP=grep
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 # Check whether --with-gnu-ld was given.
4747 if test "${with_gnu_ld+set}" = set; then :
4748 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4749 else
4750 with_gnu_ld=no
4751 fi
4752
4753 ac_prog=ld
4754 if test "$GCC" = yes; then
4755 # Check if gcc -print-prog-name=ld gives a path.
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4757 $as_echo_n "checking for ld used by $CC... " >&6; }
4758 case $host in
4759 *-*-mingw*)
4760 # gcc leaves a trailing carriage return which upsets mingw
4761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4762 *)
4763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4764 esac
4765 case $ac_prog in
4766 # Accept absolute paths.
4767 [\\/]* | ?:[\\/]*)
4768 re_direlt='/[^/][^/]*/\.\./'
4769 # Canonicalize the pathname of ld
4770 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4771 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4772 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4773 done
4774 test -z "$LD" && LD="$ac_prog"
4775 ;;
4776 "")
4777 # If it fails, then pretend we aren't using GCC.
4778 ac_prog=ld
4779 ;;
4780 *)
4781 # If it is relative, then search for the first ld in PATH.
4782 with_gnu_ld=unknown
4783 ;;
4784 esac
4785 elif test "$with_gnu_ld" = yes; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4787 $as_echo_n "checking for GNU ld... " >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4790 $as_echo_n "checking for non-GNU ld... " >&6; }
4791 fi
4792 if ${lt_cv_path_LD+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 if test -z "$LD"; then
4796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4797 for ac_dir in $PATH; do
4798 IFS="$lt_save_ifs"
4799 test -z "$ac_dir" && ac_dir=.
4800 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4801 lt_cv_path_LD="$ac_dir/$ac_prog"
4802 # Check to see if the program is GNU ld. I'd rather use --version,
4803 # but apparently some variants of GNU ld only accept -v.
4804 # Break only if it was the GNU/non-GNU ld that we prefer.
4805 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4806 *GNU* | *'with BFD'*)
4807 test "$with_gnu_ld" != no && break
4808 ;;
4809 *)
4810 test "$with_gnu_ld" != yes && break
4811 ;;
4812 esac
4813 fi
4814 done
4815 IFS="$lt_save_ifs"
4816 else
4817 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4818 fi
4819 fi
4820
4821 LD="$lt_cv_path_LD"
4822 if test -n "$LD"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4824 $as_echo "$LD" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4831 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4832 if ${lt_cv_prog_gnu_ld+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4836 case `$LD -v 2>&1 </dev/null` in
4837 *GNU* | *'with BFD'*)
4838 lt_cv_prog_gnu_ld=yes
4839 ;;
4840 *)
4841 lt_cv_prog_gnu_ld=no
4842 ;;
4843 esac
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4846 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4847 with_gnu_ld=$lt_cv_prog_gnu_ld
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4858 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4859 if ${lt_cv_path_NM+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$NM"; then
4863 # Let the user override the test.
4864 lt_cv_path_NM="$NM"
4865 else
4866 lt_nm_to_check="${ac_tool_prefix}nm"
4867 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4868 lt_nm_to_check="$lt_nm_to_check nm"
4869 fi
4870 for lt_tmp_nm in $lt_nm_to_check; do
4871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4872 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4873 IFS="$lt_save_ifs"
4874 test -z "$ac_dir" && ac_dir=.
4875 tmp_nm="$ac_dir/$lt_tmp_nm"
4876 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4877 # Check to see if the nm accepts a BSD-compat flag.
4878 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4879 # nm: unknown option "B" ignored
4880 # Tru64's nm complains that /dev/null is an invalid object file
4881 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4882 */dev/null* | *'Invalid file or object type'*)
4883 lt_cv_path_NM="$tmp_nm -B"
4884 break
4885 ;;
4886 *)
4887 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4888 */dev/null*)
4889 lt_cv_path_NM="$tmp_nm -p"
4890 break
4891 ;;
4892 *)
4893 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4894 continue # so that we can try to find one that supports BSD flags
4895 ;;
4896 esac
4897 ;;
4898 esac
4899 fi
4900 done
4901 IFS="$lt_save_ifs"
4902 done
4903 : ${lt_cv_path_NM=no}
4904 fi
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4907 $as_echo "$lt_cv_path_NM" >&6; }
4908 if test "$lt_cv_path_NM" != "no"; then
4909 NM="$lt_cv_path_NM"
4910 else
4911 # Didn't find any BSD compatible name lister, look for dumpbin.
4912 if test -n "$DUMPBIN"; then :
4913 # Let the user override the test.
4914 else
4915 if test -n "$ac_tool_prefix"; then
4916 for ac_prog in dumpbin "link -dump"
4917 do
4918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_DUMPBIN+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$DUMPBIN"; then
4926 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 DUMPBIN=$ac_cv_prog_DUMPBIN
4946 if test -n "$DUMPBIN"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4948 $as_echo "$DUMPBIN" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 test -n "$DUMPBIN" && break
4956 done
4957 fi
4958 if test -z "$DUMPBIN"; then
4959 ac_ct_DUMPBIN=$DUMPBIN
4960 for ac_prog in dumpbin "link -dump"
4961 do
4962 # Extract the first word of "$ac_prog", so it can be a program name with args.
4963 set dummy $ac_prog; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$ac_ct_DUMPBIN"; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4982 fi
4983 done
4984 done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4990 if test -n "$ac_ct_DUMPBIN"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4992 $as_echo "$ac_ct_DUMPBIN" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999 test -n "$ac_ct_DUMPBIN" && break
5000 done
5001
5002 if test "x$ac_ct_DUMPBIN" = x; then
5003 DUMPBIN=":"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5010 esac
5011 DUMPBIN=$ac_ct_DUMPBIN
5012 fi
5013 fi
5014
5015 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5016 *COFF*)
5017 DUMPBIN="$DUMPBIN -symbols"
5018 ;;
5019 *)
5020 DUMPBIN=:
5021 ;;
5022 esac
5023 fi
5024
5025 if test "$DUMPBIN" != ":"; then
5026 NM="$DUMPBIN"
5027 fi
5028 fi
5029 test -z "$NM" && NM=nm
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5037 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5038 if ${lt_cv_nm_interface+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 lt_cv_nm_interface="BSD nm"
5042 echo "int some_variable = 0;" > conftest.$ac_ext
5043 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5044 (eval "$ac_compile" 2>conftest.err)
5045 cat conftest.err >&5
5046 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5047 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5048 cat conftest.err >&5
5049 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5050 cat conftest.out >&5
5051 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5052 lt_cv_nm_interface="MS dumpbin"
5053 fi
5054 rm -f conftest*
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5057 $as_echo "$lt_cv_nm_interface" >&6; }
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5060 $as_echo_n "checking whether ln -s works... " >&6; }
5061 LN_S=$as_ln_s
5062 if test "$LN_S" = "ln -s"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5064 $as_echo "yes" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5067 $as_echo "no, using $LN_S" >&6; }
5068 fi
5069
5070 # find the maximum length of command line arguments
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5072 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5073 if ${lt_cv_sys_max_cmd_len+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 i=0
5077 teststring="ABCD"
5078
5079 case $build_os in
5080 msdosdjgpp*)
5081 # On DJGPP, this test can blow up pretty badly due to problems in libc
5082 # (any single argument exceeding 2000 bytes causes a buffer overrun
5083 # during glob expansion). Even if it were fixed, the result of this
5084 # check would be larger than it should be.
5085 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5086 ;;
5087
5088 gnu*)
5089 # Under GNU Hurd, this test is not required because there is
5090 # no limit to the length of command line arguments.
5091 # Libtool will interpret -1 as no limit whatsoever
5092 lt_cv_sys_max_cmd_len=-1;
5093 ;;
5094
5095 cygwin* | mingw* | cegcc*)
5096 # On Win9x/ME, this test blows up -- it succeeds, but takes
5097 # about 5 minutes as the teststring grows exponentially.
5098 # Worse, since 9x/ME are not pre-emptively multitasking,
5099 # you end up with a "frozen" computer, even though with patience
5100 # the test eventually succeeds (with a max line length of 256k).
5101 # Instead, let's just punt: use the minimum linelength reported by
5102 # all of the supported platforms: 8192 (on NT/2K/XP).
5103 lt_cv_sys_max_cmd_len=8192;
5104 ;;
5105
5106 mint*)
5107 # On MiNT this can take a long time and run out of memory.
5108 lt_cv_sys_max_cmd_len=8192;
5109 ;;
5110
5111 amigaos*)
5112 # On AmigaOS with pdksh, this test takes hours, literally.
5113 # So we just punt and use a minimum line length of 8192.
5114 lt_cv_sys_max_cmd_len=8192;
5115 ;;
5116
5117 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5118 # This has been around since 386BSD, at least. Likely further.
5119 if test -x /sbin/sysctl; then
5120 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5121 elif test -x /usr/sbin/sysctl; then
5122 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5123 else
5124 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5125 fi
5126 # And add a safety zone
5127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5129 ;;
5130
5131 interix*)
5132 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5133 lt_cv_sys_max_cmd_len=196608
5134 ;;
5135
5136 os2*)
5137 # The test takes a long time on OS/2.
5138 lt_cv_sys_max_cmd_len=8192
5139 ;;
5140
5141 osf*)
5142 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5143 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5144 # nice to cause kernel panics so lets avoid the loop below.
5145 # First set a reasonable default.
5146 lt_cv_sys_max_cmd_len=16384
5147 #
5148 if test -x /sbin/sysconfig; then
5149 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5150 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5151 esac
5152 fi
5153 ;;
5154 sco3.2v5*)
5155 lt_cv_sys_max_cmd_len=102400
5156 ;;
5157 sysv5* | sco5v6* | sysv4.2uw2*)
5158 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5159 if test -n "$kargmax"; then
5160 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5161 else
5162 lt_cv_sys_max_cmd_len=32768
5163 fi
5164 ;;
5165 *)
5166 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5167 if test -n "$lt_cv_sys_max_cmd_len"; then
5168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5170 else
5171 # Make teststring a little bigger before we do anything with it.
5172 # a 1K string should be a reasonable start.
5173 for i in 1 2 3 4 5 6 7 8 ; do
5174 teststring=$teststring$teststring
5175 done
5176 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5177 # If test is not a shell built-in, we'll probably end up computing a
5178 # maximum length that is only half of the actual maximum length, but
5179 # we can't tell.
5180 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5181 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5182 test $i != 17 # 1/2 MB should be enough
5183 do
5184 i=`expr $i + 1`
5185 teststring=$teststring$teststring
5186 done
5187 # Only check the string length outside the loop.
5188 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5189 teststring=
5190 # Add a significant safety factor because C++ compilers can tack on
5191 # massive amounts of additional arguments before passing them to the
5192 # linker. It appears as though 1/2 is a usable value.
5193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5194 fi
5195 ;;
5196 esac
5197
5198 fi
5199
5200 if test -n $lt_cv_sys_max_cmd_len ; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5202 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5205 $as_echo "none" >&6; }
5206 fi
5207 max_cmd_len=$lt_cv_sys_max_cmd_len
5208
5209
5210
5211
5212
5213
5214 : ${CP="cp -f"}
5215 : ${MV="mv -f"}
5216 : ${RM="rm -f"}
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5219 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5220 # Try some XSI features
5221 xsi_shell=no
5222 ( _lt_dummy="a/b/c"
5223 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5224 = c,a/b,b/c, \
5225 && eval 'test $(( 1 + 1 )) -eq 2 \
5226 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5227 && xsi_shell=yes
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5229 $as_echo "$xsi_shell" >&6; }
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5233 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5234 lt_shell_append=no
5235 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5236 >/dev/null 2>&1 \
5237 && lt_shell_append=yes
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5239 $as_echo "$lt_shell_append" >&6; }
5240
5241
5242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5243 lt_unset=unset
5244 else
5245 lt_unset=false
5246 fi
5247
5248
5249
5250
5251
5252 # test EBCDIC or ASCII
5253 case `echo X|tr X '\101'` in
5254 A) # ASCII based system
5255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5256 lt_SP2NL='tr \040 \012'
5257 lt_NL2SP='tr \015\012 \040\040'
5258 ;;
5259 *) # EBCDIC based system
5260 lt_SP2NL='tr \100 \n'
5261 lt_NL2SP='tr \r\n \100\100'
5262 ;;
5263 esac
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5274 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5275 if ${lt_cv_to_host_file_cmd+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 case $host in
5279 *-*-mingw* )
5280 case $build in
5281 *-*-mingw* ) # actually msys
5282 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5283 ;;
5284 *-*-cygwin* )
5285 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5286 ;;
5287 * ) # otherwise, assume *nix
5288 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5289 ;;
5290 esac
5291 ;;
5292 *-*-cygwin* )
5293 case $build in
5294 *-*-mingw* ) # actually msys
5295 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5296 ;;
5297 *-*-cygwin* )
5298 lt_cv_to_host_file_cmd=func_convert_file_noop
5299 ;;
5300 * ) # otherwise, assume *nix
5301 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5302 ;;
5303 esac
5304 ;;
5305 * ) # unhandled hosts (and "normal" native builds)
5306 lt_cv_to_host_file_cmd=func_convert_file_noop
5307 ;;
5308 esac
5309
5310 fi
5311
5312 to_host_file_cmd=$lt_cv_to_host_file_cmd
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5314 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5315
5316
5317
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5321 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5322 if ${lt_cv_to_tool_file_cmd+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 #assume ordinary cross tools, or native build.
5326 lt_cv_to_tool_file_cmd=func_convert_file_noop
5327 case $host in
5328 *-*-mingw* )
5329 case $build in
5330 *-*-mingw* ) # actually msys
5331 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5332 ;;
5333 esac
5334 ;;
5335 esac
5336
5337 fi
5338
5339 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5341 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5342
5343
5344
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5348 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5349 if ${lt_cv_ld_reload_flag+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 lt_cv_ld_reload_flag='-r'
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5355 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5356 reload_flag=$lt_cv_ld_reload_flag
5357 case $reload_flag in
5358 "" | " "*) ;;
5359 *) reload_flag=" $reload_flag" ;;
5360 esac
5361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362 case $host_os in
5363 cygwin* | mingw* | pw32* | cegcc*)
5364 if test "$GCC" != yes; then
5365 reload_cmds=false
5366 fi
5367 ;;
5368 darwin*)
5369 if test "$GCC" = yes; then
5370 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5371 else
5372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5373 fi
5374 ;;
5375 esac
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 if test -n "$ac_tool_prefix"; then
5386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_OBJDUMP+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$OBJDUMP"; then
5394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 OBJDUMP=$ac_cv_prog_OBJDUMP
5414 if test -n "$OBJDUMP"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5416 $as_echo "$OBJDUMP" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423 fi
5424 if test -z "$ac_cv_prog_OBJDUMP"; then
5425 ac_ct_OBJDUMP=$OBJDUMP
5426 # Extract the first word of "objdump", so it can be a program name with args.
5427 set dummy objdump; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$ac_ct_OBJDUMP"; then
5434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447 done
5448 done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5454 if test -n "$ac_ct_OBJDUMP"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5456 $as_echo "$ac_ct_OBJDUMP" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462 if test "x$ac_ct_OBJDUMP" = x; then
5463 OBJDUMP="false"
5464 else
5465 case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 OBJDUMP=$ac_ct_OBJDUMP
5472 fi
5473 else
5474 OBJDUMP="$ac_cv_prog_OBJDUMP"
5475 fi
5476
5477 test -z "$OBJDUMP" && OBJDUMP=objdump
5478
5479
5480
5481
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5485 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5486 if ${lt_cv_deplibs_check_method+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 lt_cv_file_magic_cmd='$MAGIC_CMD'
5490 lt_cv_file_magic_test_file=
5491 lt_cv_deplibs_check_method='unknown'
5492 # Need to set the preceding variable on all platforms that support
5493 # interlibrary dependencies.
5494 # 'none' -- dependencies not supported.
5495 # `unknown' -- same as none, but documents that we really don't know.
5496 # 'pass_all' -- all dependencies passed with no checks.
5497 # 'test_compile' -- check by making test program.
5498 # 'file_magic [[regex]]' -- check by looking for files in library path
5499 # which responds to the $file_magic_cmd with a given extended regex.
5500 # If you have `file' or equivalent on your system and you're not sure
5501 # whether `pass_all' will *always* work, you probably want this one.
5502
5503 case $host_os in
5504 aix[4-9]*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507
5508 beos*)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512 bsdi[45]*)
5513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5514 lt_cv_file_magic_cmd='/usr/bin/file -L'
5515 lt_cv_file_magic_test_file=/shlib/libc.so
5516 ;;
5517
5518 cygwin*)
5519 # func_win32_libid is a shell function defined in ltmain.sh
5520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5521 lt_cv_file_magic_cmd='func_win32_libid'
5522 ;;
5523
5524 mingw* | pw32*)
5525 # Base MSYS/MinGW do not provide the 'file' command needed by
5526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5527 # unless we find 'file', for example because we are cross-compiling.
5528 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5529 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5531 lt_cv_file_magic_cmd='func_win32_libid'
5532 else
5533 # Keep this pattern in sync with the one in func_win32_libid.
5534 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5535 lt_cv_file_magic_cmd='$OBJDUMP -f'
5536 fi
5537 ;;
5538
5539 cegcc*)
5540 # use the weaker test based on 'objdump'. See mingw*.
5541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5542 lt_cv_file_magic_cmd='$OBJDUMP -f'
5543 ;;
5544
5545 darwin* | rhapsody*)
5546 lt_cv_deplibs_check_method=pass_all
5547 ;;
5548
5549 freebsd* | dragonfly*)
5550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5551 case $host_cpu in
5552 i*86 )
5553 # Not sure whether the presence of OpenBSD here was a mistake.
5554 # Let's accept both of them until this is cleared up.
5555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5556 lt_cv_file_magic_cmd=/usr/bin/file
5557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5558 ;;
5559 esac
5560 else
5561 lt_cv_deplibs_check_method=pass_all
5562 fi
5563 ;;
5564
5565 gnu*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569 haiku*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 hpux10.20* | hpux11*)
5574 lt_cv_file_magic_cmd=/usr/bin/file
5575 case $host_cpu in
5576 ia64*)
5577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5579 ;;
5580 hppa*64*)
5581 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]'
5582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5583 ;;
5584 *)
5585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5587 ;;
5588 esac
5589 ;;
5590
5591 interix[3-9]*)
5592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5594 ;;
5595
5596 irix5* | irix6* | nonstopux*)
5597 case $LD in
5598 *-32|*"-32 ") libmagic=32-bit;;
5599 *-n32|*"-n32 ") libmagic=N32;;
5600 *-64|*"-64 ") libmagic=64-bit;;
5601 *) libmagic=never-match;;
5602 esac
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606 # This must be glibc/ELF.
5607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 netbsd* | netbsdelf*-gnu)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 else
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5616 fi
5617 ;;
5618
5619 newos6*)
5620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5621 lt_cv_file_magic_cmd=/usr/bin/file
5622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5623 ;;
5624
5625 *nto* | *qnx*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628
5629 openbsd*)
5630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5632 else
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5634 fi
5635 ;;
5636
5637 osf3* | osf4* | osf5*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641 rdos*)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644
5645 solaris*)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648
5649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 sysv4 | sysv4.3*)
5654 case $host_vendor in
5655 motorola)
5656 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]'
5657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5658 ;;
5659 ncr)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662 sequent)
5663 lt_cv_file_magic_cmd='/bin/file'
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5665 ;;
5666 sni)
5667 lt_cv_file_magic_cmd='/bin/file'
5668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5669 lt_cv_file_magic_test_file=/lib/libc.so
5670 ;;
5671 siemens)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 pc)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677 esac
5678 ;;
5679
5680 tpf*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683 esac
5684
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5688
5689 file_magic_glob=
5690 want_nocaseglob=no
5691 if test "$build" = "$host"; then
5692 case $host_os in
5693 mingw* | pw32*)
5694 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5695 want_nocaseglob=yes
5696 else
5697 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5698 fi
5699 ;;
5700 esac
5701 fi
5702
5703 file_magic_cmd=$lt_cv_file_magic_cmd
5704 deplibs_check_method=$lt_cv_deplibs_check_method
5705 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 if test -n "$ac_tool_prefix"; then
5729 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5730 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_DLLTOOL+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -n "$DLLTOOL"; then
5737 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 DLLTOOL=$ac_cv_prog_DLLTOOL
5757 if test -n "$DLLTOOL"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5759 $as_echo "$DLLTOOL" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764
5765
5766 fi
5767 if test -z "$ac_cv_prog_DLLTOOL"; then
5768 ac_ct_DLLTOOL=$DLLTOOL
5769 # Extract the first word of "dlltool", so it can be a program name with args.
5770 set dummy dlltool; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -n "$ac_ct_DLLTOOL"; then
5777 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 fi
5795 fi
5796 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5797 if test -n "$ac_ct_DLLTOOL"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5799 $as_echo "$ac_ct_DLLTOOL" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5803 fi
5804
5805 if test "x$ac_ct_DLLTOOL" = x; then
5806 DLLTOOL="false"
5807 else
5808 case $cross_compiling:$ac_tool_warned in
5809 yes:)
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5812 ac_tool_warned=yes ;;
5813 esac
5814 DLLTOOL=$ac_ct_DLLTOOL
5815 fi
5816 else
5817 DLLTOOL="$ac_cv_prog_DLLTOOL"
5818 fi
5819
5820 test -z "$DLLTOOL" && DLLTOOL=dlltool
5821
5822
5823
5824
5825
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5829 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5830 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 lt_cv_sharedlib_from_linklib_cmd='unknown'
5834
5835 case $host_os in
5836 cygwin* | mingw* | pw32* | cegcc*)
5837 # two different shell functions defined in ltmain.sh
5838 # decide which to use based on capabilities of $DLLTOOL
5839 case `$DLLTOOL --help 2>&1` in
5840 *--identify-strict*)
5841 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5842 ;;
5843 *)
5844 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5845 ;;
5846 esac
5847 ;;
5848 *)
5849 # fallback: assume linklib IS sharedlib
5850 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5851 ;;
5852 esac
5853
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5856 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5857 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5858 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5859
5860
5861
5862
5863
5864
5865
5866
5867 if test -n "$ac_tool_prefix"; then
5868 for ac_prog in ar
5869 do
5870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if ${ac_cv_prog_AR+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -n "$AR"; then
5878 ac_cv_prog_AR="$AR" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 AR=$ac_cv_prog_AR
5898 if test -n "$AR"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5900 $as_echo "$AR" >&6; }
5901 else
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905
5906
5907 test -n "$AR" && break
5908 done
5909 fi
5910 if test -z "$AR"; then
5911 ac_ct_AR=$AR
5912 for ac_prog in ar
5913 do
5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$ac_ct_AR"; then
5922 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_ac_ct_AR="$ac_prog"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5942 if test -n "$ac_ct_AR"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5944 $as_echo "$ac_ct_AR" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 test -n "$ac_ct_AR" && break
5952 done
5953
5954 if test "x$ac_ct_AR" = x; then
5955 AR="false"
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963 AR=$ac_ct_AR
5964 fi
5965 fi
5966
5967 : ${AR=ar}
5968 : ${AR_FLAGS=cru}
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5981 $as_echo_n "checking for archiver @FILE support... " >&6; }
5982 if ${lt_cv_ar_at_file+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 lt_cv_ar_at_file=no
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988
5989 int
5990 main ()
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 echo conftest.$ac_objext > conftest.lst
5999 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6001 (eval $lt_ar_try) 2>&5
6002 ac_status=$?
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; }
6005 if test "$ac_status" -eq 0; then
6006 # Ensure the archiver fails upon bogus file names.
6007 rm -f conftest.$ac_objext libconftest.a
6008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6009 (eval $lt_ar_try) 2>&5
6010 ac_status=$?
6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012 test $ac_status = 0; }
6013 if test "$ac_status" -ne 0; then
6014 lt_cv_ar_at_file=@
6015 fi
6016 fi
6017 rm -f conftest.* libconftest.a
6018
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6024 $as_echo "$lt_cv_ar_at_file" >&6; }
6025
6026 if test "x$lt_cv_ar_at_file" = xno; then
6027 archiver_list_spec=
6028 else
6029 archiver_list_spec=$lt_cv_ar_at_file
6030 fi
6031
6032
6033
6034
6035
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_STRIP+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$STRIP"; then
6047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 STRIP=$ac_cv_prog_STRIP
6067 if test -n "$STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6069 $as_echo "$STRIP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_STRIP"; then
6078 ac_ct_STRIP=$STRIP
6079 # Extract the first word of "strip", so it can be a program name with args.
6080 set dummy strip; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$ac_ct_STRIP"; then
6087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_STRIP="strip"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6107 if test -n "$ac_ct_STRIP"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6109 $as_echo "$ac_ct_STRIP" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115 if test "x$ac_ct_STRIP" = x; then
6116 STRIP=":"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124 STRIP=$ac_ct_STRIP
6125 fi
6126 else
6127 STRIP="$ac_cv_prog_STRIP"
6128 fi
6129
6130 test -z "$STRIP" && STRIP=:
6131
6132
6133
6134
6135
6136
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_RANLIB+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 RANLIB=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214 if test "x$ac_ct_RANLIB" = x; then
6215 RANLIB=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 RANLIB=$ac_ct_RANLIB
6224 fi
6225 else
6226 RANLIB="$ac_cv_prog_RANLIB"
6227 fi
6228
6229 test -z "$RANLIB" && RANLIB=:
6230
6231
6232
6233
6234
6235
6236 # Determine commands to create old-style static archives.
6237 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6238 old_postinstall_cmds='chmod 644 $oldlib'
6239 old_postuninstall_cmds=
6240
6241 if test -n "$RANLIB"; then
6242 case $host_os in
6243 openbsd*)
6244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6245 ;;
6246 *)
6247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6248 ;;
6249 esac
6250 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6251 fi
6252
6253 case $host_os in
6254 darwin*)
6255 lock_old_archive_extraction=yes ;;
6256 *)
6257 lock_old_archive_extraction=no ;;
6258 esac
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 # If no C compiler was specified, use CC.
6299 LTCC=${LTCC-"$CC"}
6300
6301 # If no C compiler flags were specified, use CFLAGS.
6302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6303
6304 # Allow CC to be a program name with arguments.
6305 compiler=$CC
6306
6307
6308 # Check for command to grab the raw symbol name followed by C symbol from nm.
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6310 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6311 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314
6315 # These are sane defaults that work on at least a few old systems.
6316 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6317
6318 # Character class describing NM global symbol codes.
6319 symcode='[BCDEGRST]'
6320
6321 # Regexp to match symbols that can be accessed directly from C.
6322 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6323
6324 # Define system-specific variables.
6325 case $host_os in
6326 aix*)
6327 symcode='[BCDT]'
6328 ;;
6329 cygwin* | mingw* | pw32* | cegcc*)
6330 symcode='[ABCDGISTW]'
6331 ;;
6332 hpux*)
6333 if test "$host_cpu" = ia64; then
6334 symcode='[ABCDEGRST]'
6335 fi
6336 ;;
6337 irix* | nonstopux*)
6338 symcode='[BCDEGRST]'
6339 ;;
6340 osf*)
6341 symcode='[BCDEGQRST]'
6342 ;;
6343 solaris*)
6344 symcode='[BDRT]'
6345 ;;
6346 sco3.2v5*)
6347 symcode='[DT]'
6348 ;;
6349 sysv4.2uw2*)
6350 symcode='[DT]'
6351 ;;
6352 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6353 symcode='[ABDT]'
6354 ;;
6355 sysv4)
6356 symcode='[DFNSTU]'
6357 ;;
6358 esac
6359
6360 # If we're using GNU nm, then use its standard symbol codes.
6361 case `$NM -V 2>&1` in
6362 *GNU* | *'with BFD'*)
6363 symcode='[ABCDGIRSTW]' ;;
6364 esac
6365
6366 # Transform an extracted symbol line into a proper C declaration.
6367 # Some systems (esp. on ia64) link data and code symbols differently,
6368 # so use this general approach.
6369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6370
6371 # Transform an extracted symbol line into symbol name and symbol address
6372 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6374
6375 # Handle CRLF in mingw tool chain
6376 opt_cr=
6377 case $build_os in
6378 mingw*)
6379 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6380 ;;
6381 esac
6382
6383 # Try without a prefix underscore, then with it.
6384 for ac_symprfx in "" "_"; do
6385
6386 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6387 symxfrm="\\1 $ac_symprfx\\2 \\2"
6388
6389 # Write the raw and C identifiers.
6390 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6391 # Fake it for dumpbin and say T for any non-static function
6392 # and D for any global variable.
6393 # Also find C++ and __fastcall symbols from MSVC++,
6394 # which start with @ or ?.
6395 lt_cv_sys_global_symbol_pipe="$AWK '"\
6396 " {last_section=section; section=\$ 3};"\
6397 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6398 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6399 " \$ 0!~/External *\|/{next};"\
6400 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6401 " {if(hide[section]) next};"\
6402 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6403 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6404 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6405 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6406 " ' prfx=^$ac_symprfx"
6407 else
6408 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6409 fi
6410 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6411
6412 # Check to see that the pipe works correctly.
6413 pipe_works=no
6414
6415 rm -f conftest*
6416 cat > conftest.$ac_ext <<_LT_EOF
6417 #ifdef __cplusplus
6418 extern "C" {
6419 #endif
6420 char nm_test_var;
6421 void nm_test_func(void);
6422 void nm_test_func(void){}
6423 #ifdef __cplusplus
6424 }
6425 #endif
6426 int main(){nm_test_var='a';nm_test_func();return(0);}
6427 _LT_EOF
6428
6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }; then
6434 # Now try to grab the symbols.
6435 nlist=conftest.nm
6436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6437 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6438 ac_status=$?
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; } && test -s "$nlist"; then
6441 # Try sorting and uniquifying the output.
6442 if sort "$nlist" | uniq > "$nlist"T; then
6443 mv -f "$nlist"T "$nlist"
6444 else
6445 rm -f "$nlist"T
6446 fi
6447
6448 # Make sure that we snagged all the symbols we need.
6449 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6450 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6451 cat <<_LT_EOF > conftest.$ac_ext
6452 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6453 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6454 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6455 relocations are performed -- see ld's documentation on pseudo-relocs. */
6456 # define LT_DLSYM_CONST
6457 #elif defined(__osf__)
6458 /* This system does not cope well with relocations in const data. */
6459 # define LT_DLSYM_CONST
6460 #else
6461 # define LT_DLSYM_CONST const
6462 #endif
6463
6464 #ifdef __cplusplus
6465 extern "C" {
6466 #endif
6467
6468 _LT_EOF
6469 # Now generate the symbol file.
6470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6471
6472 cat <<_LT_EOF >> conftest.$ac_ext
6473
6474 /* The mapping between symbol names and symbols. */
6475 LT_DLSYM_CONST struct {
6476 const char *name;
6477 void *address;
6478 }
6479 lt__PROGRAM__LTX_preloaded_symbols[] =
6480 {
6481 { "@PROGRAM@", (void *) 0 },
6482 _LT_EOF
6483 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6484 cat <<\_LT_EOF >> conftest.$ac_ext
6485 {0, (void *) 0}
6486 };
6487
6488 /* This works around a problem in FreeBSD linker */
6489 #ifdef FREEBSD_WORKAROUND
6490 static const void *lt_preloaded_setup() {
6491 return lt__PROGRAM__LTX_preloaded_symbols;
6492 }
6493 #endif
6494
6495 #ifdef __cplusplus
6496 }
6497 #endif
6498 _LT_EOF
6499 # Now try linking the two files.
6500 mv conftest.$ac_objext conftstm.$ac_objext
6501 lt_globsym_save_LIBS=$LIBS
6502 lt_globsym_save_CFLAGS=$CFLAGS
6503 LIBS="conftstm.$ac_objext"
6504 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6506 (eval $ac_link) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6510 pipe_works=yes
6511 fi
6512 LIBS=$lt_globsym_save_LIBS
6513 CFLAGS=$lt_globsym_save_CFLAGS
6514 else
6515 echo "cannot find nm_test_func in $nlist" >&5
6516 fi
6517 else
6518 echo "cannot find nm_test_var in $nlist" >&5
6519 fi
6520 else
6521 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6522 fi
6523 else
6524 echo "$progname: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 fi
6527 rm -rf conftest* conftst*
6528
6529 # Do not use the global_symbol_pipe unless it works.
6530 if test "$pipe_works" = yes; then
6531 break
6532 else
6533 lt_cv_sys_global_symbol_pipe=
6534 fi
6535 done
6536
6537 fi
6538
6539 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6540 lt_cv_sys_global_symbol_to_cdecl=
6541 fi
6542 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6544 $as_echo "failed" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6547 $as_echo "ok" >&6; }
6548 fi
6549
6550 # Response file support.
6551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6552 nm_file_list_spec='@'
6553 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6554 nm_file_list_spec='@'
6555 fi
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6584 $as_echo_n "checking for sysroot... " >&6; }
6585
6586 # Check whether --with-sysroot was given.
6587 if test "${with_sysroot+set}" = set; then :
6588 withval=$with_sysroot;
6589 else
6590 with_sysroot=no
6591 fi
6592
6593
6594 lt_sysroot=
6595 case ${with_sysroot} in #(
6596 yes)
6597 if test "$GCC" = yes; then
6598 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6599 fi
6600 ;; #(
6601 /*)
6602 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6603 ;; #(
6604 no|'')
6605 ;; #(
6606 *)
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6608 $as_echo "${with_sysroot}" >&6; }
6609 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6610 ;;
6611 esac
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6614 $as_echo "${lt_sysroot:-no}" >&6; }
6615
6616
6617
6618
6619
6620 # Check whether --enable-libtool-lock was given.
6621 if test "${enable_libtool_lock+set}" = set; then :
6622 enableval=$enable_libtool_lock;
6623 fi
6624
6625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6626
6627 # Some flags need to be propagated to the compiler or linker for good
6628 # libtool support.
6629 case $host in
6630 ia64-*-hpux*)
6631 # Find out which ABI we are using.
6632 echo 'int i;' > conftest.$ac_ext
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6634 (eval $ac_compile) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }; then
6638 case `/usr/bin/file conftest.$ac_objext` in
6639 *ELF-32*)
6640 HPUX_IA64_MODE="32"
6641 ;;
6642 *ELF-64*)
6643 HPUX_IA64_MODE="64"
6644 ;;
6645 esac
6646 fi
6647 rm -rf conftest*
6648 ;;
6649 *-*-irix6*)
6650 # Find out which ABI we are using.
6651 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656 test $ac_status = 0; }; then
6657 if test "$lt_cv_prog_gnu_ld" = yes; then
6658 case `/usr/bin/file conftest.$ac_objext` in
6659 *32-bit*)
6660 LD="${LD-ld} -melf32bsmip"
6661 ;;
6662 *N32*)
6663 LD="${LD-ld} -melf32bmipn32"
6664 ;;
6665 *64-bit*)
6666 LD="${LD-ld} -melf64bmip"
6667 ;;
6668 esac
6669 else
6670 case `/usr/bin/file conftest.$ac_objext` in
6671 *32-bit*)
6672 LD="${LD-ld} -32"
6673 ;;
6674 *N32*)
6675 LD="${LD-ld} -n32"
6676 ;;
6677 *64-bit*)
6678 LD="${LD-ld} -64"
6679 ;;
6680 esac
6681 fi
6682 fi
6683 rm -rf conftest*
6684 ;;
6685
6686 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6687 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6688 # Find out which ABI we are using.
6689 echo 'int i;' > conftest.$ac_ext
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691 (eval $ac_compile) 2>&5
6692 ac_status=$?
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
6695 case `/usr/bin/file conftest.o` in
6696 *32-bit*)
6697 case $host in
6698 x86_64-*kfreebsd*-gnu)
6699 LD="${LD-ld} -m elf_i386_fbsd"
6700 ;;
6701 x86_64-*linux*)
6702 LD="${LD-ld} -m elf_i386"
6703 ;;
6704 ppc64-*linux*|powerpc64-*linux*)
6705 LD="${LD-ld} -m elf32ppclinux"
6706 ;;
6707 s390x-*linux*)
6708 LD="${LD-ld} -m elf_s390"
6709 ;;
6710 sparc64-*linux*)
6711 LD="${LD-ld} -m elf32_sparc"
6712 ;;
6713 esac
6714 ;;
6715 *64-bit*)
6716 case $host in
6717 x86_64-*kfreebsd*-gnu)
6718 LD="${LD-ld} -m elf_x86_64_fbsd"
6719 ;;
6720 x86_64-*linux*)
6721 LD="${LD-ld} -m elf_x86_64"
6722 ;;
6723 ppc*-*linux*|powerpc*-*linux*)
6724 LD="${LD-ld} -m elf64ppc"
6725 ;;
6726 s390*-*linux*|s390*-*tpf*)
6727 LD="${LD-ld} -m elf64_s390"
6728 ;;
6729 sparc*-*linux*)
6730 LD="${LD-ld} -m elf64_sparc"
6731 ;;
6732 esac
6733 ;;
6734 esac
6735 fi
6736 rm -rf conftest*
6737 ;;
6738
6739 *-*-sco3.2v5*)
6740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6741 SAVE_CFLAGS="$CFLAGS"
6742 CFLAGS="$CFLAGS -belf"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6744 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6745 if ${lt_cv_cc_needs_belf+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 ac_ext=c
6749 ac_cpp='$CPP $CPPFLAGS'
6750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756
6757 int
6758 main ()
6759 {
6760
6761 ;
6762 return 0;
6763 }
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"; then :
6766 lt_cv_cc_needs_belf=yes
6767 else
6768 lt_cv_cc_needs_belf=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
6772 ac_ext=c
6773 ac_cpp='$CPP $CPPFLAGS'
6774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6780 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6783 CFLAGS="$SAVE_CFLAGS"
6784 fi
6785 ;;
6786 *-*solaris*)
6787 # Find out which ABI we are using.
6788 echo 'int i;' > conftest.$ac_ext
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6791 ac_status=$?
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 case `/usr/bin/file conftest.o` in
6795 *64-bit*)
6796 case $lt_cv_prog_gnu_ld in
6797 yes*)
6798 case $host in
6799 i?86-*-solaris*)
6800 LD="${LD-ld} -m elf_x86_64"
6801 ;;
6802 sparc*-*-solaris*)
6803 LD="${LD-ld} -m elf64_sparc"
6804 ;;
6805 esac
6806 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6807 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6808 LD="${LD-ld}_sol2"
6809 fi
6810 ;;
6811 *)
6812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6813 LD="${LD-ld} -64"
6814 fi
6815 ;;
6816 esac
6817 ;;
6818 esac
6819 fi
6820 rm -rf conftest*
6821 ;;
6822 esac
6823
6824 need_locks="$enable_libtool_lock"
6825
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}mt; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$MANIFEST_TOOL"; then
6835 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6855 if test -n "$MANIFEST_TOOL"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6857 $as_echo "$MANIFEST_TOOL" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6866 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6867 # Extract the first word of "mt", so it can be a program name with args.
6868 set dummy mt; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 if test -n "$ac_ct_MANIFEST_TOOL"; then
6875 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6895 if test -n "$ac_ct_MANIFEST_TOOL"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6897 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6898 else
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6904 MANIFEST_TOOL=":"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6913 fi
6914 else
6915 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6916 fi
6917
6918 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6920 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6921 if ${lt_cv_path_mainfest_tool+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 lt_cv_path_mainfest_tool=no
6925 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6926 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6927 cat conftest.err >&5
6928 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6929 lt_cv_path_mainfest_tool=yes
6930 fi
6931 rm -f conftest*
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6934 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6935 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6936 MANIFEST_TOOL=:
6937 fi
6938
6939
6940
6941
6942
6943
6944 case $host_os in
6945 rhapsody* | darwin*)
6946 if test -n "$ac_tool_prefix"; then
6947 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$DSYMUTIL"; then
6955 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6975 if test -n "$DSYMUTIL"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6977 $as_echo "$DSYMUTIL" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983
6984 fi
6985 if test -z "$ac_cv_prog_DSYMUTIL"; then
6986 ac_ct_DSYMUTIL=$DSYMUTIL
6987 # Extract the first word of "dsymutil", so it can be a program name with args.
6988 set dummy dsymutil; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$ac_ct_DSYMUTIL"; then
6995 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7015 if test -n "$ac_ct_DSYMUTIL"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7017 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7022
7023 if test "x$ac_ct_DSYMUTIL" = x; then
7024 DSYMUTIL=":"
7025 else
7026 case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032 DSYMUTIL=$ac_ct_DSYMUTIL
7033 fi
7034 else
7035 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7036 fi
7037
7038 if test -n "$ac_tool_prefix"; then
7039 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_NMEDIT+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 if test -n "$NMEDIT"; then
7047 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 NMEDIT=$ac_cv_prog_NMEDIT
7067 if test -n "$NMEDIT"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7069 $as_echo "$NMEDIT" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_NMEDIT"; then
7078 ac_ct_NMEDIT=$NMEDIT
7079 # Extract the first word of "nmedit", so it can be a program name with args.
7080 set dummy nmedit; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$ac_ct_NMEDIT"; then
7087 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7107 if test -n "$ac_ct_NMEDIT"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7109 $as_echo "$ac_ct_NMEDIT" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115 if test "x$ac_ct_NMEDIT" = x; then
7116 NMEDIT=":"
7117 else
7118 case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124 NMEDIT=$ac_ct_NMEDIT
7125 fi
7126 else
7127 NMEDIT="$ac_cv_prog_NMEDIT"
7128 fi
7129
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_LIPO+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$LIPO"; then
7139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 LIPO=$ac_cv_prog_LIPO
7159 if test -n "$LIPO"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7161 $as_echo "$LIPO" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_LIPO"; then
7170 ac_ct_LIPO=$LIPO
7171 # Extract the first word of "lipo", so it can be a program name with args.
7172 set dummy lipo; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$ac_ct_LIPO"; then
7179 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_prog_ac_ct_LIPO="lipo"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7199 if test -n "$ac_ct_LIPO"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7201 $as_echo "$ac_ct_LIPO" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207 if test "x$ac_ct_LIPO" = x; then
7208 LIPO=":"
7209 else
7210 case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216 LIPO=$ac_ct_LIPO
7217 fi
7218 else
7219 LIPO="$ac_cv_prog_LIPO"
7220 fi
7221
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}otool; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_OTOOL+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 if test -n "$OTOOL"; then
7231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 OTOOL=$ac_cv_prog_OTOOL
7251 if test -n "$OTOOL"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7253 $as_echo "$OTOOL" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_OTOOL"; then
7262 ac_ct_OTOOL=$OTOOL
7263 # Extract the first word of "otool", so it can be a program name with args.
7264 set dummy otool; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$ac_ct_OTOOL"; then
7271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_ac_ct_OTOOL="otool"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7291 if test -n "$ac_ct_OTOOL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7293 $as_echo "$ac_ct_OTOOL" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299 if test "x$ac_ct_OTOOL" = x; then
7300 OTOOL=":"
7301 else
7302 case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308 OTOOL=$ac_ct_OTOOL
7309 fi
7310 else
7311 OTOOL="$ac_cv_prog_OTOOL"
7312 fi
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_OTOOL64+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$OTOOL64"; then
7323 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 OTOOL64=$ac_cv_prog_OTOOL64
7343 if test -n "$OTOOL64"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7345 $as_echo "$OTOOL64" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_OTOOL64"; then
7354 ac_ct_OTOOL64=$OTOOL64
7355 # Extract the first word of "otool64", so it can be a program name with args.
7356 set dummy otool64; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_OTOOL64"; then
7363 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_OTOOL64="otool64"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7383 if test -n "$ac_ct_OTOOL64"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7385 $as_echo "$ac_ct_OTOOL64" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391 if test "x$ac_ct_OTOOL64" = x; then
7392 OTOOL64=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 OTOOL64=$ac_ct_OTOOL64
7401 fi
7402 else
7403 OTOOL64="$ac_cv_prog_OTOOL64"
7404 fi
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7433 $as_echo_n "checking for -single_module linker flag... " >&6; }
7434 if ${lt_cv_apple_cc_single_mod+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 lt_cv_apple_cc_single_mod=no
7438 if test -z "${LT_MULTI_MODULE}"; then
7439 # By default we will add the -single_module flag. You can override
7440 # by either setting the environment variable LT_MULTI_MODULE
7441 # non-empty at configure time, or by adding -multi_module to the
7442 # link flags.
7443 rm -rf libconftest.dylib*
7444 echo "int foo(void){return 1;}" > conftest.c
7445 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7446 -dynamiclib -Wl,-single_module conftest.c" >&5
7447 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7448 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7449 _lt_result=$?
7450 # If there is a non-empty error log, and "single_module"
7451 # appears in it, assume the flag caused a linker warning
7452 if test -s conftest.err && $GREP single_module conftest.err; then
7453 cat conftest.err >&5
7454 # Otherwise, if the output was created with a 0 exit code from
7455 # the compiler, it worked.
7456 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7457 lt_cv_apple_cc_single_mod=yes
7458 else
7459 cat conftest.err >&5
7460 fi
7461 rm -rf libconftest.dylib*
7462 rm -f conftest.*
7463 fi
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7466 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7469 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7470 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 lt_cv_ld_exported_symbols_list=no
7474 save_LDFLAGS=$LDFLAGS
7475 echo "_main" > conftest.sym
7476 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479
7480 int
7481 main ()
7482 {
7483
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_link "$LINENO"; then :
7489 lt_cv_ld_exported_symbols_list=yes
7490 else
7491 lt_cv_ld_exported_symbols_list=no
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 LDFLAGS="$save_LDFLAGS"
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7499 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7502 $as_echo_n "checking for -force_load linker flag... " >&6; }
7503 if ${lt_cv_ld_force_load+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 lt_cv_ld_force_load=no
7507 cat > conftest.c << _LT_EOF
7508 int forced_loaded() { return 2;}
7509 _LT_EOF
7510 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7511 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7512 echo "$AR cru libconftest.a conftest.o" >&5
7513 $AR cru libconftest.a conftest.o 2>&5
7514 echo "$RANLIB libconftest.a" >&5
7515 $RANLIB libconftest.a 2>&5
7516 cat > conftest.c << _LT_EOF
7517 int main() { return 0;}
7518 _LT_EOF
7519 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7520 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7521 _lt_result=$?
7522 if test -s conftest.err && $GREP force_load conftest.err; then
7523 cat conftest.err >&5
7524 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7525 lt_cv_ld_force_load=yes
7526 else
7527 cat conftest.err >&5
7528 fi
7529 rm -f conftest.err libconftest.a conftest conftest.c
7530 rm -rf conftest.dSYM
7531
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7534 $as_echo "$lt_cv_ld_force_load" >&6; }
7535 case $host_os in
7536 rhapsody* | darwin1.[012])
7537 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7538 darwin1.*)
7539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7540 darwin*) # darwin 5.x on
7541 # if running on 10.5 or later, the deployment target defaults
7542 # to the OS version, if on x86, and 10.4, the deployment
7543 # target defaults to 10.4. Don't you love it?
7544 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7545 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7547 10.[012]*)
7548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7549 10.*)
7550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7551 esac
7552 ;;
7553 esac
7554 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7555 _lt_dar_single_mod='$single_module'
7556 fi
7557 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7558 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7559 else
7560 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7561 fi
7562 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7563 _lt_dsymutil='~$DSYMUTIL $lib || :'
7564 else
7565 _lt_dsymutil=
7566 fi
7567 ;;
7568 esac
7569
7570 ac_ext=c
7571 ac_cpp='$CPP $CPPFLAGS'
7572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7576 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7577 # On Suns, sometimes $CPP names a directory.
7578 if test -n "$CPP" && test -d "$CPP"; then
7579 CPP=
7580 fi
7581 if test -z "$CPP"; then
7582 if ${ac_cv_prog_CPP+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 # Double quotes because CPP needs to be expanded
7586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7587 do
7588 ac_preproc_ok=false
7589 for ac_c_preproc_warn_flag in '' yes
7590 do
7591 # Use a header file that comes with gcc, so configuring glibc
7592 # with a fresh cross-compiler works.
7593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7594 # <limits.h> exists even on freestanding compilers.
7595 # On the NeXT, cc -E runs the code through the compiler's parser,
7596 # not just through cpp. "Syntax error" is here to catch this case.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 #ifdef __STDC__
7600 # include <limits.h>
7601 #else
7602 # include <assert.h>
7603 #endif
7604 Syntax error
7605 _ACEOF
7606 if ac_fn_c_try_cpp "$LINENO"; then :
7607
7608 else
7609 # Broken: fails on valid input.
7610 continue
7611 fi
7612 rm -f conftest.err conftest.i conftest.$ac_ext
7613
7614 # OK, works on sane cases. Now check whether nonexistent headers
7615 # can be detected and how.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #include <ac_nonexistent.h>
7619 _ACEOF
7620 if ac_fn_c_try_cpp "$LINENO"; then :
7621 # Broken: success on invalid input.
7622 continue
7623 else
7624 # Passes both tests.
7625 ac_preproc_ok=:
7626 break
7627 fi
7628 rm -f conftest.err conftest.i conftest.$ac_ext
7629
7630 done
7631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7632 rm -f conftest.i conftest.err conftest.$ac_ext
7633 if $ac_preproc_ok; then :
7634 break
7635 fi
7636
7637 done
7638 ac_cv_prog_CPP=$CPP
7639
7640 fi
7641 CPP=$ac_cv_prog_CPP
7642 else
7643 ac_cv_prog_CPP=$CPP
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7646 $as_echo "$CPP" >&6; }
7647 ac_preproc_ok=false
7648 for ac_c_preproc_warn_flag in '' yes
7649 do
7650 # Use a header file that comes with gcc, so configuring glibc
7651 # with a fresh cross-compiler works.
7652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653 # <limits.h> exists even on freestanding compilers.
7654 # On the NeXT, cc -E runs the code through the compiler's parser,
7655 # not just through cpp. "Syntax error" is here to catch this case.
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #ifdef __STDC__
7659 # include <limits.h>
7660 #else
7661 # include <assert.h>
7662 #endif
7663 Syntax error
7664 _ACEOF
7665 if ac_fn_c_try_cpp "$LINENO"; then :
7666
7667 else
7668 # Broken: fails on valid input.
7669 continue
7670 fi
7671 rm -f conftest.err conftest.i conftest.$ac_ext
7672
7673 # OK, works on sane cases. Now check whether nonexistent headers
7674 # can be detected and how.
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <ac_nonexistent.h>
7678 _ACEOF
7679 if ac_fn_c_try_cpp "$LINENO"; then :
7680 # Broken: success on invalid input.
7681 continue
7682 else
7683 # Passes both tests.
7684 ac_preproc_ok=:
7685 break
7686 fi
7687 rm -f conftest.err conftest.i conftest.$ac_ext
7688
7689 done
7690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7691 rm -f conftest.i conftest.err conftest.$ac_ext
7692 if $ac_preproc_ok; then :
7693
7694 else
7695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7697 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7698 See \`config.log' for more details" "$LINENO" 5; }
7699 fi
7700
7701 ac_ext=c
7702 ac_cpp='$CPP $CPPFLAGS'
7703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706
7707
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7709 $as_echo_n "checking for ANSI C header files... " >&6; }
7710 if ${ac_cv_header_stdc+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715 #include <stdlib.h>
7716 #include <stdarg.h>
7717 #include <string.h>
7718 #include <float.h>
7719
7720 int
7721 main ()
7722 {
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 ac_cv_header_stdc=yes
7730 else
7731 ac_cv_header_stdc=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734
7735 if test $ac_cv_header_stdc = yes; then
7736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #include <string.h>
7740
7741 _ACEOF
7742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7743 $EGREP "memchr" >/dev/null 2>&1; then :
7744
7745 else
7746 ac_cv_header_stdc=no
7747 fi
7748 rm -f conftest*
7749
7750 fi
7751
7752 if test $ac_cv_header_stdc = yes; then
7753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <stdlib.h>
7757
7758 _ACEOF
7759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7760 $EGREP "free" >/dev/null 2>&1; then :
7761
7762 else
7763 ac_cv_header_stdc=no
7764 fi
7765 rm -f conftest*
7766
7767 fi
7768
7769 if test $ac_cv_header_stdc = yes; then
7770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7771 if test "$cross_compiling" = yes; then :
7772 :
7773 else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <ctype.h>
7777 #include <stdlib.h>
7778 #if ((' ' & 0x0FF) == 0x020)
7779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7781 #else
7782 # define ISLOWER(c) \
7783 (('a' <= (c) && (c) <= 'i') \
7784 || ('j' <= (c) && (c) <= 'r') \
7785 || ('s' <= (c) && (c) <= 'z'))
7786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7787 #endif
7788
7789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7790 int
7791 main ()
7792 {
7793 int i;
7794 for (i = 0; i < 256; i++)
7795 if (XOR (islower (i), ISLOWER (i))
7796 || toupper (i) != TOUPPER (i))
7797 return 2;
7798 return 0;
7799 }
7800 _ACEOF
7801 if ac_fn_c_try_run "$LINENO"; then :
7802
7803 else
7804 ac_cv_header_stdc=no
7805 fi
7806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7807 conftest.$ac_objext conftest.beam conftest.$ac_ext
7808 fi
7809
7810 fi
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7813 $as_echo "$ac_cv_header_stdc" >&6; }
7814 if test $ac_cv_header_stdc = yes; then
7815
7816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7817
7818 fi
7819
7820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7821 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7822 inttypes.h stdint.h unistd.h
7823 do :
7824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7826 "
7827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7828 cat >>confdefs.h <<_ACEOF
7829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7830 _ACEOF
7831
7832 fi
7833
7834 done
7835
7836
7837 for ac_header in dlfcn.h
7838 do :
7839 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7840 "
7841 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7842 cat >>confdefs.h <<_ACEOF
7843 #define HAVE_DLFCN_H 1
7844 _ACEOF
7845
7846 fi
7847
7848 done
7849
7850
7851
7852
7853
7854 # Set options
7855
7856
7857
7858 enable_dlopen=no
7859
7860
7861
7862 # Check whether --enable-shared was given.
7863 if test "${enable_shared+set}" = set; then :
7864 enableval=$enable_shared; p=${PACKAGE-default}
7865 case $enableval in
7866 yes) enable_shared=yes ;;
7867 no) enable_shared=no ;;
7868 *)
7869 enable_shared=no
7870 # Look at the argument we got. We use all the common list separators.
7871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7872 for pkg in $enableval; do
7873 IFS="$lt_save_ifs"
7874 if test "X$pkg" = "X$p"; then
7875 enable_shared=yes
7876 fi
7877 done
7878 IFS="$lt_save_ifs"
7879 ;;
7880 esac
7881 else
7882 enable_shared=yes
7883 fi
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895 # Check whether --with-pic was given.
7896 if test "${with_pic+set}" = set; then :
7897 withval=$with_pic; lt_p=${PACKAGE-default}
7898 case $withval in
7899 yes|no) pic_mode=$withval ;;
7900 *)
7901 pic_mode=default
7902 # Look at the argument we got. We use all the common list separators.
7903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7904 for lt_pkg in $withval; do
7905 IFS="$lt_save_ifs"
7906 if test "X$lt_pkg" = "X$lt_p"; then
7907 pic_mode=yes
7908 fi
7909 done
7910 IFS="$lt_save_ifs"
7911 ;;
7912 esac
7913 else
7914 pic_mode=default
7915 fi
7916
7917
7918 test -z "$pic_mode" && pic_mode=default
7919
7920
7921
7922
7923
7924
7925
7926 # Check whether --enable-fast-install was given.
7927 if test "${enable_fast_install+set}" = set; then :
7928 enableval=$enable_fast_install; p=${PACKAGE-default}
7929 case $enableval in
7930 yes) enable_fast_install=yes ;;
7931 no) enable_fast_install=no ;;
7932 *)
7933 enable_fast_install=no
7934 # Look at the argument we got. We use all the common list separators.
7935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7936 for pkg in $enableval; do
7937 IFS="$lt_save_ifs"
7938 if test "X$pkg" = "X$p"; then
7939 enable_fast_install=yes
7940 fi
7941 done
7942 IFS="$lt_save_ifs"
7943 ;;
7944 esac
7945 else
7946 enable_fast_install=yes
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 # This can be used to rebuild libtool when needed
7960 LIBTOOL_DEPS="$ltmain"
7961
7962 # Always use our own libtool.
7963 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 test -z "$LN_S" && LN_S="ln -s"
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 if test -n "${ZSH_VERSION+set}" ; then
8010 setopt NO_GLOB_SUBST
8011 fi
8012
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8014 $as_echo_n "checking for objdir... " >&6; }
8015 if ${lt_cv_objdir+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 rm -f .libs 2>/dev/null
8019 mkdir .libs 2>/dev/null
8020 if test -d .libs; then
8021 lt_cv_objdir=.libs
8022 else
8023 # MS-DOS does not allow filenames that begin with a dot.
8024 lt_cv_objdir=_libs
8025 fi
8026 rmdir .libs 2>/dev/null
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8029 $as_echo "$lt_cv_objdir" >&6; }
8030 objdir=$lt_cv_objdir
8031
8032
8033
8034
8035
8036 cat >>confdefs.h <<_ACEOF
8037 #define LT_OBJDIR "$lt_cv_objdir/"
8038 _ACEOF
8039
8040
8041
8042
8043 case $host_os in
8044 aix3*)
8045 # AIX sometimes has problems with the GCC collect2 program. For some
8046 # reason, if we set the COLLECT_NAMES environment variable, the problems
8047 # vanish in a puff of smoke.
8048 if test "X${COLLECT_NAMES+set}" != Xset; then
8049 COLLECT_NAMES=
8050 export COLLECT_NAMES
8051 fi
8052 ;;
8053 esac
8054
8055 # Global variables:
8056 ofile=libtool
8057 can_build_shared=yes
8058
8059 # All known linkers require a `.a' archive for static linking (except MSVC,
8060 # which needs '.lib').
8061 libext=a
8062
8063 with_gnu_ld="$lt_cv_prog_gnu_ld"
8064
8065 old_CC="$CC"
8066 old_CFLAGS="$CFLAGS"
8067
8068 # Set sane defaults for various variables
8069 test -z "$CC" && CC=cc
8070 test -z "$LTCC" && LTCC=$CC
8071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8072 test -z "$LD" && LD=ld
8073 test -z "$ac_objext" && ac_objext=o
8074
8075 for cc_temp in $compiler""; do
8076 case $cc_temp in
8077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8079 \-*) ;;
8080 *) break;;
8081 esac
8082 done
8083 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8084
8085
8086 # Only perform the check for file, if the check method requires it
8087 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8088 case $deplibs_check_method in
8089 file_magic*)
8090 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8092 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8093 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 case $MAGIC_CMD in
8097 [\\/*] | ?:[\\/]*)
8098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8099 ;;
8100 *)
8101 lt_save_MAGIC_CMD="$MAGIC_CMD"
8102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8104 for ac_dir in $ac_dummy; do
8105 IFS="$lt_save_ifs"
8106 test -z "$ac_dir" && ac_dir=.
8107 if test -f $ac_dir/${ac_tool_prefix}file; then
8108 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8109 if test -n "$file_magic_test_file"; then
8110 case $deplibs_check_method in
8111 "file_magic "*)
8112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8115 $EGREP "$file_magic_regex" > /dev/null; then
8116 :
8117 else
8118 cat <<_LT_EOF 1>&2
8119
8120 *** Warning: the command libtool uses to detect shared libraries,
8121 *** $file_magic_cmd, produces output that libtool cannot recognize.
8122 *** The result is that libtool may fail to recognize shared libraries
8123 *** as such. This will affect the creation of libtool libraries that
8124 *** depend on shared libraries, but programs linked with such libtool
8125 *** libraries will work regardless of this problem. Nevertheless, you
8126 *** may want to report the problem to your system manager and/or to
8127 *** [email protected]
8128
8129 _LT_EOF
8130 fi ;;
8131 esac
8132 fi
8133 break
8134 fi
8135 done
8136 IFS="$lt_save_ifs"
8137 MAGIC_CMD="$lt_save_MAGIC_CMD"
8138 ;;
8139 esac
8140 fi
8141
8142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143 if test -n "$MAGIC_CMD"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8145 $as_echo "$MAGIC_CMD" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152
8153
8154
8155 if test -z "$lt_cv_path_MAGIC_CMD"; then
8156 if test -n "$ac_tool_prefix"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8158 $as_echo_n "checking for file... " >&6; }
8159 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 case $MAGIC_CMD in
8163 [\\/*] | ?:[\\/]*)
8164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8165 ;;
8166 *)
8167 lt_save_MAGIC_CMD="$MAGIC_CMD"
8168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8169 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8170 for ac_dir in $ac_dummy; do
8171 IFS="$lt_save_ifs"
8172 test -z "$ac_dir" && ac_dir=.
8173 if test -f $ac_dir/file; then
8174 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8175 if test -n "$file_magic_test_file"; then
8176 case $deplibs_check_method in
8177 "file_magic "*)
8178 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8181 $EGREP "$file_magic_regex" > /dev/null; then
8182 :
8183 else
8184 cat <<_LT_EOF 1>&2
8185
8186 *** Warning: the command libtool uses to detect shared libraries,
8187 *** $file_magic_cmd, produces output that libtool cannot recognize.
8188 *** The result is that libtool may fail to recognize shared libraries
8189 *** as such. This will affect the creation of libtool libraries that
8190 *** depend on shared libraries, but programs linked with such libtool
8191 *** libraries will work regardless of this problem. Nevertheless, you
8192 *** may want to report the problem to your system manager and/or to
8193 *** [email protected]
8194
8195 _LT_EOF
8196 fi ;;
8197 esac
8198 fi
8199 break
8200 fi
8201 done
8202 IFS="$lt_save_ifs"
8203 MAGIC_CMD="$lt_save_MAGIC_CMD"
8204 ;;
8205 esac
8206 fi
8207
8208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209 if test -n "$MAGIC_CMD"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8211 $as_echo "$MAGIC_CMD" >&6; }
8212 else
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8215 fi
8216
8217
8218 else
8219 MAGIC_CMD=:
8220 fi
8221 fi
8222
8223 fi
8224 ;;
8225 esac
8226
8227 # Use C for the default configuration in the libtool script
8228
8229 lt_save_CC="$CC"
8230 ac_ext=c
8231 ac_cpp='$CPP $CPPFLAGS'
8232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235
8236
8237 # Source file extension for C test sources.
8238 ac_ext=c
8239
8240 # Object file extension for compiled C test sources.
8241 objext=o
8242 objext=$objext
8243
8244 # Code to be used in simple compile tests
8245 lt_simple_compile_test_code="int some_variable = 0;"
8246
8247 # Code to be used in simple link tests
8248 lt_simple_link_test_code='int main(){return(0);}'
8249
8250
8251
8252
8253
8254
8255
8256 # If no C compiler was specified, use CC.
8257 LTCC=${LTCC-"$CC"}
8258
8259 # If no C compiler flags were specified, use CFLAGS.
8260 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8261
8262 # Allow CC to be a program name with arguments.
8263 compiler=$CC
8264
8265 # Save the default compiler, since it gets overwritten when the other
8266 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8267 compiler_DEFAULT=$CC
8268
8269 # save warnings/boilerplate of simple test code
8270 ac_outfile=conftest.$ac_objext
8271 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8272 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8273 _lt_compiler_boilerplate=`cat conftest.err`
8274 $RM conftest*
8275
8276 ac_outfile=conftest.$ac_objext
8277 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8278 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8279 _lt_linker_boilerplate=`cat conftest.err`
8280 $RM -r conftest*
8281
8282
8283 if test -n "$compiler"; then
8284
8285 lt_prog_compiler_no_builtin_flag=
8286
8287 if test "$GCC" = yes; then
8288 case $cc_basename in
8289 nvcc*)
8290 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8291 *)
8292 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8293 esac
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8296 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8297 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 lt_cv_prog_compiler_rtti_exceptions=no
8301 ac_outfile=conftest.$ac_objext
8302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8303 lt_compiler_flag="-fno-rtti -fno-exceptions"
8304 # Insert the option either (1) after the last *FLAGS variable, or
8305 # (2) before a word containing "conftest.", or (3) at the end.
8306 # Note that $ac_compile itself does not contain backslashes and begins
8307 # with a dollar sign (not a hyphen), so the echo should work correctly.
8308 # The option is referenced via a variable to avoid confusing sed.
8309 lt_compile=`echo "$ac_compile" | $SED \
8310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8312 -e 's:$: $lt_compiler_flag:'`
8313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8314 (eval "$lt_compile" 2>conftest.err)
8315 ac_status=$?
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 if (exit $ac_status) && test -s "$ac_outfile"; then
8319 # The compiler can only warn and ignore the option if not recognized
8320 # So say no if there are warnings other than the usual output.
8321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8324 lt_cv_prog_compiler_rtti_exceptions=yes
8325 fi
8326 fi
8327 $RM conftest*
8328
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8331 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8332
8333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8334 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8335 else
8336 :
8337 fi
8338
8339 fi
8340
8341
8342
8343
8344
8345
8346 lt_prog_compiler_wl=
8347 lt_prog_compiler_pic=
8348 lt_prog_compiler_static=
8349
8350
8351 if test "$GCC" = yes; then
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_static='-static'
8354
8355 case $host_os in
8356 aix*)
8357 # All AIX code is PIC.
8358 if test "$host_cpu" = ia64; then
8359 # AIX 5 now supports IA64 processor
8360 lt_prog_compiler_static='-Bstatic'
8361 fi
8362 ;;
8363
8364 amigaos*)
8365 case $host_cpu in
8366 powerpc)
8367 # see comment about AmigaOS4 .so support
8368 lt_prog_compiler_pic='-fPIC'
8369 ;;
8370 m68k)
8371 # FIXME: we need at least 68020 code to build shared libraries, but
8372 # adding the `-m68020' flag to GCC prevents building anything better,
8373 # like `-m68040'.
8374 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8375 ;;
8376 esac
8377 ;;
8378
8379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8380 # PIC is the default for these OSes.
8381 ;;
8382
8383 mingw* | cygwin* | pw32* | os2* | cegcc*)
8384 # This hack is so that the source file can tell whether it is being
8385 # built for inclusion in a dll (and should export symbols for example).
8386 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8387 # (--disable-auto-import) libraries
8388 lt_prog_compiler_pic='-DDLL_EXPORT'
8389 ;;
8390
8391 darwin* | rhapsody*)
8392 # PIC is the default on this platform
8393 # Common symbols not allowed in MH_DYLIB files
8394 lt_prog_compiler_pic='-fno-common'
8395 ;;
8396
8397 haiku*)
8398 # PIC is the default for Haiku.
8399 # The "-static" flag exists, but is broken.
8400 lt_prog_compiler_static=
8401 ;;
8402
8403 hpux*)
8404 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8405 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8406 # sets the default TLS model and affects inlining.
8407 case $host_cpu in
8408 hppa*64*)
8409 # +Z the default
8410 ;;
8411 *)
8412 lt_prog_compiler_pic='-fPIC'
8413 ;;
8414 esac
8415 ;;
8416
8417 interix[3-9]*)
8418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8419 # Instead, we relocate shared libraries at runtime.
8420 ;;
8421
8422 msdosdjgpp*)
8423 # Just because we use GCC doesn't mean we suddenly get shared libraries
8424 # on systems that don't support them.
8425 lt_prog_compiler_can_build_shared=no
8426 enable_shared=no
8427 ;;
8428
8429 *nto* | *qnx*)
8430 # QNX uses GNU C++, but need to define -shared option too, otherwise
8431 # it will coredump.
8432 lt_prog_compiler_pic='-fPIC -shared'
8433 ;;
8434
8435 sysv4*MP*)
8436 if test -d /usr/nec; then
8437 lt_prog_compiler_pic=-Kconform_pic
8438 fi
8439 ;;
8440
8441 *)
8442 lt_prog_compiler_pic='-fPIC'
8443 ;;
8444 esac
8445
8446 case $cc_basename in
8447 nvcc*) # Cuda Compiler Driver 2.2
8448 lt_prog_compiler_wl='-Xlinker '
8449 if test -n "$lt_prog_compiler_pic"; then
8450 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8451 fi
8452 ;;
8453 esac
8454 else
8455 # PORTME Check for flag to pass linker flags through the system compiler.
8456 case $host_os in
8457 aix*)
8458 lt_prog_compiler_wl='-Wl,'
8459 if test "$host_cpu" = ia64; then
8460 # AIX 5 now supports IA64 processor
8461 lt_prog_compiler_static='-Bstatic'
8462 else
8463 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8464 fi
8465 ;;
8466
8467 mingw* | cygwin* | pw32* | os2* | cegcc*)
8468 # This hack is so that the source file can tell whether it is being
8469 # built for inclusion in a dll (and should export symbols for example).
8470 lt_prog_compiler_pic='-DDLL_EXPORT'
8471 ;;
8472
8473 hpux9* | hpux10* | hpux11*)
8474 lt_prog_compiler_wl='-Wl,'
8475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8476 # not for PA HP-UX.
8477 case $host_cpu in
8478 hppa*64*|ia64*)
8479 # +Z the default
8480 ;;
8481 *)
8482 lt_prog_compiler_pic='+Z'
8483 ;;
8484 esac
8485 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8486 lt_prog_compiler_static='${wl}-a ${wl}archive'
8487 ;;
8488
8489 irix5* | irix6* | nonstopux*)
8490 lt_prog_compiler_wl='-Wl,'
8491 # PIC (with -KPIC) is the default.
8492 lt_prog_compiler_static='-non_shared'
8493 ;;
8494
8495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8496 case $cc_basename in
8497 # old Intel for x86_64 which still supported -KPIC.
8498 ecc*)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-static'
8502 ;;
8503 # icc used to be incompatible with GCC.
8504 # ICC 10 doesn't accept -KPIC any more.
8505 icc* | ifort*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-fPIC'
8508 lt_prog_compiler_static='-static'
8509 ;;
8510 # Lahey Fortran 8.1.
8511 lf95*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='--shared'
8514 lt_prog_compiler_static='--static'
8515 ;;
8516 nagfor*)
8517 # NAG Fortran compiler
8518 lt_prog_compiler_wl='-Wl,-Wl,,'
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8523 # Portland Group compilers (*not* the Pentium gcc compiler,
8524 # which looks to be a dead project)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='-fpic'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
8529 ccc*)
8530 lt_prog_compiler_wl='-Wl,'
8531 # All Alpha code is PIC.
8532 lt_prog_compiler_static='-non_shared'
8533 ;;
8534 xl* | bgxl* | bgf* | mpixl*)
8535 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-qpic'
8538 lt_prog_compiler_static='-qstaticlink'
8539 ;;
8540 *)
8541 case `$CC -V 2>&1 | sed 5q` in
8542 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8544 lt_prog_compiler_pic='-KPIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 lt_prog_compiler_wl=''
8547 ;;
8548 *Sun\ F* | *Sun*Fortran*)
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8551 lt_prog_compiler_wl='-Qoption ld '
8552 ;;
8553 *Sun\ C*)
8554 # Sun C 5.9
8555 lt_prog_compiler_pic='-KPIC'
8556 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl='-Wl,'
8558 ;;
8559 *Intel*\ [CF]*Compiler*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-fPIC'
8562 lt_prog_compiler_static='-static'
8563 ;;
8564 *Portland\ Group*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-fpic'
8567 lt_prog_compiler_static='-Bstatic'
8568 ;;
8569 esac
8570 ;;
8571 esac
8572 ;;
8573
8574 newsos6)
8575 lt_prog_compiler_pic='-KPIC'
8576 lt_prog_compiler_static='-Bstatic'
8577 ;;
8578
8579 *nto* | *qnx*)
8580 # QNX uses GNU C++, but need to define -shared option too, otherwise
8581 # it will coredump.
8582 lt_prog_compiler_pic='-fPIC -shared'
8583 ;;
8584
8585 osf3* | osf4* | osf5*)
8586 lt_prog_compiler_wl='-Wl,'
8587 # All OSF/1 code is PIC.
8588 lt_prog_compiler_static='-non_shared'
8589 ;;
8590
8591 rdos*)
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594
8595 solaris*)
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 case $cc_basename in
8599 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8600 lt_prog_compiler_wl='-Qoption ld ';;
8601 *)
8602 lt_prog_compiler_wl='-Wl,';;
8603 esac
8604 ;;
8605
8606 sunos4*)
8607 lt_prog_compiler_wl='-Qoption ld '
8608 lt_prog_compiler_pic='-PIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611
8612 sysv4 | sysv4.2uw2* | sysv4.3*)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 sysv4*MP*)
8619 if test -d /usr/nec ;then
8620 lt_prog_compiler_pic='-Kconform_pic'
8621 lt_prog_compiler_static='-Bstatic'
8622 fi
8623 ;;
8624
8625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 ;;
8630
8631 unicos*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_can_build_shared=no
8634 ;;
8635
8636 uts4*)
8637 lt_prog_compiler_pic='-pic'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640
8641 *)
8642 lt_prog_compiler_can_build_shared=no
8643 ;;
8644 esac
8645 fi
8646
8647 case $host_os in
8648 # For platforms which do not support PIC, -DPIC is meaningless:
8649 *djgpp*)
8650 lt_prog_compiler_pic=
8651 ;;
8652 *)
8653 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8654 ;;
8655 esac
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8658 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8659 if ${lt_cv_prog_compiler_pic+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8665 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8666 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8667
8668 #
8669 # Check to make sure the PIC flag actually works.
8670 #
8671 if test -n "$lt_prog_compiler_pic"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8673 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8674 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 lt_cv_prog_compiler_pic_works=no
8678 ac_outfile=conftest.$ac_objext
8679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8681 # Insert the option either (1) after the last *FLAGS variable, or
8682 # (2) before a word containing "conftest.", or (3) at the end.
8683 # Note that $ac_compile itself does not contain backslashes and begins
8684 # with a dollar sign (not a hyphen), so the echo should work correctly.
8685 # The option is referenced via a variable to avoid confusing sed.
8686 lt_compile=`echo "$ac_compile" | $SED \
8687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689 -e 's:$: $lt_compiler_flag:'`
8690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8691 (eval "$lt_compile" 2>conftest.err)
8692 ac_status=$?
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 if (exit $ac_status) && test -s "$ac_outfile"; then
8696 # The compiler can only warn and ignore the option if not recognized
8697 # So say no if there are warnings other than the usual output.
8698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8701 lt_cv_prog_compiler_pic_works=yes
8702 fi
8703 fi
8704 $RM conftest*
8705
8706 fi
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8708 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8709
8710 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8711 case $lt_prog_compiler_pic in
8712 "" | " "*) ;;
8713 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8714 esac
8715 else
8716 lt_prog_compiler_pic=
8717 lt_prog_compiler_can_build_shared=no
8718 fi
8719
8720 fi
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732 #
8733 # Check to make sure the static flag actually works.
8734 #
8735 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8737 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8738 if ${lt_cv_prog_compiler_static_works+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 lt_cv_prog_compiler_static_works=no
8742 save_LDFLAGS="$LDFLAGS"
8743 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8746 # The linker can only warn and ignore the option if not recognized
8747 # So say no if there are warnings
8748 if test -s conftest.err; then
8749 # Append any errors to the config.log.
8750 cat conftest.err 1>&5
8751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8753 if diff conftest.exp conftest.er2 >/dev/null; then
8754 lt_cv_prog_compiler_static_works=yes
8755 fi
8756 else
8757 lt_cv_prog_compiler_static_works=yes
8758 fi
8759 fi
8760 $RM -r conftest*
8761 LDFLAGS="$save_LDFLAGS"
8762
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8765 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8766
8767 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8768 :
8769 else
8770 lt_prog_compiler_static=
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8781 if ${lt_cv_prog_compiler_c_o+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 lt_cv_prog_compiler_c_o=no
8785 $RM -r conftest 2>/dev/null
8786 mkdir conftest
8787 cd conftest
8788 mkdir out
8789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8790
8791 lt_compiler_flag="-o out/conftest2.$ac_objext"
8792 # Insert the option either (1) after the last *FLAGS variable, or
8793 # (2) before a word containing "conftest.", or (3) at the end.
8794 # Note that $ac_compile itself does not contain backslashes and begins
8795 # with a dollar sign (not a hyphen), so the echo should work correctly.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>out/conftest.err)
8802 ac_status=$?
8803 cat out/conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8806 then
8807 # The compiler can only warn and ignore the option if not recognized
8808 # So say no if there are warnings
8809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8812 lt_cv_prog_compiler_c_o=yes
8813 fi
8814 fi
8815 chmod u+w . 2>&5
8816 $RM conftest*
8817 # SGI C++ compiler will create directory out/ii_files/ for
8818 # template instantiation
8819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8820 $RM out/* && rmdir out
8821 cd ..
8822 $RM -r conftest
8823 $RM conftest*
8824
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8827 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8828
8829
8830
8831
8832
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8835 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8836 if ${lt_cv_prog_compiler_c_o+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 lt_cv_prog_compiler_c_o=no
8840 $RM -r conftest 2>/dev/null
8841 mkdir conftest
8842 cd conftest
8843 mkdir out
8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845
8846 lt_compiler_flag="-o out/conftest2.$ac_objext"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 lt_compile=`echo "$ac_compile" | $SED \
8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854 -e 's:$: $lt_compiler_flag:'`
8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856 (eval "$lt_compile" 2>out/conftest.err)
8857 ac_status=$?
8858 cat out/conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8861 then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings
8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_c_o=yes
8868 fi
8869 fi
8870 chmod u+w . 2>&5
8871 $RM conftest*
8872 # SGI C++ compiler will create directory out/ii_files/ for
8873 # template instantiation
8874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8875 $RM out/* && rmdir out
8876 cd ..
8877 $RM -r conftest
8878 $RM conftest*
8879
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8882 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8883
8884
8885
8886
8887 hard_links="nottested"
8888 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8889 # do not overwrite the value of need_locks provided by the user
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8891 $as_echo_n "checking if we can lock with hard links... " >&6; }
8892 hard_links=yes
8893 $RM conftest*
8894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8895 touch conftest.a
8896 ln conftest.a conftest.b 2>&5 || hard_links=no
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8899 $as_echo "$hard_links" >&6; }
8900 if test "$hard_links" = no; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8902 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8903 need_locks=warn
8904 fi
8905 else
8906 need_locks=no
8907 fi
8908
8909
8910
8911
8912
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8916
8917 runpath_var=
8918 allow_undefined_flag=
8919 always_export_symbols=no
8920 archive_cmds=
8921 archive_expsym_cmds=
8922 compiler_needs_object=no
8923 enable_shared_with_static_runtimes=no
8924 export_dynamic_flag_spec=
8925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8926 hardcode_automatic=no
8927 hardcode_direct=no
8928 hardcode_direct_absolute=no
8929 hardcode_libdir_flag_spec=
8930 hardcode_libdir_separator=
8931 hardcode_minus_L=no
8932 hardcode_shlibpath_var=unsupported
8933 inherit_rpath=no
8934 link_all_deplibs=unknown
8935 module_cmds=
8936 module_expsym_cmds=
8937 old_archive_from_new_cmds=
8938 old_archive_from_expsyms_cmds=
8939 thread_safe_flag_spec=
8940 whole_archive_flag_spec=
8941 # include_expsyms should be a list of space-separated symbols to be *always*
8942 # included in the symbol list
8943 include_expsyms=
8944 # exclude_expsyms can be an extended regexp of symbols to exclude
8945 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8946 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8947 # as well as any symbol that contains `d'.
8948 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8950 # platforms (ab)use it in PIC code, but their linkers get confused if
8951 # the symbol is explicitly referenced. Since portable code cannot
8952 # rely on this symbol name, it's probably fine to never include it in
8953 # preloaded symbol tables.
8954 # Exclude shared library initialization/finalization symbols.
8955 extract_expsyms_cmds=
8956
8957 case $host_os in
8958 cygwin* | mingw* | pw32* | cegcc*)
8959 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8960 # When not using gcc, we currently assume that we are using
8961 # Microsoft Visual C++.
8962 if test "$GCC" != yes; then
8963 with_gnu_ld=no
8964 fi
8965 ;;
8966 interix*)
8967 # we just hope/assume this is gcc and not c89 (= MSVC++)
8968 with_gnu_ld=yes
8969 ;;
8970 openbsd*)
8971 with_gnu_ld=no
8972 ;;
8973 linux* | k*bsd*-gnu | gnu*)
8974 link_all_deplibs=no
8975 ;;
8976 esac
8977
8978 ld_shlibs=yes
8979
8980 # On some targets, GNU ld is compatible enough with the native linker
8981 # that we're better off using the native interface for both.
8982 lt_use_gnu_ld_interface=no
8983 if test "$with_gnu_ld" = yes; then
8984 case $host_os in
8985 aix*)
8986 # The AIX port of GNU ld has always aspired to compatibility
8987 # with the native linker. However, as the warning in the GNU ld
8988 # block says, versions before 2.19.5* couldn't really create working
8989 # shared libraries, regardless of the interface used.
8990 case `$LD -v 2>&1` in
8991 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8992 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8993 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8994 *)
8995 lt_use_gnu_ld_interface=yes
8996 ;;
8997 esac
8998 ;;
8999 *)
9000 lt_use_gnu_ld_interface=yes
9001 ;;
9002 esac
9003 fi
9004
9005 if test "$lt_use_gnu_ld_interface" = yes; then
9006 # If archive_cmds runs LD, not CC, wlarc should be empty
9007 wlarc='${wl}'
9008
9009 # Set some defaults for GNU ld with shared library support. These
9010 # are reset later if shared libraries are not supported. Putting them
9011 # here allows them to be overridden if necessary.
9012 runpath_var=LD_RUN_PATH
9013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014 export_dynamic_flag_spec='${wl}--export-dynamic'
9015 # ancient GNU ld didn't support --whole-archive et. al.
9016 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9018 else
9019 whole_archive_flag_spec=
9020 fi
9021 supports_anon_versioning=no
9022 case `$LD -v 2>&1` in
9023 *GNU\ gold*) supports_anon_versioning=yes ;;
9024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9027 *\ 2.11.*) ;; # other 2.11 versions
9028 *) supports_anon_versioning=yes ;;
9029 esac
9030
9031 # See if GNU ld supports shared libraries.
9032 case $host_os in
9033 aix[3-9]*)
9034 # On AIX/PPC, the GNU linker is very broken
9035 if test "$host_cpu" != ia64; then
9036 ld_shlibs=no
9037 cat <<_LT_EOF 1>&2
9038
9039 *** Warning: the GNU linker, at least up to release 2.19, is reported
9040 *** to be unable to reliably create shared libraries on AIX.
9041 *** Therefore, libtool is disabling shared libraries support. If you
9042 *** really care for shared libraries, you may want to install binutils
9043 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9044 *** You will then need to restart the configuration process.
9045
9046 _LT_EOF
9047 fi
9048 ;;
9049
9050 amigaos*)
9051 case $host_cpu in
9052 powerpc)
9053 # see comment about AmigaOS4 .so support
9054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055 archive_expsym_cmds=''
9056 ;;
9057 m68k)
9058 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)'
9059 hardcode_libdir_flag_spec='-L$libdir'
9060 hardcode_minus_L=yes
9061 ;;
9062 esac
9063 ;;
9064
9065 beos*)
9066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9067 allow_undefined_flag=unsupported
9068 # Joseph Beckenbach <[email protected]> says some releases of gcc
9069 # support --undefined. This deserves some investigation. FIXME
9070 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071 else
9072 ld_shlibs=no
9073 fi
9074 ;;
9075
9076 cygwin* | mingw* | pw32* | cegcc*)
9077 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9078 # as there is no search path for DLLs.
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 export_dynamic_flag_spec='${wl}--export-all-symbols'
9081 allow_undefined_flag=unsupported
9082 always_export_symbols=no
9083 enable_shared_with_static_runtimes=yes
9084 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'
9085 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9086
9087 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9089 # If the export-symbols file already is a .def file (1st line
9090 # is EXPORTS), use it as is; otherwise, prepend...
9091 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9092 cp $export_symbols $output_objdir/$soname.def;
9093 else
9094 echo EXPORTS > $output_objdir/$soname.def;
9095 cat $export_symbols >> $output_objdir/$soname.def;
9096 fi~
9097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9098 else
9099 ld_shlibs=no
9100 fi
9101 ;;
9102
9103 haiku*)
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 link_all_deplibs=yes
9106 ;;
9107
9108 interix[3-9]*)
9109 hardcode_direct=no
9110 hardcode_shlibpath_var=no
9111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9112 export_dynamic_flag_spec='${wl}-E'
9113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9114 # Instead, shared libraries are loaded at an image base (0x10000000 by
9115 # default) and relocated if they conflict, which is a slow very memory
9116 # consuming and fragmenting process. To avoid this, we pick a random,
9117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9120 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'
9121 ;;
9122
9123 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9124 tmp_diet=no
9125 if test "$host_os" = linux-dietlibc; then
9126 case $cc_basename in
9127 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9128 esac
9129 fi
9130 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9131 && test "$tmp_diet" = no
9132 then
9133 tmp_addflag=' $pic_flag'
9134 tmp_sharedflag='-shared'
9135 case $cc_basename,$host_cpu in
9136 pgcc*) # Portland Group C compiler
9137 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'
9138 tmp_addflag=' $pic_flag'
9139 ;;
9140 pgf77* | pgf90* | pgf95* | pgfortran*)
9141 # Portland Group f77 and f90 compilers
9142 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'
9143 tmp_addflag=' $pic_flag -Mnomain' ;;
9144 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9145 tmp_addflag=' -i_dynamic' ;;
9146 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9147 tmp_addflag=' -i_dynamic -nofor_main' ;;
9148 ifc* | ifort*) # Intel Fortran compiler
9149 tmp_addflag=' -nofor_main' ;;
9150 lf95*) # Lahey Fortran 8.1
9151 whole_archive_flag_spec=
9152 tmp_sharedflag='--shared' ;;
9153 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9154 tmp_sharedflag='-qmkshrobj'
9155 tmp_addflag= ;;
9156 nvcc*) # Cuda Compiler Driver 2.2
9157 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'
9158 compiler_needs_object=yes
9159 ;;
9160 esac
9161 case `$CC -V 2>&1 | sed 5q` in
9162 *Sun\ C*) # Sun C 5.9
9163 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'
9164 compiler_needs_object=yes
9165 tmp_sharedflag='-G' ;;
9166 *Sun\ F*) # Sun Fortran 8.3
9167 tmp_sharedflag='-G' ;;
9168 esac
9169 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170
9171 if test "x$supports_anon_versioning" = xyes; then
9172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9174 echo "local: *; };" >> $output_objdir/$libname.ver~
9175 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9176 fi
9177
9178 case $cc_basename in
9179 xlf* | bgf* | bgxlf* | mpixlf*)
9180 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9181 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9183 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9184 if test "x$supports_anon_versioning" = xyes; then
9185 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9187 echo "local: *; };" >> $output_objdir/$libname.ver~
9188 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9189 fi
9190 ;;
9191 esac
9192 else
9193 ld_shlibs=no
9194 fi
9195 ;;
9196
9197 netbsd* | netbsdelf*-gnu)
9198 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9199 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9200 wlarc=
9201 else
9202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9204 fi
9205 ;;
9206
9207 solaris*)
9208 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9209 ld_shlibs=no
9210 cat <<_LT_EOF 1>&2
9211
9212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9213 *** create shared libraries on Solaris systems. Therefore, libtool
9214 *** is disabling shared libraries support. We urge you to upgrade GNU
9215 *** binutils to release 2.9.1 or newer. Another option is to modify
9216 *** your PATH or compiler configuration so that the native linker is
9217 *** used, and then restart.
9218
9219 _LT_EOF
9220 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9223 else
9224 ld_shlibs=no
9225 fi
9226 ;;
9227
9228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9229 case `$LD -v 2>&1` in
9230 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9231 ld_shlibs=no
9232 cat <<_LT_EOF 1>&2
9233
9234 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9235 *** reliably create shared libraries on SCO systems. Therefore, libtool
9236 *** is disabling shared libraries support. We urge you to upgrade GNU
9237 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9238 *** your PATH or compiler configuration so that the native linker is
9239 *** used, and then restart.
9240
9241 _LT_EOF
9242 ;;
9243 *)
9244 # For security reasons, it is highly recommended that you always
9245 # use absolute paths for naming shared libraries, and exclude the
9246 # DT_RUNPATH tag from executables and libraries. But doing so
9247 # requires that you compile everything twice, which is a pain.
9248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9252 else
9253 ld_shlibs=no
9254 fi
9255 ;;
9256 esac
9257 ;;
9258
9259 sunos4*)
9260 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261 wlarc=
9262 hardcode_direct=yes
9263 hardcode_shlibpath_var=no
9264 ;;
9265
9266 *)
9267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9270 else
9271 ld_shlibs=no
9272 fi
9273 ;;
9274 esac
9275
9276 if test "$ld_shlibs" = no; then
9277 runpath_var=
9278 hardcode_libdir_flag_spec=
9279 export_dynamic_flag_spec=
9280 whole_archive_flag_spec=
9281 fi
9282 else
9283 # PORTME fill in a description of your system's linker (not GNU ld)
9284 case $host_os in
9285 aix3*)
9286 allow_undefined_flag=unsupported
9287 always_export_symbols=yes
9288 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'
9289 # Note: this linker hardcodes the directories in LIBPATH if there
9290 # are no directories specified by -L.
9291 hardcode_minus_L=yes
9292 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9293 # Neither direct hardcoding nor static linking is supported with a
9294 # broken collect2.
9295 hardcode_direct=unsupported
9296 fi
9297 ;;
9298
9299 aix[4-9]*)
9300 if test "$host_cpu" = ia64; then
9301 # On IA64, the linker does run time linking by default, so we don't
9302 # have to do anything special.
9303 aix_use_runtimelinking=no
9304 exp_sym_flag='-Bexport'
9305 no_entry_flag=""
9306 else
9307 # If we're using GNU nm, then we don't want the "-C" option.
9308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9309 # Also, AIX nm treats weak defined symbols like other global
9310 # defined symbols, whereas GNU nm marks them as "W".
9311 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9312 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9313 else
9314 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9315 fi
9316 aix_use_runtimelinking=no
9317
9318 # Test if we are trying to use run time linking or normal
9319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9320 # need to do runtime linking.
9321 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9322 for ld_flag in $LDFLAGS; do
9323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9324 aix_use_runtimelinking=yes
9325 break
9326 fi
9327 done
9328 ;;
9329 esac
9330
9331 exp_sym_flag='-bexport'
9332 no_entry_flag='-bnoentry'
9333 fi
9334
9335 # When large executables or shared objects are built, AIX ld can
9336 # have problems creating the table of contents. If linking a library
9337 # or program results in "error TOC overflow" add -mminimal-toc to
9338 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9339 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9340
9341 archive_cmds=''
9342 hardcode_direct=yes
9343 hardcode_direct_absolute=yes
9344 hardcode_libdir_separator=':'
9345 link_all_deplibs=yes
9346 file_list_spec='${wl}-f,'
9347
9348 if test "$GCC" = yes; then
9349 case $host_os in aix4.[012]|aix4.[012].*)
9350 # We only want to do this on AIX 4.2 and lower, the check
9351 # below for broken collect2 doesn't work under 4.3+
9352 collect2name=`${CC} -print-prog-name=collect2`
9353 if test -f "$collect2name" &&
9354 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9355 then
9356 # We have reworked collect2
9357 :
9358 else
9359 # We have old collect2
9360 hardcode_direct=unsupported
9361 # It fails to find uninstalled libraries when the uninstalled
9362 # path is not listed in the libpath. Setting hardcode_minus_L
9363 # to unsupported forces relinking
9364 hardcode_minus_L=yes
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 hardcode_libdir_separator=
9367 fi
9368 ;;
9369 esac
9370 shared_flag='-shared'
9371 if test "$aix_use_runtimelinking" = yes; then
9372 shared_flag="$shared_flag "'${wl}-G'
9373 fi
9374 link_all_deplibs=no
9375 else
9376 # not using gcc
9377 if test "$host_cpu" = ia64; then
9378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9379 # chokes on -Wl,-G. The following line is correct:
9380 shared_flag='-G'
9381 else
9382 if test "$aix_use_runtimelinking" = yes; then
9383 shared_flag='${wl}-G'
9384 else
9385 shared_flag='${wl}-bM:SRE'
9386 fi
9387 fi
9388 fi
9389
9390 export_dynamic_flag_spec='${wl}-bexpall'
9391 # It seems that -bexpall does not export symbols beginning with
9392 # underscore (_), so it is better to generate a list of symbols to export.
9393 always_export_symbols=yes
9394 if test "$aix_use_runtimelinking" = yes; then
9395 # Warning - without using the other runtime loading flags (-brtl),
9396 # -berok will link without error, but may produce a broken library.
9397 allow_undefined_flag='-berok'
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
9400 if test "${lt_cv_aix_libpath+set}" = set; then
9401 aix_libpath=$lt_cv_aix_libpath
9402 else
9403 if ${lt_cv_aix_libpath_+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408
9409 int
9410 main ()
9411 {
9412
9413 ;
9414 return 0;
9415 }
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"; then :
9418
9419 lt_aix_libpath_sed='
9420 /Import File Strings/,/^$/ {
9421 /^0/ {
9422 s/^0 *\([^ ]*\) *$/\1/
9423 p
9424 }
9425 }'
9426 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9427 # Check for a 64-bit object if we didn't find anything.
9428 if test -z "$lt_cv_aix_libpath_"; then
9429 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9430 fi
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434 if test -z "$lt_cv_aix_libpath_"; then
9435 lt_cv_aix_libpath_="/usr/lib:/lib"
9436 fi
9437
9438 fi
9439
9440 aix_libpath=$lt_cv_aix_libpath_
9441 fi
9442
9443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9444 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9445 else
9446 if test "$host_cpu" = ia64; then
9447 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9448 allow_undefined_flag="-z nodefs"
9449 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"
9450 else
9451 # Determine the default libpath from the value encoded in an
9452 # empty executable.
9453 if test "${lt_cv_aix_libpath+set}" = set; then
9454 aix_libpath=$lt_cv_aix_libpath
9455 else
9456 if ${lt_cv_aix_libpath_+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461
9462 int
9463 main ()
9464 {
9465
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471
9472 lt_aix_libpath_sed='
9473 /Import File Strings/,/^$/ {
9474 /^0/ {
9475 s/^0 *\([^ ]*\) *$/\1/
9476 p
9477 }
9478 }'
9479 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 # Check for a 64-bit object if we didn't find anything.
9481 if test -z "$lt_cv_aix_libpath_"; then
9482 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 fi
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 if test -z "$lt_cv_aix_libpath_"; then
9488 lt_cv_aix_libpath_="/usr/lib:/lib"
9489 fi
9490
9491 fi
9492
9493 aix_libpath=$lt_cv_aix_libpath_
9494 fi
9495
9496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9497 # Warning - without using the other run time loading flags,
9498 # -berok will link without error, but may produce a broken library.
9499 no_undefined_flag=' ${wl}-bernotok'
9500 allow_undefined_flag=' ${wl}-berok'
9501 if test "$with_gnu_ld" = yes; then
9502 # We only use this code for GNU lds that support --whole-archive.
9503 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9504 else
9505 # Exported symbols can be pulled into shared objects from archives
9506 whole_archive_flag_spec='$convenience'
9507 fi
9508 archive_cmds_need_lc=yes
9509 # This is similar to how AIX traditionally builds its shared libraries.
9510 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9511 fi
9512 fi
9513 ;;
9514
9515 amigaos*)
9516 case $host_cpu in
9517 powerpc)
9518 # see comment about AmigaOS4 .so support
9519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 archive_expsym_cmds=''
9521 ;;
9522 m68k)
9523 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)'
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_minus_L=yes
9526 ;;
9527 esac
9528 ;;
9529
9530 bsdi[45]*)
9531 export_dynamic_flag_spec=-rdynamic
9532 ;;
9533
9534 cygwin* | mingw* | pw32* | cegcc*)
9535 # When not using gcc, we currently assume that we are using
9536 # Microsoft Visual C++.
9537 # hardcode_libdir_flag_spec is actually meaningless, as there is
9538 # no search path for DLLs.
9539 case $cc_basename in
9540 cl*)
9541 # Native MSVC
9542 hardcode_libdir_flag_spec=' '
9543 allow_undefined_flag=unsupported
9544 always_export_symbols=yes
9545 file_list_spec='@'
9546 # Tell ltmain to make .lib files, not .a files.
9547 libext=lib
9548 # Tell ltmain to make .dll files, not .so files.
9549 shrext_cmds=".dll"
9550 # FIXME: Setting linknames here is a bad hack.
9551 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9552 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9553 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9554 else
9555 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9556 fi~
9557 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9558 linknames='
9559 # The linker will not automatically build a static lib if we build a DLL.
9560 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9561 enable_shared_with_static_runtimes=yes
9562 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9564 # Don't use ranlib
9565 old_postinstall_cmds='chmod 644 $oldlib'
9566 postlink_cmds='lt_outputfile="@OUTPUT@"~
9567 lt_tool_outputfile="@TOOL_OUTPUT@"~
9568 case $lt_outputfile in
9569 *.exe|*.EXE) ;;
9570 *)
9571 lt_outputfile="$lt_outputfile.exe"
9572 lt_tool_outputfile="$lt_tool_outputfile.exe"
9573 ;;
9574 esac~
9575 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9576 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9577 $RM "$lt_outputfile.manifest";
9578 fi'
9579 ;;
9580 *)
9581 # Assume MSVC wrapper
9582 hardcode_libdir_flag_spec=' '
9583 allow_undefined_flag=unsupported
9584 # Tell ltmain to make .lib files, not .a files.
9585 libext=lib
9586 # Tell ltmain to make .dll files, not .so files.
9587 shrext_cmds=".dll"
9588 # FIXME: Setting linknames here is a bad hack.
9589 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9590 # The linker will automatically build a .lib file if we build a DLL.
9591 old_archive_from_new_cmds='true'
9592 # FIXME: Should let the user specify the lib program.
9593 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9594 enable_shared_with_static_runtimes=yes
9595 ;;
9596 esac
9597 ;;
9598
9599 darwin* | rhapsody*)
9600
9601
9602 archive_cmds_need_lc=no
9603 hardcode_direct=no
9604 hardcode_automatic=yes
9605 hardcode_shlibpath_var=unsupported
9606 if test "$lt_cv_ld_force_load" = "yes"; then
9607 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\"`'
9608
9609 else
9610 whole_archive_flag_spec=''
9611 fi
9612 link_all_deplibs=yes
9613 allow_undefined_flag="$_lt_dar_allow_undefined"
9614 case $cc_basename in
9615 ifort*) _lt_dar_can_shared=yes ;;
9616 *) _lt_dar_can_shared=$GCC ;;
9617 esac
9618 if test "$_lt_dar_can_shared" = "yes"; then
9619 output_verbose_link_cmd=func_echo_all
9620 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9621 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9622 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}"
9623 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}"
9624
9625 else
9626 ld_shlibs=no
9627 fi
9628
9629 ;;
9630
9631 dgux*)
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9638 # support. Future versions do this automatically, but an explicit c++rt0.o
9639 # does not break anything, and helps significantly (at the cost of a little
9640 # extra space).
9641 freebsd2.2*)
9642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9643 hardcode_libdir_flag_spec='-R$libdir'
9644 hardcode_direct=yes
9645 hardcode_shlibpath_var=no
9646 ;;
9647
9648 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9649 freebsd2.*)
9650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_direct=yes
9652 hardcode_minus_L=yes
9653 hardcode_shlibpath_var=no
9654 ;;
9655
9656 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9657 freebsd* | dragonfly*)
9658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9659 hardcode_libdir_flag_spec='-R$libdir'
9660 hardcode_direct=yes
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 hpux9*)
9665 if test "$GCC" = yes; then
9666 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9667 else
9668 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9669 fi
9670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9671 hardcode_libdir_separator=:
9672 hardcode_direct=yes
9673
9674 # hardcode_minus_L: Not really in the search PATH,
9675 # but as the default location of the library.
9676 hardcode_minus_L=yes
9677 export_dynamic_flag_spec='${wl}-E'
9678 ;;
9679
9680 hpux10*)
9681 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9682 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683 else
9684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9685 fi
9686 if test "$with_gnu_ld" = no; then
9687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9688 hardcode_libdir_separator=:
9689 hardcode_direct=yes
9690 hardcode_direct_absolute=yes
9691 export_dynamic_flag_spec='${wl}-E'
9692 # hardcode_minus_L: Not really in the search PATH,
9693 # but as the default location of the library.
9694 hardcode_minus_L=yes
9695 fi
9696 ;;
9697
9698 hpux11*)
9699 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9700 case $host_cpu in
9701 hppa*64*)
9702 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 ia64*)
9705 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 *)
9708 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 esac
9711 else
9712 case $host_cpu in
9713 hppa*64*)
9714 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 ;;
9716 ia64*)
9717 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9718 ;;
9719 *)
9720
9721 # Older versions of the 11.00 compiler do not understand -b yet
9722 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9724 $as_echo_n "checking if $CC understands -b... " >&6; }
9725 if ${lt_cv_prog_compiler__b+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 lt_cv_prog_compiler__b=no
9729 save_LDFLAGS="$LDFLAGS"
9730 LDFLAGS="$LDFLAGS -b"
9731 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9733 # The linker can only warn and ignore the option if not recognized
9734 # So say no if there are warnings
9735 if test -s conftest.err; then
9736 # Append any errors to the config.log.
9737 cat conftest.err 1>&5
9738 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9740 if diff conftest.exp conftest.er2 >/dev/null; then
9741 lt_cv_prog_compiler__b=yes
9742 fi
9743 else
9744 lt_cv_prog_compiler__b=yes
9745 fi
9746 fi
9747 $RM -r conftest*
9748 LDFLAGS="$save_LDFLAGS"
9749
9750 fi
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9752 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9753
9754 if test x"$lt_cv_prog_compiler__b" = xyes; then
9755 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9756 else
9757 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9758 fi
9759
9760 ;;
9761 esac
9762 fi
9763 if test "$with_gnu_ld" = no; then
9764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9765 hardcode_libdir_separator=:
9766
9767 case $host_cpu in
9768 hppa*64*|ia64*)
9769 hardcode_direct=no
9770 hardcode_shlibpath_var=no
9771 ;;
9772 *)
9773 hardcode_direct=yes
9774 hardcode_direct_absolute=yes
9775 export_dynamic_flag_spec='${wl}-E'
9776
9777 # hardcode_minus_L: Not really in the search PATH,
9778 # but as the default location of the library.
9779 hardcode_minus_L=yes
9780 ;;
9781 esac
9782 fi
9783 ;;
9784
9785 irix5* | irix6* | nonstopux*)
9786 if test "$GCC" = yes; then
9787 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'
9788 # Try to use the -exported_symbol ld option, if it does not
9789 # work, assume that -exports_file does not work either and
9790 # implicitly export all symbols.
9791 # This should be the same for all languages, so no per-tag cache variable.
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9793 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9794 if ${lt_cv_irix_exported_symbol+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 save_LDFLAGS="$LDFLAGS"
9798 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801 int foo (void) { return 0; }
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804 lt_cv_irix_exported_symbol=yes
9805 else
9806 lt_cv_irix_exported_symbol=no
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 LDFLAGS="$save_LDFLAGS"
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9813 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9814 if test "$lt_cv_irix_exported_symbol" = yes; then
9815 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'
9816 fi
9817 else
9818 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'
9819 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'
9820 fi
9821 archive_cmds_need_lc='no'
9822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9823 hardcode_libdir_separator=:
9824 inherit_rpath=yes
9825 link_all_deplibs=yes
9826 ;;
9827
9828 netbsd* | netbsdelf*-gnu)
9829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9831 else
9832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9833 fi
9834 hardcode_libdir_flag_spec='-R$libdir'
9835 hardcode_direct=yes
9836 hardcode_shlibpath_var=no
9837 ;;
9838
9839 newsos6)
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_direct=yes
9842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9843 hardcode_libdir_separator=:
9844 hardcode_shlibpath_var=no
9845 ;;
9846
9847 *nto* | *qnx*)
9848 ;;
9849
9850 openbsd*)
9851 if test -f /usr/libexec/ld.so; then
9852 hardcode_direct=yes
9853 hardcode_shlibpath_var=no
9854 hardcode_direct_absolute=yes
9855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9859 export_dynamic_flag_spec='${wl}-E'
9860 else
9861 case $host_os in
9862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_libdir_flag_spec='-R$libdir'
9865 ;;
9866 *)
9867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9869 ;;
9870 esac
9871 fi
9872 else
9873 ld_shlibs=no
9874 fi
9875 ;;
9876
9877 os2*)
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_minus_L=yes
9880 allow_undefined_flag=unsupported
9881 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9882 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9883 ;;
9884
9885 osf3*)
9886 if test "$GCC" = yes; then
9887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9888 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'
9889 else
9890 allow_undefined_flag=' -expect_unresolved \*'
9891 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'
9892 fi
9893 archive_cmds_need_lc='no'
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 ;;
9897
9898 osf4* | osf5*) # as osf3* with the addition of -msym flag
9899 if test "$GCC" = yes; then
9900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9901 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'
9902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903 else
9904 allow_undefined_flag=' -expect_unresolved \*'
9905 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'
9906 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~
9907 $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'
9908
9909 # Both c and cxx compiler support -rpath directly
9910 hardcode_libdir_flag_spec='-rpath $libdir'
9911 fi
9912 archive_cmds_need_lc='no'
9913 hardcode_libdir_separator=:
9914 ;;
9915
9916 solaris*)
9917 no_undefined_flag=' -z defs'
9918 if test "$GCC" = yes; then
9919 wlarc='${wl}'
9920 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9922 $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'
9923 else
9924 case `$CC -V 2>&1` in
9925 *"Compilers 5.0"*)
9926 wlarc=''
9927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9930 ;;
9931 *)
9932 wlarc='${wl}'
9933 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9936 ;;
9937 esac
9938 fi
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 hardcode_shlibpath_var=no
9941 case $host_os in
9942 solaris2.[0-5] | solaris2.[0-5].*) ;;
9943 *)
9944 # The compiler driver will combine and reorder linker options,
9945 # but understands `-z linker_flag'. GCC discards it without `$wl',
9946 # but is careful enough not to reorder.
9947 # Supported since Solaris 2.6 (maybe 2.5.1?)
9948 if test "$GCC" = yes; then
9949 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9950 else
9951 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9952 fi
9953 ;;
9954 esac
9955 link_all_deplibs=yes
9956 ;;
9957
9958 sunos4*)
9959 if test "x$host_vendor" = xsequent; then
9960 # Use $CC to link under sequent, because it throws in some extra .o
9961 # files that make .init and .fini sections work.
9962 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9963 else
9964 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9965 fi
9966 hardcode_libdir_flag_spec='-L$libdir'
9967 hardcode_direct=yes
9968 hardcode_minus_L=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 sysv4)
9973 case $host_vendor in
9974 sni)
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_direct=yes # is this really true???
9977 ;;
9978 siemens)
9979 ## LD is ld it makes a PLAMLIB
9980 ## CC just makes a GrossModule.
9981 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9982 reload_cmds='$CC -r -o $output$reload_objs'
9983 hardcode_direct=no
9984 ;;
9985 motorola)
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9988 ;;
9989 esac
9990 runpath_var='LD_RUN_PATH'
9991 hardcode_shlibpath_var=no
9992 ;;
9993
9994 sysv4.3*)
9995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996 hardcode_shlibpath_var=no
9997 export_dynamic_flag_spec='-Bexport'
9998 ;;
9999
10000 sysv4*MP*)
10001 if test -d /usr/nec; then
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_shlibpath_var=no
10004 runpath_var=LD_RUN_PATH
10005 hardcode_runpath_var=yes
10006 ld_shlibs=yes
10007 fi
10008 ;;
10009
10010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10011 no_undefined_flag='${wl}-z,text'
10012 archive_cmds_need_lc=no
10013 hardcode_shlibpath_var=no
10014 runpath_var='LD_RUN_PATH'
10015
10016 if test "$GCC" = yes; then
10017 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 else
10020 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 fi
10023 ;;
10024
10025 sysv5* | sco3.2v5* | sco5v6*)
10026 # Note: We can NOT use -z defs as we might desire, because we do not
10027 # link with -lc, and that would cause any symbols used from libc to
10028 # always be unresolved, which means just about no library would
10029 # ever link correctly. If we're not using GNU ld we use -z text
10030 # though, which does catch some bad symbols but isn't as heavy-handed
10031 # as -z defs.
10032 no_undefined_flag='${wl}-z,text'
10033 allow_undefined_flag='${wl}-z,nodefs'
10034 archive_cmds_need_lc=no
10035 hardcode_shlibpath_var=no
10036 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10037 hardcode_libdir_separator=':'
10038 link_all_deplibs=yes
10039 export_dynamic_flag_spec='${wl}-Bexport'
10040 runpath_var='LD_RUN_PATH'
10041
10042 if test "$GCC" = yes; then
10043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 else
10046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 fi
10049 ;;
10050
10051 uts4*)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 *)
10058 ld_shlibs=no
10059 ;;
10060 esac
10061
10062 if test x$host_vendor = xsni; then
10063 case $host in
10064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10065 export_dynamic_flag_spec='${wl}-Blargedynsym'
10066 ;;
10067 esac
10068 fi
10069 fi
10070
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10072 $as_echo "$ld_shlibs" >&6; }
10073 test "$ld_shlibs" = no && can_build_shared=no
10074
10075 with_gnu_ld=$with_gnu_ld
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091 #
10092 # Do we need to explicitly link libc?
10093 #
10094 case "x$archive_cmds_need_lc" in
10095 x|xyes)
10096 # Assume -lc should be added
10097 archive_cmds_need_lc=yes
10098
10099 if test "$enable_shared" = yes && test "$GCC" = yes; then
10100 case $archive_cmds in
10101 *'~'*)
10102 # FIXME: we may have to deal with multi-command sequences.
10103 ;;
10104 '$CC '*)
10105 # Test whether the compiler implicitly links with -lc since on some
10106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10107 # to ld, don't add -lc before -lgcc.
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10109 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10110 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 $RM conftest*
10114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10115
10116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10117 (eval $ac_compile) 2>&5
10118 ac_status=$?
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; } 2>conftest.err; then
10121 soname=conftest
10122 lib=conftest
10123 libobjs=conftest.$ac_objext
10124 deplibs=
10125 wl=$lt_prog_compiler_wl
10126 pic_flag=$lt_prog_compiler_pic
10127 compiler_flags=-v
10128 linker_flags=-v
10129 verstring=
10130 output_objdir=.
10131 libname=conftest
10132 lt_save_allow_undefined_flag=$allow_undefined_flag
10133 allow_undefined_flag=
10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10135 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10136 ac_status=$?
10137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10138 test $ac_status = 0; }
10139 then
10140 lt_cv_archive_cmds_need_lc=no
10141 else
10142 lt_cv_archive_cmds_need_lc=yes
10143 fi
10144 allow_undefined_flag=$lt_save_allow_undefined_flag
10145 else
10146 cat conftest.err 1>&5
10147 fi
10148 $RM conftest*
10149
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10152 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10153 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10154 ;;
10155 esac
10156 fi
10157 ;;
10158 esac
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10312 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10313
10314 if test "$GCC" = yes; then
10315 case $host_os in
10316 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10317 *) lt_awk_arg="/^libraries:/" ;;
10318 esac
10319 case $host_os in
10320 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10321 *) lt_sed_strip_eq="s,=/,/,g" ;;
10322 esac
10323 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10324 case $lt_search_path_spec in
10325 *\;*)
10326 # if the path contains ";" then we assume it to be the separator
10327 # otherwise default to the standard path separator (i.e. ":") - it is
10328 # assumed that no part of a normal pathname contains ";" but that should
10329 # okay in the real world where ";" in dirpaths is itself problematic.
10330 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10331 ;;
10332 *)
10333 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10334 ;;
10335 esac
10336 # Ok, now we have the path, separated by spaces, we can step through it
10337 # and add multilib dir if necessary.
10338 lt_tmp_lt_search_path_spec=
10339 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10340 for lt_sys_path in $lt_search_path_spec; do
10341 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10342 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10343 else
10344 test -d "$lt_sys_path" && \
10345 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10346 fi
10347 done
10348 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10349 BEGIN {RS=" "; FS="/|\n";} {
10350 lt_foo="";
10351 lt_count=0;
10352 for (lt_i = NF; lt_i > 0; lt_i--) {
10353 if ($lt_i != "" && $lt_i != ".") {
10354 if ($lt_i == "..") {
10355 lt_count++;
10356 } else {
10357 if (lt_count == 0) {
10358 lt_foo="/" $lt_i lt_foo;
10359 } else {
10360 lt_count--;
10361 }
10362 }
10363 }
10364 }
10365 if (lt_foo != "") { lt_freq[lt_foo]++; }
10366 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10367 }'`
10368 # AWK program above erroneously prepends '/' to C:/dos/paths
10369 # for these hosts.
10370 case $host_os in
10371 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10372 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10373 esac
10374 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10375 else
10376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10377 fi
10378 library_names_spec=
10379 libname_spec='lib$name'
10380 soname_spec=
10381 shrext_cmds=".so"
10382 postinstall_cmds=
10383 postuninstall_cmds=
10384 finish_cmds=
10385 finish_eval=
10386 shlibpath_var=
10387 shlibpath_overrides_runpath=unknown
10388 version_type=none
10389 dynamic_linker="$host_os ld.so"
10390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10391 need_lib_prefix=unknown
10392 hardcode_into_libs=no
10393
10394 # when you set need_version to no, make sure it does not cause -set_version
10395 # flags to be left without arguments
10396 need_version=unknown
10397
10398 case $host_os in
10399 aix3*)
10400 version_type=linux # correct to gnu/linux during the next big refactor
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10402 shlibpath_var=LIBPATH
10403
10404 # AIX 3 has no versioning support, so we append a major version to the name.
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 ;;
10407
10408 aix[4-9]*)
10409 version_type=linux # correct to gnu/linux during the next big refactor
10410 need_lib_prefix=no
10411 need_version=no
10412 hardcode_into_libs=yes
10413 if test "$host_cpu" = ia64; then
10414 # AIX 5 supports IA64
10415 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 else
10418 # With GCC up to 2.95.x, collect2 would create an import file
10419 # for dependence libraries. The import file would start with
10420 # the line `#! .'. This would cause the generated library to
10421 # depend on `.', always an invalid library. This was fixed in
10422 # development snapshots of GCC prior to 3.0.
10423 case $host_os in
10424 aix4 | aix4.[01] | aix4.[01].*)
10425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10426 echo ' yes '
10427 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10428 :
10429 else
10430 can_build_shared=no
10431 fi
10432 ;;
10433 esac
10434 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10435 # soname into executable. Probably we can add versioning support to
10436 # collect2, so additional links can be useful in future.
10437 if test "$aix_use_runtimelinking" = yes; then
10438 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10439 # instead of lib<name>.a to let people know that these are not
10440 # typical AIX shared libraries.
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 else
10443 # We preserve .a as extension for shared libraries through AIX4.2
10444 # and later when we are not doing run time linking.
10445 library_names_spec='${libname}${release}.a $libname.a'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 fi
10448 shlibpath_var=LIBPATH
10449 fi
10450 ;;
10451
10452 amigaos*)
10453 case $host_cpu in
10454 powerpc)
10455 # Since July 2007 AmigaOS4 officially supports .so libraries.
10456 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 ;;
10459 m68k)
10460 library_names_spec='$libname.ixlibrary $libname.a'
10461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10462 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10463 ;;
10464 esac
10465 ;;
10466
10467 beos*)
10468 library_names_spec='${libname}${shared_ext}'
10469 dynamic_linker="$host_os ld.so"
10470 shlibpath_var=LIBRARY_PATH
10471 ;;
10472
10473 bsdi[45]*)
10474 version_type=linux # correct to gnu/linux during the next big refactor
10475 need_version=no
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10482 # the default ld.so.conf also contains /usr/contrib/lib and
10483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10484 # libtool to hard-code these into programs
10485 ;;
10486
10487 cygwin* | mingw* | pw32* | cegcc*)
10488 version_type=windows
10489 shrext_cmds=".dll"
10490 need_version=no
10491 need_lib_prefix=no
10492
10493 case $GCC,$cc_basename in
10494 yes,*)
10495 # gcc
10496 library_names_spec='$libname.dll.a'
10497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10498 postinstall_cmds='base_file=`basename \${file}`~
10499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10500 dldir=$destdir/`dirname \$dlpath`~
10501 test -d \$dldir || mkdir -p \$dldir~
10502 $install_prog $dir/$dlname \$dldir/$dlname~
10503 chmod a+x \$dldir/$dlname~
10504 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10505 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10506 fi'
10507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10508 dlpath=$dir/\$dldll~
10509 $RM \$dlpath'
10510 shlibpath_overrides_runpath=yes
10511
10512 case $host_os in
10513 cygwin*)
10514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10516
10517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10518 ;;
10519 mingw* | cegcc*)
10520 # MinGW DLLs use traditional 'lib' prefix
10521 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10522 ;;
10523 pw32*)
10524 # pw32 DLLs use 'pw' prefix rather than 'lib'
10525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10526 ;;
10527 esac
10528 dynamic_linker='Win32 ld.exe'
10529 ;;
10530
10531 *,cl*)
10532 # Native MSVC
10533 libname_spec='$name'
10534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535 library_names_spec='${libname}.dll.lib'
10536
10537 case $build_os in
10538 mingw*)
10539 sys_lib_search_path_spec=
10540 lt_save_ifs=$IFS
10541 IFS=';'
10542 for lt_path in $LIB
10543 do
10544 IFS=$lt_save_ifs
10545 # Let DOS variable expansion print the short 8.3 style file name.
10546 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10547 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10548 done
10549 IFS=$lt_save_ifs
10550 # Convert to MSYS style.
10551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10552 ;;
10553 cygwin*)
10554 # Convert to unix form, then to dos form, then back to unix form
10555 # but this time dos style (no spaces!) so that the unix form looks
10556 # like /cygdrive/c/PROGRA~1:/cygdr...
10557 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10558 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10559 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10560 ;;
10561 *)
10562 sys_lib_search_path_spec="$LIB"
10563 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10564 # It is most probably a Windows format PATH.
10565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10566 else
10567 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10568 fi
10569 # FIXME: find the short name or the path components, as spaces are
10570 # common. (e.g. "Program Files" -> "PROGRA~1")
10571 ;;
10572 esac
10573
10574 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10575 postinstall_cmds='base_file=`basename \${file}`~
10576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10577 dldir=$destdir/`dirname \$dlpath`~
10578 test -d \$dldir || mkdir -p \$dldir~
10579 $install_prog $dir/$dlname \$dldir/$dlname'
10580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10581 dlpath=$dir/\$dldll~
10582 $RM \$dlpath'
10583 shlibpath_overrides_runpath=yes
10584 dynamic_linker='Win32 link.exe'
10585 ;;
10586
10587 *)
10588 # Assume MSVC wrapper
10589 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10590 dynamic_linker='Win32 ld.exe'
10591 ;;
10592 esac
10593 # FIXME: first we should search . and the directory the executable is in
10594 shlibpath_var=PATH
10595 ;;
10596
10597 darwin* | rhapsody*)
10598 dynamic_linker="$host_os dyld"
10599 version_type=darwin
10600 need_lib_prefix=no
10601 need_version=no
10602 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10603 soname_spec='${libname}${release}${major}$shared_ext'
10604 shlibpath_overrides_runpath=yes
10605 shlibpath_var=DYLD_LIBRARY_PATH
10606 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10607
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10609 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10610 ;;
10611
10612 dgux*)
10613 version_type=linux # correct to gnu/linux during the next big refactor
10614 need_lib_prefix=no
10615 need_version=no
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 freebsd* | dragonfly*)
10622 # DragonFly does not have aout. When/if they implement a new
10623 # versioning mechanism, adjust this.
10624 if test -x /usr/bin/objformat; then
10625 objformat=`/usr/bin/objformat`
10626 else
10627 case $host_os in
10628 freebsd[23].*) objformat=aout ;;
10629 *) objformat=elf ;;
10630 esac
10631 fi
10632 version_type=freebsd-$objformat
10633 case $version_type in
10634 freebsd-elf*)
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10636 need_version=no
10637 need_lib_prefix=no
10638 ;;
10639 freebsd-*)
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10641 need_version=yes
10642 ;;
10643 esac
10644 shlibpath_var=LD_LIBRARY_PATH
10645 case $host_os in
10646 freebsd2.*)
10647 shlibpath_overrides_runpath=yes
10648 ;;
10649 freebsd3.[01]* | freebsdelf3.[01]*)
10650 shlibpath_overrides_runpath=yes
10651 hardcode_into_libs=yes
10652 ;;
10653 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10654 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 ;;
10658 *) # from 4.6 on, and DragonFly
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10661 ;;
10662 esac
10663 ;;
10664
10665 gnu*)
10666 version_type=linux # correct to gnu/linux during the next big refactor
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 ;;
10675
10676 haiku*)
10677 version_type=linux # correct to gnu/linux during the next big refactor
10678 need_lib_prefix=no
10679 need_version=no
10680 dynamic_linker="$host_os runtime_loader"
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LIBRARY_PATH
10684 shlibpath_overrides_runpath=yes
10685 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10686 hardcode_into_libs=yes
10687 ;;
10688
10689 hpux9* | hpux10* | hpux11*)
10690 # Give a soname corresponding to the major version so that dld.sl refuses to
10691 # link against other versions.
10692 version_type=sunos
10693 need_lib_prefix=no
10694 need_version=no
10695 case $host_cpu in
10696 ia64*)
10697 shrext_cmds='.so'
10698 hardcode_into_libs=yes
10699 dynamic_linker="$host_os dld.so"
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 if test "X$HPUX_IA64_MODE" = X32; then
10705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10706 else
10707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10708 fi
10709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10710 ;;
10711 hppa*64*)
10712 shrext_cmds='.sl'
10713 hardcode_into_libs=yes
10714 dynamic_linker="$host_os dld.sl"
10715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10721 ;;
10722 *)
10723 shrext_cmds='.sl'
10724 dynamic_linker="$host_os dld.sl"
10725 shlibpath_var=SHLIB_PATH
10726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 ;;
10730 esac
10731 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10732 postinstall_cmds='chmod 555 $lib'
10733 # or fails outright, so override atomically:
10734 install_override_mode=555
10735 ;;
10736
10737 interix[3-9]*)
10738 version_type=linux # correct to gnu/linux during the next big refactor
10739 need_lib_prefix=no
10740 need_version=no
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=no
10746 hardcode_into_libs=yes
10747 ;;
10748
10749 irix5* | irix6* | nonstopux*)
10750 case $host_os in
10751 nonstopux*) version_type=nonstopux ;;
10752 *)
10753 if test "$lt_cv_prog_gnu_ld" = yes; then
10754 version_type=linux # correct to gnu/linux during the next big refactor
10755 else
10756 version_type=irix
10757 fi ;;
10758 esac
10759 need_lib_prefix=no
10760 need_version=no
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10763 case $host_os in
10764 irix5* | nonstopux*)
10765 libsuff= shlibsuff=
10766 ;;
10767 *)
10768 case $LD in # libtool.m4 will add one of these switches to LD
10769 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10770 libsuff= shlibsuff= libmagic=32-bit;;
10771 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10772 libsuff=32 shlibsuff=N32 libmagic=N32;;
10773 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10774 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10775 *) libsuff= shlibsuff= libmagic=never-match;;
10776 esac
10777 ;;
10778 esac
10779 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10780 shlibpath_overrides_runpath=no
10781 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10782 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10783 hardcode_into_libs=yes
10784 ;;
10785
10786 # No shared lib support for Linux oldld, aout, or coff.
10787 linux*oldld* | linux*aout* | linux*coff*)
10788 dynamic_linker=no
10789 ;;
10790
10791 # This must be glibc/ELF.
10792 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10793 version_type=linux # correct to gnu/linux during the next big refactor
10794 need_lib_prefix=no
10795 need_version=no
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=no
10801
10802 # Some binutils ld are patched to set DT_RUNPATH
10803 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 lt_cv_shlibpath_overrides_runpath=no
10807 save_LDFLAGS=$LDFLAGS
10808 save_libdir=$libdir
10809 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10810 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813
10814 int
10815 main ()
10816 {
10817
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10824 lt_cv_shlibpath_overrides_runpath=yes
10825 fi
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LDFLAGS=$save_LDFLAGS
10830 libdir=$save_libdir
10831
10832 fi
10833
10834 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10835
10836 # This implies no fast_install, which is unacceptable.
10837 # Some rework will be needed to allow for fast_install
10838 # before this can be enabled.
10839 hardcode_into_libs=yes
10840
10841 # Append ld.so.conf contents to the search path
10842 if test -f /etc/ld.so.conf; then
10843 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' ' '`
10844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10845 fi
10846
10847 # We used to test for /lib/ld.so.1 and disable shared libraries on
10848 # powerpc, because MkLinux only supported shared libraries with the
10849 # GNU dynamic linker. Since this was broken with cross compilers,
10850 # most powerpc-linux boxes support dynamic linking these days and
10851 # people can always --disable-shared, the test was removed, and we
10852 # assume the GNU/Linux dynamic linker is in use.
10853 dynamic_linker='GNU/Linux ld.so'
10854 ;;
10855
10856 netbsdelf*-gnu)
10857 version_type=linux
10858 need_lib_prefix=no
10859 need_version=no
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10865 dynamic_linker='NetBSD ld.elf_so'
10866 ;;
10867
10868 netbsd*)
10869 version_type=sunos
10870 need_lib_prefix=no
10871 need_version=no
10872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10875 dynamic_linker='NetBSD (a.out) ld.so'
10876 else
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 dynamic_linker='NetBSD ld.elf_so'
10880 fi
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 hardcode_into_libs=yes
10884 ;;
10885
10886 newsos6)
10887 version_type=linux # correct to gnu/linux during the next big refactor
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10891 ;;
10892
10893 *nto* | *qnx*)
10894 version_type=qnx
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 dynamic_linker='ldqnx.so'
10903 ;;
10904
10905 openbsd*)
10906 version_type=sunos
10907 sys_lib_dlsearch_path_spec="/usr/lib"
10908 need_lib_prefix=no
10909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10910 case $host_os in
10911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10912 *) need_version=no ;;
10913 esac
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10918 case $host_os in
10919 openbsd2.[89] | openbsd2.[89].*)
10920 shlibpath_overrides_runpath=no
10921 ;;
10922 *)
10923 shlibpath_overrides_runpath=yes
10924 ;;
10925 esac
10926 else
10927 shlibpath_overrides_runpath=yes
10928 fi
10929 ;;
10930
10931 os2*)
10932 libname_spec='$name'
10933 shrext_cmds=".dll"
10934 need_lib_prefix=no
10935 library_names_spec='$libname${shared_ext} $libname.a'
10936 dynamic_linker='OS/2 ld.exe'
10937 shlibpath_var=LIBPATH
10938 ;;
10939
10940 osf3* | osf4* | osf5*)
10941 version_type=osf
10942 need_lib_prefix=no
10943 need_version=no
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10949 ;;
10950
10951 rdos*)
10952 dynamic_linker=no
10953 ;;
10954
10955 solaris*)
10956 version_type=linux # correct to gnu/linux during the next big refactor
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 hardcode_into_libs=yes
10964 # ldd complains unless libraries are executable
10965 postinstall_cmds='chmod +x $lib'
10966 ;;
10967
10968 sunos4*)
10969 version_type=sunos
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes
10974 if test "$with_gnu_ld" = yes; then
10975 need_lib_prefix=no
10976 fi
10977 need_version=yes
10978 ;;
10979
10980 sysv4 | sysv4.3*)
10981 version_type=linux # correct to gnu/linux during the next big refactor
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 case $host_vendor in
10986 sni)
10987 shlibpath_overrides_runpath=no
10988 need_lib_prefix=no
10989 runpath_var=LD_RUN_PATH
10990 ;;
10991 siemens)
10992 need_lib_prefix=no
10993 ;;
10994 motorola)
10995 need_lib_prefix=no
10996 need_version=no
10997 shlibpath_overrides_runpath=no
10998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10999 ;;
11000 esac
11001 ;;
11002
11003 sysv4*MP*)
11004 if test -d /usr/nec ;then
11005 version_type=linux # correct to gnu/linux during the next big refactor
11006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11007 soname_spec='$libname${shared_ext}.$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 fi
11010 ;;
11011
11012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11013 version_type=freebsd-elf
11014 need_lib_prefix=no
11015 need_version=no
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 hardcode_into_libs=yes
11021 if test "$with_gnu_ld" = yes; then
11022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11023 else
11024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11025 case $host_os in
11026 sco3.2v5*)
11027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11028 ;;
11029 esac
11030 fi
11031 sys_lib_dlsearch_path_spec='/usr/lib'
11032 ;;
11033
11034 tpf*)
11035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11036 version_type=linux # correct to gnu/linux during the next big refactor
11037 need_lib_prefix=no
11038 need_version=no
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=no
11042 hardcode_into_libs=yes
11043 ;;
11044
11045 uts4*)
11046 version_type=linux # correct to gnu/linux during the next big refactor
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 ;;
11051
11052 *)
11053 dynamic_linker=no
11054 ;;
11055 esac
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11057 $as_echo "$dynamic_linker" >&6; }
11058 test "$dynamic_linker" = no && can_build_shared=no
11059
11060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11061 if test "$GCC" = yes; then
11062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11063 fi
11064
11065 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11067 fi
11068 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11069 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11070 fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11165 hardcode_action=
11166 if test -n "$hardcode_libdir_flag_spec" ||
11167 test -n "$runpath_var" ||
11168 test "X$hardcode_automatic" = "Xyes" ; then
11169
11170 # We can hardcode non-existent directories.
11171 if test "$hardcode_direct" != no &&
11172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11173 # have to relink, otherwise we might link with an installed library
11174 # when we should be linking with a yet-to-be-installed one
11175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11176 test "$hardcode_minus_L" != no; then
11177 # Linking always hardcodes the temporary library directory.
11178 hardcode_action=relink
11179 else
11180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11181 hardcode_action=immediate
11182 fi
11183 else
11184 # We cannot hardcode anything, or else we can only hardcode existing
11185 # directories.
11186 hardcode_action=unsupported
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11189 $as_echo "$hardcode_action" >&6; }
11190
11191 if test "$hardcode_action" = relink ||
11192 test "$inherit_rpath" = yes; then
11193 # Fast installation is not supported
11194 enable_fast_install=no
11195 elif test "$shlibpath_overrides_runpath" = yes ||
11196 test "$enable_shared" = no; then
11197 # Fast installation is not necessary
11198 enable_fast_install=needless
11199 fi
11200
11201
11202
11203
11204
11205
11206 if test "x$enable_dlopen" != xyes; then
11207 enable_dlopen=unknown
11208 enable_dlopen_self=unknown
11209 enable_dlopen_self_static=unknown
11210 else
11211 lt_cv_dlopen=no
11212 lt_cv_dlopen_libs=
11213
11214 case $host_os in
11215 beos*)
11216 lt_cv_dlopen="load_add_on"
11217 lt_cv_dlopen_libs=
11218 lt_cv_dlopen_self=yes
11219 ;;
11220
11221 mingw* | pw32* | cegcc*)
11222 lt_cv_dlopen="LoadLibrary"
11223 lt_cv_dlopen_libs=
11224 ;;
11225
11226 cygwin*)
11227 lt_cv_dlopen="dlopen"
11228 lt_cv_dlopen_libs=
11229 ;;
11230
11231 darwin*)
11232 # if libdl is installed we need to link against it
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11235 if ${ac_cv_lib_dl_dlopen+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 ac_check_lib_save_LIBS=$LIBS
11239 LIBS="-ldl $LIBS"
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char dlopen ();
11250 int
11251 main ()
11252 {
11253 return dlopen ();
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_link "$LINENO"; then :
11259 ac_cv_lib_dl_dlopen=yes
11260 else
11261 ac_cv_lib_dl_dlopen=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11271 else
11272
11273 lt_cv_dlopen="dyld"
11274 lt_cv_dlopen_libs=
11275 lt_cv_dlopen_self=yes
11276
11277 fi
11278
11279 ;;
11280
11281 *)
11282 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11283 if test "x$ac_cv_func_shl_load" = xyes; then :
11284 lt_cv_dlopen="shl_load"
11285 else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11287 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11288 if ${ac_cv_lib_dld_shl_load+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-ldld $LIBS"
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 char shl_load ();
11303 int
11304 main ()
11305 {
11306 return shl_load ();
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_dld_shl_load=yes
11313 else
11314 ac_cv_lib_dld_shl_load=no
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11321 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11322 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11323 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11324 else
11325 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11326 if test "x$ac_cv_func_dlopen" = xyes; then :
11327 lt_cv_dlopen="dlopen"
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11330 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11331 if ${ac_cv_lib_dl_dlopen+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-ldl $LIBS"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char dlopen ();
11346 int
11347 main ()
11348 {
11349 return dlopen ();
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_lib_dl_dlopen=yes
11356 else
11357 ac_cv_lib_dl_dlopen=no
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11362 fi
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11365 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11369 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11370 if ${ac_cv_lib_svld_dlopen+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-lsvld $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char dlopen ();
11385 int
11386 main ()
11387 {
11388 return dlopen ();
11389 ;
11390 return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_svld_dlopen=yes
11395 else
11396 ac_cv_lib_svld_dlopen=no
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11403 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11404 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11408 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11409 if ${ac_cv_lib_dld_dld_link+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-ldld $LIBS"
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char dld_link ();
11424 int
11425 main ()
11426 {
11427 return dld_link ();
11428 ;
11429 return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433 ac_cv_lib_dld_dld_link=yes
11434 else
11435 ac_cv_lib_dld_dld_link=no
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11440 fi
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11442 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11443 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11445 fi
11446
11447
11448 fi
11449
11450
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459
11460 fi
11461
11462 ;;
11463 esac
11464
11465 if test "x$lt_cv_dlopen" != xno; then
11466 enable_dlopen=yes
11467 else
11468 enable_dlopen=no
11469 fi
11470
11471 case $lt_cv_dlopen in
11472 dlopen)
11473 save_CPPFLAGS="$CPPFLAGS"
11474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11475
11476 save_LDFLAGS="$LDFLAGS"
11477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11478
11479 save_LIBS="$LIBS"
11480 LIBS="$lt_cv_dlopen_libs $LIBS"
11481
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11483 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11484 if ${lt_cv_dlopen_self+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 if test "$cross_compiling" = yes; then :
11488 lt_cv_dlopen_self=cross
11489 else
11490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491 lt_status=$lt_dlunknown
11492 cat > conftest.$ac_ext <<_LT_EOF
11493 #line $LINENO "configure"
11494 #include "confdefs.h"
11495
11496 #if HAVE_DLFCN_H
11497 #include <dlfcn.h>
11498 #endif
11499
11500 #include <stdio.h>
11501
11502 #ifdef RTLD_GLOBAL
11503 # define LT_DLGLOBAL RTLD_GLOBAL
11504 #else
11505 # ifdef DL_GLOBAL
11506 # define LT_DLGLOBAL DL_GLOBAL
11507 # else
11508 # define LT_DLGLOBAL 0
11509 # endif
11510 #endif
11511
11512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513 find out it does not work in some platform. */
11514 #ifndef LT_DLLAZY_OR_NOW
11515 # ifdef RTLD_LAZY
11516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11517 # else
11518 # ifdef DL_LAZY
11519 # define LT_DLLAZY_OR_NOW DL_LAZY
11520 # else
11521 # ifdef RTLD_NOW
11522 # define LT_DLLAZY_OR_NOW RTLD_NOW
11523 # else
11524 # ifdef DL_NOW
11525 # define LT_DLLAZY_OR_NOW DL_NOW
11526 # else
11527 # define LT_DLLAZY_OR_NOW 0
11528 # endif
11529 # endif
11530 # endif
11531 # endif
11532 #endif
11533
11534 /* When -fvisbility=hidden is used, assume the code has been annotated
11535 correspondingly for the symbols needed. */
11536 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11537 int fnord () __attribute__((visibility("default")));
11538 #endif
11539
11540 int fnord () { return 42; }
11541 int main ()
11542 {
11543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11544 int status = $lt_dlunknown;
11545
11546 if (self)
11547 {
11548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11549 else
11550 {
11551 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11552 else puts (dlerror ());
11553 }
11554 /* dlclose (self); */
11555 }
11556 else
11557 puts (dlerror ());
11558
11559 return status;
11560 }
11561 _LT_EOF
11562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11563 (eval $ac_link) 2>&5
11564 ac_status=$?
11565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11566 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11567 (./conftest; exit; ) >&5 2>/dev/null
11568 lt_status=$?
11569 case x$lt_status in
11570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11573 esac
11574 else :
11575 # compilation failed
11576 lt_cv_dlopen_self=no
11577 fi
11578 fi
11579 rm -fr conftest*
11580
11581
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11584 $as_echo "$lt_cv_dlopen_self" >&6; }
11585
11586 if test "x$lt_cv_dlopen_self" = xyes; then
11587 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11589 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11590 if ${lt_cv_dlopen_self_static+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 if test "$cross_compiling" = yes; then :
11594 lt_cv_dlopen_self_static=cross
11595 else
11596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597 lt_status=$lt_dlunknown
11598 cat > conftest.$ac_ext <<_LT_EOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601
11602 #if HAVE_DLFCN_H
11603 #include <dlfcn.h>
11604 #endif
11605
11606 #include <stdio.h>
11607
11608 #ifdef RTLD_GLOBAL
11609 # define LT_DLGLOBAL RTLD_GLOBAL
11610 #else
11611 # ifdef DL_GLOBAL
11612 # define LT_DLGLOBAL DL_GLOBAL
11613 # else
11614 # define LT_DLGLOBAL 0
11615 # endif
11616 #endif
11617
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619 find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11621 # ifdef RTLD_LAZY
11622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11623 # else
11624 # ifdef DL_LAZY
11625 # define LT_DLLAZY_OR_NOW DL_LAZY
11626 # else
11627 # ifdef RTLD_NOW
11628 # define LT_DLLAZY_OR_NOW RTLD_NOW
11629 # else
11630 # ifdef DL_NOW
11631 # define LT_DLLAZY_OR_NOW DL_NOW
11632 # else
11633 # define LT_DLLAZY_OR_NOW 0
11634 # endif
11635 # endif
11636 # endif
11637 # endif
11638 #endif
11639
11640 /* When -fvisbility=hidden is used, assume the code has been annotated
11641 correspondingly for the symbols needed. */
11642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11643 int fnord () __attribute__((visibility("default")));
11644 #endif
11645
11646 int fnord () { return 42; }
11647 int main ()
11648 {
11649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11650 int status = $lt_dlunknown;
11651
11652 if (self)
11653 {
11654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11655 else
11656 {
11657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658 else puts (dlerror ());
11659 }
11660 /* dlclose (self); */
11661 }
11662 else
11663 puts (dlerror ());
11664
11665 return status;
11666 }
11667 _LT_EOF
11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11669 (eval $ac_link) 2>&5
11670 ac_status=$?
11671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11673 (./conftest; exit; ) >&5 2>/dev/null
11674 lt_status=$?
11675 case x$lt_status in
11676 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11677 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11678 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11679 esac
11680 else :
11681 # compilation failed
11682 lt_cv_dlopen_self_static=no
11683 fi
11684 fi
11685 rm -fr conftest*
11686
11687
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11690 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11691 fi
11692
11693 CPPFLAGS="$save_CPPFLAGS"
11694 LDFLAGS="$save_LDFLAGS"
11695 LIBS="$save_LIBS"
11696 ;;
11697 esac
11698
11699 case $lt_cv_dlopen_self in
11700 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11701 *) enable_dlopen_self=unknown ;;
11702 esac
11703
11704 case $lt_cv_dlopen_self_static in
11705 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11706 *) enable_dlopen_self_static=unknown ;;
11707 esac
11708 fi
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 striplib=
11727 old_striplib=
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11729 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11730 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11731 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11732 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11735 else
11736 # FIXME - insert some real tests, host_os isn't really good enough
11737 case $host_os in
11738 darwin*)
11739 if test -n "$STRIP" ; then
11740 striplib="$STRIP -x"
11741 old_striplib="$STRIP -S"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11747 fi
11748 ;;
11749 *)
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 ;;
11753 esac
11754 fi
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 # Report which library types will actually be built
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11769 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11771 $as_echo "$can_build_shared" >&6; }
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11774 $as_echo_n "checking whether to build shared libraries... " >&6; }
11775 test "$can_build_shared" = "no" && enable_shared=no
11776
11777 # On AIX, shared libraries and static libraries use the same namespace, and
11778 # are all built from PIC.
11779 case $host_os in
11780 aix3*)
11781 test "$enable_shared" = yes && enable_static=no
11782 if test -n "$RANLIB"; then
11783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11784 postinstall_cmds='$RANLIB $lib'
11785 fi
11786 ;;
11787
11788 aix[4-9]*)
11789 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11790 test "$enable_shared" = yes && enable_static=no
11791 fi
11792 ;;
11793 esac
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11795 $as_echo "$enable_shared" >&6; }
11796
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11798 $as_echo_n "checking whether to build static libraries... " >&6; }
11799 # Make sure either enable_shared or enable_static is yes.
11800 test "$enable_shared" = yes || enable_static=yes
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11802 $as_echo "$enable_static" >&6; }
11803
11804
11805
11806
11807 fi
11808 ac_ext=c
11809 ac_cpp='$CPP $CPPFLAGS'
11810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11813
11814 CC="$lt_save_CC"
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830 ac_config_commands="$ac_config_commands libtool"
11831
11832
11833
11834
11835 # Only expand once:
11836
11837
11838
11839 # By default we simply use the C compiler to build assembly code.
11840
11841 test "${CCAS+set}" = set || CCAS=$CC
11842 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11843
11844
11845
11846 depcc="$CCAS" am_compiler_list=
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11849 $as_echo_n "checking dependency style of $depcc... " >&6; }
11850 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11854 # We make a subdir and do the tests there. Otherwise we can end up
11855 # making bogus files that we don't know about and never remove. For
11856 # instance it was reported that on HP-UX the gcc test will end up
11857 # making a dummy file named `D' -- because `-MD' means `put the output
11858 # in D'.
11859 rm -rf conftest.dir
11860 mkdir conftest.dir
11861 # Copy depcomp to subdir because otherwise we won't find it if we're
11862 # using a relative directory.
11863 cp "$am_depcomp" conftest.dir
11864 cd conftest.dir
11865 # We will build objects and dependencies in a subdirectory because
11866 # it helps to detect inapplicable dependency modes. For instance
11867 # both Tru64's cc and ICC support -MD to output dependencies as a
11868 # side effect of compilation, but ICC will put the dependencies in
11869 # the current directory while Tru64 will put them in the object
11870 # directory.
11871 mkdir sub
11872
11873 am_cv_CCAS_dependencies_compiler_type=none
11874 if test "$am_compiler_list" = ""; then
11875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11876 fi
11877 am__universal=false
11878
11879
11880 for depmode in $am_compiler_list; do
11881 # Setup a source with many dependencies, because some compilers
11882 # like to wrap large dependency lists on column 80 (with \), and
11883 # we should not choose a depcomp mode which is confused by this.
11884 #
11885 # We need to recreate these files for each test, as the compiler may
11886 # overwrite some of them when testing with obscure command lines.
11887 # This happens at least with the AIX C compiler.
11888 : > sub/conftest.c
11889 for i in 1 2 3 4 5 6; do
11890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11892 # Solaris 8's {/usr,}/bin/sh.
11893 touch sub/conftst$i.h
11894 done
11895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11896
11897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11898 # mode. It turns out that the SunPro C++ compiler does not properly
11899 # handle `-M -o', and we need to detect this. Also, some Intel
11900 # versions had trouble with output in subdirs
11901 am__obj=sub/conftest.${OBJEXT-o}
11902 am__minus_obj="-o $am__obj"
11903 case $depmode in
11904 gcc)
11905 # This depmode causes a compiler race in universal mode.
11906 test "$am__universal" = false || continue
11907 ;;
11908 nosideeffect)
11909 # after this tag, mechanisms are not by side-effect, so they'll
11910 # only be used when explicitly requested
11911 if test "x$enable_dependency_tracking" = xyes; then
11912 continue
11913 else
11914 break
11915 fi
11916 ;;
11917 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11918 # This compiler won't grok `-c -o', but also, the minuso test has
11919 # not run yet. These depmodes are late enough in the game, and
11920 # so weak that their functioning should not be impacted.
11921 am__obj=conftest.${OBJEXT-o}
11922 am__minus_obj=
11923 ;;
11924 none) break ;;
11925 esac
11926 if depmode=$depmode \
11927 source=sub/conftest.c object=$am__obj \
11928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11930 >/dev/null 2>conftest.err &&
11931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11935 # icc doesn't choke on unknown options, it will just issue warnings
11936 # or remarks (even with -Werror). So we grep stderr for any message
11937 # that says an option was ignored or not supported.
11938 # When given -MP, icc 7.0 and 7.1 complain thusly:
11939 # icc: Command line warning: ignoring option '-M'; no argument required
11940 # The diagnosis changed in icc 8.0:
11941 # icc: Command line remark: option '-MP' not supported
11942 if (grep 'ignoring option' conftest.err ||
11943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11944 am_cv_CCAS_dependencies_compiler_type=$depmode
11945 break
11946 fi
11947 fi
11948 done
11949
11950 cd ..
11951 rm -rf conftest.dir
11952 else
11953 am_cv_CCAS_dependencies_compiler_type=none
11954 fi
11955
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11958 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11959 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11960
11961 if
11962 test "x$enable_dependency_tracking" != xno \
11963 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11964 am__fastdepCCAS_TRUE=
11965 am__fastdepCCAS_FALSE='#'
11966 else
11967 am__fastdepCCAS_TRUE='#'
11968 am__fastdepCCAS_FALSE=
11969 fi
11970
11971
11972
11973 # Initialize maintainer mode
11974
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11976 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11977 # Check whether --enable-maintainer-mode was given.
11978 if test "${enable_maintainer_mode+set}" = set; then :
11979 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11980 else
11981 USE_MAINTAINER_MODE=no
11982 fi
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11985 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11986 if test $USE_MAINTAINER_MODE = yes; then
11987 MAINTAINER_MODE_TRUE=
11988 MAINTAINER_MODE_FALSE='#'
11989 else
11990 MAINTAINER_MODE_TRUE='#'
11991 MAINTAINER_MODE_FALSE=
11992 fi
11993
11994 MAINT=$MAINTAINER_MODE_TRUE
11995
11996
11997
11998 # Honor aclocal flags
11999 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
12000
12001
12002 # Check for pkg-config
12003
12004
12005
12006
12007
12008
12009
12010 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12011 if test -n "$ac_tool_prefix"; then
12012 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12013 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 case $PKG_CONFIG in
12020 [\\/]* | ?:[\\/]*)
12021 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12022 ;;
12023 *)
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035 done
12036 done
12037 IFS=$as_save_IFS
12038
12039 ;;
12040 esac
12041 fi
12042 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12043 if test -n "$PKG_CONFIG"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12045 $as_echo "$PKG_CONFIG" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12049 fi
12050
12051
12052 fi
12053 if test -z "$ac_cv_path_PKG_CONFIG"; then
12054 ac_pt_PKG_CONFIG=$PKG_CONFIG
12055 # Extract the first word of "pkg-config", so it can be a program name with args.
12056 set dummy pkg-config; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 case $ac_pt_PKG_CONFIG in
12063 [\\/]* | ?:[\\/]*)
12064 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12065 ;;
12066 *)
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12074 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12077 fi
12078 done
12079 done
12080 IFS=$as_save_IFS
12081
12082 ;;
12083 esac
12084 fi
12085 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12086 if test -n "$ac_pt_PKG_CONFIG"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12088 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094 if test "x$ac_pt_PKG_CONFIG" = x; then
12095 PKG_CONFIG=""
12096 else
12097 case $cross_compiling:$ac_tool_warned in
12098 yes:)
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12101 ac_tool_warned=yes ;;
12102 esac
12103 PKG_CONFIG=$ac_pt_PKG_CONFIG
12104 fi
12105 else
12106 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12107 fi
12108
12109 fi
12110 if test -n "$PKG_CONFIG"; then
12111 _pkg_min_version=0.16
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12113 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12114 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12116 $as_echo "yes" >&6; }
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 PKG_CONFIG=""
12121 fi
12122 fi
12123
12124 #################
12125 # Check for Win32
12126 #################
12127 case "$host" in
12128 *-*-mingw*|*-*-cygwin*)
12129 platform_win32=yes
12130 ;;
12131 *)
12132 platform_win32=no
12133 ;;
12134 esac
12135
12136 ######################
12137 # Internationalisation
12138 ######################
12139
12140
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12142 $as_echo_n "checking whether NLS is requested... " >&6; }
12143 # Check whether --enable-nls was given.
12144 if test "${enable_nls+set}" = set; then :
12145 enableval=$enable_nls; USE_NLS=$enableval
12146 else
12147 USE_NLS=yes
12148 fi
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12151 $as_echo "$USE_NLS" >&6; }
12152
12153
12154
12155
12156 case "$am__api_version" in
12157 1.01234)
12158 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
12159 ;;
12160 *)
12161 ;;
12162 esac
12163
12164 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12165 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
12166 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12167 if test -n "0.35.0"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
12169 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
12171 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
12172 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
12173 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
12174 fi
12175
12176 # Extract the first word of "intltool-update", so it can be a program name with args.
12177 set dummy intltool-update; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 case $INTLTOOL_UPDATE in
12184 [\\/]* | ?:[\\/]*)
12185 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
12186 ;;
12187 *)
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199 done
12200 done
12201 IFS=$as_save_IFS
12202
12203 ;;
12204 esac
12205 fi
12206 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
12207 if test -n "$INTLTOOL_UPDATE"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
12209 $as_echo "$INTLTOOL_UPDATE" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214
12215
12216 # Extract the first word of "intltool-merge", so it can be a program name with args.
12217 set dummy intltool-merge; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 case $INTLTOOL_MERGE in
12224 [\\/]* | ?:[\\/]*)
12225 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
12226 ;;
12227 *)
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 ;;
12244 esac
12245 fi
12246 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
12247 if test -n "$INTLTOOL_MERGE"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
12249 $as_echo "$INTLTOOL_MERGE" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 fi
12254
12255
12256 # Extract the first word of "intltool-extract", so it can be a program name with args.
12257 set dummy intltool-extract; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 case $INTLTOOL_EXTRACT in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
12266 ;;
12267 *)
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12270 do
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12278 fi
12279 done
12280 done
12281 IFS=$as_save_IFS
12282
12283 ;;
12284 esac
12285 fi
12286 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
12287 if test -n "$INTLTOOL_EXTRACT"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
12289 $as_echo "$INTLTOOL_EXTRACT" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294
12295
12296 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
12297 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
12298 fi
12299
12300 if test -z "$AM_DEFAULT_VERBOSITY"; then
12301 AM_DEFAULT_VERBOSITY=1
12302 fi
12303
12304
12305 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
12306 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
12307 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
12308
12309
12310
12311
12312 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
12313 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
12314 intltool__v_merge_options_0='-q'
12315
12316
12317
12318
12319 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 $< $@'
12320 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 $< $@'
12321 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 $< $@'
12322 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 $< $@'
12323 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 $< $@'
12324 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 $< $@'
12325 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 $< $@'
12326 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 $< $@'
12327 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 $< $@'
12328 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 $< $@'
12329 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 $< $@'
12330 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
12331 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 $< $@'
12332 else
12333 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'
12334 fi
12335 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 $< $@'
12336 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 $< $@'
12337 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 $< $@'
12338 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 $< $@'
12339 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 $< $@'
12340 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 $< $@'
12341 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 $< $@'
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439 # Check the gettext tools to make sure they are GNU
12440 # Extract the first word of "xgettext", so it can be a program name with args.
12441 set dummy xgettext; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if ${ac_cv_path_XGETTEXT+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 case $XGETTEXT in
12448 [\\/]* | ?:[\\/]*)
12449 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12450 ;;
12451 *)
12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12454 do
12455 IFS=$as_save_IFS
12456 test -z "$as_dir" && as_dir=.
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12459 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461 break 2
12462 fi
12463 done
12464 done
12465 IFS=$as_save_IFS
12466
12467 ;;
12468 esac
12469 fi
12470 XGETTEXT=$ac_cv_path_XGETTEXT
12471 if test -n "$XGETTEXT"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12473 $as_echo "$XGETTEXT" >&6; }
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12477 fi
12478
12479
12480 # Extract the first word of "msgmerge", so it can be a program name with args.
12481 set dummy msgmerge; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_path_MSGMERGE+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 case $MSGMERGE in
12488 [\\/]* | ?:[\\/]*)
12489 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12490 ;;
12491 *)
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503 done
12504 done
12505 IFS=$as_save_IFS
12506
12507 ;;
12508 esac
12509 fi
12510 MSGMERGE=$ac_cv_path_MSGMERGE
12511 if test -n "$MSGMERGE"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12513 $as_echo "$MSGMERGE" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 # Extract the first word of "msgfmt", so it can be a program name with args.
12521 set dummy msgfmt; ac_word=$2
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if ${ac_cv_path_MSGFMT+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 case $MSGFMT in
12528 [\\/]* | ?:[\\/]*)
12529 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12530 ;;
12531 *)
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
12534 do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12539 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12542 fi
12543 done
12544 done
12545 IFS=$as_save_IFS
12546
12547 ;;
12548 esac
12549 fi
12550 MSGFMT=$ac_cv_path_MSGFMT
12551 if test -n "$MSGFMT"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12553 $as_echo "$MSGFMT" >&6; }
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557 fi
12558
12559
12560 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12561 set dummy gmsgfmt; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if ${ac_cv_path_GMSGFMT+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 case $GMSGFMT in
12568 [\\/]* | ?:[\\/]*)
12569 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12570 ;;
12571 *)
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12579 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12582 fi
12583 done
12584 done
12585 IFS=$as_save_IFS
12586
12587 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12588 ;;
12589 esac
12590 fi
12591 GMSGFMT=$ac_cv_path_GMSGFMT
12592 if test -n "$GMSGFMT"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12594 $as_echo "$GMSGFMT" >&6; }
12595 else
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598 fi
12599
12600
12601 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
12602 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12603 fi
12604 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
12605 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
12606 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
12607 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
12608 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12609 fi
12610
12611 # Extract the first word of "perl", so it can be a program name with args.
12612 set dummy perl; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 case $INTLTOOL_PERL in
12619 [\\/]* | ?:[\\/]*)
12620 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12621 ;;
12622 *)
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12625 do
12626 IFS=$as_save_IFS
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12630 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632 break 2
12633 fi
12634 done
12635 done
12636 IFS=$as_save_IFS
12637
12638 ;;
12639 esac
12640 fi
12641 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12642 if test -n "$INTLTOOL_PERL"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
12644 $as_echo "$INTLTOOL_PERL" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 if test -z "$INTLTOOL_PERL"; then
12652 as_fn_error $? "perl not found" "$LINENO" 5
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
12655 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
12656 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12657 if test $? -ne 0; then
12658 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
12659 else
12660 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
12662 $as_echo "$IT_PERL_VERSION" >&6; }
12663 fi
12664 if test "xno-xml" != "xno-xml"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
12666 $as_echo_n "checking for XML::Parser... " >&6; }
12667 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12669 $as_echo "ok" >&6; }
12670 else
12671 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
12672 fi
12673 fi
12674
12675 # Substitute ALL_LINGUAS so we can use it in po/Makefile
12676
12677
12678 # Set DATADIRNAME correctly if it is not set yet
12679 # (copied from glib-gettext.m4)
12680 if test -z "$DATADIRNAME"; then
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12683
12684 int
12685 main ()
12686 {
12687 extern int _nl_msg_cat_cntr;
12688 return _nl_msg_cat_cntr
12689 ;
12690 return 0;
12691 }
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"; then :
12694 DATADIRNAME=share
12695 else
12696 case $host in
12697 *-*-solaris*)
12698 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12699 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
12700 DATADIRNAME=share
12701 else
12702 DATADIRNAME=lib
12703 fi
12704
12705 ;;
12706 *)
12707 DATADIRNAME=lib
12708 ;;
12709 esac
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 fi
12714
12715
12716
12717
12718
12719
12720 for ac_header in locale.h
12721 do :
12722 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12723 if test "x$ac_cv_header_locale_h" = xyes; then :
12724 cat >>confdefs.h <<_ACEOF
12725 #define HAVE_LOCALE_H 1
12726 _ACEOF
12727
12728 fi
12729
12730 done
12731
12732 if test $ac_cv_header_locale_h = yes; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12734 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12735 if ${am_cv_val_LC_MESSAGES+:} false; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <locale.h>
12741 int
12742 main ()
12743 {
12744 return LC_MESSAGES
12745 ;
12746 return 0;
12747 }
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"; then :
12750 am_cv_val_LC_MESSAGES=yes
12751 else
12752 am_cv_val_LC_MESSAGES=no
12753 fi
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 fi
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12758 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12759 if test $am_cv_val_LC_MESSAGES = yes; then
12760
12761 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12762
12763 fi
12764 fi
12765 USE_NLS=yes
12766
12767
12768 gt_cv_have_gettext=no
12769
12770 CATOBJEXT=NONE
12771 XGETTEXT=:
12772 INTLLIBS=
12773
12774 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
12775 if test "x$ac_cv_header_libintl_h" = xyes; then :
12776 gt_cv_func_dgettext_libintl="no"
12777 libintl_extra_libs=""
12778
12779 #
12780 # First check in libc
12781 #
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
12783 $as_echo_n "checking for ngettext in libc... " >&6; }
12784 if ${gt_cv_func_ngettext_libc+:} false; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789
12790 #include <libintl.h>
12791
12792 int
12793 main ()
12794 {
12795 return !ngettext ("","", 1)
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_link "$LINENO"; then :
12801 gt_cv_func_ngettext_libc=yes
12802 else
12803 gt_cv_func_ngettext_libc=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
12810 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12811
12812 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
12814 $as_echo_n "checking for dgettext in libc... " >&6; }
12815 if ${gt_cv_func_dgettext_libc+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820
12821 #include <libintl.h>
12822
12823 int
12824 main ()
12825 {
12826 return !dgettext ("","")
12827 ;
12828 return 0;
12829 }
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 gt_cv_func_dgettext_libc=yes
12833 else
12834 gt_cv_func_dgettext_libc=no
12835 fi
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
12841 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12842 fi
12843
12844 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12845 for ac_func in bind_textdomain_codeset
12846 do :
12847 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12848 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
12849 cat >>confdefs.h <<_ACEOF
12850 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
12851 _ACEOF
12852
12853 fi
12854 done
12855
12856 fi
12857
12858 #
12859 # If we don't have everything we want, check in libintl
12860 #
12861 if test "$gt_cv_func_dgettext_libc" != "yes" \
12862 || test "$gt_cv_func_ngettext_libc" != "yes" \
12863 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12864
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
12866 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12867 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lintl $LIBS"
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char bindtextdomain ();
12882 int
12883 main ()
12884 {
12885 return bindtextdomain ();
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 if ac_fn_c_try_link "$LINENO"; then :
12891 ac_cv_lib_intl_bindtextdomain=yes
12892 else
12893 ac_cv_lib_intl_bindtextdomain=no
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 LIBS=$ac_check_lib_save_LIBS
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
12900 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12901 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
12903 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12904 if ${ac_cv_lib_intl_ngettext+:} false; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 ac_check_lib_save_LIBS=$LIBS
12908 LIBS="-lintl $LIBS"
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char ngettext ();
12919 int
12920 main ()
12921 {
12922 return ngettext ();
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 ac_cv_lib_intl_ngettext=yes
12929 else
12930 ac_cv_lib_intl_ngettext=no
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12935 fi
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
12937 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12938 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12940 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12941 if ${ac_cv_lib_intl_dgettext+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 ac_check_lib_save_LIBS=$LIBS
12945 LIBS="-lintl $LIBS"
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948
12949 /* Override any GCC internal prototype to avoid an error.
12950 Use char because int might match the return type of a GCC
12951 builtin and then its argument prototype would still apply. */
12952 #ifdef __cplusplus
12953 extern "C"
12954 #endif
12955 char dgettext ();
12956 int
12957 main ()
12958 {
12959 return dgettext ();
12960 ;
12961 return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 ac_cv_lib_intl_dgettext=yes
12966 else
12967 ac_cv_lib_intl_dgettext=no
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12974 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12975 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
12976 gt_cv_func_dgettext_libintl=yes
12977 fi
12978
12979 fi
12980
12981 fi
12982
12983
12984 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
12986 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12988 $as_echo "" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
12990 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12991 if ${ac_cv_lib_intl_ngettext+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-lintl -liconv $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char ngettext ();
13006 int
13007 main ()
13008 {
13009 return ngettext ();
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_intl_ngettext=yes
13016 else
13017 ac_cv_lib_intl_ngettext=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13024 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13025 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
13027 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
13028 if ${ac_cv_lib_intl_dcgettext+:} false; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 ac_check_lib_save_LIBS=$LIBS
13032 LIBS="-lintl -liconv $LIBS"
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13039 #ifdef __cplusplus
13040 extern "C"
13041 #endif
13042 char dcgettext ();
13043 int
13044 main ()
13045 {
13046 return dcgettext ();
13047 ;
13048 return 0;
13049 }
13050 _ACEOF
13051 if ac_fn_c_try_link "$LINENO"; then :
13052 ac_cv_lib_intl_dcgettext=yes
13053 else
13054 ac_cv_lib_intl_dcgettext=no
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13059 fi
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
13061 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
13062 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
13063 gt_cv_func_dgettext_libintl=yes
13064 libintl_extra_libs=-liconv
13065 else
13066 :
13067 fi
13068
13069 else
13070 :
13071 fi
13072
13073 fi
13074
13075 #
13076 # If we found libintl, then check in it for bind_textdomain_codeset();
13077 # we'll prefer libc if neither have bind_textdomain_codeset(),
13078 # and both have dgettext and ngettext
13079 #
13080 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
13081 glib_save_LIBS="$LIBS"
13082 LIBS="$LIBS -lintl $libintl_extra_libs"
13083 unset ac_cv_func_bind_textdomain_codeset
13084 for ac_func in bind_textdomain_codeset
13085 do :
13086 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13087 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13088 cat >>confdefs.h <<_ACEOF
13089 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
13090 _ACEOF
13091
13092 fi
13093 done
13094
13095 LIBS="$glib_save_LIBS"
13096
13097 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
13098 gt_cv_func_dgettext_libc=no
13099 else
13100 if test "$gt_cv_func_dgettext_libc" = "yes" \
13101 && test "$gt_cv_func_ngettext_libc" = "yes"; then
13102 gt_cv_func_dgettext_libintl=no
13103 fi
13104 fi
13105 fi
13106 fi
13107
13108 if test "$gt_cv_func_dgettext_libc" = "yes" \
13109 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
13110 gt_cv_have_gettext=yes
13111 fi
13112
13113 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
13114 INTLLIBS="-lintl $libintl_extra_libs"
13115 fi
13116
13117 if test "$gt_cv_have_gettext" = "yes"; then
13118
13119 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13120
13121 # Extract the first word of "msgfmt", so it can be a program name with args.
13122 set dummy msgfmt; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if ${ac_cv_path_MSGFMT+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 case "$MSGFMT" in
13129 /*)
13130 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13131 ;;
13132 *)
13133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13134 for ac_dir in $PATH; do
13135 test -z "$ac_dir" && ac_dir=.
13136 if test -f $ac_dir/$ac_word; then
13137 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13138 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13139 break
13140 fi
13141 fi
13142 done
13143 IFS="$ac_save_ifs"
13144 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13145 ;;
13146 esac
13147 fi
13148 MSGFMT="$ac_cv_path_MSGFMT"
13149 if test "$MSGFMT" != "no"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13151 $as_echo "$MSGFMT" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156 if test "$MSGFMT" != "no"; then
13157 glib_save_LIBS="$LIBS"
13158 LIBS="$LIBS $INTLLIBS"
13159 for ac_func in dcgettext
13160 do :
13161 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
13162 if test "x$ac_cv_func_dcgettext" = xyes; then :
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_DCGETTEXT 1
13165 _ACEOF
13166
13167 fi
13168 done
13169
13170 MSGFMT_OPTS=
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
13172 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13173 cat >conftest.foo <<_ACEOF
13174
13175 msgid ""
13176 msgstr ""
13177 "Content-Type: text/plain; charset=UTF-8\n"
13178 "Project-Id-Version: test 1.0\n"
13179 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13180 "Last-Translator: test <[email protected]>\n"
13181 "Language-Team: C <[email protected]>\n"
13182 "MIME-Version: 1.0\n"
13183 "Content-Transfer-Encoding: 8bit\n"
13184
13185 _ACEOF
13186 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
13187 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13188 ac_status=$?
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; }; then
13191 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13192 $as_echo "yes" >&6; }
13193 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195 echo "$as_me: failed input was:" >&5
13196 sed 's/^/| /' conftest.foo >&5
13197 fi
13198
13199 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13200 set dummy gmsgfmt; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if ${ac_cv_path_GMSGFMT+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 case $GMSGFMT in
13207 [\\/]* | ?:[\\/]*)
13208 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13209 ;;
13210 *)
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13221 fi
13222 done
13223 done
13224 IFS=$as_save_IFS
13225
13226 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13227 ;;
13228 esac
13229 fi
13230 GMSGFMT=$ac_cv_path_GMSGFMT
13231 if test -n "$GMSGFMT"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13233 $as_echo "$GMSGFMT" >&6; }
13234 else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237 fi
13238
13239
13240 # Extract the first word of "xgettext", so it can be a program name with args.
13241 set dummy xgettext; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if ${ac_cv_path_XGETTEXT+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 case "$XGETTEXT" in
13248 /*)
13249 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13250 ;;
13251 *)
13252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13253 for ac_dir in $PATH; do
13254 test -z "$ac_dir" && ac_dir=.
13255 if test -f $ac_dir/$ac_word; then
13256 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13257 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13258 break
13259 fi
13260 fi
13261 done
13262 IFS="$ac_save_ifs"
13263 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13264 ;;
13265 esac
13266 fi
13267 XGETTEXT="$ac_cv_path_XGETTEXT"
13268 if test "$XGETTEXT" != ":"; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13270 $as_echo "$XGETTEXT" >&6; }
13271 else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13274 fi
13275
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 int
13280 main ()
13281 {
13282 extern int _nl_msg_cat_cntr;
13283 return _nl_msg_cat_cntr
13284 ;
13285 return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 CATOBJEXT=.gmo
13290 DATADIRNAME=share
13291 else
13292 case $host in
13293 *-*-solaris*)
13294 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13295 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13296 CATOBJEXT=.gmo
13297 DATADIRNAME=share
13298 else
13299 CATOBJEXT=.mo
13300 DATADIRNAME=lib
13301 fi
13302
13303 ;;
13304 *-*-openbsd*)
13305 CATOBJEXT=.mo
13306 DATADIRNAME=share
13307 ;;
13308 *)
13309 CATOBJEXT=.mo
13310 DATADIRNAME=lib
13311 ;;
13312 esac
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 LIBS="$glib_save_LIBS"
13317 INSTOBJEXT=.mo
13318 else
13319 gt_cv_have_gettext=no
13320 fi
13321 fi
13322
13323 fi
13324
13325
13326
13327 if test "$gt_cv_have_gettext" = "yes" ; then
13328
13329 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13330
13331 fi
13332
13333 if test "$XGETTEXT" != ":"; then
13334 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13335 : ;
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13338 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13339 XGETTEXT=":"
13340 fi
13341 fi
13342
13343 # We need to process the po/ directory.
13344 POSUB=po
13345
13346 ac_config_commands="$ac_config_commands default-1"
13347
13348
13349 for lang in $ALL_LINGUAS; do
13350 GMOFILES="$GMOFILES $lang.gmo"
13351 POFILES="$POFILES $lang.po"
13352 done
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 if test "$gt_cv_have_gettext" = "yes"; then
13367 if test "x$ALL_LINGUAS" = "x"; then
13368 LINGUAS=
13369 else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13371 $as_echo_n "checking for catalogs to be installed... " >&6; }
13372 NEW_LINGUAS=
13373 for presentlang in $ALL_LINGUAS; do
13374 useit=no
13375 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13376 desiredlanguages="$LINGUAS"
13377 else
13378 desiredlanguages="$ALL_LINGUAS"
13379 fi
13380 for desiredlang in $desiredlanguages; do
13381 # Use the presentlang catalog if desiredlang is
13382 # a. equal to presentlang, or
13383 # b. a variant of presentlang (because in this case,
13384 # presentlang can be used as a fallback for messages
13385 # which are not translated in the desiredlang catalog).
13386 case "$desiredlang" in
13387 "$presentlang"*) useit=yes;;
13388 esac
13389 done
13390 if test $useit = yes; then
13391 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13392 fi
13393 done
13394 LINGUAS=$NEW_LINGUAS
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13396 $as_echo "$LINGUAS" >&6; }
13397 fi
13398
13399 if test -n "$LINGUAS"; then
13400 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13401 fi
13402 fi
13403
13404 MKINSTALLDIRS=
13405 if test -n "$ac_aux_dir"; then
13406 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13407 fi
13408 if test -z "$MKINSTALLDIRS"; then
13409 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13410 fi
13411
13412
13413 test -d po || mkdir po
13414 if test "x$srcdir" != "x."; then
13415 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13416 posrcprefix="$srcdir/"
13417 else
13418 posrcprefix="../$srcdir/"
13419 fi
13420 else
13421 posrcprefix="../"
13422 fi
13423 rm -f po/POTFILES
13424 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13425 < $srcdir/po/POTFILES.in > po/POTFILES
13426
13427
13428
13429
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
13431 $as_echo_n "checking linker --as-needed support... " >&6; }
13432 gcc_cv_ld_as_needed=no
13433 if test x$gcc_cv_ld != x; then
13434 # Check if linker supports --as-needed and --no-as-needed options
13435 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
13436 gcc_cv_ld_as_needed=yes
13437 fi
13438 fi
13439 if test x"$gcc_cv_ld_as_needed" = xyes; then
13440 LDFLAGS="${LDFLAGS} -Wl,--as-needed"
13441 fi
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
13443 $as_echo "$gcc_cv_ld_as_needed" >&6; }
13444
13445 #######
13446 # Gtk 3
13447 #######
13448 # Check whether --enable-gtktest was given.
13449 if test "${enable_gtktest+set}" = set; then :
13450 enableval=$enable_gtktest;
13451 else
13452 enable_gtktest=yes
13453 fi
13454
13455
13456 pkg_config_args=gtk+-3.0
13457 for module in . gthread
13458 do
13459 case "$module" in
13460 gthread)
13461 pkg_config_args="$pkg_config_args gthread-2.0"
13462 ;;
13463 esac
13464 done
13465
13466 no_gtk=""
13467
13468 # Extract the first word of "pkg-config", so it can be a program name with args.
13469 set dummy pkg-config; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 case $PKG_CONFIG in
13476 [\\/]* | ?:[\\/]*)
13477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13478 ;;
13479 *)
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489 break 2
13490 fi
13491 done
13492 done
13493 IFS=$as_save_IFS
13494
13495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13496 ;;
13497 esac
13498 fi
13499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13500 if test -n "$PKG_CONFIG"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13502 $as_echo "$PKG_CONFIG" >&6; }
13503 else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13506 fi
13507
13508
13509
13510 if test x$PKG_CONFIG != xno ; then
13511 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
13512 :
13513 else
13514 echo "*** pkg-config too old; version 0.7 or better required."
13515 no_gtk=yes
13516 PKG_CONFIG=no
13517 fi
13518 else
13519 no_gtk=yes
13520 fi
13521
13522 min_gtk_version=2.99.3
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
13524 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
13525
13526 if test x$PKG_CONFIG != xno ; then
13527 ## don't try to run the test against uninstalled libtool libs
13528 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13529 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
13530 enable_gtktest=no
13531 fi
13532
13533 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
13534 :
13535 else
13536 no_gtk=yes
13537 fi
13538 fi
13539
13540 if test x"$no_gtk" = x ; then
13541 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
13542 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
13543 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
13544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13545 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
13546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13547 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
13548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13549 if test "x$enable_gtktest" = "xyes" ; then
13550 ac_save_CFLAGS="$CFLAGS"
13551 ac_save_LIBS="$LIBS"
13552 CFLAGS="$CFLAGS $GTK_CFLAGS"
13553 LIBS="$GTK_LIBS $LIBS"
13554 rm -f conf.gtktest
13555 if test "$cross_compiling" = yes; then :
13556 echo $ac_n "cross compiling; assumed OK... $ac_c"
13557 else
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560
13561 #include <gtk/gtk.h>
13562 #include <stdio.h>
13563 #include <stdlib.h>
13564
13565 int
13566 main ()
13567 {
13568 int major, minor, micro;
13569 char *tmp_version;
13570
13571 fclose (fopen ("conf.gtktest", "w"));
13572
13573 /* HP/UX 9 (%@#!) writes to sscanf strings */
13574 tmp_version = g_strdup("$min_gtk_version");
13575 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13576 printf("%s, bad version string\n", "$min_gtk_version");
13577 exit(1);
13578 }
13579
13580 if ((gtk_major_version != $gtk_config_major_version) ||
13581 (gtk_minor_version != $gtk_config_minor_version) ||
13582 (gtk_micro_version != $gtk_config_micro_version))
13583 {
13584 printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13585 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13586 gtk_major_version, gtk_minor_version, gtk_micro_version);
13587 printf ("*** was found! If pkg-config was correct, then it is best\n");
13588 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13589 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13590 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13591 printf("*** required on your system.\n");
13592 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13593 printf("*** to point to the correct configuration files\n");
13594 }
13595 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13596 (gtk_minor_version != GTK_MINOR_VERSION) ||
13597 (gtk_micro_version != GTK_MICRO_VERSION))
13598 {
13599 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13600 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13601 printf("*** library (version %d.%d.%d)\n",
13602 gtk_major_version, gtk_minor_version, gtk_micro_version);
13603 }
13604 else
13605 {
13606 if ((gtk_major_version > major) ||
13607 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13608 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13609 {
13610 return 0;
13611 }
13612 else
13613 {
13614 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13615 gtk_major_version, gtk_minor_version, gtk_micro_version);
13616 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13617 major, minor, micro);
13618 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13619 printf("***\n");
13620 printf("*** If you have already installed a sufficiently new version, this error\n");
13621 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13622 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13623 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
13624 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13625 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13626 printf("*** so that the correct libraries are found at run-time))\n");
13627 }
13628 }
13629 return 1;
13630 }
13631
13632 _ACEOF
13633 if ac_fn_c_try_run "$LINENO"; then :
13634
13635 else
13636 no_gtk=yes
13637 fi
13638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13639 conftest.$ac_objext conftest.beam conftest.$ac_ext
13640 fi
13641
13642 CFLAGS="$ac_save_CFLAGS"
13643 LIBS="$ac_save_LIBS"
13644 fi
13645 fi
13646 if test "x$no_gtk" = x ; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
13648 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
13649 :
13650 else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 if test "$PKG_CONFIG" = "no" ; then
13654 echo "*** A new enough version of pkg-config was not found."
13655 echo "*** See http://pkgconfig.sourceforge.net"
13656 else
13657 if test -f conf.gtktest ; then
13658 :
13659 else
13660 echo "*** Could not run GTK+ test program, checking why..."
13661 ac_save_CFLAGS="$CFLAGS"
13662 ac_save_LIBS="$LIBS"
13663 CFLAGS="$CFLAGS $GTK_CFLAGS"
13664 LIBS="$LIBS $GTK_LIBS"
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667
13668 #include <gtk/gtk.h>
13669 #include <stdio.h>
13670
13671 int
13672 main ()
13673 {
13674 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 echo "*** The test program compiled, but did not run. This usually means"
13681 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
13682 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
13683 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13684 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13685 echo "*** is required on your system"
13686 echo "***"
13687 echo "*** If you have an old version installed, it is best to remove it, although"
13688 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13689 else
13690 echo "*** The test program failed to compile or link. See the file config.log for the"
13691 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 CFLAGS="$ac_save_CFLAGS"
13696 LIBS="$ac_save_LIBS"
13697 fi
13698 fi
13699 GTK_CFLAGS=""
13700 GTK_LIBS=""
13701 as_fn_error $? "Test for GTK3+ failed. See the file 'INSTALL' for help." "$LINENO" 5
13702 fi
13703
13704
13705 rm -f conf.gtktest
13706
13707
13708
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GTK+ is version 2.99.3 or newer" >&5
13710 $as_echo_n "checking if GTK+ is version 2.99.3 or newer... " >&6; }
13711 if $PKG_CONFIG --atleast-version=2.99.3 gtk+-3.0; then
13712 have_gtk3=yes
13713 else
13714 have_gtk3=no
13715 fi
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_3" >&5
13718 $as_echo "$have_gtk_3" >&6; }
13719
13720 if test "$with_gnu_ld" = "yes"; then
13721 WITH_GNU_LD_TRUE=
13722 WITH_GNU_LD_FALSE='#'
13723 else
13724 WITH_GNU_LD_TRUE='#'
13725 WITH_GNU_LD_FALSE=
13726 fi
13727
13728 if test "$platform_win32" = yes; then
13729 PLATFORM_WIN32_TRUE=
13730 PLATFORM_WIN32_FALSE='#'
13731 else
13732 PLATFORM_WIN32_TRUE='#'
13733 PLATFORM_WIN32_FALSE=
13734 fi
13735
13736
13737
13738 pkg_failed=no
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curtain" >&5
13740 $as_echo_n "checking for curtain... " >&6; }
13741
13742 if test -n "$curtain_CFLAGS"; then
13743 pkg_cv_curtain_CFLAGS="$curtain_CFLAGS"
13744 elif test -n "$PKG_CONFIG"; then
13745 if test -n "$PKG_CONFIG" && \
13746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
13747 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
13748 ac_status=$?
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 pkg_cv_curtain_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
13752 test "x$?" != "x0" && pkg_failed=yes
13753 else
13754 pkg_failed=yes
13755 fi
13756 else
13757 pkg_failed=untried
13758 fi
13759 if test -n "$curtain_LIBS"; then
13760 pkg_cv_curtain_LIBS="$curtain_LIBS"
13761 elif test -n "$PKG_CONFIG"; then
13762 if test -n "$PKG_CONFIG" && \
13763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
13764 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
13765 ac_status=$?
13766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13767 test $ac_status = 0; }; then
13768 pkg_cv_curtain_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
13769 test "x$?" != "x0" && pkg_failed=yes
13770 else
13771 pkg_failed=yes
13772 fi
13773 else
13774 pkg_failed=untried
13775 fi
13776
13777
13778
13779 if test $pkg_failed = yes; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13782
13783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13784 _pkg_short_errors_supported=yes
13785 else
13786 _pkg_short_errors_supported=no
13787 fi
13788 if test $_pkg_short_errors_supported = yes; then
13789 curtain_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
13790 else
13791 curtain_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
13792 fi
13793 # Put the nasty error message in config.log where it belongs
13794 echo "$curtain_PKG_ERRORS" >&5
13795
13796 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
13797
13798 $curtain_PKG_ERRORS
13799
13800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13801 installed software in a non-standard prefix.
13802
13803 Alternatively, you may set the environment variables curtain_CFLAGS
13804 and curtain_LIBS to avoid the need to call pkg-config.
13805 See the pkg-config man page for more details." "$LINENO" 5
13806 elif test $pkg_failed = untried; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13811 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13812 is in your PATH or set the PKG_CONFIG environment variable to the full
13813 path to pkg-config.
13814
13815 Alternatively, you may set the environment variables curtain_CFLAGS
13816 and curtain_LIBS to avoid the need to call pkg-config.
13817 See the pkg-config man page for more details.
13818
13819 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13820 See \`config.log' for more details" "$LINENO" 5; }
13821 else
13822 curtain_CFLAGS=$pkg_cv_curtain_CFLAGS
13823 curtain_LIBS=$pkg_cv_curtain_LIBS
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13826
13827 fi
13828
13829 for ac_prog in xdg-desktop-menu
13830 do
13831 # Extract the first word of "$ac_prog", so it can be a program name with args.
13832 set dummy $ac_prog; ac_word=$2
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834 $as_echo_n "checking for $ac_word... " >&6; }
13835 if ${ac_cv_prog_XDG_UTILS+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 if test -n "$XDG_UTILS"; then
13839 ac_cv_prog_XDG_UTILS="$XDG_UTILS" # Let the user override the test.
13840 else
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13843 do
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13848 ac_cv_prog_XDG_UTILS="$ac_prog"
13849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 break 2
13851 fi
13852 done
13853 done
13854 IFS=$as_save_IFS
13855
13856 fi
13857 fi
13858 XDG_UTILS=$ac_cv_prog_XDG_UTILS
13859 if test -n "$XDG_UTILS"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDG_UTILS" >&5
13861 $as_echo "$XDG_UTILS" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13865 fi
13866
13867
13868 test -n "$XDG_UTILS" && break
13869 done
13870
13871
13872 ac_config_files="$ac_config_files Makefile po/Makefile.in docs/curtain.1 docs/Makefile src/Makefile desktop/Makefile"
13873
13874
13875 cat >confcache <<\_ACEOF
13876 # This file is a shell script that caches the results of configure
13877 # tests run on this system so they can be shared between configure
13878 # scripts and configure runs, see configure's option --config-cache.
13879 # It is not useful on other systems. If it contains results you don't
13880 # want to keep, you may remove or edit it.
13881 #
13882 # config.status only pays attention to the cache file if you give it
13883 # the --recheck option to rerun configure.
13884 #
13885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13887 # following values.
13888
13889 _ACEOF
13890
13891 # The following way of writing the cache mishandles newlines in values,
13892 # but we know of no workaround that is simple, portable, and efficient.
13893 # So, we kill variables containing newlines.
13894 # Ultrix sh set writes to stderr and can't be redirected directly,
13895 # and sets the high bit in the cache file unless we assign to the vars.
13896 (
13897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13898 eval ac_val=\$$ac_var
13899 case $ac_val in #(
13900 *${as_nl}*)
13901 case $ac_var in #(
13902 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13903 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13904 esac
13905 case $ac_var in #(
13906 _ | IFS | as_nl) ;; #(
13907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13908 *) { eval $ac_var=; unset $ac_var;} ;;
13909 esac ;;
13910 esac
13911 done
13912
13913 (set) 2>&1 |
13914 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13915 *${as_nl}ac_space=\ *)
13916 # `set' does not quote correctly, so add quotes: double-quote
13917 # substitution turns \\\\ into \\, and sed turns \\ into \.
13918 sed -n \
13919 "s/'/'\\\\''/g;
13920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13921 ;; #(
13922 *)
13923 # `set' quotes correctly as required by POSIX, so do not add quotes.
13924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13925 ;;
13926 esac |
13927 sort
13928 ) |
13929 sed '
13930 /^ac_cv_env_/b end
13931 t clear
13932 :clear
13933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13934 t end
13935 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13936 :end' >>confcache
13937 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13938 if test -w "$cache_file"; then
13939 if test "x$cache_file" != "x/dev/null"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13941 $as_echo "$as_me: updating cache $cache_file" >&6;}
13942 if test ! -f "$cache_file" || test -h "$cache_file"; then
13943 cat confcache >"$cache_file"
13944 else
13945 case $cache_file in #(
13946 */* | ?:*)
13947 mv -f confcache "$cache_file"$$ &&
13948 mv -f "$cache_file"$$ "$cache_file" ;; #(
13949 *)
13950 mv -f confcache "$cache_file" ;;
13951 esac
13952 fi
13953 fi
13954 else
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13956 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13957 fi
13958 fi
13959 rm -f confcache
13960
13961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13962 # Let make expand exec_prefix.
13963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13964
13965 DEFS=-DHAVE_CONFIG_H
13966
13967 ac_libobjs=
13968 ac_ltlibobjs=
13969 U=
13970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13971 # 1. Remove the extension, and $U if already installed.
13972 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13973 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13974 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13975 # will be set to the directory where LIBOBJS objects are built.
13976 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13977 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13978 done
13979 LIBOBJS=$ac_libobjs
13980
13981 LTLIBOBJS=$ac_ltlibobjs
13982
13983
13984 if test -n "$EXEEXT"; then
13985 am__EXEEXT_TRUE=
13986 am__EXEEXT_FALSE='#'
13987 else
13988 am__EXEEXT_TRUE='#'
13989 am__EXEEXT_FALSE=
13990 fi
13991
13992 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13993 as_fn_error $? "conditional \"AMDEP\" was never defined.
13994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13995 fi
13996 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13997 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13999 fi
14000 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14001 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14003 fi
14004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14005 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007 fi
14008
14009 ac_config_commands="$ac_config_commands po/stamp-it"
14010
14011
14012 if test -z "${WITH_GNU_LD_TRUE}" && test -z "${WITH_GNU_LD_FALSE}"; then
14013 as_fn_error $? "conditional \"WITH_GNU_LD\" was never defined.
14014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14015 fi
14016 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14017 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14019 fi
14020
14021 : "${CONFIG_STATUS=./config.status}"
14022 ac_write_fail=0
14023 ac_clean_files_save=$ac_clean_files
14024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14026 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14027 as_write_fail=0
14028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14029 #! $SHELL
14030 # Generated by $as_me.
14031 # Run this file to recreate the current configuration.
14032 # Compiler output produced by configure, useful for debugging
14033 # configure, is in config.log if it exists.
14034
14035 debug=false
14036 ac_cs_recheck=false
14037 ac_cs_silent=false
14038
14039 SHELL=\${CONFIG_SHELL-$SHELL}
14040 export SHELL
14041 _ASEOF
14042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14043 ## -------------------- ##
14044 ## M4sh Initialization. ##
14045 ## -------------------- ##
14046
14047 # Be more Bourne compatible
14048 DUALCASE=1; export DUALCASE # for MKS sh
14049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14050 emulate sh
14051 NULLCMD=:
14052 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14053 # is contrary to our usage. Disable this feature.
14054 alias -g '${1+"$@"}'='"$@"'
14055 setopt NO_GLOB_SUBST
14056 else
14057 case `(set -o) 2>/dev/null` in #(
14058 *posix*) :
14059 set -o posix ;; #(
14060 *) :
14061 ;;
14062 esac
14063 fi
14064
14065
14066 as_nl='
14067 '
14068 export as_nl
14069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14073 # Prefer a ksh shell builtin over an external printf program on Solaris,
14074 # but without wasting forks for bash or zsh.
14075 if test -z "$BASH_VERSION$ZSH_VERSION" \
14076 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14077 as_echo='print -r --'
14078 as_echo_n='print -rn --'
14079 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14080 as_echo='printf %s\n'
14081 as_echo_n='printf %s'
14082 else
14083 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14084 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14085 as_echo_n='/usr/ucb/echo -n'
14086 else
14087 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14088 as_echo_n_body='eval
14089 arg=$1;
14090 case $arg in #(
14091 *"$as_nl"*)
14092 expr "X$arg" : "X\\(.*\\)$as_nl";
14093 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14094 esac;
14095 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14096 '
14097 export as_echo_n_body
14098 as_echo_n='sh -c $as_echo_n_body as_echo'
14099 fi
14100 export as_echo_body
14101 as_echo='sh -c $as_echo_body as_echo'
14102 fi
14103
14104 # The user is always right.
14105 if test "${PATH_SEPARATOR+set}" != set; then
14106 PATH_SEPARATOR=:
14107 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14108 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14109 PATH_SEPARATOR=';'
14110 }
14111 fi
14112
14113
14114 # IFS
14115 # We need space, tab and new line, in precisely that order. Quoting is
14116 # there to prevent editors from complaining about space-tab.
14117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14118 # splitting by setting IFS to empty value.)
14119 IFS=" "" $as_nl"
14120
14121 # Find who we are. Look in the path if we contain no directory separator.
14122 as_myself=
14123 case $0 in #((
14124 *[\\/]* ) as_myself=$0 ;;
14125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14127 do
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
14130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14131 done
14132 IFS=$as_save_IFS
14133
14134 ;;
14135 esac
14136 # We did not find ourselves, most probably we were run as `sh COMMAND'
14137 # in which case we are not to be found in the path.
14138 if test "x$as_myself" = x; then
14139 as_myself=$0
14140 fi
14141 if test ! -f "$as_myself"; then
14142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14143 exit 1
14144 fi
14145
14146 # Unset variables that we do not need and which cause bugs (e.g. in
14147 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14148 # suppresses any "Segmentation fault" message there. '((' could
14149 # trigger a bug in pdksh 5.2.14.
14150 for as_var in BASH_ENV ENV MAIL MAILPATH
14151 do eval test x\${$as_var+set} = xset \
14152 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14153 done
14154 PS1='$ '
14155 PS2='> '
14156 PS4='+ '
14157
14158 # NLS nuisances.
14159 LC_ALL=C
14160 export LC_ALL
14161 LANGUAGE=C
14162 export LANGUAGE
14163
14164 # CDPATH.
14165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14166
14167
14168 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14169 # ----------------------------------------
14170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14172 # script with STATUS, using 1 if that was 0.
14173 as_fn_error ()
14174 {
14175 as_status=$1; test $as_status -eq 0 && as_status=1
14176 if test "$4"; then
14177 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14178 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14179 fi
14180 $as_echo "$as_me: error: $2" >&2
14181 as_fn_exit $as_status
14182 } # as_fn_error
14183
14184
14185 # as_fn_set_status STATUS
14186 # -----------------------
14187 # Set $? to STATUS, without forking.
14188 as_fn_set_status ()
14189 {
14190 return $1
14191 } # as_fn_set_status
14192
14193 # as_fn_exit STATUS
14194 # -----------------
14195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14196 as_fn_exit ()
14197 {
14198 set +e
14199 as_fn_set_status $1
14200 exit $1
14201 } # as_fn_exit
14202
14203 # as_fn_unset VAR
14204 # ---------------
14205 # Portably unset VAR.
14206 as_fn_unset ()
14207 {
14208 { eval $1=; unset $1;}
14209 }
14210 as_unset=as_fn_unset
14211 # as_fn_append VAR VALUE
14212 # ----------------------
14213 # Append the text in VALUE to the end of the definition contained in VAR. Take
14214 # advantage of any shell optimizations that allow amortized linear growth over
14215 # repeated appends, instead of the typical quadratic growth present in naive
14216 # implementations.
14217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14218 eval 'as_fn_append ()
14219 {
14220 eval $1+=\$2
14221 }'
14222 else
14223 as_fn_append ()
14224 {
14225 eval $1=\$$1\$2
14226 }
14227 fi # as_fn_append
14228
14229 # as_fn_arith ARG...
14230 # ------------------
14231 # Perform arithmetic evaluation on the ARGs, and store the result in the
14232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14233 # must be portable across $(()) and expr.
14234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14235 eval 'as_fn_arith ()
14236 {
14237 as_val=$(( $* ))
14238 }'
14239 else
14240 as_fn_arith ()
14241 {
14242 as_val=`expr "$@" || test $? -eq 1`
14243 }
14244 fi # as_fn_arith
14245
14246
14247 if expr a : '\(a\)' >/dev/null 2>&1 &&
14248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14249 as_expr=expr
14250 else
14251 as_expr=false
14252 fi
14253
14254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14255 as_basename=basename
14256 else
14257 as_basename=false
14258 fi
14259
14260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14261 as_dirname=dirname
14262 else
14263 as_dirname=false
14264 fi
14265
14266 as_me=`$as_basename -- "$0" ||
14267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14268 X"$0" : 'X\(//\)$' \| \
14269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14270 $as_echo X/"$0" |
14271 sed '/^.*\/\([^/][^/]*\)\/*$/{
14272 s//\1/
14273 q
14274 }
14275 /^X\/\(\/\/\)$/{
14276 s//\1/
14277 q
14278 }
14279 /^X\/\(\/\).*/{
14280 s//\1/
14281 q
14282 }
14283 s/.*/./; q'`
14284
14285 # Avoid depending upon Character Ranges.
14286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14289 as_cr_digits='0123456789'
14290 as_cr_alnum=$as_cr_Letters$as_cr_digits
14291
14292 ECHO_C= ECHO_N= ECHO_T=
14293 case `echo -n x` in #(((((
14294 -n*)
14295 case `echo 'xy\c'` in
14296 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14297 xy) ECHO_C='\c';;
14298 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14299 ECHO_T=' ';;
14300 esac;;
14301 *)
14302 ECHO_N='-n';;
14303 esac
14304
14305 rm -f conf$$ conf$$.exe conf$$.file
14306 if test -d conf$$.dir; then
14307 rm -f conf$$.dir/conf$$.file
14308 else
14309 rm -f conf$$.dir
14310 mkdir conf$$.dir 2>/dev/null
14311 fi
14312 if (echo >conf$$.file) 2>/dev/null; then
14313 if ln -s conf$$.file conf$$ 2>/dev/null; then
14314 as_ln_s='ln -s'
14315 # ... but there are two gotchas:
14316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14318 # In both cases, we have to default to `cp -p'.
14319 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14320 as_ln_s='cp -p'
14321 elif ln conf$$.file conf$$ 2>/dev/null; then
14322 as_ln_s=ln
14323 else
14324 as_ln_s='cp -p'
14325 fi
14326 else
14327 as_ln_s='cp -p'
14328 fi
14329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14330 rmdir conf$$.dir 2>/dev/null
14331
14332
14333 # as_fn_mkdir_p
14334 # -------------
14335 # Create "$as_dir" as a directory, including parents if necessary.
14336 as_fn_mkdir_p ()
14337 {
14338
14339 case $as_dir in #(
14340 -*) as_dir=./$as_dir;;
14341 esac
14342 test -d "$as_dir" || eval $as_mkdir_p || {
14343 as_dirs=
14344 while :; do
14345 case $as_dir in #(
14346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14347 *) as_qdir=$as_dir;;
14348 esac
14349 as_dirs="'$as_qdir' $as_dirs"
14350 as_dir=`$as_dirname -- "$as_dir" ||
14351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14352 X"$as_dir" : 'X\(//\)[^/]' \| \
14353 X"$as_dir" : 'X\(//\)$' \| \
14354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14355 $as_echo X"$as_dir" |
14356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14357 s//\1/
14358 q
14359 }
14360 /^X\(\/\/\)[^/].*/{
14361 s//\1/
14362 q
14363 }
14364 /^X\(\/\/\)$/{
14365 s//\1/
14366 q
14367 }
14368 /^X\(\/\).*/{
14369 s//\1/
14370 q
14371 }
14372 s/.*/./; q'`
14373 test -d "$as_dir" && break
14374 done
14375 test -z "$as_dirs" || eval "mkdir $as_dirs"
14376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14377
14378
14379 } # as_fn_mkdir_p
14380 if mkdir -p . 2>/dev/null; then
14381 as_mkdir_p='mkdir -p "$as_dir"'
14382 else
14383 test -d ./-p && rmdir ./-p
14384 as_mkdir_p=false
14385 fi
14386
14387 if test -x / >/dev/null 2>&1; then
14388 as_test_x='test -x'
14389 else
14390 if ls -dL / >/dev/null 2>&1; then
14391 as_ls_L_option=L
14392 else
14393 as_ls_L_option=
14394 fi
14395 as_test_x='
14396 eval sh -c '\''
14397 if test -d "$1"; then
14398 test -d "$1/.";
14399 else
14400 case $1 in #(
14401 -*)set "./$1";;
14402 esac;
14403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14404 ???[sx]*):;;*)false;;esac;fi
14405 '\'' sh
14406 '
14407 fi
14408 as_executable_p=$as_test_x
14409
14410 # Sed expression to map a string onto a valid CPP name.
14411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14412
14413 # Sed expression to map a string onto a valid variable name.
14414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14415
14416
14417 exec 6>&1
14418 ## ----------------------------------- ##
14419 ## Main body of $CONFIG_STATUS script. ##
14420 ## ----------------------------------- ##
14421 _ASEOF
14422 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14423
14424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14425 # Save the log message, to keep $0 and so on meaningful, and to
14426 # report actual input values of CONFIG_FILES etc. instead of their
14427 # values after options handling.
14428 ac_log="
14429 This file was extended by curtain $as_me 0.3, which was
14430 generated by GNU Autoconf 2.68. Invocation command line was
14431
14432 CONFIG_FILES = $CONFIG_FILES
14433 CONFIG_HEADERS = $CONFIG_HEADERS
14434 CONFIG_LINKS = $CONFIG_LINKS
14435 CONFIG_COMMANDS = $CONFIG_COMMANDS
14436 $ $0 $@
14437
14438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14439 "
14440
14441 _ACEOF
14442
14443 case $ac_config_files in *"
14444 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14445 esac
14446
14447 case $ac_config_headers in *"
14448 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14449 esac
14450
14451
14452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453 # Files that config.status was made for.
14454 config_files="$ac_config_files"
14455 config_headers="$ac_config_headers"
14456 config_commands="$ac_config_commands"
14457
14458 _ACEOF
14459
14460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14461 ac_cs_usage="\
14462 \`$as_me' instantiates files and other configuration actions
14463 from templates according to the current configuration. Unless the files
14464 and actions are specified as TAGs, all are instantiated by default.
14465
14466 Usage: $0 [OPTION]... [TAG]...
14467
14468 -h, --help print this help, then exit
14469 -V, --version print version number and configuration settings, then exit
14470 --config print configuration, then exit
14471 -q, --quiet, --silent
14472 do not print progress messages
14473 -d, --debug don't remove temporary files
14474 --recheck update $as_me by reconfiguring in the same conditions
14475 --file=FILE[:TEMPLATE]
14476 instantiate the configuration file FILE
14477 --header=FILE[:TEMPLATE]
14478 instantiate the configuration header FILE
14479
14480 Configuration files:
14481 $config_files
14482
14483 Configuration headers:
14484 $config_headers
14485
14486 Configuration commands:
14487 $config_commands
14488
14489 Report bugs to <http://code.google.com/p/ardesia/issues/list>."
14490
14491 _ACEOF
14492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14493 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14494 ac_cs_version="\\
14495 curtain config.status 0.3
14496 configured by $0, generated by GNU Autoconf 2.68,
14497 with options \\"\$ac_cs_config\\"
14498
14499 Copyright (C) 2010 Free Software Foundation, Inc.
14500 This config.status script is free software; the Free Software Foundation
14501 gives unlimited permission to copy, distribute and modify it."
14502
14503 ac_pwd='$ac_pwd'
14504 srcdir='$srcdir'
14505 INSTALL='$INSTALL'
14506 MKDIR_P='$MKDIR_P'
14507 AWK='$AWK'
14508 test -n "\$AWK" || AWK=awk
14509 _ACEOF
14510
14511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 # The default lists apply if the user does not specify any file.
14513 ac_need_defaults=:
14514 while test $# != 0
14515 do
14516 case $1 in
14517 --*=?*)
14518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14520 ac_shift=:
14521 ;;
14522 --*=)
14523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14524 ac_optarg=
14525 ac_shift=:
14526 ;;
14527 *)
14528 ac_option=$1
14529 ac_optarg=$2
14530 ac_shift=shift
14531 ;;
14532 esac
14533
14534 case $ac_option in
14535 # Handling of the options.
14536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14537 ac_cs_recheck=: ;;
14538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14539 $as_echo "$ac_cs_version"; exit ;;
14540 --config | --confi | --conf | --con | --co | --c )
14541 $as_echo "$ac_cs_config"; exit ;;
14542 --debug | --debu | --deb | --de | --d | -d )
14543 debug=: ;;
14544 --file | --fil | --fi | --f )
14545 $ac_shift
14546 case $ac_optarg in
14547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14548 '') as_fn_error $? "missing file argument" ;;
14549 esac
14550 as_fn_append CONFIG_FILES " '$ac_optarg'"
14551 ac_need_defaults=false;;
14552 --header | --heade | --head | --hea )
14553 $ac_shift
14554 case $ac_optarg in
14555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14556 esac
14557 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14558 ac_need_defaults=false;;
14559 --he | --h)
14560 # Conflict between --help and --header
14561 as_fn_error $? "ambiguous option: \`$1'
14562 Try \`$0 --help' for more information.";;
14563 --help | --hel | -h )
14564 $as_echo "$ac_cs_usage"; exit ;;
14565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14567 ac_cs_silent=: ;;
14568
14569 # This is an error.
14570 -*) as_fn_error $? "unrecognized option: \`$1'
14571 Try \`$0 --help' for more information." ;;
14572
14573 *) as_fn_append ac_config_targets " $1"
14574 ac_need_defaults=false ;;
14575
14576 esac
14577 shift
14578 done
14579
14580 ac_configure_extra_args=
14581
14582 if $ac_cs_silent; then
14583 exec 6>/dev/null
14584 ac_configure_extra_args="$ac_configure_extra_args --silent"
14585 fi
14586
14587 _ACEOF
14588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14589 if \$ac_cs_recheck; then
14590 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14591 shift
14592 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14593 CONFIG_SHELL='$SHELL'
14594 export CONFIG_SHELL
14595 exec "\$@"
14596 fi
14597
14598 _ACEOF
14599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14600 exec 5>>config.log
14601 {
14602 echo
14603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14604 ## Running $as_me. ##
14605 _ASBOX
14606 $as_echo "$ac_log"
14607 } >&5
14608
14609 _ACEOF
14610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14611 #
14612 # INIT-COMMANDS
14613 #
14614 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14615
14616
14617 # The HP-UX ksh and POSIX shell print the target directory to stdout
14618 # if CDPATH is set.
14619 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14620
14621 sed_quote_subst='$sed_quote_subst'
14622 double_quote_subst='$double_quote_subst'
14623 delay_variable_subst='$delay_variable_subst'
14624 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14625 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14626 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14627 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14628 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14629 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14630 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14631 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14632 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14633 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14634 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14635 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14636 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14637 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14638 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14639 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14640 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14641 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14642 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14643 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14644 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14645 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14646 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14647 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14648 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14649 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14650 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14651 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14652 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14653 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14654 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14655 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14656 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14657 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14658 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14659 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14660 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14661 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14662 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14663 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14664 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14665 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14666 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14667 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14668 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14669 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14670 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14671 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14672 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14673 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14674 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14675 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14676 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14677 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14678 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14679 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14680 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14681 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"`'
14682 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14683 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14684 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14685 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14686 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14687 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14688 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14689 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14690 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14691 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14692 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14693 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14694 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14695 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14696 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14697 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14698 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14699 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14700 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14701 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14702 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14703 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14704 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14705 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14706 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14707 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14708 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14709 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14710 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14711 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14712 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14713 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14714 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14715 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14716 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14717 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14718 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14719 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14720 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14721 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14722 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14723 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14724 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14725 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14726 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14727 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14728 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14729 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14730 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14731 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14732 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14733 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14734 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14735 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14736 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14737 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14738 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14739 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14740 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14741 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14742 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14743 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14744 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14745 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14746 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14747 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14748 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14749 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14750 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14751 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14752 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14753 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14754 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14755
14756 LTCC='$LTCC'
14757 LTCFLAGS='$LTCFLAGS'
14758 compiler='$compiler_DEFAULT'
14759
14760 # A function that is used when there is no print builtin or printf.
14761 func_fallback_echo ()
14762 {
14763 eval 'cat <<_LTECHO_EOF
14764 \$1
14765 _LTECHO_EOF'
14766 }
14767
14768 # Quote evaled strings.
14769 for var in AS \
14770 DLLTOOL \
14771 OBJDUMP \
14772 SHELL \
14773 ECHO \
14774 PATH_SEPARATOR \
14775 SED \
14776 GREP \
14777 EGREP \
14778 FGREP \
14779 LD \
14780 NM \
14781 LN_S \
14782 lt_SP2NL \
14783 lt_NL2SP \
14784 reload_flag \
14785 deplibs_check_method \
14786 file_magic_cmd \
14787 file_magic_glob \
14788 want_nocaseglob \
14789 sharedlib_from_linklib_cmd \
14790 AR \
14791 AR_FLAGS \
14792 archiver_list_spec \
14793 STRIP \
14794 RANLIB \
14795 CC \
14796 CFLAGS \
14797 compiler \
14798 lt_cv_sys_global_symbol_pipe \
14799 lt_cv_sys_global_symbol_to_cdecl \
14800 lt_cv_sys_global_symbol_to_c_name_address \
14801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14802 nm_file_list_spec \
14803 lt_prog_compiler_no_builtin_flag \
14804 lt_prog_compiler_pic \
14805 lt_prog_compiler_wl \
14806 lt_prog_compiler_static \
14807 lt_cv_prog_compiler_c_o \
14808 need_locks \
14809 MANIFEST_TOOL \
14810 DSYMUTIL \
14811 NMEDIT \
14812 LIPO \
14813 OTOOL \
14814 OTOOL64 \
14815 shrext_cmds \
14816 export_dynamic_flag_spec \
14817 whole_archive_flag_spec \
14818 compiler_needs_object \
14819 with_gnu_ld \
14820 allow_undefined_flag \
14821 no_undefined_flag \
14822 hardcode_libdir_flag_spec \
14823 hardcode_libdir_separator \
14824 exclude_expsyms \
14825 include_expsyms \
14826 file_list_spec \
14827 variables_saved_for_relink \
14828 libname_spec \
14829 library_names_spec \
14830 soname_spec \
14831 install_override_mode \
14832 finish_eval \
14833 old_striplib \
14834 striplib; do
14835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14836 *[\\\\\\\`\\"\\\$]*)
14837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14838 ;;
14839 *)
14840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14841 ;;
14842 esac
14843 done
14844
14845 # Double-quote double-evaled strings.
14846 for var in reload_cmds \
14847 old_postinstall_cmds \
14848 old_postuninstall_cmds \
14849 old_archive_cmds \
14850 extract_expsyms_cmds \
14851 old_archive_from_new_cmds \
14852 old_archive_from_expsyms_cmds \
14853 archive_cmds \
14854 archive_expsym_cmds \
14855 module_cmds \
14856 module_expsym_cmds \
14857 export_symbols_cmds \
14858 prelink_cmds \
14859 postlink_cmds \
14860 postinstall_cmds \
14861 postuninstall_cmds \
14862 finish_cmds \
14863 sys_lib_search_path_spec \
14864 sys_lib_dlsearch_path_spec; do
14865 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14866 *[\\\\\\\`\\"\\\$]*)
14867 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14868 ;;
14869 *)
14870 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14871 ;;
14872 esac
14873 done
14874
14875 ac_aux_dir='$ac_aux_dir'
14876 xsi_shell='$xsi_shell'
14877 lt_shell_append='$lt_shell_append'
14878
14879 # See if we are running on zsh, and set the options which allow our
14880 # commands through without removal of \ escapes INIT.
14881 if test -n "\${ZSH_VERSION+set}" ; then
14882 setopt NO_GLOB_SUBST
14883 fi
14884
14885
14886 PACKAGE='$PACKAGE'
14887 VERSION='$VERSION'
14888 TIMESTAMP='$TIMESTAMP'
14889 RM='$RM'
14890 ofile='$ofile'
14891
14892
14893
14894
14895
14896 _ACEOF
14897
14898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14899
14900 # Handling of arguments.
14901 for ac_config_target in $ac_config_targets
14902 do
14903 case $ac_config_target in
14904 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14905 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14906 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14907 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14909 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14910 "docs/curtain.1") CONFIG_FILES="$CONFIG_FILES docs/curtain.1" ;;
14911 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14912 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14913 "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
14914 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
14915
14916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14917 esac
14918 done
14919
14920
14921 # If the user did not use the arguments to specify the items to instantiate,
14922 # then the envvar interface is used. Set only those that are not.
14923 # We use the long form for the default assignment because of an extremely
14924 # bizarre bug on SunOS 4.1.3.
14925 if $ac_need_defaults; then
14926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14929 fi
14930
14931 # Have a temporary directory for convenience. Make it in the build tree
14932 # simply because there is no reason against having it here, and in addition,
14933 # creating and moving files from /tmp can sometimes cause problems.
14934 # Hook for its removal unless debugging.
14935 # Note that there is a small window in which the directory will not be cleaned:
14936 # after its creation but before its name has been assigned to `$tmp'.
14937 $debug ||
14938 {
14939 tmp= ac_tmp=
14940 trap 'exit_status=$?
14941 : "${ac_tmp:=$tmp}"
14942 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14943 ' 0
14944 trap 'as_fn_exit 1' 1 2 13 15
14945 }
14946 # Create a (secure) tmp directory for tmp files.
14947
14948 {
14949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14950 test -d "$tmp"
14951 } ||
14952 {
14953 tmp=./conf$$-$RANDOM
14954 (umask 077 && mkdir "$tmp")
14955 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14956 ac_tmp=$tmp
14957
14958 # Set up the scripts for CONFIG_FILES section.
14959 # No need to generate them if there are no CONFIG_FILES.
14960 # This happens for instance with `./config.status config.h'.
14961 if test -n "$CONFIG_FILES"; then
14962
14963
14964 ac_cr=`echo X | tr X '\015'`
14965 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14966 # But we know of no other shell where ac_cr would be empty at this
14967 # point, so we can use a bashism as a fallback.
14968 if test "x$ac_cr" = x; then
14969 eval ac_cr=\$\'\\r\'
14970 fi
14971 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14972 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14973 ac_cs_awk_cr='\\r'
14974 else
14975 ac_cs_awk_cr=$ac_cr
14976 fi
14977
14978 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14979 _ACEOF
14980
14981
14982 {
14983 echo "cat >conf$$subs.awk <<_ACEOF" &&
14984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14985 echo "_ACEOF"
14986 } >conf$$subs.sh ||
14987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14989 ac_delim='%!_!# '
14990 for ac_last_try in false false false false false :; do
14991 . ./conf$$subs.sh ||
14992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14993
14994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14995 if test $ac_delim_n = $ac_delim_num; then
14996 break
14997 elif $ac_last_try; then
14998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14999 else
15000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15001 fi
15002 done
15003 rm -f conf$$subs.sh
15004
15005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15006 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15007 _ACEOF
15008 sed -n '
15009 h
15010 s/^/S["/; s/!.*/"]=/
15011 p
15012 g
15013 s/^[^!]*!//
15014 :repl
15015 t repl
15016 s/'"$ac_delim"'$//
15017 t delim
15018 :nl
15019 h
15020 s/\(.\{148\}\)..*/\1/
15021 t more1
15022 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15023 p
15024 n
15025 b repl
15026 :more1
15027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15028 p
15029 g
15030 s/.\{148\}//
15031 t nl
15032 :delim
15033 h
15034 s/\(.\{148\}\)..*/\1/
15035 t more2
15036 s/["\\]/\\&/g; s/^/"/; s/$/"/
15037 p
15038 b
15039 :more2
15040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15041 p
15042 g
15043 s/.\{148\}//
15044 t delim
15045 ' <conf$$subs.awk | sed '
15046 /^[^""]/{
15047 N
15048 s/\n//
15049 }
15050 ' >>$CONFIG_STATUS || ac_write_fail=1
15051 rm -f conf$$subs.awk
15052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15053 _ACAWK
15054 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15055 for (key in S) S_is_set[key] = 1
15056 FS = ""
15057
15058 }
15059 {
15060 line = $ 0
15061 nfields = split(line, field, "@")
15062 substed = 0
15063 len = length(field[1])
15064 for (i = 2; i < nfields; i++) {
15065 key = field[i]
15066 keylen = length(key)
15067 if (S_is_set[key]) {
15068 value = S[key]
15069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15070 len += length(value) + length(field[++i])
15071 substed = 1
15072 } else
15073 len += 1 + keylen
15074 }
15075
15076 print line
15077 }
15078
15079 _ACAWK
15080 _ACEOF
15081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15084 else
15085 cat
15086 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15087 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15088 _ACEOF
15089
15090 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15091 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15092 # trailing colons and then remove the whole line if VPATH becomes empty
15093 # (actually we leave an empty line to preserve line numbers).
15094 if test "x$srcdir" = x.; then
15095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15096 h
15097 s///
15098 s/^/:/
15099 s/[ ]*$/:/
15100 s/:\$(srcdir):/:/g
15101 s/:\${srcdir}:/:/g
15102 s/:@srcdir@:/:/g
15103 s/^:*//
15104 s/:*$//
15105 x
15106 s/\(=[ ]*\).*/\1/
15107 G
15108 s/\n//
15109 s/^[^=]*=[ ]*$//
15110 }'
15111 fi
15112
15113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15114 fi # test -n "$CONFIG_FILES"
15115
15116 # Set up the scripts for CONFIG_HEADERS section.
15117 # No need to generate them if there are no CONFIG_HEADERS.
15118 # This happens for instance with `./config.status Makefile'.
15119 if test -n "$CONFIG_HEADERS"; then
15120 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15121 BEGIN {
15122 _ACEOF
15123
15124 # Transform confdefs.h into an awk script `defines.awk', embedded as
15125 # here-document in config.status, that substitutes the proper values into
15126 # config.h.in to produce config.h.
15127
15128 # Create a delimiter string that does not exist in confdefs.h, to ease
15129 # handling of long lines.
15130 ac_delim='%!_!# '
15131 for ac_last_try in false false :; do
15132 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15133 if test -z "$ac_tt"; then
15134 break
15135 elif $ac_last_try; then
15136 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15137 else
15138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15139 fi
15140 done
15141
15142 # For the awk script, D is an array of macro values keyed by name,
15143 # likewise P contains macro parameters if any. Preserve backslash
15144 # newline sequences.
15145
15146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15147 sed -n '
15148 s/.\{148\}/&'"$ac_delim"'/g
15149 t rset
15150 :rset
15151 s/^[ ]*#[ ]*define[ ][ ]*/ /
15152 t def
15153 d
15154 :def
15155 s/\\$//
15156 t bsnl
15157 s/["\\]/\\&/g
15158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15159 D["\1"]=" \3"/p
15160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15161 d
15162 :bsnl
15163 s/["\\]/\\&/g
15164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15165 D["\1"]=" \3\\\\\\n"\\/p
15166 t cont
15167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15168 t cont
15169 d
15170 :cont
15171 n
15172 s/.\{148\}/&'"$ac_delim"'/g
15173 t clear
15174 :clear
15175 s/\\$//
15176 t bsnlc
15177 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15178 d
15179 :bsnlc
15180 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15181 b cont
15182 ' <confdefs.h | sed '
15183 s/'"$ac_delim"'/"\\\
15184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15185
15186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187 for (key in D) D_is_set[key] = 1
15188 FS = ""
15189 }
15190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15191 line = \$ 0
15192 split(line, arg, " ")
15193 if (arg[1] == "#") {
15194 defundef = arg[2]
15195 mac1 = arg[3]
15196 } else {
15197 defundef = substr(arg[1], 2)
15198 mac1 = arg[2]
15199 }
15200 split(mac1, mac2, "(") #)
15201 macro = mac2[1]
15202 prefix = substr(line, 1, index(line, defundef) - 1)
15203 if (D_is_set[macro]) {
15204 # Preserve the white space surrounding the "#".
15205 print prefix "define", macro P[macro] D[macro]
15206 next
15207 } else {
15208 # Replace #undef with comments. This is necessary, for example,
15209 # in the case of _POSIX_SOURCE, which is predefined and required
15210 # on some systems where configure will not decide to define it.
15211 if (defundef == "undef") {
15212 print "/*", prefix defundef, macro, "*/"
15213 next
15214 }
15215 }
15216 }
15217 { print }
15218 _ACAWK
15219 _ACEOF
15220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15222 fi # test -n "$CONFIG_HEADERS"
15223
15224
15225 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15226 shift
15227 for ac_tag
15228 do
15229 case $ac_tag in
15230 :[FHLC]) ac_mode=$ac_tag; continue;;
15231 esac
15232 case $ac_mode$ac_tag in
15233 :[FHL]*:*);;
15234 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15235 :[FH]-) ac_tag=-:-;;
15236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15237 esac
15238 ac_save_IFS=$IFS
15239 IFS=:
15240 set x $ac_tag
15241 IFS=$ac_save_IFS
15242 shift
15243 ac_file=$1
15244 shift
15245
15246 case $ac_mode in
15247 :L) ac_source=$1;;
15248 :[FH])
15249 ac_file_inputs=
15250 for ac_f
15251 do
15252 case $ac_f in
15253 -) ac_f="$ac_tmp/stdin";;
15254 *) # Look for the file first in the build tree, then in the source tree
15255 # (if the path is not absolute). The absolute path cannot be DOS-style,
15256 # because $ac_f cannot contain `:'.
15257 test -f "$ac_f" ||
15258 case $ac_f in
15259 [\\/$]*) false;;
15260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15261 esac ||
15262 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15263 esac
15264 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15265 as_fn_append ac_file_inputs " '$ac_f'"
15266 done
15267
15268 # Let's still pretend it is `configure' which instantiates (i.e., don't
15269 # use $as_me), people would be surprised to read:
15270 # /* config.h. Generated by config.status. */
15271 configure_input='Generated from '`
15272 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15273 `' by configure.'
15274 if test x"$ac_file" != x-; then
15275 configure_input="$ac_file. $configure_input"
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15277 $as_echo "$as_me: creating $ac_file" >&6;}
15278 fi
15279 # Neutralize special characters interpreted by sed in replacement strings.
15280 case $configure_input in #(
15281 *\&* | *\|* | *\\* )
15282 ac_sed_conf_input=`$as_echo "$configure_input" |
15283 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15284 *) ac_sed_conf_input=$configure_input;;
15285 esac
15286
15287 case $ac_tag in
15288 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15290 esac
15291 ;;
15292 esac
15293
15294 ac_dir=`$as_dirname -- "$ac_file" ||
15295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15296 X"$ac_file" : 'X\(//\)[^/]' \| \
15297 X"$ac_file" : 'X\(//\)$' \| \
15298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15299 $as_echo X"$ac_file" |
15300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15301 s//\1/
15302 q
15303 }
15304 /^X\(\/\/\)[^/].*/{
15305 s//\1/
15306 q
15307 }
15308 /^X\(\/\/\)$/{
15309 s//\1/
15310 q
15311 }
15312 /^X\(\/\).*/{
15313 s//\1/
15314 q
15315 }
15316 s/.*/./; q'`
15317 as_dir="$ac_dir"; as_fn_mkdir_p
15318 ac_builddir=.
15319
15320 case "$ac_dir" in
15321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15322 *)
15323 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15324 # A ".." for each directory in $ac_dir_suffix.
15325 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15326 case $ac_top_builddir_sub in
15327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15329 esac ;;
15330 esac
15331 ac_abs_top_builddir=$ac_pwd
15332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15333 # for backward compatibility:
15334 ac_top_builddir=$ac_top_build_prefix
15335
15336 case $srcdir in
15337 .) # We are building in place.
15338 ac_srcdir=.
15339 ac_top_srcdir=$ac_top_builddir_sub
15340 ac_abs_top_srcdir=$ac_pwd ;;
15341 [\\/]* | ?:[\\/]* ) # Absolute name.
15342 ac_srcdir=$srcdir$ac_dir_suffix;
15343 ac_top_srcdir=$srcdir
15344 ac_abs_top_srcdir=$srcdir ;;
15345 *) # Relative name.
15346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15347 ac_top_srcdir=$ac_top_build_prefix$srcdir
15348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15349 esac
15350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15351
15352
15353 case $ac_mode in
15354 :F)
15355 #
15356 # CONFIG_FILE
15357 #
15358
15359 case $INSTALL in
15360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15362 esac
15363 ac_MKDIR_P=$MKDIR_P
15364 case $MKDIR_P in
15365 [\\/$]* | ?:[\\/]* ) ;;
15366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15367 esac
15368 _ACEOF
15369
15370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371 # If the template does not know about datarootdir, expand it.
15372 # FIXME: This hack should be removed a few years after 2.60.
15373 ac_datarootdir_hack=; ac_datarootdir_seen=
15374 ac_sed_dataroot='
15375 /datarootdir/ {
15376 p
15377 q
15378 }
15379 /@datadir@/p
15380 /@docdir@/p
15381 /@infodir@/p
15382 /@localedir@/p
15383 /@mandir@/p'
15384 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15385 *datarootdir*) ac_datarootdir_seen=yes;;
15386 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15388 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 ac_datarootdir_hack='
15392 s&@datadir@&$datadir&g
15393 s&@docdir@&$docdir&g
15394 s&@infodir@&$infodir&g
15395 s&@localedir@&$localedir&g
15396 s&@mandir@&$mandir&g
15397 s&\\\${datarootdir}&$datarootdir&g' ;;
15398 esac
15399 _ACEOF
15400
15401 # Neutralize VPATH when `$srcdir' = `.'.
15402 # Shell code in configure.ac might set extrasub.
15403 # FIXME: do we really want to maintain this feature?
15404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15405 ac_sed_extra="$ac_vpsub
15406 $extrasub
15407 _ACEOF
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409 :t
15410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15411 s|@configure_input@|$ac_sed_conf_input|;t t
15412 s&@top_builddir@&$ac_top_builddir_sub&;t t
15413 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15414 s&@srcdir@&$ac_srcdir&;t t
15415 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15416 s&@top_srcdir@&$ac_top_srcdir&;t t
15417 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15418 s&@builddir@&$ac_builddir&;t t
15419 s&@abs_builddir@&$ac_abs_builddir&;t t
15420 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15421 s&@INSTALL@&$ac_INSTALL&;t t
15422 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15423 $ac_datarootdir_hack
15424 "
15425 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15427
15428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15431 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15433 which seems to be undefined. Please make sure it is defined" >&5
15434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15435 which seems to be undefined. Please make sure it is defined" >&2;}
15436
15437 rm -f "$ac_tmp/stdin"
15438 case $ac_file in
15439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15441 esac \
15442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15443 ;;
15444 :H)
15445 #
15446 # CONFIG_HEADER
15447 #
15448 if test x"$ac_file" != x-; then
15449 {
15450 $as_echo "/* $configure_input */" \
15451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15452 } >"$ac_tmp/config.h" \
15453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15457 else
15458 rm -f "$ac_file"
15459 mv "$ac_tmp/config.h" "$ac_file" \
15460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15461 fi
15462 else
15463 $as_echo "/* $configure_input */" \
15464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15465 || as_fn_error $? "could not create -" "$LINENO" 5
15466 fi
15467 # Compute "$ac_file"'s index in $config_headers.
15468 _am_arg="$ac_file"
15469 _am_stamp_count=1
15470 for _am_header in $config_headers :; do
15471 case $_am_header in
15472 $_am_arg | $_am_arg:* )
15473 break ;;
15474 * )
15475 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15476 esac
15477 done
15478 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15479 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15480 X"$_am_arg" : 'X\(//\)[^/]' \| \
15481 X"$_am_arg" : 'X\(//\)$' \| \
15482 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15483 $as_echo X"$_am_arg" |
15484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15485 s//\1/
15486 q
15487 }
15488 /^X\(\/\/\)[^/].*/{
15489 s//\1/
15490 q
15491 }
15492 /^X\(\/\/\)$/{
15493 s//\1/
15494 q
15495 }
15496 /^X\(\/\).*/{
15497 s//\1/
15498 q
15499 }
15500 s/.*/./; q'`/stamp-h$_am_stamp_count
15501 ;;
15502
15503 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15504 $as_echo "$as_me: executing $ac_file commands" >&6;}
15505 ;;
15506 esac
15507
15508
15509 case $ac_file$ac_mode in
15510 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15511 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15512 # are listed without --file. Let's play safe and only enable the eval
15513 # if we detect the quoting.
15514 case $CONFIG_FILES in
15515 *\'*) eval set x "$CONFIG_FILES" ;;
15516 *) set x $CONFIG_FILES ;;
15517 esac
15518 shift
15519 for mf
15520 do
15521 # Strip MF so we end up with the name of the file.
15522 mf=`echo "$mf" | sed -e 's/:.*$//'`
15523 # Check whether this is an Automake generated Makefile or not.
15524 # We used to match only the files named `Makefile.in', but
15525 # some people rename them; so instead we look at the file content.
15526 # Grep'ing the first line is not enough: some people post-process
15527 # each Makefile.in and add a new line on top of each file to say so.
15528 # Grep'ing the whole file is not good either: AIX grep has a line
15529 # limit of 2048, but all sed's we know have understand at least 4000.
15530 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15531 dirpart=`$as_dirname -- "$mf" ||
15532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15533 X"$mf" : 'X\(//\)[^/]' \| \
15534 X"$mf" : 'X\(//\)$' \| \
15535 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15536 $as_echo X"$mf" |
15537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15538 s//\1/
15539 q
15540 }
15541 /^X\(\/\/\)[^/].*/{
15542 s//\1/
15543 q
15544 }
15545 /^X\(\/\/\)$/{
15546 s//\1/
15547 q
15548 }
15549 /^X\(\/\).*/{
15550 s//\1/
15551 q
15552 }
15553 s/.*/./; q'`
15554 else
15555 continue
15556 fi
15557 # Extract the definition of DEPDIR, am__include, and am__quote
15558 # from the Makefile without running `make'.
15559 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15560 test -z "$DEPDIR" && continue
15561 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15562 test -z "am__include" && continue
15563 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15564 # When using ansi2knr, U may be empty or an underscore; expand it
15565 U=`sed -n 's/^U = //p' < "$mf"`
15566 # Find all dependency output files, they are included files with
15567 # $(DEPDIR) in their names. We invoke sed twice because it is the
15568 # simplest approach to changing $(DEPDIR) to its actual value in the
15569 # expansion.
15570 for file in `sed -n "
15571 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15573 # Make sure the directory exists.
15574 test -f "$dirpart/$file" && continue
15575 fdir=`$as_dirname -- "$file" ||
15576 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15577 X"$file" : 'X\(//\)[^/]' \| \
15578 X"$file" : 'X\(//\)$' \| \
15579 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15580 $as_echo X"$file" |
15581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15582 s//\1/
15583 q
15584 }
15585 /^X\(\/\/\)[^/].*/{
15586 s//\1/
15587 q
15588 }
15589 /^X\(\/\/\)$/{
15590 s//\1/
15591 q
15592 }
15593 /^X\(\/\).*/{
15594 s//\1/
15595 q
15596 }
15597 s/.*/./; q'`
15598 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15599 # echo "creating $dirpart/$file"
15600 echo '# dummy' > "$dirpart/$file"
15601 done
15602 done
15603 }
15604 ;;
15605 "libtool":C)
15606
15607 # See if we are running on zsh, and set the options which allow our
15608 # commands through without removal of \ escapes.
15609 if test -n "${ZSH_VERSION+set}" ; then
15610 setopt NO_GLOB_SUBST
15611 fi
15612
15613 cfgfile="${ofile}T"
15614 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15615 $RM "$cfgfile"
15616
15617 cat <<_LT_EOF >> "$cfgfile"
15618 #! $SHELL
15619
15620 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15621 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15622 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15623 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15624 #
15625 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15626 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15627 # Foundation, Inc.
15628 # Written by Gordon Matzigkeit, 1996
15629 #
15630 # This file is part of GNU Libtool.
15631 #
15632 # GNU Libtool is free software; you can redistribute it and/or
15633 # modify it under the terms of the GNU General Public License as
15634 # published by the Free Software Foundation; either version 2 of
15635 # the License, or (at your option) any later version.
15636 #
15637 # As a special exception to the GNU General Public License,
15638 # if you distribute this file as part of a program or library that
15639 # is built using GNU Libtool, you may include this file under the
15640 # same distribution terms that you use for the rest of that program.
15641 #
15642 # GNU Libtool is distributed in the hope that it will be useful,
15643 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15644 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15645 # GNU General Public License for more details.
15646 #
15647 # You should have received a copy of the GNU General Public License
15648 # along with GNU Libtool; see the file COPYING. If not, a copy
15649 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15650 # obtained by writing to the Free Software Foundation, Inc.,
15651 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15652
15653
15654 # The names of the tagged configurations supported by this script.
15655 available_tags=""
15656
15657 # ### BEGIN LIBTOOL CONFIG
15658
15659 # Whether or not to build static libraries.
15660 build_old_libs=$enable_static
15661
15662 # Assembler program.
15663 AS=$lt_AS
15664
15665 # DLL creation program.
15666 DLLTOOL=$lt_DLLTOOL
15667
15668 # Object dumper program.
15669 OBJDUMP=$lt_OBJDUMP
15670
15671 # Which release of libtool.m4 was used?
15672 macro_version=$macro_version
15673 macro_revision=$macro_revision
15674
15675 # Whether or not to build shared libraries.
15676 build_libtool_libs=$enable_shared
15677
15678 # What type of objects to build.
15679 pic_mode=$pic_mode
15680
15681 # Whether or not to optimize for fast installation.
15682 fast_install=$enable_fast_install
15683
15684 # Shell to use when invoking shell scripts.
15685 SHELL=$lt_SHELL
15686
15687 # An echo program that protects backslashes.
15688 ECHO=$lt_ECHO
15689
15690 # The PATH separator for the build system.
15691 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15692
15693 # The host system.
15694 host_alias=$host_alias
15695 host=$host
15696 host_os=$host_os
15697
15698 # The build system.
15699 build_alias=$build_alias
15700 build=$build
15701 build_os=$build_os
15702
15703 # A sed program that does not truncate output.
15704 SED=$lt_SED
15705
15706 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15707 Xsed="\$SED -e 1s/^X//"
15708
15709 # A grep program that handles long lines.
15710 GREP=$lt_GREP
15711
15712 # An ERE matcher.
15713 EGREP=$lt_EGREP
15714
15715 # A literal string matcher.
15716 FGREP=$lt_FGREP
15717
15718 # A BSD- or MS-compatible name lister.
15719 NM=$lt_NM
15720
15721 # Whether we need soft or hard links.
15722 LN_S=$lt_LN_S
15723
15724 # What is the maximum length of a command?
15725 max_cmd_len=$max_cmd_len
15726
15727 # Object file suffix (normally "o").
15728 objext=$ac_objext
15729
15730 # Executable file suffix (normally "").
15731 exeext=$exeext
15732
15733 # whether the shell understands "unset".
15734 lt_unset=$lt_unset
15735
15736 # turn spaces into newlines.
15737 SP2NL=$lt_lt_SP2NL
15738
15739 # turn newlines into spaces.
15740 NL2SP=$lt_lt_NL2SP
15741
15742 # convert \$build file names to \$host format.
15743 to_host_file_cmd=$lt_cv_to_host_file_cmd
15744
15745 # convert \$build files to toolchain format.
15746 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15747
15748 # Method to check whether dependent libraries are shared objects.
15749 deplibs_check_method=$lt_deplibs_check_method
15750
15751 # Command to use when deplibs_check_method = "file_magic".
15752 file_magic_cmd=$lt_file_magic_cmd
15753
15754 # How to find potential files when deplibs_check_method = "file_magic".
15755 file_magic_glob=$lt_file_magic_glob
15756
15757 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15758 want_nocaseglob=$lt_want_nocaseglob
15759
15760 # Command to associate shared and link libraries.
15761 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15762
15763 # The archiver.
15764 AR=$lt_AR
15765
15766 # Flags to create an archive.
15767 AR_FLAGS=$lt_AR_FLAGS
15768
15769 # How to feed a file listing to the archiver.
15770 archiver_list_spec=$lt_archiver_list_spec
15771
15772 # A symbol stripping program.
15773 STRIP=$lt_STRIP
15774
15775 # Commands used to install an old-style archive.
15776 RANLIB=$lt_RANLIB
15777 old_postinstall_cmds=$lt_old_postinstall_cmds
15778 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15779
15780 # Whether to use a lock for old archive extraction.
15781 lock_old_archive_extraction=$lock_old_archive_extraction
15782
15783 # A C compiler.
15784 LTCC=$lt_CC
15785
15786 # LTCC compiler flags.
15787 LTCFLAGS=$lt_CFLAGS
15788
15789 # Take the output of nm and produce a listing of raw symbols and C names.
15790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15791
15792 # Transform the output of nm in a proper C declaration.
15793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15794
15795 # Transform the output of nm in a C name address pair.
15796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15797
15798 # Transform the output of nm in a C name address pair when lib prefix is needed.
15799 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15800
15801 # Specify filename containing input files for \$NM.
15802 nm_file_list_spec=$lt_nm_file_list_spec
15803
15804 # The root where to search for dependent libraries,and in which our libraries should be installed.
15805 lt_sysroot=$lt_sysroot
15806
15807 # The name of the directory that contains temporary libtool files.
15808 objdir=$objdir
15809
15810 # Used to examine libraries when file_magic_cmd begins with "file".
15811 MAGIC_CMD=$MAGIC_CMD
15812
15813 # Must we lock files when doing compilation?
15814 need_locks=$lt_need_locks
15815
15816 # Manifest tool.
15817 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15818
15819 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15820 DSYMUTIL=$lt_DSYMUTIL
15821
15822 # Tool to change global to local symbols on Mac OS X.
15823 NMEDIT=$lt_NMEDIT
15824
15825 # Tool to manipulate fat objects and archives on Mac OS X.
15826 LIPO=$lt_LIPO
15827
15828 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15829 OTOOL=$lt_OTOOL
15830
15831 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15832 OTOOL64=$lt_OTOOL64
15833
15834 # Old archive suffix (normally "a").
15835 libext=$libext
15836
15837 # Shared library suffix (normally ".so").
15838 shrext_cmds=$lt_shrext_cmds
15839
15840 # The commands to extract the exported symbol list from a shared archive.
15841 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15842
15843 # Variables whose values should be saved in libtool wrapper scripts and
15844 # restored at link time.
15845 variables_saved_for_relink=$lt_variables_saved_for_relink
15846
15847 # Do we need the "lib" prefix for modules?
15848 need_lib_prefix=$need_lib_prefix
15849
15850 # Do we need a version for libraries?
15851 need_version=$need_version
15852
15853 # Library versioning type.
15854 version_type=$version_type
15855
15856 # Shared library runtime path variable.
15857 runpath_var=$runpath_var
15858
15859 # Shared library path variable.
15860 shlibpath_var=$shlibpath_var
15861
15862 # Is shlibpath searched before the hard-coded library search path?
15863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15864
15865 # Format of library name prefix.
15866 libname_spec=$lt_libname_spec
15867
15868 # List of archive names. First name is the real one, the rest are links.
15869 # The last name is the one that the linker finds with -lNAME
15870 library_names_spec=$lt_library_names_spec
15871
15872 # The coded name of the library, if different from the real name.
15873 soname_spec=$lt_soname_spec
15874
15875 # Permission mode override for installation of shared libraries.
15876 install_override_mode=$lt_install_override_mode
15877
15878 # Command to use after installation of a shared archive.
15879 postinstall_cmds=$lt_postinstall_cmds
15880
15881 # Command to use after uninstallation of a shared archive.
15882 postuninstall_cmds=$lt_postuninstall_cmds
15883
15884 # Commands used to finish a libtool library installation in a directory.
15885 finish_cmds=$lt_finish_cmds
15886
15887 # As "finish_cmds", except a single script fragment to be evaled but
15888 # not shown.
15889 finish_eval=$lt_finish_eval
15890
15891 # Whether we should hardcode library paths into libraries.
15892 hardcode_into_libs=$hardcode_into_libs
15893
15894 # Compile-time system search path for libraries.
15895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15896
15897 # Run-time system search path for libraries.
15898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15899
15900 # Whether dlopen is supported.
15901 dlopen_support=$enable_dlopen
15902
15903 # Whether dlopen of programs is supported.
15904 dlopen_self=$enable_dlopen_self
15905
15906 # Whether dlopen of statically linked programs is supported.
15907 dlopen_self_static=$enable_dlopen_self_static
15908
15909 # Commands to strip libraries.
15910 old_striplib=$lt_old_striplib
15911 striplib=$lt_striplib
15912
15913
15914 # The linker used to build libraries.
15915 LD=$lt_LD
15916
15917 # How to create reloadable object files.
15918 reload_flag=$lt_reload_flag
15919 reload_cmds=$lt_reload_cmds
15920
15921 # Commands used to build an old-style archive.
15922 old_archive_cmds=$lt_old_archive_cmds
15923
15924 # A language specific compiler.
15925 CC=$lt_compiler
15926
15927 # Is the compiler the GNU compiler?
15928 with_gcc=$GCC
15929
15930 # Compiler flag to turn off builtin functions.
15931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15932
15933 # Additional compiler flags for building library objects.
15934 pic_flag=$lt_lt_prog_compiler_pic
15935
15936 # How to pass a linker flag through the compiler.
15937 wl=$lt_lt_prog_compiler_wl
15938
15939 # Compiler flag to prevent dynamic linking.
15940 link_static_flag=$lt_lt_prog_compiler_static
15941
15942 # Does compiler simultaneously support -c and -o options?
15943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15944
15945 # Whether or not to add -lc for building shared libraries.
15946 build_libtool_need_lc=$archive_cmds_need_lc
15947
15948 # Whether or not to disallow shared libs when runtime libs are static.
15949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15950
15951 # Compiler flag to allow reflexive dlopens.
15952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15953
15954 # Compiler flag to generate shared objects directly from archives.
15955 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15956
15957 # Whether the compiler copes with passing no objects directly.
15958 compiler_needs_object=$lt_compiler_needs_object
15959
15960 # Create an old-style archive from a shared archive.
15961 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15962
15963 # Create a temporary old-style archive to link instead of a shared archive.
15964 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15965
15966 # Commands used to build a shared archive.
15967 archive_cmds=$lt_archive_cmds
15968 archive_expsym_cmds=$lt_archive_expsym_cmds
15969
15970 # Commands used to build a loadable module if different from building
15971 # a shared archive.
15972 module_cmds=$lt_module_cmds
15973 module_expsym_cmds=$lt_module_expsym_cmds
15974
15975 # Whether we are building with GNU ld or not.
15976 with_gnu_ld=$lt_with_gnu_ld
15977
15978 # Flag that allows shared libraries with undefined symbols to be built.
15979 allow_undefined_flag=$lt_allow_undefined_flag
15980
15981 # Flag that enforces no undefined symbols.
15982 no_undefined_flag=$lt_no_undefined_flag
15983
15984 # Flag to hardcode \$libdir into a binary during linking.
15985 # This must work even if \$libdir does not exist
15986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15987
15988 # Whether we need a single "-rpath" flag with a separated argument.
15989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15990
15991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15992 # DIR into the resulting binary.
15993 hardcode_direct=$hardcode_direct
15994
15995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15996 # DIR into the resulting binary and the resulting library dependency is
15997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15998 # library is relocated.
15999 hardcode_direct_absolute=$hardcode_direct_absolute
16000
16001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16002 # into the resulting binary.
16003 hardcode_minus_L=$hardcode_minus_L
16004
16005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16006 # into the resulting binary.
16007 hardcode_shlibpath_var=$hardcode_shlibpath_var
16008
16009 # Set to "yes" if building a shared library automatically hardcodes DIR
16010 # into the library and all subsequent libraries and executables linked
16011 # against it.
16012 hardcode_automatic=$hardcode_automatic
16013
16014 # Set to yes if linker adds runtime paths of dependent libraries
16015 # to runtime path list.
16016 inherit_rpath=$inherit_rpath
16017
16018 # Whether libtool must link a program against all its dependency libraries.
16019 link_all_deplibs=$link_all_deplibs
16020
16021 # Set to "yes" if exported symbols are required.
16022 always_export_symbols=$always_export_symbols
16023
16024 # The commands to list exported symbols.
16025 export_symbols_cmds=$lt_export_symbols_cmds
16026
16027 # Symbols that should not be listed in the preloaded symbols.
16028 exclude_expsyms=$lt_exclude_expsyms
16029
16030 # Symbols that must always be exported.
16031 include_expsyms=$lt_include_expsyms
16032
16033 # Commands necessary for linking programs (against libraries) with templates.
16034 prelink_cmds=$lt_prelink_cmds
16035
16036 # Commands necessary for finishing linking programs.
16037 postlink_cmds=$lt_postlink_cmds
16038
16039 # Specify filename containing input files.
16040 file_list_spec=$lt_file_list_spec
16041
16042 # How to hardcode a shared library path into an executable.
16043 hardcode_action=$hardcode_action
16044
16045 # ### END LIBTOOL CONFIG
16046
16047 _LT_EOF
16048
16049 case $host_os in
16050 aix3*)
16051 cat <<\_LT_EOF >> "$cfgfile"
16052 # AIX sometimes has problems with the GCC collect2 program. For some
16053 # reason, if we set the COLLECT_NAMES environment variable, the problems
16054 # vanish in a puff of smoke.
16055 if test "X${COLLECT_NAMES+set}" != Xset; then
16056 COLLECT_NAMES=
16057 export COLLECT_NAMES
16058 fi
16059 _LT_EOF
16060 ;;
16061 esac
16062
16063
16064 ltmain="$ac_aux_dir/ltmain.sh"
16065
16066
16067 # We use sed instead of cat because bash on DJGPP gets confused if
16068 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16069 # text mode, it properly converts lines to CR/LF. This bash problem
16070 # is reportedly fixed, but why not run on old versions too?
16071 sed '$q' "$ltmain" >> "$cfgfile" \
16072 || (rm -f "$cfgfile"; exit 1)
16073
16074 if test x"$xsi_shell" = xyes; then
16075 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16076 func_dirname ()\
16077 {\
16078 \ case ${1} in\
16079 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16080 \ * ) func_dirname_result="${3}" ;;\
16081 \ esac\
16082 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16083 && mv -f "$cfgfile.tmp" "$cfgfile" \
16084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16085 test 0 -eq $? || _lt_function_replace_fail=:
16086
16087
16088 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16089 func_basename ()\
16090 {\
16091 \ func_basename_result="${1##*/}"\
16092 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16093 && mv -f "$cfgfile.tmp" "$cfgfile" \
16094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16095 test 0 -eq $? || _lt_function_replace_fail=:
16096
16097
16098 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16099 func_dirname_and_basename ()\
16100 {\
16101 \ case ${1} in\
16102 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16103 \ * ) func_dirname_result="${3}" ;;\
16104 \ esac\
16105 \ func_basename_result="${1##*/}"\
16106 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16107 && mv -f "$cfgfile.tmp" "$cfgfile" \
16108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16109 test 0 -eq $? || _lt_function_replace_fail=:
16110
16111
16112 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16113 func_stripname ()\
16114 {\
16115 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16116 \ # positional parameters, so assign one to ordinary parameter first.\
16117 \ func_stripname_result=${3}\
16118 \ func_stripname_result=${func_stripname_result#"${1}"}\
16119 \ func_stripname_result=${func_stripname_result%"${2}"}\
16120 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16121 && mv -f "$cfgfile.tmp" "$cfgfile" \
16122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16123 test 0 -eq $? || _lt_function_replace_fail=:
16124
16125
16126 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16127 func_split_long_opt ()\
16128 {\
16129 \ func_split_long_opt_name=${1%%=*}\
16130 \ func_split_long_opt_arg=${1#*=}\
16131 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16132 && mv -f "$cfgfile.tmp" "$cfgfile" \
16133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16134 test 0 -eq $? || _lt_function_replace_fail=:
16135
16136
16137 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16138 func_split_short_opt ()\
16139 {\
16140 \ func_split_short_opt_arg=${1#??}\
16141 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16142 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16143 && mv -f "$cfgfile.tmp" "$cfgfile" \
16144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16145 test 0 -eq $? || _lt_function_replace_fail=:
16146
16147
16148 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16149 func_lo2o ()\
16150 {\
16151 \ case ${1} in\
16152 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16153 \ *) func_lo2o_result=${1} ;;\
16154 \ esac\
16155 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16156 && mv -f "$cfgfile.tmp" "$cfgfile" \
16157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16158 test 0 -eq $? || _lt_function_replace_fail=:
16159
16160
16161 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16162 func_xform ()\
16163 {\
16164 func_xform_result=${1%.*}.lo\
16165 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16166 && mv -f "$cfgfile.tmp" "$cfgfile" \
16167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16168 test 0 -eq $? || _lt_function_replace_fail=:
16169
16170
16171 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16172 func_arith ()\
16173 {\
16174 func_arith_result=$(( $* ))\
16175 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16176 && mv -f "$cfgfile.tmp" "$cfgfile" \
16177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16178 test 0 -eq $? || _lt_function_replace_fail=:
16179
16180
16181 sed -e '/^func_len ()$/,/^} # func_len /c\
16182 func_len ()\
16183 {\
16184 func_len_result=${#1}\
16185 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16186 && mv -f "$cfgfile.tmp" "$cfgfile" \
16187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16188 test 0 -eq $? || _lt_function_replace_fail=:
16189
16190 fi
16191
16192 if test x"$lt_shell_append" = xyes; then
16193 sed -e '/^func_append ()$/,/^} # func_append /c\
16194 func_append ()\
16195 {\
16196 eval "${1}+=\\${2}"\
16197 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16198 && mv -f "$cfgfile.tmp" "$cfgfile" \
16199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16200 test 0 -eq $? || _lt_function_replace_fail=:
16201
16202
16203 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16204 func_append_quoted ()\
16205 {\
16206 \ func_quote_for_eval "${2}"\
16207 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16208 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16209 && mv -f "$cfgfile.tmp" "$cfgfile" \
16210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16211 test 0 -eq $? || _lt_function_replace_fail=:
16212
16213
16214 # Save a `func_append' function call where possible by direct use of '+='
16215 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16216 && mv -f "$cfgfile.tmp" "$cfgfile" \
16217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16218 test 0 -eq $? || _lt_function_replace_fail=:
16219 else
16220 # Save a `func_append' function call even when '+=' is not available
16221 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16222 && mv -f "$cfgfile.tmp" "$cfgfile" \
16223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16224 test 0 -eq $? || _lt_function_replace_fail=:
16225 fi
16226
16227 if test x"$_lt_function_replace_fail" = x":"; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16229 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16230 fi
16231
16232
16233 mv -f "$cfgfile" "$ofile" ||
16234 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16235 chmod +x "$ofile"
16236
16237 ;;
16238 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16239 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16240 esac ;;
16241 "po/stamp-it":C)
16242 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
16243 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
16244 fi
16245 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
16246 >"po/stamp-it.tmp"
16247 sed '/^#/d
16248 s/^[[].*] *//
16249 /^[ ]*$/d
16250 '"s|^| $ac_top_srcdir/|" \
16251 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
16252
16253 sed '/^POTFILES =/,/[^\\]$/ {
16254 /^POTFILES =/!d
16255 r po/POTFILES
16256 }
16257 ' "po/Makefile.in" >"po/Makefile"
16258 rm -f "po/Makefile.tmp"
16259 mv "po/stamp-it.tmp" "po/stamp-it"
16260 ;;
16261
16262 esac
16263 done # for ac_tag
16264
16265
16266 as_fn_exit 0
16267 _ACEOF
16268 ac_clean_files=$ac_clean_files_save
16269
16270 test $ac_write_fail = 0 ||
16271 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16272
16273
16274 # configure is writing to config.log, and then calls config.status.
16275 # config.status does its own redirection, appending to config.log.
16276 # Unfortunately, on DOS this fails, as config.log is still kept open
16277 # by configure, so config.status won't be able to write to it; its
16278 # output is simply discarded. So we exec the FD to /dev/null,
16279 # effectively closing config.log, so it can be properly (re)opened and
16280 # appended to by config.status. When coming back to configure, we
16281 # need to make the FD available again.
16282 if test "$no_create" != yes; then
16283 ac_cs_success=:
16284 ac_config_status_args=
16285 test "$silent" = yes &&
16286 ac_config_status_args="$ac_config_status_args --quiet"
16287 exec 5>/dev/null
16288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16289 exec 5>>config.log
16290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16291 # would make configure fail if this is the last instruction.
16292 $ac_cs_success || as_fn_exit 1
16293 fi
16294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16297 fi
16298