Bug 524030 – provide option to hide statusbar
[xchat-gnome.git] / configure
blobc5ac1e9da61b20784358abb1951fe4f3bcb30a14
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for XChat-GNOME IRC Chat 0.26.1.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
607 _LT_EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
625 done
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
649 done
650 IFS="$lt_save_ifs"
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
698 prev="$cmd"
699 done
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 # Initializations.
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='XChat-GNOME IRC Chat'
747 PACKAGE_TARNAME='xchat-gnome'
748 PACKAGE_VERSION='0.26.1'
749 PACKAGE_STRING='XChat-GNOME IRC Chat 0.26.1'
750 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome'
752 ac_unique_file="configure.ac"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 AM_LDFLAGS
792 AM_CFLAGS
793 AM_CPPFLAGS
794 BUILD_PLUGINS
795 DIST_PLUGINS
796 USE_MMX_FALSE
797 USE_MMX_TRUE
798 MKINSTALLDIRS
799 POSUB
800 POFILES
801 PO_IN_DATADIR_FALSE
802 PO_IN_DATADIR_TRUE
803 INTLLIBS
804 INSTOBJEXT
805 GMOFILES
806 CATOBJEXT
807 CATALOGS
808 MSGFMT_OPTS
809 GETTEXT_PACKAGE
810 USE_OPENSSL_FALSE
811 USE_OPENSSL_TRUE
812 OPENSSL_LIBS
813 OPENSSL_CFLAGS
814 TCL_CFLAGS
815 TCL_LIBS
816 PYTHON_EXTRA_LIBS
817 PYTHON_CFLAGS
818 PYTHON_LIB_LOC
819 PYTHON_LIBS
820 PYTHON_INCLUDES
821 pkgpyexecdir
822 pyexecdir
823 pkgpythondir
824 pythondir
825 PYTHON_PLATFORM
826 PYTHON_EXEC_PREFIX
827 PYTHON_PREFIX
828 PYTHON_VERSION
829 PYTHON
830 PERL_LDFLAGS
831 PERL_CFLAGS
832 PERL
833 GCONFTOOL
834 GCONF_SCHEMAS_INSTALL_FALSE
835 GCONF_SCHEMAS_INSTALL_TRUE
836 GCONF_SCHEMA_FILE_DIR
837 GCONF_SCHEMA_CONFIG_SOURCE
838 ENABLE_LIBCANBERRA_FALSE
839 ENABLE_LIBCANBERRA_TRUE
840 LIBCANBERRAGTK_LIBS
841 LIBCANBERRAGTK_CFLAGS
842 ENABLE_LIBNOTIFY_FALSE
843 ENABLE_LIBNOTIFY_TRUE
844 LIBNOTIFY_LIBS
845 LIBNOTIFY_CFLAGS
846 ENABLE_DBUS_FALSE
847 ENABLE_DBUS_TRUE
848 DBUS_SERVICES_DIR
849 DATADIR
850 DBUS_BINDING_TOOL
851 DBUS_LIBS
852 DBUS_CFLAGS
853 DEPENDENCIES_LIBS
854 DEPENDENCIES_CFLAGS
855 HAVE_GNOME_DOC_UTILS_FALSE
856 HAVE_GNOME_DOC_UTILS_TRUE
857 DISTCHECK_CONFIGURE_FLAGS
858 ENABLE_SK_FALSE
859 ENABLE_SK_TRUE
860 DOC_USER_FORMATS
861 OMF_DIR
862 HELP_DIR
863 PKG_CONFIG
864 WARN_CFLAGS
865 DISABLE_DEPRECATED
866 ACLOCAL_AMFLAGS
867 GLIB_GENMARSHAL
868 OTOOL64
869 OTOOL
870 LIPO
871 NMEDIT
872 DSYMUTIL
873 lt_ECHO
874 RANLIB
876 OBJDUMP
877 LN_S
879 ac_ct_DUMPBIN
880 DUMPBIN
882 FGREP
883 EGREP
884 GREP
886 host_os
887 host_vendor
888 host_cpu
889 host
890 build_os
891 build_vendor
892 build_cpu
893 build
894 LIBTOOL
895 am__fastdepCCAS_FALSE
896 am__fastdepCCAS_TRUE
897 CCASDEPMODE
898 CCASFLAGS
899 CCAS
901 DATADIRNAME
902 am__fastdepCC_FALSE
903 am__fastdepCC_TRUE
904 CCDEPMODE
905 AMDEPBACKSLASH
906 AMDEP_FALSE
907 AMDEP_TRUE
908 am__quote
909 am__include
910 DEPDIR
911 OBJEXT
912 EXEEXT
913 ac_ct_CC
914 CPPFLAGS
915 LDFLAGS
916 CFLAGS
918 ALL_LINGUAS
919 INTLTOOL_PERL
920 GMSGFMT
921 MSGFMT
922 MSGMERGE
923 XGETTEXT
924 INTLTOOL_POLICY_RULE
925 INTLTOOL_SERVICE_RULE
926 INTLTOOL_THEME_RULE
927 INTLTOOL_SCHEMAS_RULE
928 INTLTOOL_CAVES_RULE
929 INTLTOOL_XML_NOMERGE_RULE
930 INTLTOOL_XML_RULE
931 INTLTOOL_KBD_RULE
932 INTLTOOL_XAM_RULE
933 INTLTOOL_UI_RULE
934 INTLTOOL_SOUNDLIST_RULE
935 INTLTOOL_SHEET_RULE
936 INTLTOOL_SERVER_RULE
937 INTLTOOL_PONG_RULE
938 INTLTOOL_OAF_RULE
939 INTLTOOL_PROP_RULE
940 INTLTOOL_KEYS_RULE
941 INTLTOOL_DIRECTORY_RULE
942 INTLTOOL_DESKTOP_RULE
943 INTLTOOL_EXTRACT
944 INTLTOOL_MERGE
945 INTLTOOL_UPDATE
946 USE_NLS
947 MAINT
948 MAINTAINER_MODE_FALSE
949 MAINTAINER_MODE_TRUE
950 am__untar
951 am__tar
952 AMTAR
953 am__leading_dot
954 SET_MAKE
956 mkdir_p
957 MKDIR_P
958 INSTALL_STRIP_PROGRAM
959 STRIP
960 install_sh
961 MAKEINFO
962 AUTOHEADER
963 AUTOMAKE
964 AUTOCONF
965 ACLOCAL
966 VERSION
967 PACKAGE
968 CYGPATH_W
969 am__isrc
970 INSTALL_DATA
971 INSTALL_SCRIPT
972 INSTALL_PROGRAM
973 target_alias
974 host_alias
975 build_alias
976 LIBS
977 ECHO_T
978 ECHO_N
979 ECHO_C
980 DEFS
981 mandir
982 localedir
983 libdir
984 psdir
985 pdfdir
986 dvidir
987 htmldir
988 infodir
989 docdir
990 oldincludedir
991 includedir
992 localstatedir
993 sharedstatedir
994 sysconfdir
995 datadir
996 datarootdir
997 libexecdir
998 sbindir
999 bindir
1000 program_transform_name
1001 prefix
1002 exec_prefix
1003 PACKAGE_BUGREPORT
1004 PACKAGE_STRING
1005 PACKAGE_VERSION
1006 PACKAGE_TARNAME
1007 PACKAGE_NAME
1008 PATH_SEPARATOR
1009 SHELL'
1010 ac_subst_files=''
1011 ac_user_opts='
1012 enable_option_checking
1013 enable_maintainer_mode
1014 enable_nls
1015 enable_dependency_tracking
1016 enable_shared
1017 enable_static
1018 with_pic
1019 enable_fast_install
1020 with_gnu_ld
1021 enable_libtool_lock
1022 enable_debug
1023 enable_compile_warnings
1024 enable_iso_c
1025 with_help_dir
1026 with_omf_dir
1027 with_help_formats
1028 enable_scrollkeeper
1029 enable_dbus
1030 enable_notification
1031 enable_canberra
1032 with_gconf_source
1033 with_gconf_schema_file_dir
1034 enable_schemas_install
1035 enable_perl
1036 enable_python
1037 enable_tcl
1038 enable_mmx
1039 with_plugins
1041 ac_precious_vars='build_alias
1042 host_alias
1043 target_alias
1045 CFLAGS
1046 LDFLAGS
1047 LIBS
1048 CPPFLAGS
1050 CCAS
1051 CCASFLAGS
1052 PKG_CONFIG
1053 DEPENDENCIES_CFLAGS
1054 DEPENDENCIES_LIBS
1055 DBUS_CFLAGS
1056 DBUS_LIBS
1057 LIBNOTIFY_CFLAGS
1058 LIBNOTIFY_LIBS
1059 LIBCANBERRAGTK_CFLAGS
1060 LIBCANBERRAGTK_LIBS
1061 OPENSSL_CFLAGS
1062 OPENSSL_LIBS'
1065 # Initialize some variables set by options.
1066 ac_init_help=
1067 ac_init_version=false
1068 ac_unrecognized_opts=
1069 ac_unrecognized_sep=
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1073 exec_prefix=NONE
1074 no_create=
1075 no_recursion=
1076 prefix=NONE
1077 program_prefix=NONE
1078 program_suffix=NONE
1079 program_transform_name=s,x,x,
1080 silent=
1081 site=
1082 srcdir=
1083 verbose=
1084 x_includes=NONE
1085 x_libraries=NONE
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1104 infodir='${datarootdir}/info'
1105 htmldir='${docdir}'
1106 dvidir='${docdir}'
1107 pdfdir='${docdir}'
1108 psdir='${docdir}'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1113 ac_prev=
1114 ac_dashdash=
1115 for ac_option
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1120 ac_prev=
1121 continue
1124 case $ac_option in
1125 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 *) ac_optarg=yes ;;
1127 esac
1129 # Accept the important Cygnus configure options, so we can diagnose typos.
1131 case $ac_dashdash$ac_option in
1133 ac_dashdash=yes ;;
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136 ac_prev=bindir ;;
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150 cache_file=$ac_optarg ;;
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1155 -datadir | --datadir | --datadi | --datad)
1156 ac_prev=datadir ;;
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1167 -disable-* | --disable-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "enable_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval enable_$ac_useropt=no ;;
1184 -docdir | --docdir | --docdi | --doc | --do)
1185 ac_prev=docdir ;;
1186 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1187 docdir=$ac_optarg ;;
1189 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1190 ac_prev=dvidir ;;
1191 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1192 dvidir=$ac_optarg ;;
1194 -enable-* | --enable-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval enable_$ac_useropt=\$ac_optarg ;;
1211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213 | --exec | --exe | --ex)
1214 ac_prev=exec_prefix ;;
1215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217 | --exec=* | --exe=* | --ex=*)
1218 exec_prefix=$ac_optarg ;;
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1222 with_gas=yes ;;
1224 -help | --help | --hel | --he | -h)
1225 ac_init_help=long ;;
1226 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227 ac_init_help=recursive ;;
1228 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229 ac_init_help=short ;;
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1236 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 ac_prev=htmldir ;;
1238 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 | --ht=*)
1240 htmldir=$ac_optarg ;;
1242 -includedir | --includedir | --includedi | --included | --include \
1243 | --includ | --inclu | --incl | --inc)
1244 ac_prev=includedir ;;
1245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246 | --includ=* | --inclu=* | --incl=* | --inc=*)
1247 includedir=$ac_optarg ;;
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 ac_prev=infodir ;;
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1254 -libdir | --libdir | --libdi | --libd)
1255 ac_prev=libdir ;;
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260 | --libexe | --libex | --libe)
1261 ac_prev=libexecdir ;;
1262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263 | --libexe=* | --libex=* | --libe=*)
1264 libexecdir=$ac_optarg ;;
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1271 -localstatedir | --localstatedir | --localstatedi | --localstated \
1272 | --localstate | --localstat | --localsta | --localst | --locals)
1273 ac_prev=localstatedir ;;
1274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276 localstatedir=$ac_optarg ;;
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 ac_prev=mandir ;;
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1285 with_fp=no ;;
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1289 no_create=yes ;;
1291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293 no_recursion=yes ;;
1295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297 | --oldin | --oldi | --old | --ol | --o)
1298 ac_prev=oldincludedir ;;
1299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302 oldincludedir=$ac_optarg ;;
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 ac_prev=prefix ;;
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310 | --program-pre | --program-pr | --program-p)
1311 ac_prev=program_prefix ;;
1312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314 program_prefix=$ac_optarg ;;
1316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317 | --program-suf | --program-su | --program-s)
1318 ac_prev=program_suffix ;;
1319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321 program_suffix=$ac_optarg ;;
1323 -program-transform-name | --program-transform-name \
1324 | --program-transform-nam | --program-transform-na \
1325 | --program-transform-n | --program-transform- \
1326 | --program-transform | --program-transfor \
1327 | --program-transfo | --program-transf \
1328 | --program-trans | --program-tran \
1329 | --progr-tra | --program-tr | --program-t)
1330 ac_prev=program_transform_name ;;
1331 -program-transform-name=* | --program-transform-name=* \
1332 | --program-transform-nam=* | --program-transform-na=* \
1333 | --program-transform-n=* | --program-transform-=* \
1334 | --program-transform=* | --program-transfor=* \
1335 | --program-transfo=* | --program-transf=* \
1336 | --program-trans=* | --program-tran=* \
1337 | --progr-tra=* | --program-tr=* | --program-t=*)
1338 program_transform_name=$ac_optarg ;;
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 ac_prev=pdfdir ;;
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1345 -psdir | --psdir | --psdi | --psd | --ps)
1346 ac_prev=psdir ;;
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348 psdir=$ac_optarg ;;
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1352 silent=yes ;;
1354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 ac_prev=sbindir ;;
1356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 | --sbi=* | --sb=*)
1358 sbindir=$ac_optarg ;;
1360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362 | --sharedst | --shareds | --shared | --share | --shar \
1363 | --sha | --sh)
1364 ac_prev=sharedstatedir ;;
1365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 | --sha=* | --sh=*)
1369 sharedstatedir=$ac_optarg ;;
1371 -site | --site | --sit)
1372 ac_prev=site ;;
1373 -site=* | --site=* | --sit=*)
1374 site=$ac_optarg ;;
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 ac_prev=srcdir ;;
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382 | --syscon | --sysco | --sysc | --sys | --sy)
1383 ac_prev=sysconfdir ;;
1384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386 sysconfdir=$ac_optarg ;;
1388 -target | --target | --targe | --targ | --tar | --ta | --t)
1389 ac_prev=target_alias ;;
1390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391 target_alias=$ac_optarg ;;
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394 verbose=yes ;;
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1399 -with-* | --with-*)
1400 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1404 { (exit 1); exit 1; }; }
1405 ac_useropt_orig=$ac_useropt
1406 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407 case $ac_user_opts in
1409 "with_$ac_useropt"
1410 "*) ;;
1411 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1412 ac_unrecognized_sep=', ';;
1413 esac
1414 eval with_$ac_useropt=\$ac_optarg ;;
1416 -without-* | --without-*)
1417 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1421 { (exit 1); exit 1; }; }
1422 ac_useropt_orig=$ac_useropt
1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1426 "with_$ac_useropt"
1427 "*) ;;
1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1429 ac_unrecognized_sep=', ';;
1430 esac
1431 eval with_$ac_useropt=no ;;
1433 --x)
1434 # Obsolete; use --with-x.
1435 with_x=yes ;;
1437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438 | --x-incl | --x-inc | --x-in | --x-i)
1439 ac_prev=x_includes ;;
1440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442 x_includes=$ac_optarg ;;
1444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446 ac_prev=x_libraries ;;
1447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449 x_libraries=$ac_optarg ;;
1451 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1452 Try \`$0 --help' for more information." >&2
1453 { (exit 1); exit 1; }; }
1456 *=*)
1457 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458 # Reject names that are not valid shell variable names.
1459 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1460 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1461 { (exit 1); exit 1; }; }
1462 eval $ac_envvar=\$ac_optarg
1463 export $ac_envvar ;;
1466 # FIXME: should be removed in autoconf 3.0.
1467 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1473 esac
1474 done
1476 if test -n "$ac_prev"; then
1477 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1479 { (exit 1); exit 1; }; }
1482 if test -n "$ac_unrecognized_opts"; then
1483 case $enable_option_checking in
1484 no) ;;
1485 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1486 { (exit 1); exit 1; }; } ;;
1487 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1488 esac
1491 # Check all directory arguments for consistency.
1492 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1493 datadir sysconfdir sharedstatedir localstatedir includedir \
1494 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1495 libdir localedir mandir
1497 eval ac_val=\$$ac_var
1498 # Remove trailing slashes.
1499 case $ac_val in
1500 */ )
1501 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1502 eval $ac_var=\$ac_val;;
1503 esac
1504 # Be sure to have absolute directory names.
1505 case $ac_val in
1506 [\\/$]* | ?:[\\/]* ) continue;;
1507 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1508 esac
1509 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1510 { (exit 1); exit 1; }; }
1511 done
1513 # There might be people who depend on the old broken behavior: `$host'
1514 # used to hold the argument of --host etc.
1515 # FIXME: To remove some day.
1516 build=$build_alias
1517 host=$host_alias
1518 target=$target_alias
1520 # FIXME: To remove some day.
1521 if test "x$host_alias" != x; then
1522 if test "x$build_alias" = x; then
1523 cross_compiling=maybe
1524 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1525 If a cross compiler is detected then cross compile mode will be used." >&2
1526 elif test "x$build_alias" != "x$host_alias"; then
1527 cross_compiling=yes
1531 ac_tool_prefix=
1532 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1534 test "$silent" = yes && exec 6>/dev/null
1537 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1538 ac_ls_di=`ls -di .` &&
1539 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1540 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1541 { (exit 1); exit 1; }; }
1542 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1543 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1544 { (exit 1); exit 1; }; }
1547 # Find the source files, if location was not specified.
1548 if test -z "$srcdir"; then
1549 ac_srcdir_defaulted=yes
1550 # Try the directory containing this script, then the parent directory.
1551 ac_confdir=`$as_dirname -- "$as_myself" ||
1552 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1553 X"$as_myself" : 'X\(//\)[^/]' \| \
1554 X"$as_myself" : 'X\(//\)$' \| \
1555 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1556 $as_echo X"$as_myself" |
1557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1558 s//\1/
1561 /^X\(\/\/\)[^/].*/{
1562 s//\1/
1565 /^X\(\/\/\)$/{
1566 s//\1/
1569 /^X\(\/\).*/{
1570 s//\1/
1573 s/.*/./; q'`
1574 srcdir=$ac_confdir
1575 if test ! -r "$srcdir/$ac_unique_file"; then
1576 srcdir=..
1578 else
1579 ac_srcdir_defaulted=no
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1583 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1584 { (exit 1); exit 1; }; }
1586 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1587 ac_abs_confdir=`(
1588 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1589 { (exit 1); exit 1; }; }
1590 pwd)`
1591 # When building in place, set srcdir=.
1592 if test "$ac_abs_confdir" = "$ac_pwd"; then
1593 srcdir=.
1595 # Remove unnecessary trailing slashes from srcdir.
1596 # Double slashes in file names in object file debugging info
1597 # mess up M-x gdb in Emacs.
1598 case $srcdir in
1599 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1600 esac
1601 for ac_var in $ac_precious_vars; do
1602 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1603 eval ac_env_${ac_var}_value=\$${ac_var}
1604 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1605 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1606 done
1609 # Report the --help message.
1611 if test "$ac_init_help" = "long"; then
1612 # Omit some internal or obsolete options to make the list less imposing.
1613 # This message is too long to be a string in the A/UX 3.1 sh.
1614 cat <<_ACEOF
1615 \`configure' configures XChat-GNOME IRC Chat 0.26.1 to adapt to many kinds of systems.
1617 Usage: $0 [OPTION]... [VAR=VALUE]...
1619 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1620 VAR=VALUE. See below for descriptions of some of the useful variables.
1622 Defaults for the options are specified in brackets.
1624 Configuration:
1625 -h, --help display this help and exit
1626 --help=short display options specific to this package
1627 --help=recursive display the short help of all the included packages
1628 -V, --version display version information and exit
1629 -q, --quiet, --silent do not print \`checking...' messages
1630 --cache-file=FILE cache test results in FILE [disabled]
1631 -C, --config-cache alias for \`--cache-file=config.cache'
1632 -n, --no-create do not create output files
1633 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1635 Installation directories:
1636 --prefix=PREFIX install architecture-independent files in PREFIX
1637 [$ac_default_prefix]
1638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1639 [PREFIX]
1641 By default, \`make install' will install all the files in
1642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1644 for instance \`--prefix=\$HOME'.
1646 For better control, use the options below.
1648 Fine tuning of the installation directories:
1649 --bindir=DIR user executables [EPREFIX/bin]
1650 --sbindir=DIR system admin executables [EPREFIX/sbin]
1651 --libexecdir=DIR program executables [EPREFIX/libexec]
1652 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1653 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1654 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1655 --libdir=DIR object code libraries [EPREFIX/lib]
1656 --includedir=DIR C header files [PREFIX/include]
1657 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1658 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1659 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1660 --infodir=DIR info documentation [DATAROOTDIR/info]
1661 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1662 --mandir=DIR man documentation [DATAROOTDIR/man]
1663 --docdir=DIR documentation root [DATAROOTDIR/doc/xchat-gnome]
1664 --htmldir=DIR html documentation [DOCDIR]
1665 --dvidir=DIR dvi documentation [DOCDIR]
1666 --pdfdir=DIR pdf documentation [DOCDIR]
1667 --psdir=DIR ps documentation [DOCDIR]
1668 _ACEOF
1670 cat <<\_ACEOF
1672 Program names:
1673 --program-prefix=PREFIX prepend PREFIX to installed program names
1674 --program-suffix=SUFFIX append SUFFIX to installed program names
1675 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1677 System types:
1678 --build=BUILD configure for building on BUILD [guessed]
1679 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1680 _ACEOF
1683 if test -n "$ac_init_help"; then
1684 case $ac_init_help in
1685 short | recursive ) echo "Configuration of XChat-GNOME IRC Chat 0.26.1:";;
1686 esac
1687 cat <<\_ACEOF
1689 Optional Features:
1690 --disable-option-checking ignore unrecognized --enable/--with options
1691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1693 --enable-maintainer-mode enable make rules and dependencies not useful
1694 (and sometimes confusing) to the casual installer
1695 --disable-nls do not use Native Language Support
1696 --disable-dependency-tracking speeds up one-time build
1697 --enable-dependency-tracking do not reject slow dependency extractors
1698 --enable-shared[=PKGS] build shared libraries [default=yes]
1699 --enable-static[=PKGS] build static libraries [default=yes]
1700 --enable-fast-install[=PKGS]
1701 optimize for fast installation [default=yes]
1702 --disable-libtool-lock avoid locking (might break parallel builds)
1703 --enable-debug turn on debugging
1704 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1705 Turn on compiler warnings
1706 --enable-iso-c Try to warn if code is not ISO C
1707 --disable-scrollkeeper do not make updates to the scrollkeeper database
1708 --disable-dbus Disable D-Bus support
1709 --disable-notification whether to disable libnotify support
1710 --disable-canberra whether to disable libcanberra support
1711 --disable-schemas-install Disable the schemas installation
1712 --disable-perl Disable perl support
1713 --disable-python Disable python support
1714 --disable-tcl Disable tcl support
1715 --disable-mmx disable MMX assembly routines
1717 Optional Packages:
1718 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1719 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-help-dir=DIR path to help docs
1724 --with-omf-dir=DIR path to OMF files
1725 --with-help-formats=FORMATS
1726 list of formats
1727 --with-gconf-source=sourceaddress
1728 Config database for installing schema files.
1729 --with-gconf-schema-file-dir=dir
1730 Directory for installing schema files.
1731 --with-plugins=plugin1,plugin2,...
1732 build the specified plugins. Available:
1733 autoaway, dbus, net-monitor, notification,
1734 notify-osd, perl, python, tcl, url_scraper,
1735 sound-notification
1737 Some influential environment variables:
1738 CC C compiler command
1739 CFLAGS C compiler flags
1740 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1741 nonstandard directory <lib dir>
1742 LIBS libraries to pass to the linker, e.g. -l<library>
1743 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1744 you have headers in a nonstandard directory <include dir>
1745 CPP C preprocessor
1746 CCAS assembler compiler command (defaults to CC)
1747 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1748 PKG_CONFIG path to pkg-config utility
1749 DEPENDENCIES_CFLAGS
1750 C compiler flags for DEPENDENCIES, overriding pkg-config
1751 DEPENDENCIES_LIBS
1752 linker flags for DEPENDENCIES, overriding pkg-config
1753 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1754 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1755 LIBNOTIFY_CFLAGS
1756 C compiler flags for LIBNOTIFY, overriding pkg-config
1757 LIBNOTIFY_LIBS
1758 linker flags for LIBNOTIFY, overriding pkg-config
1759 LIBCANBERRAGTK_CFLAGS
1760 C compiler flags for LIBCANBERRAGTK, overriding pkg-config
1761 LIBCANBERRAGTK_LIBS
1762 linker flags for LIBCANBERRAGTK, overriding pkg-config
1763 OPENSSL_CFLAGS
1764 C compiler flags for OPENSSL, overriding pkg-config
1765 OPENSSL_LIBS
1766 linker flags for OPENSSL, overriding pkg-config
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1771 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome>.
1772 _ACEOF
1773 ac_status=$?
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781 continue
1782 ac_builddir=.
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793 esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1800 case $srcdir in
1801 .) # We are building in place.
1802 ac_srcdir=.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1809 *) # Relative name.
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1819 echo &&
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1822 echo &&
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1824 else
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 fi || ac_status=$?
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1828 done
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833 cat <<\_ACEOF
1834 XChat-GNOME IRC Chat configure 0.26.1
1835 generated by GNU Autoconf 2.63
1837 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1838 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1839 This configure script is free software; the Free Software Foundation
1840 gives unlimited permission to copy, distribute and modify it.
1841 _ACEOF
1842 exit
1844 cat >config.log <<_ACEOF
1845 This file contains any messages produced by compilers while
1846 running configure, to aid debugging if configure makes a mistake.
1848 It was created by XChat-GNOME IRC Chat $as_me 0.26.1, which was
1849 generated by GNU Autoconf 2.63. Invocation command line was
1851 $ $0 $@
1853 _ACEOF
1854 exec 5>>config.log
1856 cat <<_ASUNAME
1857 ## --------- ##
1858 ## Platform. ##
1859 ## --------- ##
1861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1878 _ASUNAME
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 $as_echo "PATH: $as_dir"
1886 done
1887 IFS=$as_save_IFS
1889 } >&5
1891 cat >&5 <<_ACEOF
1894 ## ----------- ##
1895 ## Core tests. ##
1896 ## ----------- ##
1898 _ACEOF
1901 # Keep a trace of the command line.
1902 # Strip out --no-create and --no-recursion so they do not pile up.
1903 # Strip out --silent because we don't want to record it for future runs.
1904 # Also quote any args containing shell meta-characters.
1905 # Make two passes to allow for proper duplicate-argument suppression.
1906 ac_configure_args=
1907 ac_configure_args0=
1908 ac_configure_args1=
1909 ac_must_keep_next=false
1910 for ac_pass in 1 2
1912 for ac_arg
1914 case $ac_arg in
1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917 | -silent | --silent | --silen | --sile | --sil)
1918 continue ;;
1919 *\'*)
1920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 esac
1922 case $ac_pass in
1923 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1925 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1926 if test $ac_must_keep_next = true; then
1927 ac_must_keep_next=false # Got value, back to normal.
1928 else
1929 case $ac_arg in
1930 *=* | --config-cache | -C | -disable-* | --disable-* \
1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933 | -with-* | --with-* | -without-* | --without-* | --x)
1934 case "$ac_configure_args0 " in
1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936 esac
1938 -* ) ac_must_keep_next=true ;;
1939 esac
1941 ac_configure_args="$ac_configure_args '$ac_arg'"
1943 esac
1944 done
1945 done
1946 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1947 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1949 # When interrupted or exit'd, cleanup temporary files, and complete
1950 # config.log. We remove comments because anyway the quotes in there
1951 # would cause problems or look ugly.
1952 # WARNING: Use '\'' to represent an apostrophe within the trap.
1953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954 trap 'exit_status=$?
1955 # Save into config.log some information that might help in debugging.
1957 echo
1959 cat <<\_ASBOX
1960 ## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##
1963 _ASBOX
1964 echo
1965 # The following way of writing the cache mishandles newlines in values,
1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in #(
1970 *${as_nl}*)
1971 case $ac_var in #(
1972 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1974 esac
1975 case $ac_var in #(
1976 _ | IFS | as_nl) ;; #(
1977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1978 *) $as_unset $ac_var ;;
1979 esac ;;
1980 esac
1981 done
1982 (set) 2>&1 |
1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984 *${as_nl}ac_space=\ *)
1985 sed -n \
1986 "s/'\''/'\''\\\\'\'''\''/g;
1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 ;; #(
1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992 esac |
1993 sort
1995 echo
1997 cat <<\_ASBOX
1998 ## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##
2001 _ASBOX
2002 echo
2003 for ac_var in $ac_subst_vars
2005 eval ac_val=\$$ac_var
2006 case $ac_val in
2007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008 esac
2009 $as_echo "$ac_var='\''$ac_val'\''"
2010 done | sort
2011 echo
2013 if test -n "$ac_subst_files"; then
2014 cat <<\_ASBOX
2015 ## ------------------- ##
2016 ## File substitutions. ##
2017 ## ------------------- ##
2018 _ASBOX
2019 echo
2020 for ac_var in $ac_subst_files
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2031 if test -s confdefs.h; then
2032 cat <<\_ASBOX
2033 ## ----------- ##
2034 ## confdefs.h. ##
2035 ## ----------- ##
2036 _ASBOX
2037 echo
2038 cat confdefs.h
2039 echo
2041 test "$ac_signal" != 0 &&
2042 $as_echo "$as_me: caught signal $ac_signal"
2043 $as_echo "$as_me: exit $exit_status"
2044 } >&5
2045 rm -f core *.core core.conftest.* &&
2046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 exit $exit_status
2049 for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2051 done
2052 ac_signal=0
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2057 # Predefined preprocessor variables.
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066 _ACEOF
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2071 _ACEOF
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2076 _ACEOF
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2081 _ACEOF
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2086 ac_site_file1=NONE
2087 ac_site_file2=NONE
2088 if test -n "$CONFIG_SITE"; then
2089 ac_site_file1=$CONFIG_SITE
2090 elif test "x$prefix" != xNONE; then
2091 ac_site_file1=$prefix/share/config.site
2092 ac_site_file2=$prefix/etc/config.site
2093 else
2094 ac_site_file1=$ac_default_prefix/share/config.site
2095 ac_site_file2=$ac_default_prefix/etc/config.site
2097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 test "x$ac_site_file" = xNONE && continue
2100 if test -r "$ac_site_file"; then
2101 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2103 sed 's/^/| /' "$ac_site_file" >&5
2104 . "$ac_site_file"
2106 done
2108 if test -r "$cache_file"; then
2109 # Some versions of bash will fail to source /dev/null (special
2110 # files actually), so we avoid doing that.
2111 if test -f "$cache_file"; then
2112 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2113 $as_echo "$as_me: loading cache $cache_file" >&6;}
2114 case $cache_file in
2115 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2116 *) . "./$cache_file";;
2117 esac
2119 else
2120 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2121 $as_echo "$as_me: creating cache $cache_file" >&6;}
2122 >$cache_file
2125 # Check that the precious variables saved in the cache have kept the same
2126 # value.
2127 ac_cache_corrupted=false
2128 for ac_var in $ac_precious_vars; do
2129 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2130 eval ac_new_set=\$ac_env_${ac_var}_set
2131 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2132 eval ac_new_val=\$ac_env_${ac_var}_value
2133 case $ac_old_set,$ac_new_set in
2134 set,)
2135 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2136 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2137 ac_cache_corrupted=: ;;
2138 ,set)
2139 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2140 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2141 ac_cache_corrupted=: ;;
2142 ,);;
2144 if test "x$ac_old_val" != "x$ac_new_val"; then
2145 # differences in whitespace do not lead to failure.
2146 ac_old_val_w=`echo x $ac_old_val`
2147 ac_new_val_w=`echo x $ac_new_val`
2148 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2149 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2150 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2151 ac_cache_corrupted=:
2152 else
2153 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2154 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2155 eval $ac_var=\$ac_old_val
2157 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2158 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2159 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2160 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2161 fi;;
2162 esac
2163 # Pass precious variables to config.status.
2164 if test "$ac_new_set" = set; then
2165 case $ac_new_val in
2166 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 *) ac_arg=$ac_var=$ac_new_val ;;
2168 esac
2169 case " $ac_configure_args " in
2170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2172 esac
2174 done
2175 if $ac_cache_corrupted; then
2176 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2179 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2180 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2181 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2182 { (exit 1); exit 1; }; }
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 ac_config_headers="$ac_config_headers config.h"
2224 am__api_version='1.10'
2226 ac_aux_dir=
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 if test -f "$ac_dir/install-sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 break
2232 elif test -f "$ac_dir/install.sh"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 break
2236 elif test -f "$ac_dir/shtool"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 break
2241 done
2242 if test -z "$ac_aux_dir"; then
2243 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2244 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2245 { (exit 1); exit 1; }; }
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257 # Find a good install program. We prefer a C program (faster),
2258 # so one script is as good as another. But avoid the broken or
2259 # incompatible versions:
2260 # SysV /etc/install, /usr/sbin/install
2261 # SunOS /usr/etc/install
2262 # IRIX /sbin/install
2263 # AIX /bin/install
2264 # AmigaOS /C/install, which installs bootblocks on floppy discs
2265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268 # OS/2's system install, which has a completely different semantic
2269 # ./install, which can be erroneously created by make from ./install.sh.
2270 # Reject install programs that cannot install multiple files.
2271 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2272 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 if test -z "$INSTALL"; then
2274 if test "${ac_cv_path_install+set}" = set; then
2275 $as_echo_n "(cached) " >&6
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 # Account for people who put trailing slashes in PATH elements.
2283 case $as_dir/ in
2284 ./ | .// | /cC/* | \
2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2287 /usr/ucb/* ) ;;
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2303 else
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2318 done
2319 done
2321 esac
2323 done
2324 IFS=$as_save_IFS
2326 rm -rf conftest.one conftest.two conftest.dir
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
2334 # break other packages using the cache if that directory is
2335 # removed, or if the value is a relative name.
2336 INSTALL=$ac_install_sh
2339 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2340 $as_echo "$INSTALL" >&6; }
2342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343 # It thinks the first close brace ends the variable substitution.
2344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2351 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 # Just in case
2353 sleep 1
2354 echo timestamp > conftest.file
2355 # Do `set' in a subshell so we don't clobber the current shell's
2356 # arguments. Must try -L first in case configure is actually a
2357 # symlink; some systems play weird games with the mod time of symlinks
2358 # (eg FreeBSD returns the mod time of the symlink's containing
2359 # directory).
2360 if (
2361 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2362 if test "$*" = "X"; then
2363 # -L didn't work.
2364 set X `ls -t $srcdir/configure conftest.file`
2366 rm -f conftest.file
2367 if test "$*" != "X $srcdir/configure conftest.file" \
2368 && test "$*" != "X conftest.file $srcdir/configure"; then
2370 # If neither matched, then we have a broken ls. This can happen
2371 # if, for instance, CONFIG_SHELL is bash and it inherits a
2372 # broken ls alias from the environment. This has actually
2373 # happened. Such a system could not be considered "sane".
2374 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2375 alias in your environment" >&5
2376 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" >&2;}
2378 { (exit 1); exit 1; }; }
2381 test "$2" = conftest.file
2383 then
2384 # Ok.
2386 else
2387 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2388 Check your system clock" >&5
2389 $as_echo "$as_me: error: newly created file is older than distributed files!
2390 Check your system clock" >&2;}
2391 { (exit 1); exit 1; }; }
2393 { $as_echo "$as_me:$LINENO: result: yes" >&5
2394 $as_echo "yes" >&6; }
2395 test "$program_prefix" != NONE &&
2396 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2397 # Use a double $ so make ignores it.
2398 test "$program_suffix" != NONE &&
2399 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2400 # Double any \ or $.
2401 # By default was `s,x,x', remove it if useless.
2402 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2403 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2405 # expand $ac_aux_dir to an absolute path
2406 am_aux_dir=`cd $ac_aux_dir && pwd`
2408 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2409 # Use eval to expand $SHELL
2410 if eval "$MISSING --run true"; then
2411 am_missing_run="$MISSING --run "
2412 else
2413 am_missing_run=
2414 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2415 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420 if test -z "$MKDIR_P"; then
2421 if test "${ac_cv_path_mkdir+set}" = set; then
2422 $as_echo_n "(cached) " >&6
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_prog in mkdir gmkdir; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433 'mkdir (GNU coreutils) '* | \
2434 'mkdir (coreutils) '* | \
2435 'mkdir (fileutils) '4.1*)
2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 break 3;;
2438 esac
2439 done
2440 done
2441 done
2442 IFS=$as_save_IFS
2446 if test "${ac_cv_path_mkdir+set}" = set; then
2447 MKDIR_P="$ac_cv_path_mkdir -p"
2448 else
2449 # As a last resort, use the slow shell script. Don't cache a
2450 # value for MKDIR_P within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the value is a relative name.
2453 test -d ./--version && rmdir ./--version
2454 MKDIR_P="$ac_install_sh -d"
2457 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2458 $as_echo "$MKDIR_P" >&6; }
2460 mkdir_p="$MKDIR_P"
2461 case $mkdir_p in
2462 [\\/$]* | ?:[\\/]*) ;;
2463 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2464 esac
2466 for ac_prog in gawk mawk nawk awk
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_AWK+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$AWK"; then
2476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_AWK="$ac_prog"
2486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2489 done
2490 done
2491 IFS=$as_save_IFS
2495 AWK=$ac_cv_prog_AWK
2496 if test -n "$AWK"; then
2497 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2498 $as_echo "$AWK" >&6; }
2499 else
2500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501 $as_echo "no" >&6; }
2505 test -n "$AWK" && break
2506 done
2508 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2510 set x ${MAKE-make}
2511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2512 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat >conftest.make <<\_ACEOF
2516 SHELL = /bin/sh
2517 all:
2518 @echo '@@@%%%=$(MAKE)=@@@%%%'
2519 _ACEOF
2520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2522 *@@@%%%=?*=@@@%%%*)
2523 eval ac_cv_prog_make_${ac_make}_set=yes;;
2525 eval ac_cv_prog_make_${ac_make}_set=no;;
2526 esac
2527 rm -f conftest.make
2529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2530 { $as_echo "$as_me:$LINENO: result: yes" >&5
2531 $as_echo "yes" >&6; }
2532 SET_MAKE=
2533 else
2534 { $as_echo "$as_me:$LINENO: result: no" >&5
2535 $as_echo "no" >&6; }
2536 SET_MAKE="MAKE=${MAKE-make}"
2539 rm -rf .tst 2>/dev/null
2540 mkdir .tst 2>/dev/null
2541 if test -d .tst; then
2542 am__leading_dot=.
2543 else
2544 am__leading_dot=_
2546 rmdir .tst 2>/dev/null
2548 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2549 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2550 # is not polluted with repeated "-I."
2551 am__isrc=' -I$(srcdir)'
2552 # test to see if srcdir already configured
2553 if test -f $srcdir/config.status; then
2554 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2555 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2556 { (exit 1); exit 1; }; }
2560 # test whether we have cygpath
2561 if test -z "$CYGPATH_W"; then
2562 if (cygpath --version) >/dev/null 2>/dev/null; then
2563 CYGPATH_W='cygpath -w'
2564 else
2565 CYGPATH_W=echo
2570 # Define the identity of the package.
2571 PACKAGE='xchat-gnome'
2572 VERSION='0.26.1'
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE "$PACKAGE"
2577 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define VERSION "$VERSION"
2582 _ACEOF
2584 # Some tools Automake needs.
2586 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2589 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2592 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2595 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2598 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2600 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2602 # Installed binaries are usually stripped using `strip' when the user
2603 # run `make install-strip'. However `strip' might not be the right
2604 # tool to use in cross-compilation environments, therefore Automake
2605 # will honor the `STRIP' environment variable to overrule this program.
2606 if test "$cross_compiling" != no; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}strip; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_STRIP+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$STRIP"; then
2616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2629 done
2630 done
2631 IFS=$as_save_IFS
2635 STRIP=$ac_cv_prog_STRIP
2636 if test -n "$STRIP"; then
2637 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2638 $as_echo "$STRIP" >&6; }
2639 else
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2646 if test -z "$ac_cv_prog_STRIP"; then
2647 ac_ct_STRIP=$STRIP
2648 # Extract the first word of "strip", so it can be a program name with args.
2649 set dummy strip; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$ac_ct_STRIP"; then
2656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_STRIP="strip"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2669 done
2670 done
2671 IFS=$as_save_IFS
2675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2676 if test -n "$ac_ct_STRIP"; then
2677 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2678 $as_echo "$ac_ct_STRIP" >&6; }
2679 else
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2684 if test "x$ac_ct_STRIP" = x; then
2685 STRIP=":"
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688 yes:)
2689 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2691 ac_tool_warned=yes ;;
2692 esac
2693 STRIP=$ac_ct_STRIP
2695 else
2696 STRIP="$ac_cv_prog_STRIP"
2700 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2702 # We need awk for the "check" target. The system "awk" is bad on
2703 # some platforms.
2704 # Always define AMTAR for backward compatibility.
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2715 if test "$enable_maintainer_mode" = "yes"; then
2717 cat >>confdefs.h <<\_ACEOF
2718 #define MAINTAINER_MODE 1
2719 _ACEOF
2721 enable_debug=yes
2724 if test -z "$enable_maintainer_mode"; then
2725 enable_maintainer_mode=yes
2727 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2728 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2729 # Check whether --enable-maintainer-mode was given.
2730 if test "${enable_maintainer_mode+set}" = set; then
2731 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2732 else
2733 USE_MAINTAINER_MODE=no
2736 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2737 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2738 if test $USE_MAINTAINER_MODE = yes; then
2739 MAINTAINER_MODE_TRUE=
2740 MAINTAINER_MODE_FALSE='#'
2741 else
2742 MAINTAINER_MODE_TRUE='#'
2743 MAINTAINER_MODE_FALSE=
2746 MAINT=$MAINTAINER_MODE_TRUE
2751 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2752 $as_echo_n "checking whether NLS is requested... " >&6; }
2753 # Check whether --enable-nls was given.
2754 if test "${enable_nls+set}" = set; then
2755 enableval=$enable_nls; USE_NLS=$enableval
2756 else
2757 USE_NLS=yes
2760 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
2761 $as_echo "$USE_NLS" >&6; }
2764 DEPDIR="${am__leading_dot}deps"
2766 ac_config_commands="$ac_config_commands depfiles"
2769 am_make=${MAKE-make}
2770 cat > confinc << 'END'
2771 am__doit:
2772 @echo done
2773 .PHONY: am__doit
2775 # If we don't find an include directive, just comment out the code.
2776 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2777 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2778 am__include="#"
2779 am__quote=
2780 _am_result=none
2781 # First try GNU make style include.
2782 echo "include confinc" > confmf
2783 # We grep out `Entering directory' and `Leaving directory'
2784 # messages which can occur if `w' ends up in MAKEFLAGS.
2785 # In particular we don't look at `^make:' because GNU make might
2786 # be invoked under some other name (usually "gmake"), in which
2787 # case it prints its new name instead of `make'.
2788 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2789 am__include=include
2790 am__quote=
2791 _am_result=GNU
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2797 am__include=.include
2798 am__quote="\""
2799 _am_result=BSD
2804 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2805 $as_echo "$_am_result" >&6; }
2806 rm -f confinc confmf
2808 # Check whether --enable-dependency-tracking was given.
2809 if test "${enable_dependency_tracking+set}" = set; then
2810 enableval=$enable_dependency_tracking;
2813 if test "x$enable_dependency_tracking" != xno; then
2814 am_depcomp="$ac_aux_dir/depcomp"
2815 AMDEPBACKSLASH='\'
2817 if test "x$enable_dependency_tracking" != xno; then
2818 AMDEP_TRUE=
2819 AMDEP_FALSE='#'
2820 else
2821 AMDEP_TRUE='#'
2822 AMDEP_FALSE=
2826 ac_ext=c
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864 { $as_echo "$as_me:$LINENO: result: no" >&5
2865 $as_echo "no" >&6; }
2870 if test -z "$ac_cv_prog_CC"; then
2871 ac_ct_CC=$CC
2872 # Extract the first word of "gcc", so it can be a program name with args.
2873 set dummy gcc; ac_word=$2
2874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_ac_ct_CC="gcc"
2890 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902 $as_echo "$ac_ct_CC" >&6; }
2903 else
2904 { $as_echo "$as_me:$LINENO: result: no" >&5
2905 $as_echo "no" >&6; }
2908 if test "x$ac_ct_CC" = x; then
2909 CC=""
2910 else
2911 case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2916 esac
2917 CC=$ac_ct_CC
2919 else
2920 CC="$ac_cv_prog_CC"
2923 if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}cc; ac_word=$2
2927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="${ac_tool_prefix}cc"
2943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:$LINENO: result: no" >&5
2958 $as_echo "no" >&6; }
2964 if test -z "$CC"; then
2965 # Extract the first word of "cc", so it can be a program name with args.
2966 set dummy cc; ac_word=$2
2967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 ac_prog_rejected=no
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2984 ac_prog_rejected=yes
2985 continue
2987 ac_cv_prog_CC="cc"
2988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2991 done
2992 done
2993 IFS=$as_save_IFS
2995 if test $ac_prog_rejected = yes; then
2996 # We found a bogon in the path, so make sure we never use it.
2997 set dummy $ac_cv_prog_CC
2998 shift
2999 if test $# != 0; then
3000 # We chose a different compiler from the bogus one.
3001 # However, it has the same basename, so the bogon will be chosen
3002 # first if we set CC to just the basename; use the full file name.
3003 shift
3004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014 { $as_echo "$as_me:$LINENO: result: no" >&5
3015 $as_echo "no" >&6; }
3020 if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 for ac_prog in cl.exe
3024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_CC+set}" = set; then
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056 { $as_echo "$as_me:$LINENO: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$CC" && break
3062 done
3064 if test -z "$CC"; then
3065 ac_ct_CC=$CC
3066 for ac_prog in cl.exe
3068 # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy $ac_prog; ac_word=$2
3070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3073 $as_echo_n "(cached) " >&6
3074 else
3075 if test -n "$ac_ct_CC"; then
3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_ac_ct_CC="$ac_prog"
3086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3089 done
3090 done
3091 IFS=$as_save_IFS
3095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096 if test -n "$ac_ct_CC"; then
3097 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098 $as_echo "$ac_ct_CC" >&6; }
3099 else
3100 { $as_echo "$as_me:$LINENO: result: no" >&5
3101 $as_echo "no" >&6; }
3105 test -n "$ac_ct_CC" && break
3106 done
3108 if test "x$ac_ct_CC" = x; then
3109 CC=""
3110 else
3111 case $cross_compiling:$ac_tool_warned in
3112 yes:)
3113 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115 ac_tool_warned=yes ;;
3116 esac
3117 CC=$ac_ct_CC
3124 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3127 See \`config.log' for more details." >&5
3128 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }; }
3132 # Provide some information about the compiler.
3133 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3134 set X $ac_compile
3135 ac_compiler=$2
3136 { (ac_try="$ac_compiler --version >&5"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142 $as_echo "$ac_try_echo") >&5
3143 (eval "$ac_compiler --version >&5") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }
3147 { (ac_try="$ac_compiler -v >&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:$LINENO: $ac_try_echo\""
3153 $as_echo "$ac_try_echo") >&5
3154 (eval "$ac_compiler -v >&5") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }
3158 { (ac_try="$ac_compiler -V >&5"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164 $as_echo "$ac_try_echo") >&5
3165 (eval "$ac_compiler -V >&5") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }
3170 cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3178 main ()
3182 return 0;
3184 _ACEOF
3185 ac_clean_files_save=$ac_clean_files
3186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3187 # Try to create an executable without -o first, disregard a.out.
3188 # It will help us diagnose broken compilers, and finding out an intuition
3189 # of exeext.
3190 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3191 $as_echo_n "checking for C compiler default output file name... " >&6; }
3192 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194 # The possible output files:
3195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3197 ac_rmfiles=
3198 for ac_file in $ac_files
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 esac
3204 done
3205 rm -f $ac_rmfiles
3207 if { (ac_try="$ac_link_default"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_link_default") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221 # so that the user can short-circuit this test for compilers unknown to
3222 # Autoconf.
3223 for ac_file in $ac_files ''
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3229 [ab].out )
3230 # We found the default executable, but exeext='' is most
3231 # certainly right.
3232 break;;
3233 *.* )
3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 then :; else
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 # We set ac_cv_exeext here because the later test for it is not
3239 # safe: cross compilers may not add the suffix if given an `-o'
3240 # argument, so we may need to know it at that point already.
3241 # Even if this section looks crufty: it has the advantage of
3242 # actually working.
3243 break;;
3245 break;;
3246 esac
3247 done
3248 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250 else
3251 ac_file=''
3254 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 if test -z "$ac_file"; then
3257 $as_echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3263 See \`config.log' for more details." >&5
3264 $as_echo "$as_me: error: C compiler cannot create executables
3265 See \`config.log' for more details." >&2;}
3266 { (exit 77); exit 77; }; }; }
3269 ac_exeext=$ac_cv_exeext
3271 # Check that the compiler produces executables we can run. If not, either
3272 # the compiler is broken, or we cross compile.
3273 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3274 $as_echo_n "checking whether the C compiler works... " >&6; }
3275 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3276 # If not cross compiling, check that we can run a simple program.
3277 if test "$cross_compiling" != yes; then
3278 if { ac_try='./$ac_file'
3279 { (case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 cross_compiling=no
3290 else
3291 if test "$cross_compiling" = maybe; then
3292 cross_compiling=yes
3293 else
3294 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3297 If you meant to cross compile, use \`--host'.
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }; }
3306 { $as_echo "$as_me:$LINENO: result: yes" >&5
3307 $as_echo "yes" >&6; }
3309 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3310 ac_clean_files=$ac_clean_files_save
3311 # Check that the compiler produces executables we can run. If not, either
3312 # the compiler is broken, or we cross compile.
3313 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3314 $as_echo_n "checking whether we are cross compiling... " >&6; }
3315 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3316 $as_echo "$cross_compiling" >&6; }
3318 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3319 $as_echo_n "checking for suffix of executables... " >&6; }
3320 if { (ac_try="$ac_link"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326 $as_echo "$ac_try_echo") >&5
3327 (eval "$ac_link") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; then
3331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3333 # work properly (i.e., refer to `conftest.exe'), while it won't with
3334 # `rm'.
3335 for ac_file in conftest.exe conftest conftest.*; do
3336 test -f "$ac_file" || continue
3337 case $ac_file in
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 break;;
3341 * ) break;;
3342 esac
3343 done
3344 else
3345 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3348 See \`config.log' for more details." >&5
3349 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details." >&2;}
3351 { (exit 1); exit 1; }; }; }
3354 rm -f conftest$ac_cv_exeext
3355 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3356 $as_echo "$ac_cv_exeext" >&6; }
3358 rm -f conftest.$ac_ext
3359 EXEEXT=$ac_cv_exeext
3360 ac_exeext=$EXEEXT
3361 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3362 $as_echo_n "checking for suffix of object files... " >&6; }
3363 if test "${ac_cv_objext+set}" = set; then
3364 $as_echo_n "(cached) " >&6
3365 else
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3374 main ()
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.o conftest.obj
3382 if { (ac_try="$ac_compile"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388 $as_echo "$ac_try_echo") >&5
3389 (eval "$ac_compile") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; then
3393 for ac_file in conftest.o conftest.obj conftest.*; do
3394 test -f "$ac_file" || continue;
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3398 break;;
3399 esac
3400 done
3401 else
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }; }
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3417 $as_echo "$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3419 ac_objext=$OBJEXT
3420 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3423 $as_echo_n "(cached) " >&6
3424 else
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3433 main ()
3435 #ifndef __GNUC__
3436 choke me
3437 #endif
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450 $as_echo "$ac_try_echo") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 ac_compiler_gnu=yes
3462 else
3463 $as_echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 ac_compiler_gnu=no
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3473 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3474 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3475 if test $ac_compiler_gnu = yes; then
3476 GCC=yes
3477 else
3478 GCC=
3480 ac_test_CFLAGS=${CFLAGS+set}
3481 ac_save_CFLAGS=$CFLAGS
3482 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3483 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3484 if test "${ac_cv_prog_cc_g+set}" = set; then
3485 $as_echo_n "(cached) " >&6
3486 else
3487 ac_save_c_werror_flag=$ac_c_werror_flag
3488 ac_c_werror_flag=yes
3489 ac_cv_prog_cc_g=no
3490 CFLAGS="-g"
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3499 main ()
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513 $as_echo "$ac_try_echo") >&5
3514 (eval "$ac_compile") 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } && {
3521 test -z "$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 } && test -s conftest.$ac_objext; then
3524 ac_cv_prog_cc_g=yes
3525 else
3526 $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 CFLAGS=""
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3538 main ()
3542 return 0;
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552 $as_echo "$ac_try_echo") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3564 else
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3569 CFLAGS="-g"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3578 main ()
3582 return 0;
3584 _ACEOF
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592 $as_echo "$ac_try_echo") >&5
3593 (eval "$ac_compile") 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } && {
3600 test -z "$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3602 } && test -s conftest.$ac_objext; then
3603 ac_cv_prog_cc_g=yes
3604 else
3605 $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3620 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3621 $as_echo "$ac_cv_prog_cc_g" >&6; }
3622 if test "$ac_test_CFLAGS" = set; then
3623 CFLAGS=$ac_save_CFLAGS
3624 elif test $ac_cv_prog_cc_g = yes; then
3625 if test "$GCC" = yes; then
3626 CFLAGS="-g -O2"
3627 else
3628 CFLAGS="-g"
3630 else
3631 if test "$GCC" = yes; then
3632 CFLAGS="-O2"
3633 else
3634 CFLAGS=
3637 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3638 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3639 if test "${ac_cv_prog_cc_c89+set}" = set; then
3640 $as_echo_n "(cached) " >&6
3641 else
3642 ac_cv_prog_cc_c89=no
3643 ac_save_CC=$CC
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <stdarg.h>
3651 #include <stdio.h>
3652 #include <sys/types.h>
3653 #include <sys/stat.h>
3654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3655 struct buf { int x; };
3656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3657 static char *e (p, i)
3658 char **p;
3659 int i;
3661 return p[i];
3663 static char *f (char * (*g) (char **, int), char **p, ...)
3665 char *s;
3666 va_list v;
3667 va_start (v,p);
3668 s = g (p, va_arg (v,int));
3669 va_end (v);
3670 return s;
3673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3674 function prototypes and stuff, but not '\xHH' hex character constants.
3675 These don't provoke an error unfortunately, instead are silently treated
3676 as 'x'. The following induces an error, until -std is added to get
3677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3678 array size at least. It's necessary to write '\x00'==0 to get something
3679 that's true only with -std. */
3680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3683 inside strings and character constants. */
3684 #define FOO(x) 'x'
3685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687 int test (int i, double x);
3688 struct s1 {int (*f) (int a);};
3689 struct s2 {int (*f) (double a);};
3690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691 int argc;
3692 char **argv;
3694 main ()
3696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 return 0;
3700 _ACEOF
3701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704 CC="$ac_save_CC $ac_arg"
3705 rm -f conftest.$ac_objext
3706 if { (ac_try="$ac_compile"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712 $as_echo "$ac_try_echo") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3723 ac_cv_prog_cc_c89=$ac_arg
3724 else
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3731 rm -f core conftest.err conftest.$ac_objext
3732 test "x$ac_cv_prog_cc_c89" != "xno" && break
3733 done
3734 rm -f conftest.$ac_ext
3735 CC=$ac_save_CC
3738 # AC_CACHE_VAL
3739 case "x$ac_cv_prog_cc_c89" in
3741 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;;
3743 xno)
3744 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;;
3747 CC="$CC $ac_cv_prog_cc_c89"
3748 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3749 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3750 esac
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 depcc="$CC" am_compiler_list=
3761 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3762 $as_echo_n "checking dependency style of $depcc... " >&6; }
3763 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3767 # We make a subdir and do the tests there. Otherwise we can end up
3768 # making bogus files that we don't know about and never remove. For
3769 # instance it was reported that on HP-UX the gcc test will end up
3770 # making a dummy file named `D' -- because `-MD' means `put the output
3771 # in D'.
3772 mkdir conftest.dir
3773 # Copy depcomp to subdir because otherwise we won't find it if we're
3774 # using a relative directory.
3775 cp "$am_depcomp" conftest.dir
3776 cd conftest.dir
3777 # We will build objects and dependencies in a subdirectory because
3778 # it helps to detect inapplicable dependency modes. For instance
3779 # both Tru64's cc and ICC support -MD to output dependencies as a
3780 # side effect of compilation, but ICC will put the dependencies in
3781 # the current directory while Tru64 will put them in the object
3782 # directory.
3783 mkdir sub
3785 am_cv_CC_dependencies_compiler_type=none
3786 if test "$am_compiler_list" = ""; then
3787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3789 for depmode in $am_compiler_list; do
3790 # Setup a source with many dependencies, because some compilers
3791 # like to wrap large dependency lists on column 80 (with \), and
3792 # we should not choose a depcomp mode which is confused by this.
3794 # We need to recreate these files for each test, as the compiler may
3795 # overwrite some of them when testing with obscure command lines.
3796 # This happens at least with the AIX C compiler.
3797 : > sub/conftest.c
3798 for i in 1 2 3 4 5 6; do
3799 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3800 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3801 # Solaris 8's {/usr,}/bin/sh.
3802 touch sub/conftst$i.h
3803 done
3804 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806 case $depmode in
3807 nosideeffect)
3808 # after this tag, mechanisms are not by side-effect, so they'll
3809 # only be used when explicitly requested
3810 if test "x$enable_dependency_tracking" = xyes; then
3811 continue
3812 else
3813 break
3816 none) break ;;
3817 esac
3818 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3819 # mode. It turns out that the SunPro C++ compiler does not properly
3820 # handle `-M -o', and we need to detect this.
3821 if depmode=$depmode \
3822 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3825 >/dev/null 2>conftest.err &&
3826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830 # icc doesn't choke on unknown options, it will just issue warnings
3831 # or remarks (even with -Werror). So we grep stderr for any message
3832 # that says an option was ignored or not supported.
3833 # When given -MP, icc 7.0 and 7.1 complain thusly:
3834 # icc: Command line warning: ignoring option '-M'; no argument required
3835 # The diagnosis changed in icc 8.0:
3836 # icc: Command line remark: option '-MP' not supported
3837 if (grep 'ignoring option' conftest.err ||
3838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839 am_cv_CC_dependencies_compiler_type=$depmode
3840 break
3843 done
3845 cd ..
3846 rm -rf conftest.dir
3847 else
3848 am_cv_CC_dependencies_compiler_type=none
3852 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3853 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857 test "x$enable_dependency_tracking" != xno \
3858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3859 am__fastdepCC_TRUE=
3860 am__fastdepCC_FALSE='#'
3861 else
3862 am__fastdepCC_TRUE='#'
3863 am__fastdepCC_FALSE=
3870 case "$am__api_version" in
3871 1.01234)
3872 { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
3873 $as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
3874 { (exit 1); exit 1; }; }
3878 esac
3880 if test -n "0.35.0"; then
3881 { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
3882 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
3884 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3885 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
3886 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3888 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
3889 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
3890 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
3891 { { $as_echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
3892 $as_echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
3893 { (exit 1); exit 1; }; }
3896 # Extract the first word of "intltool-update", so it can be a program name with args.
3897 set dummy intltool-update; ac_word=$2
3898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
3901 $as_echo_n "(cached) " >&6
3902 else
3903 case $INTLTOOL_UPDATE in
3904 [\\/]* | ?:[\\/]*)
3905 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
3916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3919 done
3920 done
3921 IFS=$as_save_IFS
3924 esac
3926 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
3927 if test -n "$INTLTOOL_UPDATE"; then
3928 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
3929 $as_echo "$INTLTOOL_UPDATE" >&6; }
3930 else
3931 { $as_echo "$as_me:$LINENO: result: no" >&5
3932 $as_echo "no" >&6; }
3936 # Extract the first word of "intltool-merge", so it can be a program name with args.
3937 set dummy intltool-merge; ac_word=$2
3938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
3941 $as_echo_n "(cached) " >&6
3942 else
3943 case $INTLTOOL_MERGE in
3944 [\\/]* | ?:[\\/]*)
3945 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
3956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3964 esac
3966 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
3967 if test -n "$INTLTOOL_MERGE"; then
3968 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
3969 $as_echo "$INTLTOOL_MERGE" >&6; }
3970 else
3971 { $as_echo "$as_me:$LINENO: result: no" >&5
3972 $as_echo "no" >&6; }
3976 # Extract the first word of "intltool-extract", so it can be a program name with args.
3977 set dummy intltool-extract; ac_word=$2
3978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
3981 $as_echo_n "(cached) " >&6
3982 else
3983 case $INTLTOOL_EXTRACT in
3984 [\\/]* | ?:[\\/]*)
3985 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
3996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4004 esac
4006 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
4007 if test -n "$INTLTOOL_EXTRACT"; then
4008 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
4009 $as_echo "$INTLTOOL_EXTRACT" >&6; }
4010 else
4011 { $as_echo "$as_me:$LINENO: result: no" >&5
4012 $as_echo "no" >&6; }
4016 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
4017 { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
4018 $as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
4019 { (exit 1); exit 1; }; }
4022 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4023 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4024 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4025 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4026 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
4027 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4028 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4029 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4030 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4031 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4032 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4033 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
4034 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4035 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4036 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4037 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4038 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4039 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4040 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4138 # Check the gettext tools to make sure they are GNU
4139 # Extract the first word of "xgettext", so it can be a program name with args.
4140 set dummy xgettext; ac_word=$2
4141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4144 $as_echo_n "(cached) " >&6
4145 else
4146 case $XGETTEXT in
4147 [\\/]* | ?:[\\/]*)
4148 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
4159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4164 IFS=$as_save_IFS
4167 esac
4169 XGETTEXT=$ac_cv_path_XGETTEXT
4170 if test -n "$XGETTEXT"; then
4171 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4172 $as_echo "$XGETTEXT" >&6; }
4173 else
4174 { $as_echo "$as_me:$LINENO: result: no" >&5
4175 $as_echo "no" >&6; }
4179 # Extract the first word of "msgmerge", so it can be a program name with args.
4180 set dummy msgmerge; ac_word=$2
4181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4184 $as_echo_n "(cached) " >&6
4185 else
4186 case $MSGMERGE in
4187 [\\/]* | ?:[\\/]*)
4188 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
4199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4204 IFS=$as_save_IFS
4207 esac
4209 MSGMERGE=$ac_cv_path_MSGMERGE
4210 if test -n "$MSGMERGE"; then
4211 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4212 $as_echo "$MSGMERGE" >&6; }
4213 else
4214 { $as_echo "$as_me:$LINENO: result: no" >&5
4215 $as_echo "no" >&6; }
4219 # Extract the first word of "msgfmt", so it can be a program name with args.
4220 set dummy msgfmt; ac_word=$2
4221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_path_MSGFMT+set}" = set; then
4224 $as_echo_n "(cached) " >&6
4225 else
4226 case $MSGFMT in
4227 [\\/]* | ?:[\\/]*)
4228 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4242 done
4243 done
4244 IFS=$as_save_IFS
4247 esac
4249 MSGFMT=$ac_cv_path_MSGFMT
4250 if test -n "$MSGFMT"; then
4251 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
4252 $as_echo "$MSGFMT" >&6; }
4253 else
4254 { $as_echo "$as_me:$LINENO: result: no" >&5
4255 $as_echo "no" >&6; }
4259 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4260 set dummy gmsgfmt; ac_word=$2
4261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4264 $as_echo_n "(cached) " >&6
4265 else
4266 case $GMSGFMT in
4267 [\\/]* | ?:[\\/]*)
4268 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4286 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4288 esac
4290 GMSGFMT=$ac_cv_path_GMSGFMT
4291 if test -n "$GMSGFMT"; then
4292 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4293 $as_echo "$GMSGFMT" >&6; }
4294 else
4295 { $as_echo "$as_me:$LINENO: result: no" >&5
4296 $as_echo "no" >&6; }
4300 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
4301 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
4302 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
4303 { (exit 1); exit 1; }; }
4305 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
4306 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
4307 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
4308 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
4309 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
4310 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
4311 { (exit 1); exit 1; }; }
4314 # Extract the first word of "perl", so it can be a program name with args.
4315 set dummy perl; ac_word=$2
4316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4320 else
4321 case $INTLTOOL_PERL in
4322 [\\/]* | ?:[\\/]*)
4323 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4342 esac
4344 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
4345 if test -n "$INTLTOOL_PERL"; then
4346 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
4347 $as_echo "$INTLTOOL_PERL" >&6; }
4348 else
4349 { $as_echo "$as_me:$LINENO: result: no" >&5
4350 $as_echo "no" >&6; }
4354 if test -z "$INTLTOOL_PERL"; then
4355 { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
4356 $as_echo "$as_me: error: perl not found" >&2;}
4357 { (exit 1); exit 1; }; }
4359 { $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
4360 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
4361 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
4362 if test $? -ne 0; then
4363 { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
4364 $as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
4365 { (exit 1); exit 1; }; }
4366 else
4367 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
4368 { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
4369 $as_echo "$IT_PERL_VERSION" >&6; }
4371 if test "x" != "xno-xml"; then
4372 { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
4373 $as_echo_n "checking for XML::Parser... " >&6; }
4374 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
4375 { $as_echo "$as_me:$LINENO: result: ok" >&5
4376 $as_echo "ok" >&6; }
4377 else
4378 { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
4379 $as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
4380 { (exit 1); exit 1; }; }
4384 # Substitute ALL_LINGUAS so we can use it in po/Makefile
4387 # Set DATADIRNAME correctly if it is not set yet
4388 # (copied from glib-gettext.m4)
4389 if test -z "$DATADIRNAME"; then
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4398 main ()
4400 extern int _nl_msg_cat_cntr;
4401 return _nl_msg_cat_cntr
4403 return 0;
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (ac_try="$ac_link"
4408 case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414 (eval "$ac_link") 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest$ac_exeext && {
4424 test "$cross_compiling" = yes ||
4425 $as_test_x conftest$ac_exeext
4426 }; then
4427 DATADIRNAME=share
4428 else
4429 $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 case $host in
4433 *-*-solaris*)
4434 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
4435 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
4436 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
4446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4447 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
4449 /* System header to define __stub macros and hopefully few prototypes,
4450 which can conflict with char bind_textdomain_codeset (); below.
4451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 <limits.h> exists even on freestanding compilers. */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4460 #undef bind_textdomain_codeset
4462 /* Override any GCC internal prototype to avoid an error.
4463 Use char because int might match the return type of a GCC
4464 builtin and then its argument prototype would still apply. */
4465 #ifdef __cplusplus
4466 extern "C"
4467 #endif
4468 char bind_textdomain_codeset ();
4469 /* The GNU C library defines this for functions which it implements
4470 to always fail with ENOSYS. Some functions are actually named
4471 something starting with __ and the normal name is an alias. */
4472 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
4473 choke me
4474 #endif
4477 main ()
4479 return bind_textdomain_codeset ();
4481 return 0;
4483 _ACEOF
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (ac_try="$ac_link"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4491 $as_echo "$ac_try_echo") >&5
4492 (eval "$ac_link") 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && {
4499 test -z "$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4501 } && test -s conftest$ac_exeext && {
4502 test "$cross_compiling" = yes ||
4503 $as_test_x conftest$ac_exeext
4504 }; then
4505 ac_cv_func_bind_textdomain_codeset=yes
4506 else
4507 $as_echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 ac_cv_func_bind_textdomain_codeset=no
4513 rm -rf conftest.dSYM
4514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4515 conftest$ac_exeext conftest.$ac_ext
4517 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
4518 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
4519 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
4520 DATADIRNAME=share
4521 else
4522 DATADIRNAME=lib
4527 DATADIRNAME=lib
4529 esac
4532 rm -rf conftest.dSYM
4533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4534 conftest$ac_exeext conftest.$ac_ext
4542 GLIB_REQUIRED=2.18.0
4543 GTK_REQUIRED=2.14.0
4544 LIBGLADE_REQUIRED=2.3.2
4545 LIBGNOME_REQUIRED=2.16.0
4546 LIBGNOMEUI_REQUIRED=2.16.0
4547 GCONF_REQUIRED=2.8.0
4548 DBUS_REQUIRED=0.60
4549 DBUS_GLIB_REQUIRED=0.60
4550 LIBSEXY_REQUIRED=0.1.11
4551 LIBNOTIFY_REQUIRED=0.3.2
4552 LIBCANBERRAGTK_REQUIRED=0.3
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 if test -n "$ac_tool_prefix"; then
4560 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4561 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_CC+set}" = set; then
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$CC"; then
4568 ac_cv_prog_CC="$CC" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 CC=$ac_cv_prog_CC
4588 if test -n "$CC"; then
4589 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4590 $as_echo "$CC" >&6; }
4591 else
4592 { $as_echo "$as_me:$LINENO: result: no" >&5
4593 $as_echo "no" >&6; }
4598 if test -z "$ac_cv_prog_CC"; then
4599 ac_ct_CC=$CC
4600 # Extract the first word of "gcc", so it can be a program name with args.
4601 set dummy gcc; ac_word=$2
4602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$ac_ct_CC"; then
4608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_CC="gcc"
4618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4628 if test -n "$ac_ct_CC"; then
4629 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4630 $as_echo "$ac_ct_CC" >&6; }
4631 else
4632 { $as_echo "$as_me:$LINENO: result: no" >&5
4633 $as_echo "no" >&6; }
4636 if test "x$ac_ct_CC" = x; then
4637 CC=""
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 CC=$ac_ct_CC
4647 else
4648 CC="$ac_cv_prog_CC"
4651 if test -z "$CC"; then
4652 if test -n "$ac_tool_prefix"; then
4653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4654 set dummy ${ac_tool_prefix}cc; ac_word=$2
4655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC="$CC" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_CC="${ac_tool_prefix}cc"
4671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4674 done
4675 done
4676 IFS=$as_save_IFS
4680 CC=$ac_cv_prog_CC
4681 if test -n "$CC"; then
4682 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4683 $as_echo "$CC" >&6; }
4684 else
4685 { $as_echo "$as_me:$LINENO: result: no" >&5
4686 $as_echo "no" >&6; }
4692 if test -z "$CC"; then
4693 # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_CC+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -n "$CC"; then
4701 ac_cv_prog_CC="$CC" # Let the user override the test.
4702 else
4703 ac_prog_rejected=no
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712 ac_prog_rejected=yes
4713 continue
4715 ac_cv_prog_CC="cc"
4716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4721 IFS=$as_save_IFS
4723 if test $ac_prog_rejected = yes; then
4724 # We found a bogon in the path, so make sure we never use it.
4725 set dummy $ac_cv_prog_CC
4726 shift
4727 if test $# != 0; then
4728 # We chose a different compiler from the bogus one.
4729 # However, it has the same basename, so the bogon will be chosen
4730 # first if we set CC to just the basename; use the full file name.
4731 shift
4732 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4737 CC=$ac_cv_prog_CC
4738 if test -n "$CC"; then
4739 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4740 $as_echo "$CC" >&6; }
4741 else
4742 { $as_echo "$as_me:$LINENO: result: no" >&5
4743 $as_echo "no" >&6; }
4748 if test -z "$CC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 for ac_prog in cl.exe
4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4773 done
4774 done
4775 IFS=$as_save_IFS
4779 CC=$ac_cv_prog_CC
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4783 else
4784 { $as_echo "$as_me:$LINENO: result: no" >&5
4785 $as_echo "no" >&6; }
4789 test -n "$CC" && break
4790 done
4792 if test -z "$CC"; then
4793 ac_ct_CC=$CC
4794 for ac_prog in cl.exe
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy $ac_prog; ac_word=$2
4798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -n "$ac_ct_CC"; then
4804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_prog_ac_ct_CC="$ac_prog"
4814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4817 done
4818 done
4819 IFS=$as_save_IFS
4823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4824 if test -n "$ac_ct_CC"; then
4825 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4826 $as_echo "$ac_ct_CC" >&6; }
4827 else
4828 { $as_echo "$as_me:$LINENO: result: no" >&5
4829 $as_echo "no" >&6; }
4833 test -n "$ac_ct_CC" && break
4834 done
4836 if test "x$ac_ct_CC" = x; then
4837 CC=""
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840 yes:)
4841 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845 CC=$ac_ct_CC
4852 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4854 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4855 See \`config.log' for more details." >&5
4856 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4857 See \`config.log' for more details." >&2;}
4858 { (exit 1); exit 1; }; }; }
4860 # Provide some information about the compiler.
4861 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4862 set X $ac_compile
4863 ac_compiler=$2
4864 { (ac_try="$ac_compiler --version >&5"
4865 case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compiler --version >&5") 2>&5
4872 ac_status=$?
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }
4875 { (ac_try="$ac_compiler -v >&5"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4881 $as_echo "$ac_try_echo") >&5
4882 (eval "$ac_compiler -v >&5") 2>&5
4883 ac_status=$?
4884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }
4886 { (ac_try="$ac_compiler -V >&5"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_compiler -V >&5") 2>&5
4894 ac_status=$?
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4898 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4899 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4901 $as_echo_n "(cached) " >&6
4902 else
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4911 main ()
4913 #ifndef __GNUC__
4914 choke me
4915 #endif
4918 return 0;
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_compile") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest.$ac_objext; then
4939 ac_compiler_gnu=yes
4940 else
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_compiler_gnu=no
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4951 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4952 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4953 if test $ac_compiler_gnu = yes; then
4954 GCC=yes
4955 else
4956 GCC=
4958 ac_test_CFLAGS=${CFLAGS+set}
4959 ac_save_CFLAGS=$CFLAGS
4960 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4961 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4962 if test "${ac_cv_prog_cc_g+set}" = set; then
4963 $as_echo_n "(cached) " >&6
4964 else
4965 ac_save_c_werror_flag=$ac_c_werror_flag
4966 ac_c_werror_flag=yes
4967 ac_cv_prog_cc_g=no
4968 CFLAGS="-g"
4969 cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4977 main ()
4981 return 0;
4983 _ACEOF
4984 rm -f conftest.$ac_objext
4985 if { (ac_try="$ac_compile"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991 $as_echo "$ac_try_echo") >&5
4992 (eval "$ac_compile") 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } && {
4999 test -z "$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 } && test -s conftest.$ac_objext; then
5002 ac_cv_prog_cc_g=yes
5003 else
5004 $as_echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 CFLAGS=""
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5016 main ()
5020 return 0;
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (ac_try="$ac_compile"
5025 case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5030 $as_echo "$ac_try_echo") >&5
5031 (eval "$ac_compile") 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest.$ac_objext; then
5042 else
5043 $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_c_werror_flag=$ac_save_c_werror_flag
5047 CFLAGS="-g"
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5056 main ()
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5081 ac_cv_prog_cc_g=yes
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096 ac_c_werror_flag=$ac_save_c_werror_flag
5098 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5099 $as_echo "$ac_cv_prog_cc_g" >&6; }
5100 if test "$ac_test_CFLAGS" = set; then
5101 CFLAGS=$ac_save_CFLAGS
5102 elif test $ac_cv_prog_cc_g = yes; then
5103 if test "$GCC" = yes; then
5104 CFLAGS="-g -O2"
5105 else
5106 CFLAGS="-g"
5108 else
5109 if test "$GCC" = yes; then
5110 CFLAGS="-O2"
5111 else
5112 CFLAGS=
5115 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5117 if test "${ac_cv_prog_cc_c89+set}" = set; then
5118 $as_echo_n "(cached) " >&6
5119 else
5120 ac_cv_prog_cc_c89=no
5121 ac_save_CC=$CC
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #include <stdarg.h>
5129 #include <stdio.h>
5130 #include <sys/types.h>
5131 #include <sys/stat.h>
5132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5133 struct buf { int x; };
5134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5135 static char *e (p, i)
5136 char **p;
5137 int i;
5139 return p[i];
5141 static char *f (char * (*g) (char **, int), char **p, ...)
5143 char *s;
5144 va_list v;
5145 va_start (v,p);
5146 s = g (p, va_arg (v,int));
5147 va_end (v);
5148 return s;
5151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5152 function prototypes and stuff, but not '\xHH' hex character constants.
5153 These don't provoke an error unfortunately, instead are silently treated
5154 as 'x'. The following induces an error, until -std is added to get
5155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5156 array size at least. It's necessary to write '\x00'==0 to get something
5157 that's true only with -std. */
5158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5161 inside strings and character constants. */
5162 #define FOO(x) 'x'
5163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5165 int test (int i, double x);
5166 struct s1 {int (*f) (int a);};
5167 struct s2 {int (*f) (double a);};
5168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5169 int argc;
5170 char **argv;
5172 main ()
5174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5176 return 0;
5178 _ACEOF
5179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5182 CC="$ac_save_CC $ac_arg"
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5190 $as_echo "$ac_try_echo") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5201 ac_cv_prog_cc_c89=$ac_arg
5202 else
5203 $as_echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5209 rm -f core conftest.err conftest.$ac_objext
5210 test "x$ac_cv_prog_cc_c89" != "xno" && break
5211 done
5212 rm -f conftest.$ac_ext
5213 CC=$ac_save_CC
5216 # AC_CACHE_VAL
5217 case "x$ac_cv_prog_cc_c89" in
5219 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5220 $as_echo "none needed" >&6; } ;;
5221 xno)
5222 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5223 $as_echo "unsupported" >&6; } ;;
5225 CC="$CC $ac_cv_prog_cc_c89"
5226 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5228 esac
5231 ac_ext=c
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237 depcc="$CC" am_compiler_list=
5239 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5240 $as_echo_n "checking dependency style of $depcc... " >&6; }
5241 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5242 $as_echo_n "(cached) " >&6
5243 else
5244 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5245 # We make a subdir and do the tests there. Otherwise we can end up
5246 # making bogus files that we don't know about and never remove. For
5247 # instance it was reported that on HP-UX the gcc test will end up
5248 # making a dummy file named `D' -- because `-MD' means `put the output
5249 # in D'.
5250 mkdir conftest.dir
5251 # Copy depcomp to subdir because otherwise we won't find it if we're
5252 # using a relative directory.
5253 cp "$am_depcomp" conftest.dir
5254 cd conftest.dir
5255 # We will build objects and dependencies in a subdirectory because
5256 # it helps to detect inapplicable dependency modes. For instance
5257 # both Tru64's cc and ICC support -MD to output dependencies as a
5258 # side effect of compilation, but ICC will put the dependencies in
5259 # the current directory while Tru64 will put them in the object
5260 # directory.
5261 mkdir sub
5263 am_cv_CC_dependencies_compiler_type=none
5264 if test "$am_compiler_list" = ""; then
5265 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5267 for depmode in $am_compiler_list; do
5268 # Setup a source with many dependencies, because some compilers
5269 # like to wrap large dependency lists on column 80 (with \), and
5270 # we should not choose a depcomp mode which is confused by this.
5272 # We need to recreate these files for each test, as the compiler may
5273 # overwrite some of them when testing with obscure command lines.
5274 # This happens at least with the AIX C compiler.
5275 : > sub/conftest.c
5276 for i in 1 2 3 4 5 6; do
5277 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5278 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5279 # Solaris 8's {/usr,}/bin/sh.
5280 touch sub/conftst$i.h
5281 done
5282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5284 case $depmode in
5285 nosideeffect)
5286 # after this tag, mechanisms are not by side-effect, so they'll
5287 # only be used when explicitly requested
5288 if test "x$enable_dependency_tracking" = xyes; then
5289 continue
5290 else
5291 break
5294 none) break ;;
5295 esac
5296 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5297 # mode. It turns out that the SunPro C++ compiler does not properly
5298 # handle `-M -o', and we need to detect this.
5299 if depmode=$depmode \
5300 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5303 >/dev/null 2>conftest.err &&
5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317 am_cv_CC_dependencies_compiler_type=$depmode
5318 break
5321 done
5323 cd ..
5324 rm -rf conftest.dir
5325 else
5326 am_cv_CC_dependencies_compiler_type=none
5330 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335 test "x$enable_dependency_tracking" != xno \
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5337 am__fastdepCC_TRUE=
5338 am__fastdepCC_FALSE='#'
5339 else
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
5345 if test "x$CC" != xcc; then
5346 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5347 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5348 else
5349 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5350 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5352 set dummy $CC; ac_cc=`$as_echo "$2" |
5353 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5354 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5355 $as_echo_n "(cached) " >&6
5356 else
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5365 main ()
5369 return 0;
5371 _ACEOF
5372 # Make sure it works both with $CC and with simple cc.
5373 # We do the test twice because some compilers refuse to overwrite an
5374 # existing .o file with -o, though they will create one.
5375 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5376 rm -f conftest2.*
5377 if { (case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383 (eval "$ac_try") 2>&5
5384 ac_status=$?
5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5392 $as_echo "$ac_try_echo") >&5
5393 (eval "$ac_try") 2>&5
5394 ac_status=$?
5395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); };
5397 then
5398 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5399 if test "x$CC" != xcc; then
5400 # Test first that cc exists at all.
5401 if { ac_try='cc -c conftest.$ac_ext >&5'
5402 { (case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5407 $as_echo "$ac_try_echo") >&5
5408 (eval "$ac_try") 2>&5
5409 ac_status=$?
5410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5413 rm -f conftest2.*
5414 if { (case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417 esac
5418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5419 $as_echo "$ac_try_echo") >&5
5420 (eval "$ac_try") 2>&5
5421 ac_status=$?
5422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429 $as_echo "$ac_try_echo") >&5
5430 (eval "$ac_try") 2>&5
5431 ac_status=$?
5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); };
5434 then
5435 # cc works too.
5437 else
5438 # cc exists but doesn't like -o.
5439 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5443 else
5444 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5446 rm -f core conftest*
5449 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5450 { $as_echo "$as_me:$LINENO: result: yes" >&5
5451 $as_echo "yes" >&6; }
5452 else
5453 { $as_echo "$as_me:$LINENO: result: no" >&5
5454 $as_echo "no" >&6; }
5456 cat >>confdefs.h <<\_ACEOF
5457 #define NO_MINUS_C_MINUS_O 1
5458 _ACEOF
5462 # FIXME: we rely on the cache variable name because
5463 # there is no other way.
5464 set dummy $CC
5465 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5466 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5467 if test "$am_t" != yes; then
5468 # Losing compiler, so override with the script.
5469 # FIXME: It is wrong to rewrite CC.
5470 # But if we don't then we get into trouble of one sort or another.
5471 # A longer-term fix would be to have automake use am__CC in this case,
5472 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5473 CC="$am_aux_dir/compile $CC"
5477 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5478 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5479 if test "${ac_cv_prog_cc_c99+set}" = set; then
5480 $as_echo_n "(cached) " >&6
5481 else
5482 ac_cv_prog_cc_c99=no
5483 ac_save_CC=$CC
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 #include <stdarg.h>
5491 #include <stdbool.h>
5492 #include <stdlib.h>
5493 #include <wchar.h>
5494 #include <stdio.h>
5496 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5497 #define debug(...) fprintf (stderr, __VA_ARGS__)
5498 #define showlist(...) puts (#__VA_ARGS__)
5499 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5500 static void
5501 test_varargs_macros (void)
5503 int x = 1234;
5504 int y = 5678;
5505 debug ("Flag");
5506 debug ("X = %d\n", x);
5507 showlist (The first, second, and third items.);
5508 report (x>y, "x is %d but y is %d", x, y);
5511 // Check long long types.
5512 #define BIG64 18446744073709551615ull
5513 #define BIG32 4294967295ul
5514 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5515 #if !BIG_OK
5516 your preprocessor is broken;
5517 #endif
5518 #if BIG_OK
5519 #else
5520 your preprocessor is broken;
5521 #endif
5522 static long long int bignum = -9223372036854775807LL;
5523 static unsigned long long int ubignum = BIG64;
5525 struct incomplete_array
5527 int datasize;
5528 double data[];
5531 struct named_init {
5532 int number;
5533 const wchar_t *name;
5534 double average;
5537 typedef const char *ccp;
5539 static inline int
5540 test_restrict (ccp restrict text)
5542 // See if C++-style comments work.
5543 // Iterate through items via the restricted pointer.
5544 // Also check for declarations in for loops.
5545 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5546 continue;
5547 return 0;
5550 // Check varargs and va_copy.
5551 static void
5552 test_varargs (const char *format, ...)
5554 va_list args;
5555 va_start (args, format);
5556 va_list args_copy;
5557 va_copy (args_copy, args);
5559 const char *str;
5560 int number;
5561 float fnumber;
5563 while (*format)
5565 switch (*format++)
5567 case 's': // string
5568 str = va_arg (args_copy, const char *);
5569 break;
5570 case 'd': // int
5571 number = va_arg (args_copy, int);
5572 break;
5573 case 'f': // float
5574 fnumber = va_arg (args_copy, double);
5575 break;
5576 default:
5577 break;
5580 va_end (args_copy);
5581 va_end (args);
5585 main ()
5588 // Check bool.
5589 _Bool success = false;
5591 // Check restrict.
5592 if (test_restrict ("String literal") == 0)
5593 success = true;
5594 char *restrict newvar = "Another string";
5596 // Check varargs.
5597 test_varargs ("s, d' f .", "string", 65, 34.234);
5598 test_varargs_macros ();
5600 // Check flexible array members.
5601 struct incomplete_array *ia =
5602 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5603 ia->datasize = 10;
5604 for (int i = 0; i < ia->datasize; ++i)
5605 ia->data[i] = i * 1.234;
5607 // Check named initializers.
5608 struct named_init ni = {
5609 .number = 34,
5610 .name = L"Test wide string",
5611 .average = 543.34343,
5614 ni.number = 58;
5616 int dynamic_array[ni.number];
5617 dynamic_array[ni.number - 1] = 543;
5619 // work around unused variable warnings
5620 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5621 || dynamic_array[ni.number - 1] != 543);
5624 return 0;
5626 _ACEOF
5627 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5629 CC="$ac_save_CC $ac_arg"
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5637 $as_echo "$ac_try_echo") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_cv_prog_cc_c99=$ac_arg
5649 else
5650 $as_echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5656 rm -f core conftest.err conftest.$ac_objext
5657 test "x$ac_cv_prog_cc_c99" != "xno" && break
5658 done
5659 rm -f conftest.$ac_ext
5660 CC=$ac_save_CC
5663 # AC_CACHE_VAL
5664 case "x$ac_cv_prog_cc_c99" in
5666 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5667 $as_echo "none needed" >&6; } ;;
5668 xno)
5669 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5670 $as_echo "unsupported" >&6; } ;;
5672 CC="$CC $ac_cv_prog_cc_c99"
5673 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5674 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5675 esac
5679 ac_ext=c
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5685 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5686 # On Suns, sometimes $CPP names a directory.
5687 if test -n "$CPP" && test -d "$CPP"; then
5688 CPP=
5690 if test -z "$CPP"; then
5691 if test "${ac_cv_prog_CPP+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5693 else
5694 # Double quotes because CPP needs to be expanded
5695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5697 ac_preproc_ok=false
5698 for ac_c_preproc_warn_flag in '' yes
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #ifdef __STDC__
5713 # include <limits.h>
5714 #else
5715 # include <assert.h>
5716 #endif
5717 Syntax error
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 }; then
5737 else
5738 $as_echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Broken: fails on valid input.
5742 continue
5745 rm -f conftest.err conftest.$ac_ext
5747 # OK, works on sane cases. Now check whether nonexistent headers
5748 # can be detected and how.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <ac_nonexistent.h>
5756 _ACEOF
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } >/dev/null && {
5771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 }; then
5774 # Broken: success on invalid input.
5775 continue
5776 else
5777 $as_echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 # Passes both tests.
5781 ac_preproc_ok=:
5782 break
5785 rm -f conftest.err conftest.$ac_ext
5787 done
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then
5791 break
5794 done
5795 ac_cv_prog_CPP=$CPP
5798 CPP=$ac_cv_prog_CPP
5799 else
5800 ac_cv_prog_CPP=$CPP
5802 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5804 ac_preproc_ok=false
5805 for ac_c_preproc_warn_flag in '' yes
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5824 Syntax error
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 }; then
5844 else
5845 $as_echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 # Broken: fails on valid input.
5849 continue
5852 rm -f conftest.err conftest.$ac_ext
5854 # OK, works on sane cases. Now check whether nonexistent headers
5855 # can be detected and how.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <ac_nonexistent.h>
5863 _ACEOF
5864 if { (ac_try="$ac_cpp conftest.$ac_ext"
5865 case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868 esac
5869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870 $as_echo "$ac_try_echo") >&5
5871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } >/dev/null && {
5878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 }; then
5881 # Broken: success on invalid input.
5882 continue
5883 else
5884 $as_echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 # Passes both tests.
5888 ac_preproc_ok=:
5889 break
5892 rm -f conftest.err conftest.$ac_ext
5894 done
5895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5896 rm -f conftest.err conftest.$ac_ext
5897 if $ac_preproc_ok; then
5899 else
5900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5902 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5903 See \`config.log' for more details." >&5
5904 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5905 See \`config.log' for more details." >&2;}
5906 { (exit 1); exit 1; }; }; }
5909 ac_ext=c
5910 ac_cpp='$CPP $CPPFLAGS'
5911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5915 # By default we simply use the C compiler to build assembly code.
5917 test "${CCAS+set}" = set || CCAS=$CC
5918 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5922 depcc="$CCAS" am_compiler_list=
5924 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5925 $as_echo_n "checking dependency style of $depcc... " >&6; }
5926 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5930 # We make a subdir and do the tests there. Otherwise we can end up
5931 # making bogus files that we don't know about and never remove. For
5932 # instance it was reported that on HP-UX the gcc test will end up
5933 # making a dummy file named `D' -- because `-MD' means `put the output
5934 # in D'.
5935 mkdir conftest.dir
5936 # Copy depcomp to subdir because otherwise we won't find it if we're
5937 # using a relative directory.
5938 cp "$am_depcomp" conftest.dir
5939 cd conftest.dir
5940 # We will build objects and dependencies in a subdirectory because
5941 # it helps to detect inapplicable dependency modes. For instance
5942 # both Tru64's cc and ICC support -MD to output dependencies as a
5943 # side effect of compilation, but ICC will put the dependencies in
5944 # the current directory while Tru64 will put them in the object
5945 # directory.
5946 mkdir sub
5948 am_cv_CCAS_dependencies_compiler_type=none
5949 if test "$am_compiler_list" = ""; then
5950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5952 for depmode in $am_compiler_list; do
5953 # Setup a source with many dependencies, because some compilers
5954 # like to wrap large dependency lists on column 80 (with \), and
5955 # we should not choose a depcomp mode which is confused by this.
5957 # We need to recreate these files for each test, as the compiler may
5958 # overwrite some of them when testing with obscure command lines.
5959 # This happens at least with the AIX C compiler.
5960 : > sub/conftest.c
5961 for i in 1 2 3 4 5 6; do
5962 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5963 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5964 # Solaris 8's {/usr,}/bin/sh.
5965 touch sub/conftst$i.h
5966 done
5967 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5969 case $depmode in
5970 nosideeffect)
5971 # after this tag, mechanisms are not by side-effect, so they'll
5972 # only be used when explicitly requested
5973 if test "x$enable_dependency_tracking" = xyes; then
5974 continue
5975 else
5976 break
5979 none) break ;;
5980 esac
5981 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5982 # mode. It turns out that the SunPro C++ compiler does not properly
5983 # handle `-M -o', and we need to detect this.
5984 if depmode=$depmode \
5985 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5986 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5987 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5988 >/dev/null 2>conftest.err &&
5989 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5990 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5991 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5992 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5993 # icc doesn't choke on unknown options, it will just issue warnings
5994 # or remarks (even with -Werror). So we grep stderr for any message
5995 # that says an option was ignored or not supported.
5996 # When given -MP, icc 7.0 and 7.1 complain thusly:
5997 # icc: Command line warning: ignoring option '-M'; no argument required
5998 # The diagnosis changed in icc 8.0:
5999 # icc: Command line remark: option '-MP' not supported
6000 if (grep 'ignoring option' conftest.err ||
6001 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6002 am_cv_CCAS_dependencies_compiler_type=$depmode
6003 break
6006 done
6008 cd ..
6009 rm -rf conftest.dir
6010 else
6011 am_cv_CCAS_dependencies_compiler_type=none
6015 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6016 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6017 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6020 test "x$enable_dependency_tracking" != xno \
6021 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6022 am__fastdepCCAS_TRUE=
6023 am__fastdepCCAS_FALSE='#'
6024 else
6025 am__fastdepCCAS_TRUE='#'
6026 am__fastdepCCAS_FALSE=
6030 case `pwd` in
6031 *\ * | *\ *)
6032 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6034 esac
6038 macro_version='2.2.6'
6039 macro_revision='1.3012'
6053 ltmain="$ac_aux_dir/ltmain.sh"
6055 # Make sure we can run config.sub.
6056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6057 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6058 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6059 { (exit 1); exit 1; }; }
6061 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6062 $as_echo_n "checking build system type... " >&6; }
6063 if test "${ac_cv_build+set}" = set; then
6064 $as_echo_n "(cached) " >&6
6065 else
6066 ac_build_alias=$build_alias
6067 test "x$ac_build_alias" = x &&
6068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6069 test "x$ac_build_alias" = x &&
6070 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6071 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6072 { (exit 1); exit 1; }; }
6073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6074 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6075 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6076 { (exit 1); exit 1; }; }
6079 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6080 $as_echo "$ac_cv_build" >&6; }
6081 case $ac_cv_build in
6082 *-*-*) ;;
6083 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6084 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6085 { (exit 1); exit 1; }; };;
6086 esac
6087 build=$ac_cv_build
6088 ac_save_IFS=$IFS; IFS='-'
6089 set x $ac_cv_build
6090 shift
6091 build_cpu=$1
6092 build_vendor=$2
6093 shift; shift
6094 # Remember, the first character of IFS is used to create $*,
6095 # except with old shells:
6096 build_os=$*
6097 IFS=$ac_save_IFS
6098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6101 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6102 $as_echo_n "checking host system type... " >&6; }
6103 if test "${ac_cv_host+set}" = set; then
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test "x$host_alias" = x; then
6107 ac_cv_host=$ac_cv_build
6108 else
6109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6110 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6111 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6112 { (exit 1); exit 1; }; }
6116 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6117 $as_echo "$ac_cv_host" >&6; }
6118 case $ac_cv_host in
6119 *-*-*) ;;
6120 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6121 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6122 { (exit 1); exit 1; }; };;
6123 esac
6124 host=$ac_cv_host
6125 ac_save_IFS=$IFS; IFS='-'
6126 set x $ac_cv_host
6127 shift
6128 host_cpu=$1
6129 host_vendor=$2
6130 shift; shift
6131 # Remember, the first character of IFS is used to create $*,
6132 # except with old shells:
6133 host_os=$*
6134 IFS=$ac_save_IFS
6135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6138 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140 if test "${ac_cv_path_SED+set}" = set; then
6141 $as_echo_n "(cached) " >&6
6142 else
6143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144 for ac_i in 1 2 3 4 5 6 7; do
6145 ac_script="$ac_script$as_nl$ac_script"
6146 done
6147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148 $as_unset ac_script || ac_script=
6149 if test -z "$SED"; then
6150 ac_path_SED_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in sed gsed; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6161 # Check for GNU ac_path_SED and select it if it is found.
6162 # Check for GNU $ac_path_SED
6163 case `"$ac_path_SED" --version 2>&1` in
6164 *GNU*)
6165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6167 ac_count=0
6168 $as_echo_n 0123456789 >"conftest.in"
6169 while :
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo '' >> "conftest.nl"
6175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 ac_count=`expr $ac_count + 1`
6178 if test $ac_count -gt ${ac_path_SED_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_SED="$ac_path_SED"
6181 ac_path_SED_max=$ac_count
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6185 done
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187 esac
6189 $ac_path_SED_found && break 3
6190 done
6191 done
6192 done
6193 IFS=$as_save_IFS
6194 if test -z "$ac_cv_path_SED"; then
6195 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6196 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6197 { (exit 1); exit 1; }; }
6199 else
6200 ac_cv_path_SED=$SED
6204 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6205 $as_echo "$ac_cv_path_SED" >&6; }
6206 SED="$ac_cv_path_SED"
6207 rm -f conftest.sed
6209 test -z "$SED" && SED=sed
6210 Xsed="$SED -e 1s/^X//"
6222 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6224 if test "${ac_cv_path_GREP+set}" = set; then
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -z "$GREP"; then
6228 ac_path_GREP_found=false
6229 # Loop through the user's path and test for each of PROGNAME-LIST
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_prog in grep ggrep; do
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6238 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6239 # Check for GNU ac_path_GREP and select it if it is found.
6240 # Check for GNU $ac_path_GREP
6241 case `"$ac_path_GREP" --version 2>&1` in
6242 *GNU*)
6243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6245 ac_count=0
6246 $as_echo_n 0123456789 >"conftest.in"
6247 while :
6249 cat "conftest.in" "conftest.in" >"conftest.tmp"
6250 mv "conftest.tmp" "conftest.in"
6251 cp "conftest.in" "conftest.nl"
6252 $as_echo 'GREP' >> "conftest.nl"
6253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6255 ac_count=`expr $ac_count + 1`
6256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6257 # Best one so far, save it but keep looking for a better one
6258 ac_cv_path_GREP="$ac_path_GREP"
6259 ac_path_GREP_max=$ac_count
6261 # 10*(2^10) chars as input seems more than enough
6262 test $ac_count -gt 10 && break
6263 done
6264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6265 esac
6267 $ac_path_GREP_found && break 3
6268 done
6269 done
6270 done
6271 IFS=$as_save_IFS
6272 if test -z "$ac_cv_path_GREP"; then
6273 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6274 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6275 { (exit 1); exit 1; }; }
6277 else
6278 ac_cv_path_GREP=$GREP
6282 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6283 $as_echo "$ac_cv_path_GREP" >&6; }
6284 GREP="$ac_cv_path_GREP"
6287 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6288 $as_echo_n "checking for egrep... " >&6; }
6289 if test "${ac_cv_path_EGREP+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6293 then ac_cv_path_EGREP="$GREP -E"
6294 else
6295 if test -z "$EGREP"; then
6296 ac_path_EGREP_found=false
6297 # Loop through the user's path and test for each of PROGNAME-LIST
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_prog in egrep; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6307 # Check for GNU ac_path_EGREP and select it if it is found.
6308 # Check for GNU $ac_path_EGREP
6309 case `"$ac_path_EGREP" --version 2>&1` in
6310 *GNU*)
6311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6313 ac_count=0
6314 $as_echo_n 0123456789 >"conftest.in"
6315 while :
6317 cat "conftest.in" "conftest.in" >"conftest.tmp"
6318 mv "conftest.tmp" "conftest.in"
6319 cp "conftest.in" "conftest.nl"
6320 $as_echo 'EGREP' >> "conftest.nl"
6321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6323 ac_count=`expr $ac_count + 1`
6324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6325 # Best one so far, save it but keep looking for a better one
6326 ac_cv_path_EGREP="$ac_path_EGREP"
6327 ac_path_EGREP_max=$ac_count
6329 # 10*(2^10) chars as input seems more than enough
6330 test $ac_count -gt 10 && break
6331 done
6332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333 esac
6335 $ac_path_EGREP_found && break 3
6336 done
6337 done
6338 done
6339 IFS=$as_save_IFS
6340 if test -z "$ac_cv_path_EGREP"; then
6341 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6342 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6343 { (exit 1); exit 1; }; }
6345 else
6346 ac_cv_path_EGREP=$EGREP
6351 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6352 $as_echo "$ac_cv_path_EGREP" >&6; }
6353 EGREP="$ac_cv_path_EGREP"
6356 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6357 $as_echo_n "checking for fgrep... " >&6; }
6358 if test "${ac_cv_path_FGREP+set}" = set; then
6359 $as_echo_n "(cached) " >&6
6360 else
6361 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6362 then ac_cv_path_FGREP="$GREP -F"
6363 else
6364 if test -z "$FGREP"; then
6365 ac_path_FGREP_found=false
6366 # Loop through the user's path and test for each of PROGNAME-LIST
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_prog in fgrep; do
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6375 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6376 # Check for GNU ac_path_FGREP and select it if it is found.
6377 # Check for GNU $ac_path_FGREP
6378 case `"$ac_path_FGREP" --version 2>&1` in
6379 *GNU*)
6380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6382 ac_count=0
6383 $as_echo_n 0123456789 >"conftest.in"
6384 while :
6386 cat "conftest.in" "conftest.in" >"conftest.tmp"
6387 mv "conftest.tmp" "conftest.in"
6388 cp "conftest.in" "conftest.nl"
6389 $as_echo 'FGREP' >> "conftest.nl"
6390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6392 ac_count=`expr $ac_count + 1`
6393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6394 # Best one so far, save it but keep looking for a better one
6395 ac_cv_path_FGREP="$ac_path_FGREP"
6396 ac_path_FGREP_max=$ac_count
6398 # 10*(2^10) chars as input seems more than enough
6399 test $ac_count -gt 10 && break
6400 done
6401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6402 esac
6404 $ac_path_FGREP_found && break 3
6405 done
6406 done
6407 done
6408 IFS=$as_save_IFS
6409 if test -z "$ac_cv_path_FGREP"; then
6410 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6411 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6412 { (exit 1); exit 1; }; }
6414 else
6415 ac_cv_path_FGREP=$FGREP
6420 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6421 $as_echo "$ac_cv_path_FGREP" >&6; }
6422 FGREP="$ac_cv_path_FGREP"
6425 test -z "$GREP" && GREP=grep
6445 # Check whether --with-gnu-ld was given.
6446 if test "${with_gnu_ld+set}" = set; then
6447 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6448 else
6449 with_gnu_ld=no
6452 ac_prog=ld
6453 if test "$GCC" = yes; then
6454 # Check if gcc -print-prog-name=ld gives a path.
6455 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6456 $as_echo_n "checking for ld used by $CC... " >&6; }
6457 case $host in
6458 *-*-mingw*)
6459 # gcc leaves a trailing carriage return which upsets mingw
6460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6463 esac
6464 case $ac_prog in
6465 # Accept absolute paths.
6466 [\\/]* | ?:[\\/]*)
6467 re_direlt='/[^/][^/]*/\.\./'
6468 # Canonicalize the pathname of ld
6469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6472 done
6473 test -z "$LD" && LD="$ac_prog"
6476 # If it fails, then pretend we aren't using GCC.
6477 ac_prog=ld
6480 # If it is relative, then search for the first ld in PATH.
6481 with_gnu_ld=unknown
6483 esac
6484 elif test "$with_gnu_ld" = yes; then
6485 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6486 $as_echo_n "checking for GNU ld... " >&6; }
6487 else
6488 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6489 $as_echo_n "checking for non-GNU ld... " >&6; }
6491 if test "${lt_cv_path_LD+set}" = set; then
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -z "$LD"; then
6495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496 for ac_dir in $PATH; do
6497 IFS="$lt_save_ifs"
6498 test -z "$ac_dir" && ac_dir=.
6499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6500 lt_cv_path_LD="$ac_dir/$ac_prog"
6501 # Check to see if the program is GNU ld. I'd rather use --version,
6502 # but apparently some variants of GNU ld only accept -v.
6503 # Break only if it was the GNU/non-GNU ld that we prefer.
6504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6505 *GNU* | *'with BFD'*)
6506 test "$with_gnu_ld" != no && break
6509 test "$with_gnu_ld" != yes && break
6511 esac
6513 done
6514 IFS="$lt_save_ifs"
6515 else
6516 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6520 LD="$lt_cv_path_LD"
6521 if test -n "$LD"; then
6522 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6523 $as_echo "$LD" >&6; }
6524 else
6525 { $as_echo "$as_me:$LINENO: result: no" >&5
6526 $as_echo "no" >&6; }
6528 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6529 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6530 { (exit 1); exit 1; }; }
6531 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6532 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6533 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6534 $as_echo_n "(cached) " >&6
6535 else
6536 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6537 case `$LD -v 2>&1 </dev/null` in
6538 *GNU* | *'with BFD'*)
6539 lt_cv_prog_gnu_ld=yes
6542 lt_cv_prog_gnu_ld=no
6544 esac
6546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6547 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6548 with_gnu_ld=$lt_cv_prog_gnu_ld
6558 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6559 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6560 if test "${lt_cv_path_NM+set}" = set; then
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if test -n "$NM"; then
6564 # Let the user override the test.
6565 lt_cv_path_NM="$NM"
6566 else
6567 lt_nm_to_check="${ac_tool_prefix}nm"
6568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6569 lt_nm_to_check="$lt_nm_to_check nm"
6571 for lt_tmp_nm in $lt_nm_to_check; do
6572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6574 IFS="$lt_save_ifs"
6575 test -z "$ac_dir" && ac_dir=.
6576 tmp_nm="$ac_dir/$lt_tmp_nm"
6577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6578 # Check to see if the nm accepts a BSD-compat flag.
6579 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6580 # nm: unknown option "B" ignored
6581 # Tru64's nm complains that /dev/null is an invalid object file
6582 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6583 */dev/null* | *'Invalid file or object type'*)
6584 lt_cv_path_NM="$tmp_nm -B"
6585 break
6588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6589 */dev/null*)
6590 lt_cv_path_NM="$tmp_nm -p"
6591 break
6594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6595 continue # so that we can try to find one that supports BSD flags
6597 esac
6599 esac
6601 done
6602 IFS="$lt_save_ifs"
6603 done
6604 : ${lt_cv_path_NM=no}
6607 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6608 $as_echo "$lt_cv_path_NM" >&6; }
6609 if test "$lt_cv_path_NM" != "no"; then
6610 NM="$lt_cv_path_NM"
6611 else
6612 # Didn't find any BSD compatible name lister, look for dumpbin.
6613 if test -n "$ac_tool_prefix"; then
6614 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$DUMPBIN"; then
6624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6637 done
6638 done
6639 IFS=$as_save_IFS
6643 DUMPBIN=$ac_cv_prog_DUMPBIN
6644 if test -n "$DUMPBIN"; then
6645 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6646 $as_echo "$DUMPBIN" >&6; }
6647 else
6648 { $as_echo "$as_me:$LINENO: result: no" >&5
6649 $as_echo "no" >&6; }
6653 test -n "$DUMPBIN" && break
6654 done
6656 if test -z "$DUMPBIN"; then
6657 ac_ct_DUMPBIN=$DUMPBIN
6658 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6660 # Extract the first word of "$ac_prog", so it can be a program name with args.
6661 set dummy $ac_prog; ac_word=$2
6662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$ac_ct_DUMPBIN"; then
6668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6681 done
6682 done
6683 IFS=$as_save_IFS
6687 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6688 if test -n "$ac_ct_DUMPBIN"; then
6689 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6690 $as_echo "$ac_ct_DUMPBIN" >&6; }
6691 else
6692 { $as_echo "$as_me:$LINENO: result: no" >&5
6693 $as_echo "no" >&6; }
6697 test -n "$ac_ct_DUMPBIN" && break
6698 done
6700 if test "x$ac_ct_DUMPBIN" = x; then
6701 DUMPBIN=":"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709 DUMPBIN=$ac_ct_DUMPBIN
6714 if test "$DUMPBIN" != ":"; then
6715 NM="$DUMPBIN"
6718 test -z "$NM" && NM=nm
6725 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6726 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6727 if test "${lt_cv_nm_interface+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6729 else
6730 lt_cv_nm_interface="BSD nm"
6731 echo "int some_variable = 0;" > conftest.$ac_ext
6732 (eval echo "\"\$as_me:6732: $ac_compile\"" >&5)
6733 (eval "$ac_compile" 2>conftest.err)
6734 cat conftest.err >&5
6735 (eval echo "\"\$as_me:6735: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6736 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6737 cat conftest.err >&5
6738 (eval echo "\"\$as_me:6738: output\"" >&5)
6739 cat conftest.out >&5
6740 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6741 lt_cv_nm_interface="MS dumpbin"
6743 rm -f conftest*
6745 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6746 $as_echo "$lt_cv_nm_interface" >&6; }
6748 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6749 $as_echo_n "checking whether ln -s works... " >&6; }
6750 LN_S=$as_ln_s
6751 if test "$LN_S" = "ln -s"; then
6752 { $as_echo "$as_me:$LINENO: result: yes" >&5
6753 $as_echo "yes" >&6; }
6754 else
6755 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6756 $as_echo "no, using $LN_S" >&6; }
6759 # find the maximum length of command line arguments
6760 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6761 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6762 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6763 $as_echo_n "(cached) " >&6
6764 else
6766 teststring="ABCD"
6768 case $build_os in
6769 msdosdjgpp*)
6770 # On DJGPP, this test can blow up pretty badly due to problems in libc
6771 # (any single argument exceeding 2000 bytes causes a buffer overrun
6772 # during glob expansion). Even if it were fixed, the result of this
6773 # check would be larger than it should be.
6774 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6777 gnu*)
6778 # Under GNU Hurd, this test is not required because there is
6779 # no limit to the length of command line arguments.
6780 # Libtool will interpret -1 as no limit whatsoever
6781 lt_cv_sys_max_cmd_len=-1;
6784 cygwin* | mingw* | cegcc*)
6785 # On Win9x/ME, this test blows up -- it succeeds, but takes
6786 # about 5 minutes as the teststring grows exponentially.
6787 # Worse, since 9x/ME are not pre-emptively multitasking,
6788 # you end up with a "frozen" computer, even though with patience
6789 # the test eventually succeeds (with a max line length of 256k).
6790 # Instead, let's just punt: use the minimum linelength reported by
6791 # all of the supported platforms: 8192 (on NT/2K/XP).
6792 lt_cv_sys_max_cmd_len=8192;
6795 amigaos*)
6796 # On AmigaOS with pdksh, this test takes hours, literally.
6797 # So we just punt and use a minimum line length of 8192.
6798 lt_cv_sys_max_cmd_len=8192;
6801 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6802 # This has been around since 386BSD, at least. Likely further.
6803 if test -x /sbin/sysctl; then
6804 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6805 elif test -x /usr/sbin/sysctl; then
6806 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6807 else
6808 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6810 # And add a safety zone
6811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6815 interix*)
6816 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6817 lt_cv_sys_max_cmd_len=196608
6820 osf*)
6821 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6822 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6823 # nice to cause kernel panics so lets avoid the loop below.
6824 # First set a reasonable default.
6825 lt_cv_sys_max_cmd_len=16384
6827 if test -x /sbin/sysconfig; then
6828 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6829 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6830 esac
6833 sco3.2v5*)
6834 lt_cv_sys_max_cmd_len=102400
6836 sysv5* | sco5v6* | sysv4.2uw2*)
6837 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6838 if test -n "$kargmax"; then
6839 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6840 else
6841 lt_cv_sys_max_cmd_len=32768
6845 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6846 if test -n "$lt_cv_sys_max_cmd_len"; then
6847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6849 else
6850 # Make teststring a little bigger before we do anything with it.
6851 # a 1K string should be a reasonable start.
6852 for i in 1 2 3 4 5 6 7 8 ; do
6853 teststring=$teststring$teststring
6854 done
6855 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6856 # If test is not a shell built-in, we'll probably end up computing a
6857 # maximum length that is only half of the actual maximum length, but
6858 # we can't tell.
6859 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6860 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6861 test $i != 17 # 1/2 MB should be enough
6863 i=`expr $i + 1`
6864 teststring=$teststring$teststring
6865 done
6866 # Only check the string length outside the loop.
6867 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6868 teststring=
6869 # Add a significant safety factor because C++ compilers can tack on
6870 # massive amounts of additional arguments before passing them to the
6871 # linker. It appears as though 1/2 is a usable value.
6872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6875 esac
6879 if test -n $lt_cv_sys_max_cmd_len ; then
6880 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6881 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6882 else
6883 { $as_echo "$as_me:$LINENO: result: none" >&5
6884 $as_echo "none" >&6; }
6886 max_cmd_len=$lt_cv_sys_max_cmd_len
6893 : ${CP="cp -f"}
6894 : ${MV="mv -f"}
6895 : ${RM="rm -f"}
6897 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6898 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6899 # Try some XSI features
6900 xsi_shell=no
6901 ( _lt_dummy="a/b/c"
6902 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6903 = c,a/b,, \
6904 && eval 'test $(( 1 + 1 )) -eq 2 \
6905 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6906 && xsi_shell=yes
6907 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6908 $as_echo "$xsi_shell" >&6; }
6911 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6912 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6913 lt_shell_append=no
6914 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6915 >/dev/null 2>&1 \
6916 && lt_shell_append=yes
6917 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6918 $as_echo "$lt_shell_append" >&6; }
6921 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6922 lt_unset=unset
6923 else
6924 lt_unset=false
6931 # test EBCDIC or ASCII
6932 case `echo X|tr X '\101'` in
6933 A) # ASCII based system
6934 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6935 lt_SP2NL='tr \040 \012'
6936 lt_NL2SP='tr \015\012 \040\040'
6938 *) # EBCDIC based system
6939 lt_SP2NL='tr \100 \n'
6940 lt_NL2SP='tr \r\n \100\100'
6942 esac
6952 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6953 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6954 if test "${lt_cv_ld_reload_flag+set}" = set; then
6955 $as_echo_n "(cached) " >&6
6956 else
6957 lt_cv_ld_reload_flag='-r'
6959 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6960 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6961 reload_flag=$lt_cv_ld_reload_flag
6962 case $reload_flag in
6963 "" | " "*) ;;
6964 *) reload_flag=" $reload_flag" ;;
6965 esac
6966 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6967 case $host_os in
6968 darwin*)
6969 if test "$GCC" = yes; then
6970 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6971 else
6972 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6975 esac
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -n "$OBJDUMP"; then
6994 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7013 OBJDUMP=$ac_cv_prog_OBJDUMP
7014 if test -n "$OBJDUMP"; then
7015 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7016 $as_echo "$OBJDUMP" >&6; }
7017 else
7018 { $as_echo "$as_me:$LINENO: result: no" >&5
7019 $as_echo "no" >&6; }
7024 if test -z "$ac_cv_prog_OBJDUMP"; then
7025 ac_ct_OBJDUMP=$OBJDUMP
7026 # Extract the first word of "objdump", so it can be a program name with args.
7027 set dummy objdump; ac_word=$2
7028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$ac_ct_OBJDUMP"; then
7034 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7049 IFS=$as_save_IFS
7053 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7054 if test -n "$ac_ct_OBJDUMP"; then
7055 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7056 $as_echo "$ac_ct_OBJDUMP" >&6; }
7057 else
7058 { $as_echo "$as_me:$LINENO: result: no" >&5
7059 $as_echo "no" >&6; }
7062 if test "x$ac_ct_OBJDUMP" = x; then
7063 OBJDUMP="false"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066 yes:)
7067 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071 OBJDUMP=$ac_ct_OBJDUMP
7073 else
7074 OBJDUMP="$ac_cv_prog_OBJDUMP"
7077 test -z "$OBJDUMP" && OBJDUMP=objdump
7087 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7088 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7089 if test "${lt_cv_deplibs_check_method+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7091 else
7092 lt_cv_file_magic_cmd='$MAGIC_CMD'
7093 lt_cv_file_magic_test_file=
7094 lt_cv_deplibs_check_method='unknown'
7095 # Need to set the preceding variable on all platforms that support
7096 # interlibrary dependencies.
7097 # 'none' -- dependencies not supported.
7098 # `unknown' -- same as none, but documents that we really don't know.
7099 # 'pass_all' -- all dependencies passed with no checks.
7100 # 'test_compile' -- check by making test program.
7101 # 'file_magic [[regex]]' -- check by looking for files in library path
7102 # which responds to the $file_magic_cmd with a given extended regex.
7103 # If you have `file' or equivalent on your system and you're not sure
7104 # whether `pass_all' will *always* work, you probably want this one.
7106 case $host_os in
7107 aix[4-9]*)
7108 lt_cv_deplibs_check_method=pass_all
7111 beos*)
7112 lt_cv_deplibs_check_method=pass_all
7115 bsdi[45]*)
7116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7117 lt_cv_file_magic_cmd='/usr/bin/file -L'
7118 lt_cv_file_magic_test_file=/shlib/libc.so
7121 cygwin*)
7122 # func_win32_libid is a shell function defined in ltmain.sh
7123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7124 lt_cv_file_magic_cmd='func_win32_libid'
7127 mingw* | pw32*)
7128 # Base MSYS/MinGW do not provide the 'file' command needed by
7129 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7130 # unless we find 'file', for example because we are cross-compiling.
7131 if ( file / ) >/dev/null 2>&1; then
7132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7133 lt_cv_file_magic_cmd='func_win32_libid'
7134 else
7135 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7136 lt_cv_file_magic_cmd='$OBJDUMP -f'
7140 cegcc)
7141 # use the weaker test based on 'objdump'. See mingw*.
7142 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7143 lt_cv_file_magic_cmd='$OBJDUMP -f'
7146 darwin* | rhapsody*)
7147 lt_cv_deplibs_check_method=pass_all
7150 freebsd* | dragonfly*)
7151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7152 case $host_cpu in
7153 i*86 )
7154 # Not sure whether the presence of OpenBSD here was a mistake.
7155 # Let's accept both of them until this is cleared up.
7156 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7157 lt_cv_file_magic_cmd=/usr/bin/file
7158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7160 esac
7161 else
7162 lt_cv_deplibs_check_method=pass_all
7166 gnu*)
7167 lt_cv_deplibs_check_method=pass_all
7170 hpux10.20* | hpux11*)
7171 lt_cv_file_magic_cmd=/usr/bin/file
7172 case $host_cpu in
7173 ia64*)
7174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7175 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7177 hppa*64*)
7178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7179 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7183 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7185 esac
7188 interix[3-9]*)
7189 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7193 irix5* | irix6* | nonstopux*)
7194 case $LD in
7195 *-32|*"-32 ") libmagic=32-bit;;
7196 *-n32|*"-n32 ") libmagic=N32;;
7197 *-64|*"-64 ") libmagic=64-bit;;
7198 *) libmagic=never-match;;
7199 esac
7200 lt_cv_deplibs_check_method=pass_all
7203 # This must be Linux ELF.
7204 linux* | k*bsd*-gnu)
7205 lt_cv_deplibs_check_method=pass_all
7208 netbsd*)
7209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7211 else
7212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7216 newos6*)
7217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7218 lt_cv_file_magic_cmd=/usr/bin/file
7219 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7222 *nto* | *qnx*)
7223 lt_cv_deplibs_check_method=pass_all
7226 openbsd*)
7227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7229 else
7230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7234 osf3* | osf4* | osf5*)
7235 lt_cv_deplibs_check_method=pass_all
7238 rdos*)
7239 lt_cv_deplibs_check_method=pass_all
7242 solaris*)
7243 lt_cv_deplibs_check_method=pass_all
7246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7247 lt_cv_deplibs_check_method=pass_all
7250 sysv4 | sysv4.3*)
7251 case $host_vendor in
7252 motorola)
7253 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]'
7254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7256 ncr)
7257 lt_cv_deplibs_check_method=pass_all
7259 sequent)
7260 lt_cv_file_magic_cmd='/bin/file'
7261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7263 sni)
7264 lt_cv_file_magic_cmd='/bin/file'
7265 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7266 lt_cv_file_magic_test_file=/lib/libc.so
7268 siemens)
7269 lt_cv_deplibs_check_method=pass_all
7272 lt_cv_deplibs_check_method=pass_all
7274 esac
7277 tpf*)
7278 lt_cv_deplibs_check_method=pass_all
7280 esac
7283 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7284 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7285 file_magic_cmd=$lt_cv_file_magic_cmd
7286 deplibs_check_method=$lt_cv_deplibs_check_method
7287 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}ar; ac_word=$2
7303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_AR+set}" = set; then
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$AR"; then
7309 ac_cv_prog_AR="$AR" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_AR="${ac_tool_prefix}ar"
7319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7322 done
7323 done
7324 IFS=$as_save_IFS
7328 AR=$ac_cv_prog_AR
7329 if test -n "$AR"; then
7330 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7331 $as_echo "$AR" >&6; }
7332 else
7333 { $as_echo "$as_me:$LINENO: result: no" >&5
7334 $as_echo "no" >&6; }
7339 if test -z "$ac_cv_prog_AR"; then
7340 ac_ct_AR=$AR
7341 # Extract the first word of "ar", so it can be a program name with args.
7342 set dummy ar; ac_word=$2
7343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$ac_ct_AR"; then
7349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_AR="ar"
7359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7362 done
7363 done
7364 IFS=$as_save_IFS
7368 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7369 if test -n "$ac_ct_AR"; then
7370 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7371 $as_echo "$ac_ct_AR" >&6; }
7372 else
7373 { $as_echo "$as_me:$LINENO: result: no" >&5
7374 $as_echo "no" >&6; }
7377 if test "x$ac_ct_AR" = x; then
7378 AR="false"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386 AR=$ac_ct_AR
7388 else
7389 AR="$ac_cv_prog_AR"
7392 test -z "$AR" && AR=ar
7393 test -z "$AR_FLAGS" && AR_FLAGS=cru
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}strip; ac_word=$2
7408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if test "${ac_cv_prog_STRIP+set}" = set; then
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$STRIP"; then
7414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7429 IFS=$as_save_IFS
7433 STRIP=$ac_cv_prog_STRIP
7434 if test -n "$STRIP"; then
7435 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7436 $as_echo "$STRIP" >&6; }
7437 else
7438 { $as_echo "$as_me:$LINENO: result: no" >&5
7439 $as_echo "no" >&6; }
7444 if test -z "$ac_cv_prog_STRIP"; then
7445 ac_ct_STRIP=$STRIP
7446 # Extract the first word of "strip", so it can be a program name with args.
7447 set dummy strip; ac_word=$2
7448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_STRIP"; then
7454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_ac_ct_STRIP="strip"
7464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7467 done
7468 done
7469 IFS=$as_save_IFS
7473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7474 if test -n "$ac_ct_STRIP"; then
7475 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7476 $as_echo "$ac_ct_STRIP" >&6; }
7477 else
7478 { $as_echo "$as_me:$LINENO: result: no" >&5
7479 $as_echo "no" >&6; }
7482 if test "x$ac_ct_STRIP" = x; then
7483 STRIP=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 STRIP=$ac_ct_STRIP
7493 else
7494 STRIP="$ac_cv_prog_STRIP"
7497 test -z "$STRIP" && STRIP=:
7504 if test -n "$ac_tool_prefix"; then
7505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if test "${ac_cv_prog_RANLIB+set}" = set; then
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$RANLIB"; then
7513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7532 RANLIB=$ac_cv_prog_RANLIB
7533 if test -n "$RANLIB"; then
7534 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7535 $as_echo "$RANLIB" >&6; }
7536 else
7537 { $as_echo "$as_me:$LINENO: result: no" >&5
7538 $as_echo "no" >&6; }
7543 if test -z "$ac_cv_prog_RANLIB"; then
7544 ac_ct_RANLIB=$RANLIB
7545 # Extract the first word of "ranlib", so it can be a program name with args.
7546 set dummy ranlib; ac_word=$2
7547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7550 $as_echo_n "(cached) " >&6
7551 else
7552 if test -n "$ac_ct_RANLIB"; then
7553 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_ac_ct_RANLIB="ranlib"
7563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7566 done
7567 done
7568 IFS=$as_save_IFS
7572 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7573 if test -n "$ac_ct_RANLIB"; then
7574 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7575 $as_echo "$ac_ct_RANLIB" >&6; }
7576 else
7577 { $as_echo "$as_me:$LINENO: result: no" >&5
7578 $as_echo "no" >&6; }
7581 if test "x$ac_ct_RANLIB" = x; then
7582 RANLIB=":"
7583 else
7584 case $cross_compiling:$ac_tool_warned in
7585 yes:)
7586 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588 ac_tool_warned=yes ;;
7589 esac
7590 RANLIB=$ac_ct_RANLIB
7592 else
7593 RANLIB="$ac_cv_prog_RANLIB"
7596 test -z "$RANLIB" && RANLIB=:
7603 # Determine commands to create old-style static archives.
7604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7605 old_postinstall_cmds='chmod 644 $oldlib'
7606 old_postuninstall_cmds=
7608 if test -n "$RANLIB"; then
7609 case $host_os in
7610 openbsd*)
7611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7616 esac
7617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7653 # If no C compiler was specified, use CC.
7654 LTCC=${LTCC-"$CC"}
7656 # If no C compiler flags were specified, use CFLAGS.
7657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7659 # Allow CC to be a program name with arguments.
7660 compiler=$CC
7663 # Check for command to grab the raw symbol name followed by C symbol from nm.
7664 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7665 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7666 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7668 else
7670 # These are sane defaults that work on at least a few old systems.
7671 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7673 # Character class describing NM global symbol codes.
7674 symcode='[BCDEGRST]'
7676 # Regexp to match symbols that can be accessed directly from C.
7677 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7679 # Define system-specific variables.
7680 case $host_os in
7681 aix*)
7682 symcode='[BCDT]'
7684 cygwin* | mingw* | pw32* | cegcc*)
7685 symcode='[ABCDGISTW]'
7687 hpux*)
7688 if test "$host_cpu" = ia64; then
7689 symcode='[ABCDEGRST]'
7692 irix* | nonstopux*)
7693 symcode='[BCDEGRST]'
7695 osf*)
7696 symcode='[BCDEGQRST]'
7698 solaris*)
7699 symcode='[BDRT]'
7701 sco3.2v5*)
7702 symcode='[DT]'
7704 sysv4.2uw2*)
7705 symcode='[DT]'
7707 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7708 symcode='[ABDT]'
7710 sysv4)
7711 symcode='[DFNSTU]'
7713 esac
7715 # If we're using GNU nm, then use its standard symbol codes.
7716 case `$NM -V 2>&1` in
7717 *GNU* | *'with BFD'*)
7718 symcode='[ABCDGIRSTW]' ;;
7719 esac
7721 # Transform an extracted symbol line into a proper C declaration.
7722 # Some systems (esp. on ia64) link data and code symbols differently,
7723 # so use this general approach.
7724 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7726 # Transform an extracted symbol line into symbol name and symbol address
7727 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7728 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'"
7730 # Handle CRLF in mingw tool chain
7731 opt_cr=
7732 case $build_os in
7733 mingw*)
7734 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7736 esac
7738 # Try without a prefix underscore, then with it.
7739 for ac_symprfx in "" "_"; do
7741 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7742 symxfrm="\\1 $ac_symprfx\\2 \\2"
7744 # Write the raw and C identifiers.
7745 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7746 # Fake it for dumpbin and say T for any non-static function
7747 # and D for any global variable.
7748 # Also find C++ and __fastcall symbols from MSVC++,
7749 # which start with @ or ?.
7750 lt_cv_sys_global_symbol_pipe="$AWK '"\
7751 " {last_section=section; section=\$ 3};"\
7752 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7753 " \$ 0!~/External *\|/{next};"\
7754 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7755 " {if(hide[section]) next};"\
7756 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7757 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7758 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7759 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7760 " ' prfx=^$ac_symprfx"
7761 else
7762 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7765 # Check to see that the pipe works correctly.
7766 pipe_works=no
7768 rm -f conftest*
7769 cat > conftest.$ac_ext <<_LT_EOF
7770 #ifdef __cplusplus
7771 extern "C" {
7772 #endif
7773 char nm_test_var;
7774 void nm_test_func(void);
7775 void nm_test_func(void){}
7776 #ifdef __cplusplus
7778 #endif
7779 int main(){nm_test_var='a';nm_test_func();return(0);}
7780 _LT_EOF
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; then
7787 # Now try to grab the symbols.
7788 nlist=conftest.nm
7789 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7790 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7791 ac_status=$?
7792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && test -s "$nlist"; then
7794 # Try sorting and uniquifying the output.
7795 if sort "$nlist" | uniq > "$nlist"T; then
7796 mv -f "$nlist"T "$nlist"
7797 else
7798 rm -f "$nlist"T
7801 # Make sure that we snagged all the symbols we need.
7802 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7803 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7804 cat <<_LT_EOF > conftest.$ac_ext
7805 #ifdef __cplusplus
7806 extern "C" {
7807 #endif
7809 _LT_EOF
7810 # Now generate the symbol file.
7811 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7813 cat <<_LT_EOF >> conftest.$ac_ext
7815 /* The mapping between symbol names and symbols. */
7816 const struct {
7817 const char *name;
7818 void *address;
7820 lt__PROGRAM__LTX_preloaded_symbols[] =
7822 { "@PROGRAM@", (void *) 0 },
7823 _LT_EOF
7824 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7825 cat <<\_LT_EOF >> conftest.$ac_ext
7826 {0, (void *) 0}
7829 /* This works around a problem in FreeBSD linker */
7830 #ifdef FREEBSD_WORKAROUND
7831 static const void *lt_preloaded_setup() {
7832 return lt__PROGRAM__LTX_preloaded_symbols;
7834 #endif
7836 #ifdef __cplusplus
7838 #endif
7839 _LT_EOF
7840 # Now try linking the two files.
7841 mv conftest.$ac_objext conftstm.$ac_objext
7842 lt_save_LIBS="$LIBS"
7843 lt_save_CFLAGS="$CFLAGS"
7844 LIBS="conftstm.$ac_objext"
7845 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>&5
7848 ac_status=$?
7849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7851 pipe_works=yes
7853 LIBS="$lt_save_LIBS"
7854 CFLAGS="$lt_save_CFLAGS"
7855 else
7856 echo "cannot find nm_test_func in $nlist" >&5
7858 else
7859 echo "cannot find nm_test_var in $nlist" >&5
7861 else
7862 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7864 else
7865 echo "$progname: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7868 rm -rf conftest* conftst*
7870 # Do not use the global_symbol_pipe unless it works.
7871 if test "$pipe_works" = yes; then
7872 break
7873 else
7874 lt_cv_sys_global_symbol_pipe=
7876 done
7880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7881 lt_cv_sys_global_symbol_to_cdecl=
7883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7884 { $as_echo "$as_me:$LINENO: result: failed" >&5
7885 $as_echo "failed" >&6; }
7886 else
7887 { $as_echo "$as_me:$LINENO: result: ok" >&5
7888 $as_echo "ok" >&6; }
7912 # Check whether --enable-libtool-lock was given.
7913 if test "${enable_libtool_lock+set}" = set; then
7914 enableval=$enable_libtool_lock;
7917 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7919 # Some flags need to be propagated to the compiler or linker for good
7920 # libtool support.
7921 case $host in
7922 ia64-*-hpux*)
7923 # Find out which ABI we are using.
7924 echo 'int i;' > conftest.$ac_ext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926 (eval $ac_compile) 2>&5
7927 ac_status=$?
7928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; then
7930 case `/usr/bin/file conftest.$ac_objext` in
7931 *ELF-32*)
7932 HPUX_IA64_MODE="32"
7934 *ELF-64*)
7935 HPUX_IA64_MODE="64"
7937 esac
7939 rm -rf conftest*
7941 *-*-irix6*)
7942 # Find out which ABI we are using.
7943 echo '#line 7943 "configure"' > conftest.$ac_ext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>&5
7946 ac_status=$?
7947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; then
7949 if test "$lt_cv_prog_gnu_ld" = yes; then
7950 case `/usr/bin/file conftest.$ac_objext` in
7951 *32-bit*)
7952 LD="${LD-ld} -melf32bsmip"
7954 *N32*)
7955 LD="${LD-ld} -melf32bmipn32"
7957 *64-bit*)
7958 LD="${LD-ld} -melf64bmip"
7960 esac
7961 else
7962 case `/usr/bin/file conftest.$ac_objext` in
7963 *32-bit*)
7964 LD="${LD-ld} -32"
7966 *N32*)
7967 LD="${LD-ld} -n32"
7969 *64-bit*)
7970 LD="${LD-ld} -64"
7972 esac
7975 rm -rf conftest*
7978 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7979 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7980 # Find out which ABI we are using.
7981 echo 'int i;' > conftest.$ac_ext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>&5
7984 ac_status=$?
7985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; then
7987 case `/usr/bin/file conftest.o` in
7988 *32-bit*)
7989 case $host in
7990 x86_64-*kfreebsd*-gnu)
7991 LD="${LD-ld} -m elf_i386_fbsd"
7993 x86_64-*linux*)
7994 LD="${LD-ld} -m elf_i386"
7996 ppc64-*linux*|powerpc64-*linux*)
7997 LD="${LD-ld} -m elf32ppclinux"
7999 s390x-*linux*)
8000 LD="${LD-ld} -m elf_s390"
8002 sparc64-*linux*)
8003 LD="${LD-ld} -m elf32_sparc"
8005 esac
8007 *64-bit*)
8008 case $host in
8009 x86_64-*kfreebsd*-gnu)
8010 LD="${LD-ld} -m elf_x86_64_fbsd"
8012 x86_64-*linux*)
8013 LD="${LD-ld} -m elf_x86_64"
8015 ppc*-*linux*|powerpc*-*linux*)
8016 LD="${LD-ld} -m elf64ppc"
8018 s390*-*linux*|s390*-*tpf*)
8019 LD="${LD-ld} -m elf64_s390"
8021 sparc*-*linux*)
8022 LD="${LD-ld} -m elf64_sparc"
8024 esac
8026 esac
8028 rm -rf conftest*
8031 *-*-sco3.2v5*)
8032 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8033 SAVE_CFLAGS="$CFLAGS"
8034 CFLAGS="$CFLAGS -belf"
8035 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8036 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8037 if test "${lt_cv_cc_needs_belf+set}" = set; then
8038 $as_echo_n "(cached) " >&6
8039 else
8040 ac_ext=c
8041 ac_cpp='$CPP $CPPFLAGS'
8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8054 main ()
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_link") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest$ac_exeext && {
8079 test "$cross_compiling" = yes ||
8080 $as_test_x conftest$ac_exeext
8081 }; then
8082 lt_cv_cc_needs_belf=yes
8083 else
8084 $as_echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 lt_cv_cc_needs_belf=no
8090 rm -rf conftest.dSYM
8091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8092 conftest$ac_exeext conftest.$ac_ext
8093 ac_ext=c
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8101 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8102 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8103 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8104 CFLAGS="$SAVE_CFLAGS"
8107 sparc*-*solaris*)
8108 # Find out which ABI we are using.
8109 echo 'int i;' > conftest.$ac_ext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>&5
8112 ac_status=$?
8113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; then
8115 case `/usr/bin/file conftest.o` in
8116 *64-bit*)
8117 case $lt_cv_prog_gnu_ld in
8118 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8120 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8121 LD="${LD-ld} -64"
8124 esac
8126 esac
8128 rm -rf conftest*
8130 esac
8132 need_locks="$enable_libtool_lock"
8135 case $host_os in
8136 rhapsody* | darwin*)
8137 if test -n "$ac_tool_prefix"; then
8138 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8143 $as_echo_n "(cached) " >&6
8144 else
8145 if test -n "$DSYMUTIL"; then
8146 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8159 done
8160 done
8161 IFS=$as_save_IFS
8165 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8166 if test -n "$DSYMUTIL"; then
8167 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8168 $as_echo "$DSYMUTIL" >&6; }
8169 else
8170 { $as_echo "$as_me:$LINENO: result: no" >&5
8171 $as_echo "no" >&6; }
8176 if test -z "$ac_cv_prog_DSYMUTIL"; then
8177 ac_ct_DSYMUTIL=$DSYMUTIL
8178 # Extract the first word of "dsymutil", so it can be a program name with args.
8179 set dummy dsymutil; ac_word=$2
8180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$ac_ct_DSYMUTIL"; then
8186 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8201 IFS=$as_save_IFS
8205 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8206 if test -n "$ac_ct_DSYMUTIL"; then
8207 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8208 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8209 else
8210 { $as_echo "$as_me:$LINENO: result: no" >&5
8211 $as_echo "no" >&6; }
8214 if test "x$ac_ct_DSYMUTIL" = x; then
8215 DSYMUTIL=":"
8216 else
8217 case $cross_compiling:$ac_tool_warned in
8218 yes:)
8219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8222 esac
8223 DSYMUTIL=$ac_ct_DSYMUTIL
8225 else
8226 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8229 if test -n "$ac_tool_prefix"; then
8230 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$NMEDIT"; then
8238 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8251 done
8252 done
8253 IFS=$as_save_IFS
8257 NMEDIT=$ac_cv_prog_NMEDIT
8258 if test -n "$NMEDIT"; then
8259 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8260 $as_echo "$NMEDIT" >&6; }
8261 else
8262 { $as_echo "$as_me:$LINENO: result: no" >&5
8263 $as_echo "no" >&6; }
8268 if test -z "$ac_cv_prog_NMEDIT"; then
8269 ac_ct_NMEDIT=$NMEDIT
8270 # Extract the first word of "nmedit", so it can be a program name with args.
8271 set dummy nmedit; ac_word=$2
8272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$ac_ct_NMEDIT"; then
8278 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8291 done
8292 done
8293 IFS=$as_save_IFS
8297 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8298 if test -n "$ac_ct_NMEDIT"; then
8299 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8300 $as_echo "$ac_ct_NMEDIT" >&6; }
8301 else
8302 { $as_echo "$as_me:$LINENO: result: no" >&5
8303 $as_echo "no" >&6; }
8306 if test "x$ac_ct_NMEDIT" = x; then
8307 NMEDIT=":"
8308 else
8309 case $cross_compiling:$ac_tool_warned in
8310 yes:)
8311 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8314 esac
8315 NMEDIT=$ac_ct_NMEDIT
8317 else
8318 NMEDIT="$ac_cv_prog_NMEDIT"
8321 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_LIPO+set}" = set; then
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$LIPO"; then
8330 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8343 done
8344 done
8345 IFS=$as_save_IFS
8349 LIPO=$ac_cv_prog_LIPO
8350 if test -n "$LIPO"; then
8351 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8352 $as_echo "$LIPO" >&6; }
8353 else
8354 { $as_echo "$as_me:$LINENO: result: no" >&5
8355 $as_echo "no" >&6; }
8360 if test -z "$ac_cv_prog_LIPO"; then
8361 ac_ct_LIPO=$LIPO
8362 # Extract the first word of "lipo", so it can be a program name with args.
8363 set dummy lipo; ac_word=$2
8364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$ac_ct_LIPO"; then
8370 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_ac_ct_LIPO="lipo"
8380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8383 done
8384 done
8385 IFS=$as_save_IFS
8389 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8390 if test -n "$ac_ct_LIPO"; then
8391 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8392 $as_echo "$ac_ct_LIPO" >&6; }
8393 else
8394 { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8398 if test "x$ac_ct_LIPO" = x; then
8399 LIPO=":"
8400 else
8401 case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407 LIPO=$ac_ct_LIPO
8409 else
8410 LIPO="$ac_cv_prog_LIPO"
8413 if test -n "$ac_tool_prefix"; then
8414 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8415 set dummy ${ac_tool_prefix}otool; ac_word=$2
8416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if test "${ac_cv_prog_OTOOL+set}" = set; then
8419 $as_echo_n "(cached) " >&6
8420 else
8421 if test -n "$OTOOL"; then
8422 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8431 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8435 done
8436 done
8437 IFS=$as_save_IFS
8441 OTOOL=$ac_cv_prog_OTOOL
8442 if test -n "$OTOOL"; then
8443 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8444 $as_echo "$OTOOL" >&6; }
8445 else
8446 { $as_echo "$as_me:$LINENO: result: no" >&5
8447 $as_echo "no" >&6; }
8452 if test -z "$ac_cv_prog_OTOOL"; then
8453 ac_ct_OTOOL=$OTOOL
8454 # Extract the first word of "otool", so it can be a program name with args.
8455 set dummy otool; ac_word=$2
8456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8459 $as_echo_n "(cached) " >&6
8460 else
8461 if test -n "$ac_ct_OTOOL"; then
8462 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_prog_ac_ct_OTOOL="otool"
8472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8475 done
8476 done
8477 IFS=$as_save_IFS
8481 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8482 if test -n "$ac_ct_OTOOL"; then
8483 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8484 $as_echo "$ac_ct_OTOOL" >&6; }
8485 else
8486 { $as_echo "$as_me:$LINENO: result: no" >&5
8487 $as_echo "no" >&6; }
8490 if test "x$ac_ct_OTOOL" = x; then
8491 OTOOL=":"
8492 else
8493 case $cross_compiling:$ac_tool_warned in
8494 yes:)
8495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned=yes ;;
8498 esac
8499 OTOOL=$ac_ct_OTOOL
8501 else
8502 OTOOL="$ac_cv_prog_OTOOL"
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8511 $as_echo_n "(cached) " >&6
8512 else
8513 if test -n "$OTOOL64"; then
8514 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8515 else
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8527 done
8528 done
8529 IFS=$as_save_IFS
8533 OTOOL64=$ac_cv_prog_OTOOL64
8534 if test -n "$OTOOL64"; then
8535 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8536 $as_echo "$OTOOL64" >&6; }
8537 else
8538 { $as_echo "$as_me:$LINENO: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_OTOOL64"; then
8545 ac_ct_OTOOL64=$OTOOL64
8546 # Extract the first word of "otool64", so it can be a program name with args.
8547 set dummy otool64; ac_word=$2
8548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$ac_ct_OTOOL64"; then
8554 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_prog_ac_ct_OTOOL64="otool64"
8564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8567 done
8568 done
8569 IFS=$as_save_IFS
8573 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8574 if test -n "$ac_ct_OTOOL64"; then
8575 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8576 $as_echo "$ac_ct_OTOOL64" >&6; }
8577 else
8578 { $as_echo "$as_me:$LINENO: result: no" >&5
8579 $as_echo "no" >&6; }
8582 if test "x$ac_ct_OTOOL64" = x; then
8583 OTOOL64=":"
8584 else
8585 case $cross_compiling:$ac_tool_warned in
8586 yes:)
8587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8590 esac
8591 OTOOL64=$ac_ct_OTOOL64
8593 else
8594 OTOOL64="$ac_cv_prog_OTOOL64"
8623 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8624 $as_echo_n "checking for -single_module linker flag... " >&6; }
8625 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8626 $as_echo_n "(cached) " >&6
8627 else
8628 lt_cv_apple_cc_single_mod=no
8629 if test -z "${LT_MULTI_MODULE}"; then
8630 # By default we will add the -single_module flag. You can override
8631 # by either setting the environment variable LT_MULTI_MODULE
8632 # non-empty at configure time, or by adding -multi_module to the
8633 # link flags.
8634 rm -rf libconftest.dylib*
8635 echo "int foo(void){return 1;}" > conftest.c
8636 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8637 -dynamiclib -Wl,-single_module conftest.c" >&5
8638 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8639 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8640 _lt_result=$?
8641 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8642 lt_cv_apple_cc_single_mod=yes
8643 else
8644 cat conftest.err >&5
8646 rm -rf libconftest.dylib*
8647 rm -f conftest.*
8650 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8651 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8652 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8653 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8654 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8655 $as_echo_n "(cached) " >&6
8656 else
8657 lt_cv_ld_exported_symbols_list=no
8658 save_LDFLAGS=$LDFLAGS
8659 echo "_main" > conftest.sym
8660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8669 main ()
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8678 case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681 esac
8682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683 $as_echo "$ac_try_echo") >&5
8684 (eval "$ac_link") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest$ac_exeext && {
8694 test "$cross_compiling" = yes ||
8695 $as_test_x conftest$ac_exeext
8696 }; then
8697 lt_cv_ld_exported_symbols_list=yes
8698 else
8699 $as_echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 lt_cv_ld_exported_symbols_list=no
8705 rm -rf conftest.dSYM
8706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LDFLAGS="$save_LDFLAGS"
8711 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8712 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8713 case $host_os in
8714 rhapsody* | darwin1.[012])
8715 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8716 darwin1.*)
8717 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8718 darwin*) # darwin 5.x on
8719 # if running on 10.5 or later, the deployment target defaults
8720 # to the OS version, if on x86, and 10.4, the deployment
8721 # target defaults to 10.4. Don't you love it?
8722 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8723 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8724 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8725 10.[012]*)
8726 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8727 10.*)
8728 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8729 esac
8731 esac
8732 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8733 _lt_dar_single_mod='$single_module'
8735 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8736 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8737 else
8738 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8740 if test "$DSYMUTIL" != ":"; then
8741 _lt_dsymutil='~$DSYMUTIL $lib || :'
8742 else
8743 _lt_dsymutil=
8746 esac
8749 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8750 $as_echo_n "checking for ANSI C header files... " >&6; }
8751 if test "${ac_cv_header_stdc+set}" = set; then
8752 $as_echo_n "(cached) " >&6
8753 else
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h. */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 #include <stdlib.h>
8761 #include <stdarg.h>
8762 #include <string.h>
8763 #include <float.h>
8766 main ()
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (ac_try="$ac_compile"
8775 case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778 esac
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781 (eval "$ac_compile") 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest.$ac_objext; then
8791 ac_cv_header_stdc=yes
8792 else
8793 $as_echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_cv_header_stdc=no
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 if test $ac_cv_header_stdc = yes; then
8802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 #include <string.h>
8811 _ACEOF
8812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8813 $EGREP "memchr" >/dev/null 2>&1; then
8815 else
8816 ac_cv_header_stdc=no
8818 rm -f conftest*
8822 if test $ac_cv_header_stdc = yes; then
8823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 #include <stdlib.h>
8832 _ACEOF
8833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8834 $EGREP "free" >/dev/null 2>&1; then
8836 else
8837 ac_cv_header_stdc=no
8839 rm -f conftest*
8843 if test $ac_cv_header_stdc = yes; then
8844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8845 if test "$cross_compiling" = yes; then
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <ctype.h>
8855 #include <stdlib.h>
8856 #if ((' ' & 0x0FF) == 0x020)
8857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8859 #else
8860 # define ISLOWER(c) \
8861 (('a' <= (c) && (c) <= 'i') \
8862 || ('j' <= (c) && (c) <= 'r') \
8863 || ('s' <= (c) && (c) <= 'z'))
8864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8865 #endif
8867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8869 main ()
8871 int i;
8872 for (i = 0; i < 256; i++)
8873 if (XOR (islower (i), ISLOWER (i))
8874 || toupper (i) != TOUPPER (i))
8875 return 2;
8876 return 0;
8878 _ACEOF
8879 rm -f conftest$ac_exeext
8880 if { (ac_try="$ac_link"
8881 case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8886 $as_echo "$ac_try_echo") >&5
8887 (eval "$ac_link") 2>&5
8888 ac_status=$?
8889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8891 { (case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894 esac
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897 (eval "$ac_try") 2>&5
8898 ac_status=$?
8899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8902 else
8903 $as_echo "$as_me: program exited with status $ac_status" >&5
8904 $as_echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ( exit $ac_status )
8908 ac_cv_header_stdc=no
8910 rm -rf conftest.dSYM
8911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8918 $as_echo "$ac_cv_header_stdc" >&6; }
8919 if test $ac_cv_header_stdc = yes; then
8921 cat >>confdefs.h <<\_ACEOF
8922 #define STDC_HEADERS 1
8923 _ACEOF
8927 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8937 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8938 inttypes.h stdint.h unistd.h
8940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 $as_echo_n "checking for $ac_header... " >&6; }
8943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8944 $as_echo_n "(cached) " >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8954 #include <$ac_header>
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (ac_try="$ac_compile"
8958 case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8961 esac
8962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8963 $as_echo "$ac_try_echo") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest.$ac_objext; then
8974 eval "$as_ac_Header=yes"
8975 else
8976 $as_echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 eval "$as_ac_Header=no"
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 ac_res=`eval 'as_val=${'$as_ac_Header'}
8985 $as_echo "$as_val"'`
8986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8987 $as_echo "$ac_res" >&6; }
8988 as_val=`eval 'as_val=${'$as_ac_Header'}
8989 $as_echo "$as_val"'`
8990 if test "x$as_val" = x""yes; then
8991 cat >>confdefs.h <<_ACEOF
8992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993 _ACEOF
8997 done
9001 for ac_header in dlfcn.h
9003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9005 $as_echo_n "checking for $ac_header... " >&6; }
9006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9007 $as_echo_n "(cached) " >&6
9008 else
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 $ac_includes_default
9017 #include <$ac_header>
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (ac_try="$ac_compile"
9021 case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024 esac
9025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9026 $as_echo "$ac_try_echo") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.$ac_objext; then
9037 eval "$as_ac_Header=yes"
9038 else
9039 $as_echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 eval "$as_ac_Header=no"
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 ac_res=`eval 'as_val=${'$as_ac_Header'}
9048 $as_echo "$as_val"'`
9049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9050 $as_echo "$ac_res" >&6; }
9051 as_val=`eval 'as_val=${'$as_ac_Header'}
9052 $as_echo "$as_val"'`
9053 if test "x$as_val" = x""yes; then
9054 cat >>confdefs.h <<_ACEOF
9055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9056 _ACEOF
9060 done
9064 # Set options
9068 enable_dlopen=no
9071 enable_win32_dll=no
9074 # Check whether --enable-shared was given.
9075 if test "${enable_shared+set}" = set; then
9076 enableval=$enable_shared; p=${PACKAGE-default}
9077 case $enableval in
9078 yes) enable_shared=yes ;;
9079 no) enable_shared=no ;;
9081 enable_shared=no
9082 # Look at the argument we got. We use all the common list separators.
9083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9084 for pkg in $enableval; do
9085 IFS="$lt_save_ifs"
9086 if test "X$pkg" = "X$p"; then
9087 enable_shared=yes
9089 done
9090 IFS="$lt_save_ifs"
9092 esac
9093 else
9094 enable_shared=yes
9105 # Check whether --enable-static was given.
9106 if test "${enable_static+set}" = set; then
9107 enableval=$enable_static; p=${PACKAGE-default}
9108 case $enableval in
9109 yes) enable_static=yes ;;
9110 no) enable_static=no ;;
9112 enable_static=no
9113 # Look at the argument we got. We use all the common list separators.
9114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9115 for pkg in $enableval; do
9116 IFS="$lt_save_ifs"
9117 if test "X$pkg" = "X$p"; then
9118 enable_static=yes
9120 done
9121 IFS="$lt_save_ifs"
9123 esac
9124 else
9125 enable_static=yes
9137 # Check whether --with-pic was given.
9138 if test "${with_pic+set}" = set; then
9139 withval=$with_pic; pic_mode="$withval"
9140 else
9141 pic_mode=default
9145 test -z "$pic_mode" && pic_mode=default
9153 # Check whether --enable-fast-install was given.
9154 if test "${enable_fast_install+set}" = set; then
9155 enableval=$enable_fast_install; p=${PACKAGE-default}
9156 case $enableval in
9157 yes) enable_fast_install=yes ;;
9158 no) enable_fast_install=no ;;
9160 enable_fast_install=no
9161 # Look at the argument we got. We use all the common list separators.
9162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9163 for pkg in $enableval; do
9164 IFS="$lt_save_ifs"
9165 if test "X$pkg" = "X$p"; then
9166 enable_fast_install=yes
9168 done
9169 IFS="$lt_save_ifs"
9171 esac
9172 else
9173 enable_fast_install=yes
9186 # This can be used to rebuild libtool when needed
9187 LIBTOOL_DEPS="$ltmain"
9189 # Always use our own libtool.
9190 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9216 test -z "$LN_S" && LN_S="ln -s"
9231 if test -n "${ZSH_VERSION+set}" ; then
9232 setopt NO_GLOB_SUBST
9235 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9236 $as_echo_n "checking for objdir... " >&6; }
9237 if test "${lt_cv_objdir+set}" = set; then
9238 $as_echo_n "(cached) " >&6
9239 else
9240 rm -f .libs 2>/dev/null
9241 mkdir .libs 2>/dev/null
9242 if test -d .libs; then
9243 lt_cv_objdir=.libs
9244 else
9245 # MS-DOS does not allow filenames that begin with a dot.
9246 lt_cv_objdir=_libs
9248 rmdir .libs 2>/dev/null
9250 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9251 $as_echo "$lt_cv_objdir" >&6; }
9252 objdir=$lt_cv_objdir
9258 cat >>confdefs.h <<_ACEOF
9259 #define LT_OBJDIR "$lt_cv_objdir/"
9260 _ACEOF
9278 case $host_os in
9279 aix3*)
9280 # AIX sometimes has problems with the GCC collect2 program. For some
9281 # reason, if we set the COLLECT_NAMES environment variable, the problems
9282 # vanish in a puff of smoke.
9283 if test "X${COLLECT_NAMES+set}" != Xset; then
9284 COLLECT_NAMES=
9285 export COLLECT_NAMES
9288 esac
9290 # Sed substitution that helps us do robust quoting. It backslashifies
9291 # metacharacters that are still active within double-quoted strings.
9292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9294 # Same as above, but do not quote variable references.
9295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9297 # Sed substitution to delay expansion of an escaped shell variable in a
9298 # double_quote_subst'ed string.
9299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9301 # Sed substitution to delay expansion of an escaped single quote.
9302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9304 # Sed substitution to avoid accidental globbing in evaled expressions
9305 no_glob_subst='s/\*/\\\*/g'
9307 # Global variables:
9308 ofile=libtool
9309 can_build_shared=yes
9311 # All known linkers require a `.a' archive for static linking (except MSVC,
9312 # which needs '.lib').
9313 libext=a
9315 with_gnu_ld="$lt_cv_prog_gnu_ld"
9317 old_CC="$CC"
9318 old_CFLAGS="$CFLAGS"
9320 # Set sane defaults for various variables
9321 test -z "$CC" && CC=cc
9322 test -z "$LTCC" && LTCC=$CC
9323 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9324 test -z "$LD" && LD=ld
9325 test -z "$ac_objext" && ac_objext=o
9327 for cc_temp in $compiler""; do
9328 case $cc_temp in
9329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9331 \-*) ;;
9332 *) break;;
9333 esac
9334 done
9335 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9338 # Only perform the check for file, if the check method requires it
9339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9340 case $deplibs_check_method in
9341 file_magic*)
9342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9343 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9344 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9345 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9346 $as_echo_n "(cached) " >&6
9347 else
9348 case $MAGIC_CMD in
9349 [\\/*] | ?:[\\/]*)
9350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9353 lt_save_MAGIC_CMD="$MAGIC_CMD"
9354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9356 for ac_dir in $ac_dummy; do
9357 IFS="$lt_save_ifs"
9358 test -z "$ac_dir" && ac_dir=.
9359 if test -f $ac_dir/${ac_tool_prefix}file; then
9360 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9361 if test -n "$file_magic_test_file"; then
9362 case $deplibs_check_method in
9363 "file_magic "*)
9364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9367 $EGREP "$file_magic_regex" > /dev/null; then
9369 else
9370 cat <<_LT_EOF 1>&2
9372 *** Warning: the command libtool uses to detect shared libraries,
9373 *** $file_magic_cmd, produces output that libtool cannot recognize.
9374 *** The result is that libtool may fail to recognize shared libraries
9375 *** as such. This will affect the creation of libtool libraries that
9376 *** depend on shared libraries, but programs linked with such libtool
9377 *** libraries will work regardless of this problem. Nevertheless, you
9378 *** may want to report the problem to your system manager and/or to
9379 *** bug-libtool@gnu.org
9381 _LT_EOF
9382 fi ;;
9383 esac
9385 break
9387 done
9388 IFS="$lt_save_ifs"
9389 MAGIC_CMD="$lt_save_MAGIC_CMD"
9391 esac
9394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9395 if test -n "$MAGIC_CMD"; then
9396 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9397 $as_echo "$MAGIC_CMD" >&6; }
9398 else
9399 { $as_echo "$as_me:$LINENO: result: no" >&5
9400 $as_echo "no" >&6; }
9407 if test -z "$lt_cv_path_MAGIC_CMD"; then
9408 if test -n "$ac_tool_prefix"; then
9409 { $as_echo "$as_me:$LINENO: checking for file" >&5
9410 $as_echo_n "checking for file... " >&6; }
9411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9412 $as_echo_n "(cached) " >&6
9413 else
9414 case $MAGIC_CMD in
9415 [\\/*] | ?:[\\/]*)
9416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9419 lt_save_MAGIC_CMD="$MAGIC_CMD"
9420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9422 for ac_dir in $ac_dummy; do
9423 IFS="$lt_save_ifs"
9424 test -z "$ac_dir" && ac_dir=.
9425 if test -f $ac_dir/file; then
9426 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9427 if test -n "$file_magic_test_file"; then
9428 case $deplibs_check_method in
9429 "file_magic "*)
9430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9433 $EGREP "$file_magic_regex" > /dev/null; then
9435 else
9436 cat <<_LT_EOF 1>&2
9438 *** Warning: the command libtool uses to detect shared libraries,
9439 *** $file_magic_cmd, produces output that libtool cannot recognize.
9440 *** The result is that libtool may fail to recognize shared libraries
9441 *** as such. This will affect the creation of libtool libraries that
9442 *** depend on shared libraries, but programs linked with such libtool
9443 *** libraries will work regardless of this problem. Nevertheless, you
9444 *** may want to report the problem to your system manager and/or to
9445 *** bug-libtool@gnu.org
9447 _LT_EOF
9448 fi ;;
9449 esac
9451 break
9453 done
9454 IFS="$lt_save_ifs"
9455 MAGIC_CMD="$lt_save_MAGIC_CMD"
9457 esac
9460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9461 if test -n "$MAGIC_CMD"; then
9462 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9463 $as_echo "$MAGIC_CMD" >&6; }
9464 else
9465 { $as_echo "$as_me:$LINENO: result: no" >&5
9466 $as_echo "no" >&6; }
9470 else
9471 MAGIC_CMD=:
9477 esac
9479 # Use C for the default configuration in the libtool script
9481 lt_save_CC="$CC"
9482 ac_ext=c
9483 ac_cpp='$CPP $CPPFLAGS'
9484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9489 # Source file extension for C test sources.
9490 ac_ext=c
9492 # Object file extension for compiled C test sources.
9493 objext=o
9494 objext=$objext
9496 # Code to be used in simple compile tests
9497 lt_simple_compile_test_code="int some_variable = 0;"
9499 # Code to be used in simple link tests
9500 lt_simple_link_test_code='int main(){return(0);}'
9508 # If no C compiler was specified, use CC.
9509 LTCC=${LTCC-"$CC"}
9511 # If no C compiler flags were specified, use CFLAGS.
9512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9514 # Allow CC to be a program name with arguments.
9515 compiler=$CC
9517 # Save the default compiler, since it gets overwritten when the other
9518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9519 compiler_DEFAULT=$CC
9521 # save warnings/boilerplate of simple test code
9522 ac_outfile=conftest.$ac_objext
9523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9525 _lt_compiler_boilerplate=`cat conftest.err`
9526 $RM conftest*
9528 ac_outfile=conftest.$ac_objext
9529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9531 _lt_linker_boilerplate=`cat conftest.err`
9532 $RM -r conftest*
9535 ## CAVEAT EMPTOR:
9536 ## There is no encapsulation within the following macros, do not change
9537 ## the running order or otherwise move them around unless you know exactly
9538 ## what you are doing...
9539 if test -n "$compiler"; then
9541 lt_prog_compiler_no_builtin_flag=
9543 if test "$GCC" = yes; then
9544 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9546 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9548 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9549 $as_echo_n "(cached) " >&6
9550 else
9551 lt_cv_prog_compiler_rtti_exceptions=no
9552 ac_outfile=conftest.$ac_objext
9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554 lt_compiler_flag="-fno-rtti -fno-exceptions"
9555 # Insert the option either (1) after the last *FLAGS variable, or
9556 # (2) before a word containing "conftest.", or (3) at the end.
9557 # Note that $ac_compile itself does not contain backslashes and begins
9558 # with a dollar sign (not a hyphen), so the echo should work correctly.
9559 # The option is referenced via a variable to avoid confusing sed.
9560 lt_compile=`echo "$ac_compile" | $SED \
9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9563 -e 's:$: $lt_compiler_flag:'`
9564 (eval echo "\"\$as_me:9564: $lt_compile\"" >&5)
9565 (eval "$lt_compile" 2>conftest.err)
9566 ac_status=$?
9567 cat conftest.err >&5
9568 echo "$as_me:9568: \$? = $ac_status" >&5
9569 if (exit $ac_status) && test -s "$ac_outfile"; then
9570 # The compiler can only warn and ignore the option if not recognized
9571 # So say no if there are warnings other than the usual output.
9572 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9575 lt_cv_prog_compiler_rtti_exceptions=yes
9578 $RM conftest*
9581 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9582 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9584 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9585 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9586 else
9597 lt_prog_compiler_wl=
9598 lt_prog_compiler_pic=
9599 lt_prog_compiler_static=
9601 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9602 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9604 if test "$GCC" = yes; then
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_static='-static'
9608 case $host_os in
9609 aix*)
9610 # All AIX code is PIC.
9611 if test "$host_cpu" = ia64; then
9612 # AIX 5 now supports IA64 processor
9613 lt_prog_compiler_static='-Bstatic'
9617 amigaos*)
9618 case $host_cpu in
9619 powerpc)
9620 # see comment about AmigaOS4 .so support
9621 lt_prog_compiler_pic='-fPIC'
9623 m68k)
9624 # FIXME: we need at least 68020 code to build shared libraries, but
9625 # adding the `-m68020' flag to GCC prevents building anything better,
9626 # like `-m68040'.
9627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9629 esac
9632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9633 # PIC is the default for these OSes.
9636 mingw* | cygwin* | pw32* | os2* | cegcc*)
9637 # This hack is so that the source file can tell whether it is being
9638 # built for inclusion in a dll (and should export symbols for example).
9639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9640 # (--disable-auto-import) libraries
9641 lt_prog_compiler_pic='-DDLL_EXPORT'
9644 darwin* | rhapsody*)
9645 # PIC is the default on this platform
9646 # Common symbols not allowed in MH_DYLIB files
9647 lt_prog_compiler_pic='-fno-common'
9650 hpux*)
9651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9653 # sets the default TLS model and affects inlining.
9654 case $host_cpu in
9655 hppa*64*)
9656 # +Z the default
9659 lt_prog_compiler_pic='-fPIC'
9661 esac
9664 interix[3-9]*)
9665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9666 # Instead, we relocate shared libraries at runtime.
9669 msdosdjgpp*)
9670 # Just because we use GCC doesn't mean we suddenly get shared libraries
9671 # on systems that don't support them.
9672 lt_prog_compiler_can_build_shared=no
9673 enable_shared=no
9676 *nto* | *qnx*)
9677 # QNX uses GNU C++, but need to define -shared option too, otherwise
9678 # it will coredump.
9679 lt_prog_compiler_pic='-fPIC -shared'
9682 sysv4*MP*)
9683 if test -d /usr/nec; then
9684 lt_prog_compiler_pic=-Kconform_pic
9689 lt_prog_compiler_pic='-fPIC'
9691 esac
9692 else
9693 # PORTME Check for flag to pass linker flags through the system compiler.
9694 case $host_os in
9695 aix*)
9696 lt_prog_compiler_wl='-Wl,'
9697 if test "$host_cpu" = ia64; then
9698 # AIX 5 now supports IA64 processor
9699 lt_prog_compiler_static='-Bstatic'
9700 else
9701 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9705 mingw* | cygwin* | pw32* | os2* | cegcc*)
9706 # This hack is so that the source file can tell whether it is being
9707 # built for inclusion in a dll (and should export symbols for example).
9708 lt_prog_compiler_pic='-DDLL_EXPORT'
9711 hpux9* | hpux10* | hpux11*)
9712 lt_prog_compiler_wl='-Wl,'
9713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9714 # not for PA HP-UX.
9715 case $host_cpu in
9716 hppa*64*|ia64*)
9717 # +Z the default
9720 lt_prog_compiler_pic='+Z'
9722 esac
9723 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9724 lt_prog_compiler_static='${wl}-a ${wl}archive'
9727 irix5* | irix6* | nonstopux*)
9728 lt_prog_compiler_wl='-Wl,'
9729 # PIC (with -KPIC) is the default.
9730 lt_prog_compiler_static='-non_shared'
9733 linux* | k*bsd*-gnu)
9734 case $cc_basename in
9735 # old Intel for x86_64 which still supported -KPIC.
9736 ecc*)
9737 lt_prog_compiler_wl='-Wl,'
9738 lt_prog_compiler_pic='-KPIC'
9739 lt_prog_compiler_static='-static'
9741 # icc used to be incompatible with GCC.
9742 # ICC 10 doesn't accept -KPIC any more.
9743 icc* | ifort*)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-fPIC'
9746 lt_prog_compiler_static='-static'
9748 # Lahey Fortran 8.1.
9749 lf95*)
9750 lt_prog_compiler_wl='-Wl,'
9751 lt_prog_compiler_pic='--shared'
9752 lt_prog_compiler_static='--static'
9754 pgcc* | pgf77* | pgf90* | pgf95*)
9755 # Portland Group compilers (*not* the Pentium gcc compiler,
9756 # which looks to be a dead project)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='-fpic'
9759 lt_prog_compiler_static='-Bstatic'
9761 ccc*)
9762 lt_prog_compiler_wl='-Wl,'
9763 # All Alpha code is PIC.
9764 lt_prog_compiler_static='-non_shared'
9766 xl*)
9767 # IBM XL C 8.0/Fortran 10.1 on PPC
9768 lt_prog_compiler_wl='-Wl,'
9769 lt_prog_compiler_pic='-qpic'
9770 lt_prog_compiler_static='-qstaticlink'
9773 case `$CC -V 2>&1 | sed 5q` in
9774 *Sun\ C*)
9775 # Sun C 5.9
9776 lt_prog_compiler_pic='-KPIC'
9777 lt_prog_compiler_static='-Bstatic'
9778 lt_prog_compiler_wl='-Wl,'
9780 *Sun\ F*)
9781 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9782 lt_prog_compiler_pic='-KPIC'
9783 lt_prog_compiler_static='-Bstatic'
9784 lt_prog_compiler_wl=''
9786 esac
9788 esac
9791 newsos6)
9792 lt_prog_compiler_pic='-KPIC'
9793 lt_prog_compiler_static='-Bstatic'
9796 *nto* | *qnx*)
9797 # QNX uses GNU C++, but need to define -shared option too, otherwise
9798 # it will coredump.
9799 lt_prog_compiler_pic='-fPIC -shared'
9802 osf3* | osf4* | osf5*)
9803 lt_prog_compiler_wl='-Wl,'
9804 # All OSF/1 code is PIC.
9805 lt_prog_compiler_static='-non_shared'
9808 rdos*)
9809 lt_prog_compiler_static='-non_shared'
9812 solaris*)
9813 lt_prog_compiler_pic='-KPIC'
9814 lt_prog_compiler_static='-Bstatic'
9815 case $cc_basename in
9816 f77* | f90* | f95*)
9817 lt_prog_compiler_wl='-Qoption ld ';;
9819 lt_prog_compiler_wl='-Wl,';;
9820 esac
9823 sunos4*)
9824 lt_prog_compiler_wl='-Qoption ld '
9825 lt_prog_compiler_pic='-PIC'
9826 lt_prog_compiler_static='-Bstatic'
9829 sysv4 | sysv4.2uw2* | sysv4.3*)
9830 lt_prog_compiler_wl='-Wl,'
9831 lt_prog_compiler_pic='-KPIC'
9832 lt_prog_compiler_static='-Bstatic'
9835 sysv4*MP*)
9836 if test -d /usr/nec ;then
9837 lt_prog_compiler_pic='-Kconform_pic'
9838 lt_prog_compiler_static='-Bstatic'
9842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9843 lt_prog_compiler_wl='-Wl,'
9844 lt_prog_compiler_pic='-KPIC'
9845 lt_prog_compiler_static='-Bstatic'
9848 unicos*)
9849 lt_prog_compiler_wl='-Wl,'
9850 lt_prog_compiler_can_build_shared=no
9853 uts4*)
9854 lt_prog_compiler_pic='-pic'
9855 lt_prog_compiler_static='-Bstatic'
9859 lt_prog_compiler_can_build_shared=no
9861 esac
9864 case $host_os in
9865 # For platforms which do not support PIC, -DPIC is meaningless:
9866 *djgpp*)
9867 lt_prog_compiler_pic=
9870 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9872 esac
9873 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9874 $as_echo "$lt_prog_compiler_pic" >&6; }
9882 # Check to make sure the PIC flag actually works.
9884 if test -n "$lt_prog_compiler_pic"; then
9885 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9886 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9887 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9888 $as_echo_n "(cached) " >&6
9889 else
9890 lt_cv_prog_compiler_pic_works=no
9891 ac_outfile=conftest.$ac_objext
9892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9893 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9894 # Insert the option either (1) after the last *FLAGS variable, or
9895 # (2) before a word containing "conftest.", or (3) at the end.
9896 # Note that $ac_compile itself does not contain backslashes and begins
9897 # with a dollar sign (not a hyphen), so the echo should work correctly.
9898 # The option is referenced via a variable to avoid confusing sed.
9899 lt_compile=`echo "$ac_compile" | $SED \
9900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9902 -e 's:$: $lt_compiler_flag:'`
9903 (eval echo "\"\$as_me:9903: $lt_compile\"" >&5)
9904 (eval "$lt_compile" 2>conftest.err)
9905 ac_status=$?
9906 cat conftest.err >&5
9907 echo "$as_me:9907: \$? = $ac_status" >&5
9908 if (exit $ac_status) && test -s "$ac_outfile"; then
9909 # The compiler can only warn and ignore the option if not recognized
9910 # So say no if there are warnings other than the usual output.
9911 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9914 lt_cv_prog_compiler_pic_works=yes
9917 $RM conftest*
9920 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9921 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9923 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9924 case $lt_prog_compiler_pic in
9925 "" | " "*) ;;
9926 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9927 esac
9928 else
9929 lt_prog_compiler_pic=
9930 lt_prog_compiler_can_build_shared=no
9941 # Check to make sure the static flag actually works.
9943 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9944 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9945 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9946 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9947 $as_echo_n "(cached) " >&6
9948 else
9949 lt_cv_prog_compiler_static_works=no
9950 save_LDFLAGS="$LDFLAGS"
9951 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9954 # The linker can only warn and ignore the option if not recognized
9955 # So say no if there are warnings
9956 if test -s conftest.err; then
9957 # Append any errors to the config.log.
9958 cat conftest.err 1>&5
9959 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9961 if diff conftest.exp conftest.er2 >/dev/null; then
9962 lt_cv_prog_compiler_static_works=yes
9964 else
9965 lt_cv_prog_compiler_static_works=yes
9968 $RM -r conftest*
9969 LDFLAGS="$save_LDFLAGS"
9972 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9973 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9975 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9977 else
9978 lt_prog_compiler_static=
9987 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9988 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9990 $as_echo_n "(cached) " >&6
9991 else
9992 lt_cv_prog_compiler_c_o=no
9993 $RM -r conftest 2>/dev/null
9994 mkdir conftest
9995 cd conftest
9996 mkdir out
9997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9999 lt_compiler_flag="-o out/conftest2.$ac_objext"
10000 # Insert the option either (1) after the last *FLAGS variable, or
10001 # (2) before a word containing "conftest.", or (3) at the end.
10002 # Note that $ac_compile itself does not contain backslashes and begins
10003 # with a dollar sign (not a hyphen), so the echo should work correctly.
10004 lt_compile=`echo "$ac_compile" | $SED \
10005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10007 -e 's:$: $lt_compiler_flag:'`
10008 (eval echo "\"\$as_me:10008: $lt_compile\"" >&5)
10009 (eval "$lt_compile" 2>out/conftest.err)
10010 ac_status=$?
10011 cat out/conftest.err >&5
10012 echo "$as_me:10012: \$? = $ac_status" >&5
10013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10014 then
10015 # The compiler can only warn and ignore the option if not recognized
10016 # So say no if there are warnings
10017 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10020 lt_cv_prog_compiler_c_o=yes
10023 chmod u+w . 2>&5
10024 $RM conftest*
10025 # SGI C++ compiler will create directory out/ii_files/ for
10026 # template instantiation
10027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10028 $RM out/* && rmdir out
10029 cd ..
10030 $RM -r conftest
10031 $RM conftest*
10034 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10035 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10042 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10044 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10045 $as_echo_n "(cached) " >&6
10046 else
10047 lt_cv_prog_compiler_c_o=no
10048 $RM -r conftest 2>/dev/null
10049 mkdir conftest
10050 cd conftest
10051 mkdir out
10052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10054 lt_compiler_flag="-o out/conftest2.$ac_objext"
10055 # Insert the option either (1) after the last *FLAGS variable, or
10056 # (2) before a word containing "conftest.", or (3) at the end.
10057 # Note that $ac_compile itself does not contain backslashes and begins
10058 # with a dollar sign (not a hyphen), so the echo should work correctly.
10059 lt_compile=`echo "$ac_compile" | $SED \
10060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10062 -e 's:$: $lt_compiler_flag:'`
10063 (eval echo "\"\$as_me:10063: $lt_compile\"" >&5)
10064 (eval "$lt_compile" 2>out/conftest.err)
10065 ac_status=$?
10066 cat out/conftest.err >&5
10067 echo "$as_me:10067: \$? = $ac_status" >&5
10068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10069 then
10070 # The compiler can only warn and ignore the option if not recognized
10071 # So say no if there are warnings
10072 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10075 lt_cv_prog_compiler_c_o=yes
10078 chmod u+w . 2>&5
10079 $RM conftest*
10080 # SGI C++ compiler will create directory out/ii_files/ for
10081 # template instantiation
10082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10083 $RM out/* && rmdir out
10084 cd ..
10085 $RM -r conftest
10086 $RM conftest*
10089 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10090 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10095 hard_links="nottested"
10096 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10097 # do not overwrite the value of need_locks provided by the user
10098 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10099 $as_echo_n "checking if we can lock with hard links... " >&6; }
10100 hard_links=yes
10101 $RM conftest*
10102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10103 touch conftest.a
10104 ln conftest.a conftest.b 2>&5 || hard_links=no
10105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10106 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10107 $as_echo "$hard_links" >&6; }
10108 if test "$hard_links" = no; then
10109 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10110 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10111 need_locks=warn
10113 else
10114 need_locks=no
10122 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10123 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10125 runpath_var=
10126 allow_undefined_flag=
10127 always_export_symbols=no
10128 archive_cmds=
10129 archive_expsym_cmds=
10130 compiler_needs_object=no
10131 enable_shared_with_static_runtimes=no
10132 export_dynamic_flag_spec=
10133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10134 hardcode_automatic=no
10135 hardcode_direct=no
10136 hardcode_direct_absolute=no
10137 hardcode_libdir_flag_spec=
10138 hardcode_libdir_flag_spec_ld=
10139 hardcode_libdir_separator=
10140 hardcode_minus_L=no
10141 hardcode_shlibpath_var=unsupported
10142 inherit_rpath=no
10143 link_all_deplibs=unknown
10144 module_cmds=
10145 module_expsym_cmds=
10146 old_archive_from_new_cmds=
10147 old_archive_from_expsyms_cmds=
10148 thread_safe_flag_spec=
10149 whole_archive_flag_spec=
10150 # include_expsyms should be a list of space-separated symbols to be *always*
10151 # included in the symbol list
10152 include_expsyms=
10153 # exclude_expsyms can be an extended regexp of symbols to exclude
10154 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10155 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10156 # as well as any symbol that contains `d'.
10157 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10158 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10159 # platforms (ab)use it in PIC code, but their linkers get confused if
10160 # the symbol is explicitly referenced. Since portable code cannot
10161 # rely on this symbol name, it's probably fine to never include it in
10162 # preloaded symbol tables.
10163 # Exclude shared library initialization/finalization symbols.
10164 extract_expsyms_cmds=
10166 case $host_os in
10167 cygwin* | mingw* | pw32* | cegcc*)
10168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10169 # When not using gcc, we currently assume that we are using
10170 # Microsoft Visual C++.
10171 if test "$GCC" != yes; then
10172 with_gnu_ld=no
10175 interix*)
10176 # we just hope/assume this is gcc and not c89 (= MSVC++)
10177 with_gnu_ld=yes
10179 openbsd*)
10180 with_gnu_ld=no
10182 esac
10184 ld_shlibs=yes
10185 if test "$with_gnu_ld" = yes; then
10186 # If archive_cmds runs LD, not CC, wlarc should be empty
10187 wlarc='${wl}'
10189 # Set some defaults for GNU ld with shared library support. These
10190 # are reset later if shared libraries are not supported. Putting them
10191 # here allows them to be overridden if necessary.
10192 runpath_var=LD_RUN_PATH
10193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10194 export_dynamic_flag_spec='${wl}--export-dynamic'
10195 # ancient GNU ld didn't support --whole-archive et. al.
10196 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10197 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10198 else
10199 whole_archive_flag_spec=
10201 supports_anon_versioning=no
10202 case `$LD -v 2>&1` in
10203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10206 *\ 2.11.*) ;; # other 2.11 versions
10207 *) supports_anon_versioning=yes ;;
10208 esac
10210 # See if GNU ld supports shared libraries.
10211 case $host_os in
10212 aix[3-9]*)
10213 # On AIX/PPC, the GNU linker is very broken
10214 if test "$host_cpu" != ia64; then
10215 ld_shlibs=no
10216 cat <<_LT_EOF 1>&2
10218 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10219 *** to be unable to reliably create shared libraries on AIX.
10220 *** Therefore, libtool is disabling shared libraries support. If you
10221 *** really care for shared libraries, you may want to modify your PATH
10222 *** so that a non-GNU linker is found, and then restart.
10224 _LT_EOF
10228 amigaos*)
10229 case $host_cpu in
10230 powerpc)
10231 # see comment about AmigaOS4 .so support
10232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10233 archive_expsym_cmds=''
10235 m68k)
10236 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)'
10237 hardcode_libdir_flag_spec='-L$libdir'
10238 hardcode_minus_L=yes
10240 esac
10243 beos*)
10244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245 allow_undefined_flag=unsupported
10246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10247 # support --undefined. This deserves some investigation. FIXME
10248 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10249 else
10250 ld_shlibs=no
10254 cygwin* | mingw* | pw32* | cegcc*)
10255 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10256 # as there is no search path for DLLs.
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 allow_undefined_flag=unsupported
10259 always_export_symbols=no
10260 enable_shared_with_static_runtimes=yes
10261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10265 # If the export-symbols file already is a .def file (1st line
10266 # is EXPORTS), use it as is; otherwise, prepend...
10267 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10268 cp $export_symbols $output_objdir/$soname.def;
10269 else
10270 echo EXPORTS > $output_objdir/$soname.def;
10271 cat $export_symbols >> $output_objdir/$soname.def;
10273 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10274 else
10275 ld_shlibs=no
10279 interix[3-9]*)
10280 hardcode_direct=no
10281 hardcode_shlibpath_var=no
10282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10283 export_dynamic_flag_spec='${wl}-E'
10284 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10285 # Instead, shared libraries are loaded at an image base (0x10000000 by
10286 # default) and relocated if they conflict, which is a slow very memory
10287 # consuming and fragmenting process. To avoid this, we pick a random,
10288 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10289 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10291 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'
10294 gnu* | linux* | tpf* | k*bsd*-gnu)
10295 tmp_diet=no
10296 if test "$host_os" = linux-dietlibc; then
10297 case $cc_basename in
10298 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10299 esac
10301 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10302 && test "$tmp_diet" = no
10303 then
10304 tmp_addflag=
10305 tmp_sharedflag='-shared'
10306 case $cc_basename,$host_cpu in
10307 pgcc*) # Portland Group C compiler
10308 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10309 tmp_addflag=' $pic_flag'
10311 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10312 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10313 tmp_addflag=' $pic_flag -Mnomain' ;;
10314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10315 tmp_addflag=' -i_dynamic' ;;
10316 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10317 tmp_addflag=' -i_dynamic -nofor_main' ;;
10318 ifc* | ifort*) # Intel Fortran compiler
10319 tmp_addflag=' -nofor_main' ;;
10320 lf95*) # Lahey Fortran 8.1
10321 whole_archive_flag_spec=
10322 tmp_sharedflag='--shared' ;;
10323 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10324 tmp_sharedflag='-qmkshrobj'
10325 tmp_addflag= ;;
10326 esac
10327 case `$CC -V 2>&1 | sed 5q` in
10328 *Sun\ C*) # Sun C 5.9
10329 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10330 compiler_needs_object=yes
10331 tmp_sharedflag='-G' ;;
10332 *Sun\ F*) # Sun Fortran 8.3
10333 tmp_sharedflag='-G' ;;
10334 esac
10335 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337 if test "x$supports_anon_versioning" = xyes; then
10338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10340 echo "local: *; };" >> $output_objdir/$libname.ver~
10341 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10344 case $cc_basename in
10345 xlf*)
10346 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10347 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10348 hardcode_libdir_flag_spec=
10349 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10350 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10351 if test "x$supports_anon_versioning" = xyes; then
10352 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10354 echo "local: *; };" >> $output_objdir/$libname.ver~
10355 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10358 esac
10359 else
10360 ld_shlibs=no
10364 netbsd*)
10365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10366 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10367 wlarc=
10368 else
10369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10374 solaris*)
10375 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10376 ld_shlibs=no
10377 cat <<_LT_EOF 1>&2
10379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10380 *** create shared libraries on Solaris systems. Therefore, libtool
10381 *** is disabling shared libraries support. We urge you to upgrade GNU
10382 *** binutils to release 2.9.1 or newer. Another option is to modify
10383 *** your PATH or compiler configuration so that the native linker is
10384 *** used, and then restart.
10386 _LT_EOF
10387 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10390 else
10391 ld_shlibs=no
10395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10396 case `$LD -v 2>&1` in
10397 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10398 ld_shlibs=no
10399 cat <<_LT_EOF 1>&2
10401 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10402 *** reliably create shared libraries on SCO systems. Therefore, libtool
10403 *** is disabling shared libraries support. We urge you to upgrade GNU
10404 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10405 *** your PATH or compiler configuration so that the native linker is
10406 *** used, and then restart.
10408 _LT_EOF
10411 # For security reasons, it is highly recommended that you always
10412 # use absolute paths for naming shared libraries, and exclude the
10413 # DT_RUNPATH tag from executables and libraries. But doing so
10414 # requires that you compile everything twice, which is a pain.
10415 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10419 else
10420 ld_shlibs=no
10423 esac
10426 sunos4*)
10427 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10428 wlarc=
10429 hardcode_direct=yes
10430 hardcode_shlibpath_var=no
10434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10437 else
10438 ld_shlibs=no
10441 esac
10443 if test "$ld_shlibs" = no; then
10444 runpath_var=
10445 hardcode_libdir_flag_spec=
10446 export_dynamic_flag_spec=
10447 whole_archive_flag_spec=
10449 else
10450 # PORTME fill in a description of your system's linker (not GNU ld)
10451 case $host_os in
10452 aix3*)
10453 allow_undefined_flag=unsupported
10454 always_export_symbols=yes
10455 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'
10456 # Note: this linker hardcodes the directories in LIBPATH if there
10457 # are no directories specified by -L.
10458 hardcode_minus_L=yes
10459 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10460 # Neither direct hardcoding nor static linking is supported with a
10461 # broken collect2.
10462 hardcode_direct=unsupported
10466 aix[4-9]*)
10467 if test "$host_cpu" = ia64; then
10468 # On IA64, the linker does run time linking by default, so we don't
10469 # have to do anything special.
10470 aix_use_runtimelinking=no
10471 exp_sym_flag='-Bexport'
10472 no_entry_flag=""
10473 else
10474 # If we're using GNU nm, then we don't want the "-C" option.
10475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10476 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10477 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10478 else
10479 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'
10481 aix_use_runtimelinking=no
10483 # Test if we are trying to use run time linking or normal
10484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10485 # need to do runtime linking.
10486 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10487 for ld_flag in $LDFLAGS; do
10488 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10489 aix_use_runtimelinking=yes
10490 break
10492 done
10494 esac
10496 exp_sym_flag='-bexport'
10497 no_entry_flag='-bnoentry'
10500 # When large executables or shared objects are built, AIX ld can
10501 # have problems creating the table of contents. If linking a library
10502 # or program results in "error TOC overflow" add -mminimal-toc to
10503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10506 archive_cmds=''
10507 hardcode_direct=yes
10508 hardcode_direct_absolute=yes
10509 hardcode_libdir_separator=':'
10510 link_all_deplibs=yes
10511 file_list_spec='${wl}-f,'
10513 if test "$GCC" = yes; then
10514 case $host_os in aix4.[012]|aix4.[012].*)
10515 # We only want to do this on AIX 4.2 and lower, the check
10516 # below for broken collect2 doesn't work under 4.3+
10517 collect2name=`${CC} -print-prog-name=collect2`
10518 if test -f "$collect2name" &&
10519 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10520 then
10521 # We have reworked collect2
10523 else
10524 # We have old collect2
10525 hardcode_direct=unsupported
10526 # It fails to find uninstalled libraries when the uninstalled
10527 # path is not listed in the libpath. Setting hardcode_minus_L
10528 # to unsupported forces relinking
10529 hardcode_minus_L=yes
10530 hardcode_libdir_flag_spec='-L$libdir'
10531 hardcode_libdir_separator=
10534 esac
10535 shared_flag='-shared'
10536 if test "$aix_use_runtimelinking" = yes; then
10537 shared_flag="$shared_flag "'${wl}-G'
10539 else
10540 # not using gcc
10541 if test "$host_cpu" = ia64; then
10542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10543 # chokes on -Wl,-G. The following line is correct:
10544 shared_flag='-G'
10545 else
10546 if test "$aix_use_runtimelinking" = yes; then
10547 shared_flag='${wl}-G'
10548 else
10549 shared_flag='${wl}-bM:SRE'
10554 export_dynamic_flag_spec='${wl}-bexpall'
10555 # It seems that -bexpall does not export symbols beginning with
10556 # underscore (_), so it is better to generate a list of symbols to export.
10557 always_export_symbols=yes
10558 if test "$aix_use_runtimelinking" = yes; then
10559 # Warning - without using the other runtime loading flags (-brtl),
10560 # -berok will link without error, but may produce a broken library.
10561 allow_undefined_flag='-berok'
10562 # Determine the default libpath from the value encoded in an
10563 # empty executable.
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10572 main ()
10576 return 0;
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586 $as_echo "$ac_try_echo") >&5
10587 (eval "$ac_link") 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest$ac_exeext && {
10597 test "$cross_compiling" = yes ||
10598 $as_test_x conftest$ac_exeext
10599 }; then
10601 lt_aix_libpath_sed='
10602 /Import File Strings/,/^$/ {
10603 /^0/ {
10604 s/^0 *\(.*\)$/\1/
10608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10609 # Check for a 64-bit object if we didn't find anything.
10610 if test -z "$aix_libpath"; then
10611 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10613 else
10614 $as_echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10620 rm -rf conftest.dSYM
10621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10622 conftest$ac_exeext conftest.$ac_ext
10623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10626 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10627 else
10628 if test "$host_cpu" = ia64; then
10629 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10630 allow_undefined_flag="-z nodefs"
10631 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"
10632 else
10633 # Determine the default libpath from the value encoded in an
10634 # empty executable.
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10643 main ()
10647 return 0;
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10655 esac
10656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10657 $as_echo "$ac_try_echo") >&5
10658 (eval "$ac_link") 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest$ac_exeext && {
10668 test "$cross_compiling" = yes ||
10669 $as_test_x conftest$ac_exeext
10670 }; then
10672 lt_aix_libpath_sed='
10673 /Import File Strings/,/^$/ {
10674 /^0/ {
10675 s/^0 *\(.*\)$/\1/
10679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 # Check for a 64-bit object if we didn't find anything.
10681 if test -z "$aix_libpath"; then
10682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10684 else
10685 $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10691 rm -rf conftest.dSYM
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10696 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10697 # Warning - without using the other run time loading flags,
10698 # -berok will link without error, but may produce a broken library.
10699 no_undefined_flag=' ${wl}-bernotok'
10700 allow_undefined_flag=' ${wl}-berok'
10701 # Exported symbols can be pulled into shared objects from archives
10702 whole_archive_flag_spec='$convenience'
10703 archive_cmds_need_lc=yes
10704 # This is similar to how AIX traditionally builds its shared libraries.
10705 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'
10710 amigaos*)
10711 case $host_cpu in
10712 powerpc)
10713 # see comment about AmigaOS4 .so support
10714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10715 archive_expsym_cmds=''
10717 m68k)
10718 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)'
10719 hardcode_libdir_flag_spec='-L$libdir'
10720 hardcode_minus_L=yes
10722 esac
10725 bsdi[45]*)
10726 export_dynamic_flag_spec=-rdynamic
10729 cygwin* | mingw* | pw32* | cegcc*)
10730 # When not using gcc, we currently assume that we are using
10731 # Microsoft Visual C++.
10732 # hardcode_libdir_flag_spec is actually meaningless, as there is
10733 # no search path for DLLs.
10734 hardcode_libdir_flag_spec=' '
10735 allow_undefined_flag=unsupported
10736 # Tell ltmain to make .lib files, not .a files.
10737 libext=lib
10738 # Tell ltmain to make .dll files, not .so files.
10739 shrext_cmds=".dll"
10740 # FIXME: Setting linknames here is a bad hack.
10741 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10742 # The linker will automatically build a .lib file if we build a DLL.
10743 old_archive_from_new_cmds='true'
10744 # FIXME: Should let the user specify the lib program.
10745 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10746 fix_srcfile_path='`cygpath -w "$srcfile"`'
10747 enable_shared_with_static_runtimes=yes
10750 darwin* | rhapsody*)
10753 archive_cmds_need_lc=no
10754 hardcode_direct=no
10755 hardcode_automatic=yes
10756 hardcode_shlibpath_var=unsupported
10757 whole_archive_flag_spec=''
10758 link_all_deplibs=yes
10759 allow_undefined_flag="$_lt_dar_allow_undefined"
10760 case $cc_basename in
10761 ifort*) _lt_dar_can_shared=yes ;;
10762 *) _lt_dar_can_shared=$GCC ;;
10763 esac
10764 if test "$_lt_dar_can_shared" = "yes"; then
10765 output_verbose_link_cmd=echo
10766 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10767 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10768 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}"
10769 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}"
10771 else
10772 ld_shlibs=no
10777 dgux*)
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_libdir_flag_spec='-L$libdir'
10780 hardcode_shlibpath_var=no
10783 freebsd1*)
10784 ld_shlibs=no
10787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10788 # support. Future versions do this automatically, but an explicit c++rt0.o
10789 # does not break anything, and helps significantly (at the cost of a little
10790 # extra space).
10791 freebsd2.2*)
10792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10793 hardcode_libdir_flag_spec='-R$libdir'
10794 hardcode_direct=yes
10795 hardcode_shlibpath_var=no
10798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10799 freebsd2*)
10800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801 hardcode_direct=yes
10802 hardcode_minus_L=yes
10803 hardcode_shlibpath_var=no
10806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10807 freebsd* | dragonfly*)
10808 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10809 hardcode_libdir_flag_spec='-R$libdir'
10810 hardcode_direct=yes
10811 hardcode_shlibpath_var=no
10814 hpux9*)
10815 if test "$GCC" = yes; then
10816 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10817 else
10818 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'
10820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10821 hardcode_libdir_separator=:
10822 hardcode_direct=yes
10824 # hardcode_minus_L: Not really in the search PATH,
10825 # but as the default location of the library.
10826 hardcode_minus_L=yes
10827 export_dynamic_flag_spec='${wl}-E'
10830 hpux10*)
10831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10833 else
10834 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10836 if test "$with_gnu_ld" = no; then
10837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10838 hardcode_libdir_flag_spec_ld='+b $libdir'
10839 hardcode_libdir_separator=:
10840 hardcode_direct=yes
10841 hardcode_direct_absolute=yes
10842 export_dynamic_flag_spec='${wl}-E'
10843 # hardcode_minus_L: Not really in the search PATH,
10844 # but as the default location of the library.
10845 hardcode_minus_L=yes
10849 hpux11*)
10850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10851 case $host_cpu in
10852 hppa*64*)
10853 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 ia64*)
10856 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10861 esac
10862 else
10863 case $host_cpu in
10864 hppa*64*)
10865 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 ia64*)
10868 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10873 esac
10875 if test "$with_gnu_ld" = no; then
10876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10877 hardcode_libdir_separator=:
10879 case $host_cpu in
10880 hppa*64*|ia64*)
10881 hardcode_direct=no
10882 hardcode_shlibpath_var=no
10885 hardcode_direct=yes
10886 hardcode_direct_absolute=yes
10887 export_dynamic_flag_spec='${wl}-E'
10889 # hardcode_minus_L: Not really in the search PATH,
10890 # but as the default location of the library.
10891 hardcode_minus_L=yes
10893 esac
10897 irix5* | irix6* | nonstopux*)
10898 if test "$GCC" = yes; then
10899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10900 # Try to use the -exported_symbol ld option, if it does not
10901 # work, assume that -exports_file does not work either and
10902 # implicitly export all symbols.
10903 save_LDFLAGS="$LDFLAGS"
10904 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10905 cat >conftest.$ac_ext <<_ACEOF
10906 int foo(void) {}
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest$ac_exeext && {
10926 test "$cross_compiling" = yes ||
10927 $as_test_x conftest$ac_exeext
10928 }; then
10929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10931 else
10932 $as_echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10938 rm -rf conftest.dSYM
10939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10940 conftest$ac_exeext conftest.$ac_ext
10941 LDFLAGS="$save_LDFLAGS"
10942 else
10943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10946 archive_cmds_need_lc='no'
10947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10948 hardcode_libdir_separator=:
10949 inherit_rpath=yes
10950 link_all_deplibs=yes
10953 netbsd*)
10954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10956 else
10957 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10959 hardcode_libdir_flag_spec='-R$libdir'
10960 hardcode_direct=yes
10961 hardcode_shlibpath_var=no
10964 newsos6)
10965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966 hardcode_direct=yes
10967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator=:
10969 hardcode_shlibpath_var=no
10972 *nto* | *qnx*)
10975 openbsd*)
10976 if test -f /usr/libexec/ld.so; then
10977 hardcode_direct=yes
10978 hardcode_shlibpath_var=no
10979 hardcode_direct_absolute=yes
10980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10984 export_dynamic_flag_spec='${wl}-E'
10985 else
10986 case $host_os in
10987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_libdir_flag_spec='-R$libdir'
10992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10995 esac
10997 else
10998 ld_shlibs=no
11002 os2*)
11003 hardcode_libdir_flag_spec='-L$libdir'
11004 hardcode_minus_L=yes
11005 allow_undefined_flag=unsupported
11006 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'
11007 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11010 osf3*)
11011 if test "$GCC" = yes; then
11012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11013 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11014 else
11015 allow_undefined_flag=' -expect_unresolved \*'
11016 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11018 archive_cmds_need_lc='no'
11019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11020 hardcode_libdir_separator=:
11023 osf4* | osf5*) # as osf3* with the addition of -msym flag
11024 if test "$GCC" = yes; then
11025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11026 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11028 else
11029 allow_undefined_flag=' -expect_unresolved \*'
11030 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11031 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~
11032 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11034 # Both c and cxx compiler support -rpath directly
11035 hardcode_libdir_flag_spec='-rpath $libdir'
11037 archive_cmds_need_lc='no'
11038 hardcode_libdir_separator=:
11041 solaris*)
11042 no_undefined_flag=' -z defs'
11043 if test "$GCC" = yes; then
11044 wlarc='${wl}'
11045 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11047 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11048 else
11049 case `$CC -V 2>&1` in
11050 *"Compilers 5.0"*)
11051 wlarc=''
11052 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11057 wlarc='${wl}'
11058 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11060 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11062 esac
11064 hardcode_libdir_flag_spec='-R$libdir'
11065 hardcode_shlibpath_var=no
11066 case $host_os in
11067 solaris2.[0-5] | solaris2.[0-5].*) ;;
11069 # The compiler driver will combine and reorder linker options,
11070 # but understands `-z linker_flag'. GCC discards it without `$wl',
11071 # but is careful enough not to reorder.
11072 # Supported since Solaris 2.6 (maybe 2.5.1?)
11073 if test "$GCC" = yes; then
11074 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11075 else
11076 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11079 esac
11080 link_all_deplibs=yes
11083 sunos4*)
11084 if test "x$host_vendor" = xsequent; then
11085 # Use $CC to link under sequent, because it throws in some extra .o
11086 # files that make .init and .fini sections work.
11087 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11088 else
11089 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_libdir_flag_spec='-L$libdir'
11092 hardcode_direct=yes
11093 hardcode_minus_L=yes
11094 hardcode_shlibpath_var=no
11097 sysv4)
11098 case $host_vendor in
11099 sni)
11100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11101 hardcode_direct=yes # is this really true???
11103 siemens)
11104 ## LD is ld it makes a PLAMLIB
11105 ## CC just makes a GrossModule.
11106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11107 reload_cmds='$CC -r -o $output$reload_objs'
11108 hardcode_direct=no
11110 motorola)
11111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11112 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11114 esac
11115 runpath_var='LD_RUN_PATH'
11116 hardcode_shlibpath_var=no
11119 sysv4.3*)
11120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121 hardcode_shlibpath_var=no
11122 export_dynamic_flag_spec='-Bexport'
11125 sysv4*MP*)
11126 if test -d /usr/nec; then
11127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_shlibpath_var=no
11129 runpath_var=LD_RUN_PATH
11130 hardcode_runpath_var=yes
11131 ld_shlibs=yes
11135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11136 no_undefined_flag='${wl}-z,text'
11137 archive_cmds_need_lc=no
11138 hardcode_shlibpath_var=no
11139 runpath_var='LD_RUN_PATH'
11141 if test "$GCC" = yes; then
11142 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11144 else
11145 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11150 sysv5* | sco3.2v5* | sco5v6*)
11151 # Note: We can NOT use -z defs as we might desire, because we do not
11152 # link with -lc, and that would cause any symbols used from libc to
11153 # always be unresolved, which means just about no library would
11154 # ever link correctly. If we're not using GNU ld we use -z text
11155 # though, which does catch some bad symbols but isn't as heavy-handed
11156 # as -z defs.
11157 no_undefined_flag='${wl}-z,text'
11158 allow_undefined_flag='${wl}-z,nodefs'
11159 archive_cmds_need_lc=no
11160 hardcode_shlibpath_var=no
11161 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11162 hardcode_libdir_separator=':'
11163 link_all_deplibs=yes
11164 export_dynamic_flag_spec='${wl}-Bexport'
11165 runpath_var='LD_RUN_PATH'
11167 if test "$GCC" = yes; then
11168 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 else
11171 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11176 uts4*)
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_libdir_flag_spec='-L$libdir'
11179 hardcode_shlibpath_var=no
11183 ld_shlibs=no
11185 esac
11187 if test x$host_vendor = xsni; then
11188 case $host in
11189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11190 export_dynamic_flag_spec='${wl}-Blargedynsym'
11192 esac
11196 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11197 $as_echo "$ld_shlibs" >&6; }
11198 test "$ld_shlibs" = no && can_build_shared=no
11200 with_gnu_ld=$with_gnu_ld
11217 # Do we need to explicitly link libc?
11219 case "x$archive_cmds_need_lc" in
11220 x|xyes)
11221 # Assume -lc should be added
11222 archive_cmds_need_lc=yes
11224 if test "$enable_shared" = yes && test "$GCC" = yes; then
11225 case $archive_cmds in
11226 *'~'*)
11227 # FIXME: we may have to deal with multi-command sequences.
11229 '$CC '*)
11230 # Test whether the compiler implicitly links with -lc since on some
11231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11232 # to ld, don't add -lc before -lgcc.
11233 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11234 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11235 $RM conftest*
11236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239 (eval $ac_compile) 2>&5
11240 ac_status=$?
11241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } 2>conftest.err; then
11243 soname=conftest
11244 lib=conftest
11245 libobjs=conftest.$ac_objext
11246 deplibs=
11247 wl=$lt_prog_compiler_wl
11248 pic_flag=$lt_prog_compiler_pic
11249 compiler_flags=-v
11250 linker_flags=-v
11251 verstring=
11252 output_objdir=.
11253 libname=conftest
11254 lt_save_allow_undefined_flag=$allow_undefined_flag
11255 allow_undefined_flag=
11256 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11257 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11258 ac_status=$?
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }
11261 then
11262 archive_cmds_need_lc=no
11263 else
11264 archive_cmds_need_lc=yes
11266 allow_undefined_flag=$lt_save_allow_undefined_flag
11267 else
11268 cat conftest.err 1>&5
11270 $RM conftest*
11271 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11272 $as_echo "$archive_cmds_need_lc" >&6; }
11274 esac
11277 esac
11435 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11436 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11438 if test "$GCC" = yes; then
11439 case $host_os in
11440 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11441 *) lt_awk_arg="/^libraries:/" ;;
11442 esac
11443 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11444 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11445 # if the path contains ";" then we assume it to be the separator
11446 # otherwise default to the standard path separator (i.e. ":") - it is
11447 # assumed that no part of a normal pathname contains ";" but that should
11448 # okay in the real world where ";" in dirpaths is itself problematic.
11449 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11450 else
11451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11453 # Ok, now we have the path, separated by spaces, we can step through it
11454 # and add multilib dir if necessary.
11455 lt_tmp_lt_search_path_spec=
11456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11457 for lt_sys_path in $lt_search_path_spec; do
11458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11460 else
11461 test -d "$lt_sys_path" && \
11462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11464 done
11465 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11466 BEGIN {RS=" "; FS="/|\n";} {
11467 lt_foo="";
11468 lt_count=0;
11469 for (lt_i = NF; lt_i > 0; lt_i--) {
11470 if ($lt_i != "" && $lt_i != ".") {
11471 if ($lt_i == "..") {
11472 lt_count++;
11473 } else {
11474 if (lt_count == 0) {
11475 lt_foo="/" $lt_i lt_foo;
11476 } else {
11477 lt_count--;
11482 if (lt_foo != "") { lt_freq[lt_foo]++; }
11483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11485 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11486 else
11487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11489 library_names_spec=
11490 libname_spec='lib$name'
11491 soname_spec=
11492 shrext_cmds=".so"
11493 postinstall_cmds=
11494 postuninstall_cmds=
11495 finish_cmds=
11496 finish_eval=
11497 shlibpath_var=
11498 shlibpath_overrides_runpath=unknown
11499 version_type=none
11500 dynamic_linker="$host_os ld.so"
11501 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11502 need_lib_prefix=unknown
11503 hardcode_into_libs=no
11505 # when you set need_version to no, make sure it does not cause -set_version
11506 # flags to be left without arguments
11507 need_version=unknown
11509 case $host_os in
11510 aix3*)
11511 version_type=linux
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11513 shlibpath_var=LIBPATH
11515 # AIX 3 has no versioning support, so we append a major version to the name.
11516 soname_spec='${libname}${release}${shared_ext}$major'
11519 aix[4-9]*)
11520 version_type=linux
11521 need_lib_prefix=no
11522 need_version=no
11523 hardcode_into_libs=yes
11524 if test "$host_cpu" = ia64; then
11525 # AIX 5 supports IA64
11526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 else
11529 # With GCC up to 2.95.x, collect2 would create an import file
11530 # for dependence libraries. The import file would start with
11531 # the line `#! .'. This would cause the generated library to
11532 # depend on `.', always an invalid library. This was fixed in
11533 # development snapshots of GCC prior to 3.0.
11534 case $host_os in
11535 aix4 | aix4.[01] | aix4.[01].*)
11536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11537 echo ' yes '
11538 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11540 else
11541 can_build_shared=no
11544 esac
11545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11546 # soname into executable. Probably we can add versioning support to
11547 # collect2, so additional links can be useful in future.
11548 if test "$aix_use_runtimelinking" = yes; then
11549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11550 # instead of lib<name>.a to let people know that these are not
11551 # typical AIX shared libraries.
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 else
11554 # We preserve .a as extension for shared libraries through AIX4.2
11555 # and later when we are not doing run time linking.
11556 library_names_spec='${libname}${release}.a $libname.a'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LIBPATH
11563 amigaos*)
11564 case $host_cpu in
11565 powerpc)
11566 # Since July 2007 AmigaOS4 officially supports .so libraries.
11567 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 m68k)
11571 library_names_spec='$libname.ixlibrary $libname.a'
11572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11573 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11575 esac
11578 beos*)
11579 library_names_spec='${libname}${shared_ext}'
11580 dynamic_linker="$host_os ld.so"
11581 shlibpath_var=LIBRARY_PATH
11584 bsdi[45]*)
11585 version_type=linux
11586 need_version=no
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11593 # the default ld.so.conf also contains /usr/contrib/lib and
11594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11595 # libtool to hard-code these into programs
11598 cygwin* | mingw* | pw32* | cegcc*)
11599 version_type=windows
11600 shrext_cmds=".dll"
11601 need_version=no
11602 need_lib_prefix=no
11604 case $GCC,$host_os in
11605 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11606 library_names_spec='$libname.dll.a'
11607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11608 postinstall_cmds='base_file=`basename \${file}`~
11609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11610 dldir=$destdir/`dirname \$dlpath`~
11611 test -d \$dldir || mkdir -p \$dldir~
11612 $install_prog $dir/$dlname \$dldir/$dlname~
11613 chmod a+x \$dldir/$dlname~
11614 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11615 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11618 dlpath=$dir/\$dldll~
11619 $RM \$dlpath'
11620 shlibpath_overrides_runpath=yes
11622 case $host_os in
11623 cygwin*)
11624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11626 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11628 mingw* | cegcc*)
11629 # MinGW DLLs use traditional 'lib' prefix
11630 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11631 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11632 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11633 # It is most probably a Windows format PATH printed by
11634 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11635 # path with ; separators, and with drive letters. We can handle the
11636 # drive letters (cygwin fileutils understands them), so leave them,
11637 # especially as we might pass files found there to a mingw objdump,
11638 # which wouldn't understand a cygwinified path. Ahh.
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11640 else
11641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11644 pw32*)
11645 # pw32 DLLs use 'pw' prefix rather than 'lib'
11646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11648 esac
11652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11654 esac
11655 dynamic_linker='Win32 ld.exe'
11656 # FIXME: first we should search . and the directory the executable is in
11657 shlibpath_var=PATH
11660 darwin* | rhapsody*)
11661 dynamic_linker="$host_os dyld"
11662 version_type=darwin
11663 need_lib_prefix=no
11664 need_version=no
11665 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11666 soname_spec='${libname}${release}${major}$shared_ext'
11667 shlibpath_overrides_runpath=yes
11668 shlibpath_var=DYLD_LIBRARY_PATH
11669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11671 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11675 dgux*)
11676 version_type=linux
11677 need_lib_prefix=no
11678 need_version=no
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 shlibpath_var=LD_LIBRARY_PATH
11684 freebsd1*)
11685 dynamic_linker=no
11688 freebsd* | dragonfly*)
11689 # DragonFly does not have aout. When/if they implement a new
11690 # versioning mechanism, adjust this.
11691 if test -x /usr/bin/objformat; then
11692 objformat=`/usr/bin/objformat`
11693 else
11694 case $host_os in
11695 freebsd[123]*) objformat=aout ;;
11696 *) objformat=elf ;;
11697 esac
11699 version_type=freebsd-$objformat
11700 case $version_type in
11701 freebsd-elf*)
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11703 need_version=no
11704 need_lib_prefix=no
11706 freebsd-*)
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11708 need_version=yes
11710 esac
11711 shlibpath_var=LD_LIBRARY_PATH
11712 case $host_os in
11713 freebsd2*)
11714 shlibpath_overrides_runpath=yes
11716 freebsd3.[01]* | freebsdelf3.[01]*)
11717 shlibpath_overrides_runpath=yes
11718 hardcode_into_libs=yes
11720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11722 shlibpath_overrides_runpath=no
11723 hardcode_into_libs=yes
11725 *) # from 4.6 on, and DragonFly
11726 shlibpath_overrides_runpath=yes
11727 hardcode_into_libs=yes
11729 esac
11732 gnu*)
11733 version_type=linux
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 hardcode_into_libs=yes
11742 hpux9* | hpux10* | hpux11*)
11743 # Give a soname corresponding to the major version so that dld.sl refuses to
11744 # link against other versions.
11745 version_type=sunos
11746 need_lib_prefix=no
11747 need_version=no
11748 case $host_cpu in
11749 ia64*)
11750 shrext_cmds='.so'
11751 hardcode_into_libs=yes
11752 dynamic_linker="$host_os dld.so"
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 if test "X$HPUX_IA64_MODE" = X32; then
11758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11759 else
11760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11764 hppa*64*)
11765 shrext_cmds='.sl'
11766 hardcode_into_libs=yes
11767 dynamic_linker="$host_os dld.sl"
11768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11776 shrext_cmds='.sl'
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=SHLIB_PATH
11779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11783 esac
11784 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11785 postinstall_cmds='chmod 555 $lib'
11788 interix[3-9]*)
11789 version_type=linux
11790 need_lib_prefix=no
11791 need_version=no
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=no
11797 hardcode_into_libs=yes
11800 irix5* | irix6* | nonstopux*)
11801 case $host_os in
11802 nonstopux*) version_type=nonstopux ;;
11804 if test "$lt_cv_prog_gnu_ld" = yes; then
11805 version_type=linux
11806 else
11807 version_type=irix
11808 fi ;;
11809 esac
11810 need_lib_prefix=no
11811 need_version=no
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11814 case $host_os in
11815 irix5* | nonstopux*)
11816 libsuff= shlibsuff=
11819 case $LD in # libtool.m4 will add one of these switches to LD
11820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11821 libsuff= shlibsuff= libmagic=32-bit;;
11822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11823 libsuff=32 shlibsuff=N32 libmagic=N32;;
11824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11826 *) libsuff= shlibsuff= libmagic=never-match;;
11827 esac
11829 esac
11830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11831 shlibpath_overrides_runpath=no
11832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11834 hardcode_into_libs=yes
11837 # No shared lib support for Linux oldld, aout, or coff.
11838 linux*oldld* | linux*aout* | linux*coff*)
11839 dynamic_linker=no
11842 # This must be Linux ELF.
11843 linux* | k*bsd*-gnu)
11844 version_type=linux
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=no
11852 # Some binutils ld are patched to set DT_RUNPATH
11853 save_LDFLAGS=$LDFLAGS
11854 save_libdir=$libdir
11855 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11856 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11865 main ()
11869 return 0;
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (ac_try="$ac_link"
11874 case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877 esac
11878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11879 $as_echo "$ac_try_echo") >&5
11880 (eval "$ac_link") 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } && {
11887 test -z "$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11889 } && test -s conftest$ac_exeext && {
11890 test "$cross_compiling" = yes ||
11891 $as_test_x conftest$ac_exeext
11892 }; then
11893 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11894 shlibpath_overrides_runpath=yes
11897 else
11898 $as_echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11904 rm -rf conftest.dSYM
11905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LDFLAGS=$save_LDFLAGS
11908 libdir=$save_libdir
11910 # This implies no fast_install, which is unacceptable.
11911 # Some rework will be needed to allow for fast_install
11912 # before this can be enabled.
11913 hardcode_into_libs=yes
11915 # Add ABI-specific directories to the system library path.
11916 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11918 # Append ld.so.conf contents to the search path
11919 if test -f /etc/ld.so.conf; then
11920 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;/^$/d' | tr '\n' ' '`
11921 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11924 # We used to test for /lib/ld.so.1 and disable shared libraries on
11925 # powerpc, because MkLinux only supported shared libraries with the
11926 # GNU dynamic linker. Since this was broken with cross compilers,
11927 # most powerpc-linux boxes support dynamic linking these days and
11928 # people can always --disable-shared, the test was removed, and we
11929 # assume the GNU/Linux dynamic linker is in use.
11930 dynamic_linker='GNU/Linux ld.so'
11933 netbsd*)
11934 version_type=sunos
11935 need_lib_prefix=no
11936 need_version=no
11937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11940 dynamic_linker='NetBSD (a.out) ld.so'
11941 else
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 dynamic_linker='NetBSD ld.elf_so'
11946 shlibpath_var=LD_LIBRARY_PATH
11947 shlibpath_overrides_runpath=yes
11948 hardcode_into_libs=yes
11951 newsos6)
11952 version_type=linux
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11958 *nto* | *qnx*)
11959 version_type=qnx
11960 need_lib_prefix=no
11961 need_version=no
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=no
11966 hardcode_into_libs=yes
11967 dynamic_linker='ldqnx.so'
11970 openbsd*)
11971 version_type=sunos
11972 sys_lib_dlsearch_path_spec="/usr/lib"
11973 need_lib_prefix=no
11974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11975 case $host_os in
11976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11977 *) need_version=no ;;
11978 esac
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11983 case $host_os in
11984 openbsd2.[89] | openbsd2.[89].*)
11985 shlibpath_overrides_runpath=no
11988 shlibpath_overrides_runpath=yes
11990 esac
11991 else
11992 shlibpath_overrides_runpath=yes
11996 os2*)
11997 libname_spec='$name'
11998 shrext_cmds=".dll"
11999 need_lib_prefix=no
12000 library_names_spec='$libname${shared_ext} $libname.a'
12001 dynamic_linker='OS/2 ld.exe'
12002 shlibpath_var=LIBPATH
12005 osf3* | osf4* | osf5*)
12006 version_type=osf
12007 need_lib_prefix=no
12008 need_version=no
12009 soname_spec='${libname}${release}${shared_ext}$major'
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011 shlibpath_var=LD_LIBRARY_PATH
12012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12016 rdos*)
12017 dynamic_linker=no
12020 solaris*)
12021 version_type=linux
12022 need_lib_prefix=no
12023 need_version=no
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12029 # ldd complains unless libraries are executable
12030 postinstall_cmds='chmod +x $lib'
12033 sunos4*)
12034 version_type=sunos
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes
12039 if test "$with_gnu_ld" = yes; then
12040 need_lib_prefix=no
12042 need_version=yes
12045 sysv4 | sysv4.3*)
12046 version_type=linux
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 soname_spec='${libname}${release}${shared_ext}$major'
12049 shlibpath_var=LD_LIBRARY_PATH
12050 case $host_vendor in
12051 sni)
12052 shlibpath_overrides_runpath=no
12053 need_lib_prefix=no
12054 runpath_var=LD_RUN_PATH
12056 siemens)
12057 need_lib_prefix=no
12059 motorola)
12060 need_lib_prefix=no
12061 need_version=no
12062 shlibpath_overrides_runpath=no
12063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12065 esac
12068 sysv4*MP*)
12069 if test -d /usr/nec ;then
12070 version_type=linux
12071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12072 soname_spec='$libname${shared_ext}.$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12078 version_type=freebsd-elf
12079 need_lib_prefix=no
12080 need_version=no
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12082 soname_spec='${libname}${release}${shared_ext}$major'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 shlibpath_overrides_runpath=yes
12085 hardcode_into_libs=yes
12086 if test "$with_gnu_ld" = yes; then
12087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12088 else
12089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12090 case $host_os in
12091 sco3.2v5*)
12092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12094 esac
12096 sys_lib_dlsearch_path_spec='/usr/lib'
12099 tpf*)
12100 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12101 version_type=linux
12102 need_lib_prefix=no
12103 need_version=no
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 shlibpath_overrides_runpath=no
12107 hardcode_into_libs=yes
12110 uts4*)
12111 version_type=linux
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113 soname_spec='${libname}${release}${shared_ext}$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12118 dynamic_linker=no
12120 esac
12121 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12122 $as_echo "$dynamic_linker" >&6; }
12123 test "$dynamic_linker" = no && can_build_shared=no
12125 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12126 if test "$GCC" = yes; then
12127 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12130 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12131 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12133 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12134 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12223 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12224 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12225 hardcode_action=
12226 if test -n "$hardcode_libdir_flag_spec" ||
12227 test -n "$runpath_var" ||
12228 test "X$hardcode_automatic" = "Xyes" ; then
12230 # We can hardcode non-existent directories.
12231 if test "$hardcode_direct" != no &&
12232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12233 # have to relink, otherwise we might link with an installed library
12234 # when we should be linking with a yet-to-be-installed one
12235 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12236 test "$hardcode_minus_L" != no; then
12237 # Linking always hardcodes the temporary library directory.
12238 hardcode_action=relink
12239 else
12240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12241 hardcode_action=immediate
12243 else
12244 # We cannot hardcode anything, or else we can only hardcode existing
12245 # directories.
12246 hardcode_action=unsupported
12248 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12249 $as_echo "$hardcode_action" >&6; }
12251 if test "$hardcode_action" = relink ||
12252 test "$inherit_rpath" = yes; then
12253 # Fast installation is not supported
12254 enable_fast_install=no
12255 elif test "$shlibpath_overrides_runpath" = yes ||
12256 test "$enable_shared" = no; then
12257 # Fast installation is not necessary
12258 enable_fast_install=needless
12266 if test "x$enable_dlopen" != xyes; then
12267 enable_dlopen=unknown
12268 enable_dlopen_self=unknown
12269 enable_dlopen_self_static=unknown
12270 else
12271 lt_cv_dlopen=no
12272 lt_cv_dlopen_libs=
12274 case $host_os in
12275 beos*)
12276 lt_cv_dlopen="load_add_on"
12277 lt_cv_dlopen_libs=
12278 lt_cv_dlopen_self=yes
12281 mingw* | pw32* | cegcc*)
12282 lt_cv_dlopen="LoadLibrary"
12283 lt_cv_dlopen_libs=
12286 cygwin*)
12287 lt_cv_dlopen="dlopen"
12288 lt_cv_dlopen_libs=
12291 darwin*)
12292 # if libdl is installed we need to link against it
12293 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12294 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12296 $as_echo_n "(cached) " >&6
12297 else
12298 ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-ldl $LIBS"
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char dlopen ();
12315 main ()
12317 return dlopen ();
12319 return 0;
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12329 $as_echo "$ac_try_echo") >&5
12330 (eval "$ac_link") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest$ac_exeext && {
12340 test "$cross_compiling" = yes ||
12341 $as_test_x conftest$ac_exeext
12342 }; then
12343 ac_cv_lib_dl_dlopen=yes
12344 else
12345 $as_echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_lib_dl_dlopen=no
12351 rm -rf conftest.dSYM
12352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12358 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12360 else
12362 lt_cv_dlopen="dyld"
12363 lt_cv_dlopen_libs=
12364 lt_cv_dlopen_self=yes
12371 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12372 $as_echo_n "checking for shl_load... " >&6; }
12373 if test "${ac_cv_func_shl_load+set}" = set; then
12374 $as_echo_n "(cached) " >&6
12375 else
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12384 #define shl_load innocuous_shl_load
12386 /* System header to define __stub macros and hopefully few prototypes,
12387 which can conflict with char shl_load (); below.
12388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 <limits.h> exists even on freestanding compilers. */
12391 #ifdef __STDC__
12392 # include <limits.h>
12393 #else
12394 # include <assert.h>
12395 #endif
12397 #undef shl_load
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char shl_load ();
12406 /* The GNU C library defines this for functions which it implements
12407 to always fail with ENOSYS. Some functions are actually named
12408 something starting with __ and the normal name is an alias. */
12409 #if defined __stub_shl_load || defined __stub___shl_load
12410 choke me
12411 #endif
12414 main ()
12416 return shl_load ();
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12428 $as_echo "$ac_try_echo") >&5
12429 (eval "$ac_link") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest$ac_exeext && {
12439 test "$cross_compiling" = yes ||
12440 $as_test_x conftest$ac_exeext
12441 }; then
12442 ac_cv_func_shl_load=yes
12443 else
12444 $as_echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_func_shl_load=no
12450 rm -rf conftest.dSYM
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12454 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12455 $as_echo "$ac_cv_func_shl_load" >&6; }
12456 if test "x$ac_cv_func_shl_load" = x""yes; then
12457 lt_cv_dlopen="shl_load"
12458 else
12459 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12460 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12462 $as_echo_n "(cached) " >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ldld $LIBS"
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h. */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12473 /* Override any GCC internal prototype to avoid an error.
12474 Use char because int might match the return type of a GCC
12475 builtin and then its argument prototype would still apply. */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char shl_load ();
12481 main ()
12483 return shl_load ();
12485 return 0;
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496 (eval "$ac_link") 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest$ac_exeext && {
12506 test "$cross_compiling" = yes ||
12507 $as_test_x conftest$ac_exeext
12508 }; then
12509 ac_cv_lib_dld_shl_load=yes
12510 else
12511 $as_echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ac_cv_lib_dld_shl_load=no
12517 rm -rf conftest.dSYM
12518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12523 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12524 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12525 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12526 else
12527 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12528 $as_echo_n "checking for dlopen... " >&6; }
12529 if test "${ac_cv_func_dlopen+set}" = set; then
12530 $as_echo_n "(cached) " >&6
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540 #define dlopen innocuous_dlopen
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char dlopen (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12547 #ifdef __STDC__
12548 # include <limits.h>
12549 #else
12550 # include <assert.h>
12551 #endif
12553 #undef dlopen
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char dlopen ();
12562 /* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565 #if defined __stub_dlopen || defined __stub___dlopen
12566 choke me
12567 #endif
12570 main ()
12572 return dlopen ();
12574 return 0;
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_link") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest$ac_exeext
12597 }; then
12598 ac_cv_func_dlopen=yes
12599 else
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_func_dlopen=no
12606 rm -rf conftest.dSYM
12607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12610 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12611 $as_echo "$ac_cv_func_dlopen" >&6; }
12612 if test "x$ac_cv_func_dlopen" = x""yes; then
12613 lt_cv_dlopen="dlopen"
12614 else
12615 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12616 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12617 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12618 $as_echo_n "(cached) " >&6
12619 else
12620 ac_check_lib_save_LIBS=$LIBS
12621 LIBS="-ldl $LIBS"
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char dlopen ();
12637 main ()
12639 return dlopen ();
12641 return 0;
12643 _ACEOF
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (ac_try="$ac_link"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12651 $as_echo "$ac_try_echo") >&5
12652 (eval "$ac_link") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest$ac_exeext && {
12662 test "$cross_compiling" = yes ||
12663 $as_test_x conftest$ac_exeext
12664 }; then
12665 ac_cv_lib_dl_dlopen=yes
12666 else
12667 $as_echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_cv_lib_dl_dlopen=no
12673 rm -rf conftest.dSYM
12674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12675 conftest$ac_exeext conftest.$ac_ext
12676 LIBS=$ac_check_lib_save_LIBS
12678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12679 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12680 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12682 else
12683 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12684 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12686 $as_echo_n "(cached) " >&6
12687 else
12688 ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-lsvld $LIBS"
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 char dlopen ();
12705 main ()
12707 return dlopen ();
12709 return 0;
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (ac_try="$ac_link"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720 (eval "$ac_link") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest$ac_exeext && {
12730 test "$cross_compiling" = yes ||
12731 $as_test_x conftest$ac_exeext
12732 }; then
12733 ac_cv_lib_svld_dlopen=yes
12734 else
12735 $as_echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 ac_cv_lib_svld_dlopen=no
12741 rm -rf conftest.dSYM
12742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12748 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12750 else
12751 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12753 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12754 $as_echo_n "(cached) " >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-ldld $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12768 #ifdef __cplusplus
12769 extern "C"
12770 #endif
12771 char dld_link ();
12773 main ()
12775 return dld_link ();
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12787 $as_echo "$ac_try_echo") >&5
12788 (eval "$ac_link") 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && {
12795 test -z "$ac_c_werror_flag" ||
12796 test ! -s conftest.err
12797 } && test -s conftest$ac_exeext && {
12798 test "$cross_compiling" = yes ||
12799 $as_test_x conftest$ac_exeext
12800 }; then
12801 ac_cv_lib_dld_dld_link=yes
12802 else
12803 $as_echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_lib_dld_dld_link=no
12809 rm -rf conftest.dSYM
12810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12811 conftest$ac_exeext conftest.$ac_ext
12812 LIBS=$ac_check_lib_save_LIBS
12814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12815 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12816 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12836 esac
12838 if test "x$lt_cv_dlopen" != xno; then
12839 enable_dlopen=yes
12840 else
12841 enable_dlopen=no
12844 case $lt_cv_dlopen in
12845 dlopen)
12846 save_CPPFLAGS="$CPPFLAGS"
12847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12849 save_LDFLAGS="$LDFLAGS"
12850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12852 save_LIBS="$LIBS"
12853 LIBS="$lt_cv_dlopen_libs $LIBS"
12855 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12856 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12857 if test "${lt_cv_dlopen_self+set}" = set; then
12858 $as_echo_n "(cached) " >&6
12859 else
12860 if test "$cross_compiling" = yes; then :
12861 lt_cv_dlopen_self=cross
12862 else
12863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12864 lt_status=$lt_dlunknown
12865 cat > conftest.$ac_ext <<_LT_EOF
12866 #line 12866 "configure"
12867 #include "confdefs.h"
12869 #if HAVE_DLFCN_H
12870 #include <dlfcn.h>
12871 #endif
12873 #include <stdio.h>
12875 #ifdef RTLD_GLOBAL
12876 # define LT_DLGLOBAL RTLD_GLOBAL
12877 #else
12878 # ifdef DL_GLOBAL
12879 # define LT_DLGLOBAL DL_GLOBAL
12880 # else
12881 # define LT_DLGLOBAL 0
12882 # endif
12883 #endif
12885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12886 find out it does not work in some platform. */
12887 #ifndef LT_DLLAZY_OR_NOW
12888 # ifdef RTLD_LAZY
12889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12890 # else
12891 # ifdef DL_LAZY
12892 # define LT_DLLAZY_OR_NOW DL_LAZY
12893 # else
12894 # ifdef RTLD_NOW
12895 # define LT_DLLAZY_OR_NOW RTLD_NOW
12896 # else
12897 # ifdef DL_NOW
12898 # define LT_DLLAZY_OR_NOW DL_NOW
12899 # else
12900 # define LT_DLLAZY_OR_NOW 0
12901 # endif
12902 # endif
12903 # endif
12904 # endif
12905 #endif
12907 void fnord() { int i=42;}
12908 int main ()
12910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12911 int status = $lt_dlunknown;
12913 if (self)
12915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12917 /* dlclose (self); */
12919 else
12920 puts (dlerror ());
12922 return status;
12924 _LT_EOF
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>&5
12927 ac_status=$?
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12930 (./conftest; exit; ) >&5 2>/dev/null
12931 lt_status=$?
12932 case x$lt_status in
12933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12936 esac
12937 else :
12938 # compilation failed
12939 lt_cv_dlopen_self=no
12942 rm -fr conftest*
12946 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12947 $as_echo "$lt_cv_dlopen_self" >&6; }
12949 if test "x$lt_cv_dlopen_self" = xyes; then
12950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12951 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12952 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12953 if test "${lt_cv_dlopen_self_static+set}" = set; then
12954 $as_echo_n "(cached) " >&6
12955 else
12956 if test "$cross_compiling" = yes; then :
12957 lt_cv_dlopen_self_static=cross
12958 else
12959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12960 lt_status=$lt_dlunknown
12961 cat > conftest.$ac_ext <<_LT_EOF
12962 #line 12962 "configure"
12963 #include "confdefs.h"
12965 #if HAVE_DLFCN_H
12966 #include <dlfcn.h>
12967 #endif
12969 #include <stdio.h>
12971 #ifdef RTLD_GLOBAL
12972 # define LT_DLGLOBAL RTLD_GLOBAL
12973 #else
12974 # ifdef DL_GLOBAL
12975 # define LT_DLGLOBAL DL_GLOBAL
12976 # else
12977 # define LT_DLGLOBAL 0
12978 # endif
12979 #endif
12981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12982 find out it does not work in some platform. */
12983 #ifndef LT_DLLAZY_OR_NOW
12984 # ifdef RTLD_LAZY
12985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12986 # else
12987 # ifdef DL_LAZY
12988 # define LT_DLLAZY_OR_NOW DL_LAZY
12989 # else
12990 # ifdef RTLD_NOW
12991 # define LT_DLLAZY_OR_NOW RTLD_NOW
12992 # else
12993 # ifdef DL_NOW
12994 # define LT_DLLAZY_OR_NOW DL_NOW
12995 # else
12996 # define LT_DLLAZY_OR_NOW 0
12997 # endif
12998 # endif
12999 # endif
13000 # endif
13001 #endif
13003 void fnord() { int i=42;}
13004 int main ()
13006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13007 int status = $lt_dlunknown;
13009 if (self)
13011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13013 /* dlclose (self); */
13015 else
13016 puts (dlerror ());
13018 return status;
13020 _LT_EOF
13021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022 (eval $ac_link) 2>&5
13023 ac_status=$?
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13026 (./conftest; exit; ) >&5 2>/dev/null
13027 lt_status=$?
13028 case x$lt_status in
13029 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13030 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13031 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13032 esac
13033 else :
13034 # compilation failed
13035 lt_cv_dlopen_self_static=no
13038 rm -fr conftest*
13042 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13043 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13046 CPPFLAGS="$save_CPPFLAGS"
13047 LDFLAGS="$save_LDFLAGS"
13048 LIBS="$save_LIBS"
13050 esac
13052 case $lt_cv_dlopen_self in
13053 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13054 *) enable_dlopen_self=unknown ;;
13055 esac
13057 case $lt_cv_dlopen_self_static in
13058 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13059 *) enable_dlopen_self_static=unknown ;;
13060 esac
13079 striplib=
13080 old_striplib=
13081 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13082 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13083 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13085 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13086 { $as_echo "$as_me:$LINENO: result: yes" >&5
13087 $as_echo "yes" >&6; }
13088 else
13089 # FIXME - insert some real tests, host_os isn't really good enough
13090 case $host_os in
13091 darwin*)
13092 if test -n "$STRIP" ; then
13093 striplib="$STRIP -x"
13094 old_striplib="$STRIP -S"
13095 { $as_echo "$as_me:$LINENO: result: yes" >&5
13096 $as_echo "yes" >&6; }
13097 else
13098 { $as_echo "$as_me:$LINENO: result: no" >&5
13099 $as_echo "no" >&6; }
13103 { $as_echo "$as_me:$LINENO: result: no" >&5
13104 $as_echo "no" >&6; }
13106 esac
13120 # Report which library types will actually be built
13121 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13122 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13123 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13124 $as_echo "$can_build_shared" >&6; }
13126 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13127 $as_echo_n "checking whether to build shared libraries... " >&6; }
13128 test "$can_build_shared" = "no" && enable_shared=no
13130 # On AIX, shared libraries and static libraries use the same namespace, and
13131 # are all built from PIC.
13132 case $host_os in
13133 aix3*)
13134 test "$enable_shared" = yes && enable_static=no
13135 if test -n "$RANLIB"; then
13136 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13137 postinstall_cmds='$RANLIB $lib'
13141 aix[4-9]*)
13142 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13143 test "$enable_shared" = yes && enable_static=no
13146 esac
13147 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13148 $as_echo "$enable_shared" >&6; }
13150 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13151 $as_echo_n "checking whether to build static libraries... " >&6; }
13152 # Make sure either enable_shared or enable_static is yes.
13153 test "$enable_shared" = yes || enable_static=yes
13154 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13155 $as_echo "$enable_static" >&6; }
13161 ac_ext=c
13162 ac_cpp='$CPP $CPPFLAGS'
13163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13167 CC="$lt_save_CC"
13181 ac_config_commands="$ac_config_commands libtool"
13186 # Only expand once:
13189 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
13190 set dummy glib-genmarshal; ac_word=$2
13191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
13194 $as_echo_n "(cached) " >&6
13195 else
13196 case $GLIB_GENMARSHAL in
13197 [\\/]* | ?:[\\/]*)
13198 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
13209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13212 done
13213 done
13214 IFS=$as_save_IFS
13217 esac
13219 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
13220 if test -n "$GLIB_GENMARSHAL"; then
13221 { $as_echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
13222 $as_echo "$GLIB_GENMARSHAL" >&6; }
13223 else
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225 $as_echo "no" >&6; }
13230 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13231 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13232 if test "${ac_cv_c_const+set}" = set; then
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13243 main ()
13245 /* FIXME: Include the comments suggested by Paul. */
13246 #ifndef __cplusplus
13247 /* Ultrix mips cc rejects this. */
13248 typedef int charset[2];
13249 const charset cs;
13250 /* SunOS 4.1.1 cc rejects this. */
13251 char const *const *pcpcc;
13252 char **ppc;
13253 /* NEC SVR4.0.2 mips cc rejects this. */
13254 struct point {int x, y;};
13255 static struct point const zero = {0,0};
13256 /* AIX XL C 1.02.0.0 rejects this.
13257 It does not let you subtract one const X* pointer from another in
13258 an arm of an if-expression whose if-part is not a constant
13259 expression */
13260 const char *g = "string";
13261 pcpcc = &g + (g ? g-g : 0);
13262 /* HPUX 7.0 cc rejects these. */
13263 ++pcpcc;
13264 ppc = (char**) pcpcc;
13265 pcpcc = (char const *const *) ppc;
13266 { /* SCO 3.2v4 cc rejects this. */
13267 char *t;
13268 char const *s = 0 ? (char *) 0 : (char const *) 0;
13270 *t++ = 0;
13271 if (s) return 0;
13273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13274 int x[] = {25, 17};
13275 const int *foo = &x[0];
13276 ++foo;
13278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13279 typedef const int *iptr;
13280 iptr p = 0;
13281 ++p;
13283 { /* AIX XL C 1.02.0.0 rejects this saying
13284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13285 struct s { int j; const int *ap[3]; };
13286 struct s *b; b->j = 5;
13288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13289 const int foo = 10;
13290 if (!foo) return 0;
13292 return !cs[0] && !zero.x;
13293 #endif
13296 return 0;
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304 esac
13305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13306 $as_echo "$ac_try_echo") >&5
13307 (eval "$ac_compile") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest.$ac_objext; then
13317 ac_cv_c_const=yes
13318 else
13319 $as_echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_cv_c_const=no
13325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13328 $as_echo "$ac_cv_c_const" >&6; }
13329 if test $ac_cv_c_const = no; then
13331 cat >>confdefs.h <<\_ACEOF
13332 #define const /**/
13333 _ACEOF
13337 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
13338 $as_echo_n "checking for size_t... " >&6; }
13339 if test "${ac_cv_type_size_t+set}" = set; then
13340 $as_echo_n "(cached) " >&6
13341 else
13342 ac_cv_type_size_t=no
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13351 main ()
13353 if (sizeof (size_t))
13354 return 0;
13356 return 0;
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13364 esac
13365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13366 $as_echo "$ac_try_echo") >&5
13367 (eval "$ac_compile") 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && {
13374 test -z "$ac_c_werror_flag" ||
13375 test ! -s conftest.err
13376 } && test -s conftest.$ac_objext; then
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 $ac_includes_default
13385 main ()
13387 if (sizeof ((size_t)))
13388 return 0;
13390 return 0;
13392 _ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (ac_try="$ac_compile"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398 esac
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400 $as_echo "$ac_try_echo") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest.$ac_objext; then
13412 else
13413 $as_echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 ac_cv_type_size_t=yes
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 else
13421 $as_echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13430 $as_echo "$ac_cv_type_size_t" >&6; }
13431 if test "x$ac_cv_type_size_t" = x""yes; then
13433 else
13435 cat >>confdefs.h <<_ACEOF
13436 #define size_t unsigned int
13437 _ACEOF
13442 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13443 $as_echo_n "checking for ANSI C header files... " >&6; }
13444 if test "${ac_cv_header_stdc+set}" = set; then
13445 $as_echo_n "(cached) " >&6
13446 else
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 #include <stdlib.h>
13454 #include <stdarg.h>
13455 #include <string.h>
13456 #include <float.h>
13459 main ()
13463 return 0;
13465 _ACEOF
13466 rm -f conftest.$ac_objext
13467 if { (ac_try="$ac_compile"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471 esac
13472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13473 $as_echo "$ac_try_echo") >&5
13474 (eval "$ac_compile") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest.$ac_objext; then
13484 ac_cv_header_stdc=yes
13485 else
13486 $as_echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_cv_header_stdc=no
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 if test $ac_cv_header_stdc = yes; then
13495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h. */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include <string.h>
13504 _ACEOF
13505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13506 $EGREP "memchr" >/dev/null 2>&1; then
13508 else
13509 ac_cv_header_stdc=no
13511 rm -f conftest*
13515 if test $ac_cv_header_stdc = yes; then
13516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <stdlib.h>
13525 _ACEOF
13526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13527 $EGREP "free" >/dev/null 2>&1; then
13529 else
13530 ac_cv_header_stdc=no
13532 rm -f conftest*
13536 if test $ac_cv_header_stdc = yes; then
13537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13538 if test "$cross_compiling" = yes; then
13540 else
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #include <ctype.h>
13548 #include <stdlib.h>
13549 #if ((' ' & 0x0FF) == 0x020)
13550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13552 #else
13553 # define ISLOWER(c) \
13554 (('a' <= (c) && (c) <= 'i') \
13555 || ('j' <= (c) && (c) <= 'r') \
13556 || ('s' <= (c) && (c) <= 'z'))
13557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13558 #endif
13560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13562 main ()
13564 int i;
13565 for (i = 0; i < 256; i++)
13566 if (XOR (islower (i), ISLOWER (i))
13567 || toupper (i) != TOUPPER (i))
13568 return 2;
13569 return 0;
13571 _ACEOF
13572 rm -f conftest$ac_exeext
13573 if { (ac_try="$ac_link"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577 esac
13578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13579 $as_echo "$ac_try_echo") >&5
13580 (eval "$ac_link") 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589 $as_echo "$ac_try_echo") >&5
13590 (eval "$ac_try") 2>&5
13591 ac_status=$?
13592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13595 else
13596 $as_echo "$as_me: program exited with status $ac_status" >&5
13597 $as_echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ( exit $ac_status )
13601 ac_cv_header_stdc=no
13603 rm -rf conftest.dSYM
13604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13610 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13611 $as_echo "$ac_cv_header_stdc" >&6; }
13612 if test $ac_cv_header_stdc = yes; then
13614 cat >>confdefs.h <<\_ACEOF
13615 #define STDC_HEADERS 1
13616 _ACEOF
13623 for ac_func in snprintf vsnprintf
13625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13626 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13627 $as_echo_n "checking for $ac_func... " >&6; }
13628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13629 $as_echo_n "(cached) " >&6
13630 else
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13639 #define $ac_func innocuous_$ac_func
13641 /* System header to define __stub macros and hopefully few prototypes,
13642 which can conflict with char $ac_func (); below.
13643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13644 <limits.h> exists even on freestanding compilers. */
13646 #ifdef __STDC__
13647 # include <limits.h>
13648 #else
13649 # include <assert.h>
13650 #endif
13652 #undef $ac_func
13654 /* Override any GCC internal prototype to avoid an error.
13655 Use char because int might match the return type of a GCC
13656 builtin and then its argument prototype would still apply. */
13657 #ifdef __cplusplus
13658 extern "C"
13659 #endif
13660 char $ac_func ();
13661 /* The GNU C library defines this for functions which it implements
13662 to always fail with ENOSYS. Some functions are actually named
13663 something starting with __ and the normal name is an alias. */
13664 #if defined __stub_$ac_func || defined __stub___$ac_func
13665 choke me
13666 #endif
13669 main ()
13671 return $ac_func ();
13673 return 0;
13675 _ACEOF
13676 rm -f conftest.$ac_objext conftest$ac_exeext
13677 if { (ac_try="$ac_link"
13678 case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13681 esac
13682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13683 $as_echo "$ac_try_echo") >&5
13684 (eval "$ac_link") 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } && {
13691 test -z "$ac_c_werror_flag" ||
13692 test ! -s conftest.err
13693 } && test -s conftest$ac_exeext && {
13694 test "$cross_compiling" = yes ||
13695 $as_test_x conftest$ac_exeext
13696 }; then
13697 eval "$as_ac_var=yes"
13698 else
13699 $as_echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 eval "$as_ac_var=no"
13705 rm -rf conftest.dSYM
13706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13707 conftest$ac_exeext conftest.$ac_ext
13709 ac_res=`eval 'as_val=${'$as_ac_var'}
13710 $as_echo "$as_val"'`
13711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13712 $as_echo "$ac_res" >&6; }
13713 as_val=`eval 'as_val=${'$as_ac_var'}
13714 $as_echo "$as_val"'`
13715 if test "x$as_val" = x""yes; then
13716 cat >>confdefs.h <<_ACEOF
13717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13718 _ACEOF
13721 done
13726 for ac_func in memrchr strtoull atoll
13728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13730 $as_echo_n "checking for $ac_func... " >&6; }
13731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13742 #define $ac_func innocuous_$ac_func
13744 /* System header to define __stub macros and hopefully few prototypes,
13745 which can conflict with char $ac_func (); below.
13746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13747 <limits.h> exists even on freestanding compilers. */
13749 #ifdef __STDC__
13750 # include <limits.h>
13751 #else
13752 # include <assert.h>
13753 #endif
13755 #undef $ac_func
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply. */
13760 #ifdef __cplusplus
13761 extern "C"
13762 #endif
13763 char $ac_func ();
13764 /* The GNU C library defines this for functions which it implements
13765 to always fail with ENOSYS. Some functions are actually named
13766 something starting with __ and the normal name is an alias. */
13767 #if defined __stub_$ac_func || defined __stub___$ac_func
13768 choke me
13769 #endif
13772 main ()
13774 return $ac_func ();
13776 return 0;
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784 esac
13785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13786 $as_echo "$ac_try_echo") >&5
13787 (eval "$ac_link") 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } && {
13794 test -z "$ac_c_werror_flag" ||
13795 test ! -s conftest.err
13796 } && test -s conftest$ac_exeext && {
13797 test "$cross_compiling" = yes ||
13798 $as_test_x conftest$ac_exeext
13799 }; then
13800 eval "$as_ac_var=yes"
13801 else
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 eval "$as_ac_var=no"
13808 rm -rf conftest.dSYM
13809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13810 conftest$ac_exeext conftest.$ac_ext
13812 ac_res=`eval 'as_val=${'$as_ac_var'}
13813 $as_echo "$as_val"'`
13814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13815 $as_echo "$ac_res" >&6; }
13816 as_val=`eval 'as_val=${'$as_ac_var'}
13817 $as_echo "$as_val"'`
13818 if test "x$as_val" = x""yes; then
13819 cat >>confdefs.h <<_ACEOF
13820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13821 _ACEOF
13824 done
13830 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
13831 if test -n "$ac_macro_dir"; then
13832 ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
13840 if test $USE_MAINTAINER_MODE = yes; then
13841 DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DWNCK_DISABLE_DEPRECATED -DLIBSOUP_DISABLE_DEPRECATED"
13842 else
13843 DISABLE_DEPRECATED=""
13848 # Check whether --enable-debug was given.
13849 if test "${enable_debug+set}" = set; then
13850 enableval=$enable_debug;
13851 else
13852 enable_debug=no
13856 if test x$enable_debug = xyes ; then
13858 cat >>confdefs.h <<\_ACEOF
13859 #define GNOME_ENABLE_DEBUG 1
13860 _ACEOF
13866 # Check whether --enable-compile-warnings was given.
13867 if test "${enable_compile_warnings+set}" = set; then
13868 enableval=$enable_compile_warnings;
13869 else
13870 enable_compile_warnings="maximum"
13874 warnCFLAGS=
13875 if test "x$GCC" != xyes; then
13876 enable_compile_warnings=no
13879 warning_flags=
13880 realsave_CFLAGS="$CFLAGS"
13882 case "$enable_compile_warnings" in
13884 warning_flags=
13886 minimum)
13887 warning_flags="-Wall"
13889 yes)
13890 warning_flags="-Wall -Wmissing-prototypes"
13892 maximum|error)
13893 warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
13894 CFLAGS="$warning_flags $CFLAGS"
13895 for option in -Wno-sign-compare; do
13896 SAVE_CFLAGS="$CFLAGS"
13897 CFLAGS="$CFLAGS $option"
13898 { $as_echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
13899 $as_echo_n "checking whether gcc understands $option... " >&6; }
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13908 main ()
13912 return 0;
13914 _ACEOF
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920 esac
13921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13922 $as_echo "$ac_try_echo") >&5
13923 (eval "$ac_compile") 2>conftest.er1
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && {
13930 test -z "$ac_c_werror_flag" ||
13931 test ! -s conftest.err
13932 } && test -s conftest.$ac_objext; then
13933 has_option=yes
13934 else
13935 $as_echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 has_option=no
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 CFLAGS="$SAVE_CFLAGS"
13943 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
13944 $as_echo "$has_option" >&6; }
13945 if test $has_option = yes; then
13946 warning_flags="$warning_flags $option"
13948 unset has_option
13949 unset SAVE_CFLAGS
13950 done
13951 unset option
13952 if test "$enable_compile_warnings" = "error" ; then
13953 warning_flags="$warning_flags -Werror"
13957 { { $as_echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
13958 $as_echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
13959 { (exit 1); exit 1; }; }
13961 esac
13962 CFLAGS="$realsave_CFLAGS"
13963 { $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
13964 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
13965 { $as_echo "$as_me:$LINENO: result: $warning_flags" >&5
13966 $as_echo "$warning_flags" >&6; }
13968 # Check whether --enable-iso-c was given.
13969 if test "${enable_iso_c+set}" = set; then
13970 enableval=$enable_iso_c;
13971 else
13972 enable_iso_c=no
13976 { $as_echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
13977 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
13978 complCFLAGS=
13979 if test "x$enable_iso_c" != "xno"; then
13980 if test "x$GCC" = "xyes"; then
13981 case " $CFLAGS " in
13982 *\ \ -ansi\ \ *) ;;
13983 *) complCFLAGS="$complCFLAGS -ansi" ;;
13984 esac
13985 case " $CFLAGS " in
13986 *\ \ -pedantic\ \ *) ;;
13987 *) complCFLAGS="$complCFLAGS -pedantic" ;;
13988 esac
13991 { $as_echo "$as_me:$LINENO: result: $complCFLAGS" >&5
13992 $as_echo "$complCFLAGS" >&6; }
13994 WARN_CFLAGS="$warning_flags $complCFLAGS"
14000 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14001 if test -n "$ac_tool_prefix"; then
14002 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14003 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14005 $as_echo_n "checking for $ac_word... " >&6; }
14006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14007 $as_echo_n "(cached) " >&6
14008 else
14009 case $PKG_CONFIG in
14010 [\\/]* | ?:[\\/]*)
14011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14017 IFS=$as_save_IFS
14018 test -z "$as_dir" && as_dir=.
14019 for ac_exec_ext in '' $ac_executable_extensions; do
14020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14021 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14023 break 2
14025 done
14026 done
14027 IFS=$as_save_IFS
14030 esac
14032 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14033 if test -n "$PKG_CONFIG"; then
14034 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14035 $as_echo "$PKG_CONFIG" >&6; }
14036 else
14037 { $as_echo "$as_me:$LINENO: result: no" >&5
14038 $as_echo "no" >&6; }
14043 if test -z "$ac_cv_path_PKG_CONFIG"; then
14044 ac_pt_PKG_CONFIG=$PKG_CONFIG
14045 # Extract the first word of "pkg-config", so it can be a program name with args.
14046 set dummy pkg-config; ac_word=$2
14047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
14050 $as_echo_n "(cached) " >&6
14051 else
14052 case $ac_pt_PKG_CONFIG in
14053 [\\/]* | ?:[\\/]*)
14054 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14068 done
14069 done
14070 IFS=$as_save_IFS
14073 esac
14075 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14076 if test -n "$ac_pt_PKG_CONFIG"; then
14077 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
14078 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14079 else
14080 { $as_echo "$as_me:$LINENO: result: no" >&5
14081 $as_echo "no" >&6; }
14084 if test "x$ac_pt_PKG_CONFIG" = x; then
14085 PKG_CONFIG=""
14086 else
14087 case $cross_compiling:$ac_tool_warned in
14088 yes:)
14089 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14091 ac_tool_warned=yes ;;
14092 esac
14093 PKG_CONFIG=$ac_pt_PKG_CONFIG
14095 else
14096 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14100 if test -n "$PKG_CONFIG"; then
14101 _pkg_min_version=0.9.0
14102 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
14103 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14104 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14105 { $as_echo "$as_me:$LINENO: result: yes" >&5
14106 $as_echo "yes" >&6; }
14107 else
14108 { $as_echo "$as_me:$LINENO: result: no" >&5
14109 $as_echo "no" >&6; }
14110 PKG_CONFIG=""
14115 # Set up gnome-doc-utils
14117 gdu_cv_version_required=0.3.2
14119 if test -n "$PKG_CONFIG" && \
14120 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-doc-utils >= \$gdu_cv_version_required\"") >&5
14121 ($PKG_CONFIG --exists --print-errors "gnome-doc-utils >= $gdu_cv_version_required") 2>&5
14122 ac_status=$?
14123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; then
14125 gdu_cv_have_gdu=yes
14126 else
14127 gdu_cv_have_gdu=no
14130 if test "$gdu_cv_have_gdu" = "yes"; then
14132 else
14133 { { $as_echo "$as_me:$LINENO: error: gnome-doc-utils >= $gdu_cv_version_required not found" >&5
14134 $as_echo "$as_me: error: gnome-doc-utils >= $gdu_cv_version_required not found" >&2;}
14135 { (exit 1); exit 1; }; }
14140 # Check whether --with-help-dir was given.
14141 if test "${with_help_dir+set}" = set; then
14142 withval=$with_help_dir;
14143 else
14144 with_help_dir='${datadir}/gnome/help'
14147 HELP_DIR="$with_help_dir"
14151 # Check whether --with-omf-dir was given.
14152 if test "${with_omf_dir+set}" = set; then
14153 withval=$with_omf_dir;
14154 else
14155 with_omf_dir='${datadir}/omf'
14158 OMF_DIR="$with_omf_dir"
14162 # Check whether --with-help-formats was given.
14163 if test "${with_help_formats+set}" = set; then
14164 withval=$with_help_formats;
14165 else
14166 with_help_formats=''
14169 DOC_USER_FORMATS="$with_help_formats"
14172 # Check whether --enable-scrollkeeper was given.
14173 if test "${enable_scrollkeeper+set}" = set; then
14174 enableval=$enable_scrollkeeper;
14175 else
14176 enable_scrollkeeper=yes
14179 if test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"; then
14180 ENABLE_SK_TRUE=
14181 ENABLE_SK_FALSE='#'
14182 else
14183 ENABLE_SK_TRUE='#'
14184 ENABLE_SK_FALSE=
14188 DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
14191 if test "$gdu_cv_have_gdu" = "yes"; then
14192 HAVE_GNOME_DOC_UTILS_TRUE=
14193 HAVE_GNOME_DOC_UTILS_FALSE='#'
14194 else
14195 HAVE_GNOME_DOC_UTILS_TRUE='#'
14196 HAVE_GNOME_DOC_UTILS_FALSE=
14202 # Hard dependencies
14204 pkg_failed=no
14205 { $as_echo "$as_me:$LINENO: checking for DEPENDENCIES" >&5
14206 $as_echo_n "checking for DEPENDENCIES... " >&6; }
14208 if test -n "$DEPENDENCIES_CFLAGS"; then
14209 pkg_cv_DEPENDENCIES_CFLAGS="$DEPENDENCIES_CFLAGS"
14210 elif test -n "$PKG_CONFIG"; then
14211 if test -n "$PKG_CONFIG" && \
14212 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\\
14213 glib-2.0 >= \$GLIB_REQUIRED \\
14214 gio-2.0 >= \$GLIB_REQUIRED \\
14215 gtk+-2.0 >= \$GTK_REQUIRED \\
14216 libglade-2.0 >= \$LIBGLADE_REQUIRED \\
14217 libgnome-2.0 >= \$LIBGNOME_REQUIRED \\
14218 libgnomeui-2.0 >= \$LIBGNOMEUI_REQUIRED \\
14219 gconf-2.0 >= \$GCONF_REQUIRED \\
14220 libsexy >= \$LIBSEXY_REQUIRED \\
14221 \"") >&5
14222 ($PKG_CONFIG --exists --print-errors "\
14223 glib-2.0 >= $GLIB_REQUIRED \
14224 gio-2.0 >= $GLIB_REQUIRED \
14225 gtk+-2.0 >= $GTK_REQUIRED \
14226 libglade-2.0 >= $LIBGLADE_REQUIRED \
14227 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14228 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14229 gconf-2.0 >= $GCONF_REQUIRED \
14230 libsexy >= $LIBSEXY_REQUIRED \
14231 ") 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; then
14235 pkg_cv_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "\
14236 glib-2.0 >= $GLIB_REQUIRED \
14237 gio-2.0 >= $GLIB_REQUIRED \
14238 gtk+-2.0 >= $GTK_REQUIRED \
14239 libglade-2.0 >= $LIBGLADE_REQUIRED \
14240 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14241 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14242 gconf-2.0 >= $GCONF_REQUIRED \
14243 libsexy >= $LIBSEXY_REQUIRED \
14244 " 2>/dev/null`
14245 else
14246 pkg_failed=yes
14248 else
14249 pkg_failed=untried
14251 if test -n "$DEPENDENCIES_LIBS"; then
14252 pkg_cv_DEPENDENCIES_LIBS="$DEPENDENCIES_LIBS"
14253 elif test -n "$PKG_CONFIG"; then
14254 if test -n "$PKG_CONFIG" && \
14255 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\\
14256 glib-2.0 >= \$GLIB_REQUIRED \\
14257 gio-2.0 >= \$GLIB_REQUIRED \\
14258 gtk+-2.0 >= \$GTK_REQUIRED \\
14259 libglade-2.0 >= \$LIBGLADE_REQUIRED \\
14260 libgnome-2.0 >= \$LIBGNOME_REQUIRED \\
14261 libgnomeui-2.0 >= \$LIBGNOMEUI_REQUIRED \\
14262 gconf-2.0 >= \$GCONF_REQUIRED \\
14263 libsexy >= \$LIBSEXY_REQUIRED \\
14264 \"") >&5
14265 ($PKG_CONFIG --exists --print-errors "\
14266 glib-2.0 >= $GLIB_REQUIRED \
14267 gio-2.0 >= $GLIB_REQUIRED \
14268 gtk+-2.0 >= $GTK_REQUIRED \
14269 libglade-2.0 >= $LIBGLADE_REQUIRED \
14270 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14271 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14272 gconf-2.0 >= $GCONF_REQUIRED \
14273 libsexy >= $LIBSEXY_REQUIRED \
14274 ") 2>&5
14275 ac_status=$?
14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; then
14278 pkg_cv_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "\
14279 glib-2.0 >= $GLIB_REQUIRED \
14280 gio-2.0 >= $GLIB_REQUIRED \
14281 gtk+-2.0 >= $GTK_REQUIRED \
14282 libglade-2.0 >= $LIBGLADE_REQUIRED \
14283 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14284 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14285 gconf-2.0 >= $GCONF_REQUIRED \
14286 libsexy >= $LIBSEXY_REQUIRED \
14287 " 2>/dev/null`
14288 else
14289 pkg_failed=yes
14291 else
14292 pkg_failed=untried
14297 if test $pkg_failed = yes; then
14299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14300 _pkg_short_errors_supported=yes
14301 else
14302 _pkg_short_errors_supported=no
14304 if test $_pkg_short_errors_supported = yes; then
14305 DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\
14306 glib-2.0 >= $GLIB_REQUIRED \
14307 gio-2.0 >= $GLIB_REQUIRED \
14308 gtk+-2.0 >= $GTK_REQUIRED \
14309 libglade-2.0 >= $LIBGLADE_REQUIRED \
14310 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14311 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14312 gconf-2.0 >= $GCONF_REQUIRED \
14313 libsexy >= $LIBSEXY_REQUIRED \
14314 " 2>&1`
14315 else
14316 DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors "\
14317 glib-2.0 >= $GLIB_REQUIRED \
14318 gio-2.0 >= $GLIB_REQUIRED \
14319 gtk+-2.0 >= $GTK_REQUIRED \
14320 libglade-2.0 >= $LIBGLADE_REQUIRED \
14321 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14322 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14323 gconf-2.0 >= $GCONF_REQUIRED \
14324 libsexy >= $LIBSEXY_REQUIRED \
14325 " 2>&1`
14327 # Put the nasty error message in config.log where it belongs
14328 echo "$DEPENDENCIES_PKG_ERRORS" >&5
14330 { { $as_echo "$as_me:$LINENO: error: Package requirements (\
14331 glib-2.0 >= $GLIB_REQUIRED \
14332 gio-2.0 >= $GLIB_REQUIRED \
14333 gtk+-2.0 >= $GTK_REQUIRED \
14334 libglade-2.0 >= $LIBGLADE_REQUIRED \
14335 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14336 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14337 gconf-2.0 >= $GCONF_REQUIRED \
14338 libsexy >= $LIBSEXY_REQUIRED \
14339 ) were not met:
14341 $DEPENDENCIES_PKG_ERRORS
14343 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14344 installed software in a non-standard prefix.
14346 Alternatively, you may set the environment variables DEPENDENCIES_CFLAGS
14347 and DEPENDENCIES_LIBS to avoid the need to call pkg-config.
14348 See the pkg-config man page for more details.
14349 " >&5
14350 $as_echo "$as_me: error: Package requirements (\
14351 glib-2.0 >= $GLIB_REQUIRED \
14352 gio-2.0 >= $GLIB_REQUIRED \
14353 gtk+-2.0 >= $GTK_REQUIRED \
14354 libglade-2.0 >= $LIBGLADE_REQUIRED \
14355 libgnome-2.0 >= $LIBGNOME_REQUIRED \
14356 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
14357 gconf-2.0 >= $GCONF_REQUIRED \
14358 libsexy >= $LIBSEXY_REQUIRED \
14359 ) were not met:
14361 $DEPENDENCIES_PKG_ERRORS
14363 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14364 installed software in a non-standard prefix.
14366 Alternatively, you may set the environment variables DEPENDENCIES_CFLAGS
14367 and DEPENDENCIES_LIBS to avoid the need to call pkg-config.
14368 See the pkg-config man page for more details.
14369 " >&2;}
14370 { (exit 1); exit 1; }; }
14371 elif test $pkg_failed = untried; then
14372 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14374 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14375 is in your PATH or set the PKG_CONFIG environment variable to the full
14376 path to pkg-config.
14378 Alternatively, you may set the environment variables DEPENDENCIES_CFLAGS
14379 and DEPENDENCIES_LIBS to avoid the need to call pkg-config.
14380 See the pkg-config man page for more details.
14382 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14383 See \`config.log' for more details." >&5
14384 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14385 is in your PATH or set the PKG_CONFIG environment variable to the full
14386 path to pkg-config.
14388 Alternatively, you may set the environment variables DEPENDENCIES_CFLAGS
14389 and DEPENDENCIES_LIBS to avoid the need to call pkg-config.
14390 See the pkg-config man page for more details.
14392 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14393 See \`config.log' for more details." >&2;}
14394 { (exit 1); exit 1; }; }; }
14395 else
14396 DEPENDENCIES_CFLAGS=$pkg_cv_DEPENDENCIES_CFLAGS
14397 DEPENDENCIES_LIBS=$pkg_cv_DEPENDENCIES_LIBS
14398 { $as_echo "$as_me:$LINENO: result: yes" >&5
14399 $as_echo "yes" >&6; }
14403 #D-Bus
14404 { $as_echo "$as_me:$LINENO: checking whether D-Bus support is requested" >&5
14405 $as_echo_n "checking whether D-Bus support is requested... " >&6; }
14406 # Check whether --enable-dbus was given.
14407 if test "${enable_dbus+set}" = set; then
14408 enableval=$enable_dbus; enable_dbus=$enableval dbus=$enableval
14409 else
14410 enable_dbus=autodetect dbus=yes
14413 { $as_echo "$as_me:$LINENO: result: $enable_dbus" >&5
14414 $as_echo "$enable_dbus" >&6; }
14416 if test "x$enable_dbus" != "xno"; then
14417 # D-BUS soft dependency
14419 pkg_failed=no
14420 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
14421 $as_echo_n "checking for DBUS... " >&6; }
14423 if test -n "$DBUS_CFLAGS"; then
14424 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
14425 elif test -n "$PKG_CONFIG"; then
14426 if test -n "$PKG_CONFIG" && \
14427 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\\
14428 dbus-1 >= \$DBUS_REQUIRED \\
14429 dbus-glib-1 >= \$DBUS_GLIB_REQUIRED \\
14430 gthread-2.0 \\
14431 \"") >&5
14432 ($PKG_CONFIG --exists --print-errors "\
14433 dbus-1 >= $DBUS_REQUIRED \
14434 dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
14435 gthread-2.0 \
14436 ") 2>&5
14437 ac_status=$?
14438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; then
14440 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "\
14441 dbus-1 >= $DBUS_REQUIRED \
14442 dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
14443 gthread-2.0 \
14444 " 2>/dev/null`
14445 else
14446 pkg_failed=yes
14448 else
14449 pkg_failed=untried
14451 if test -n "$DBUS_LIBS"; then
14452 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
14453 elif test -n "$PKG_CONFIG"; then
14454 if test -n "$PKG_CONFIG" && \
14455 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\\
14456 dbus-1 >= \$DBUS_REQUIRED \\
14457 dbus-glib-1 >= \$DBUS_GLIB_REQUIRED \\
14458 gthread-2.0 \\
14459 \"") >&5
14460 ($PKG_CONFIG --exists --print-errors "\
14461 dbus-1 >= $DBUS_REQUIRED \
14462 dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
14463 gthread-2.0 \
14464 ") 2>&5
14465 ac_status=$?
14466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; then
14468 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "\
14469 dbus-1 >= $DBUS_REQUIRED \
14470 dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
14471 gthread-2.0 \
14472 " 2>/dev/null`
14473 else
14474 pkg_failed=yes
14476 else
14477 pkg_failed=untried
14482 if test $pkg_failed = yes; then
14484 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14485 _pkg_short_errors_supported=yes
14486 else
14487 _pkg_short_errors_supported=no
14489 if test $_pkg_short_errors_supported = yes; then
14490 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\
14491 dbus-1 >= $DBUS_REQUIRED \
14492 dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
14493 gthread-2.0 \
14494 " 2>&1`
14495 else
14496 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "\
14497 dbus-1 >= $DBUS_REQUIRED \
14498 dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
14499 gthread-2.0 \
14500 " 2>&1`
14502 # Put the nasty error message in config.log where it belongs
14503 echo "$DBUS_PKG_ERRORS" >&5
14505 { $as_echo "$as_me:$LINENO: result: no" >&5
14506 $as_echo "no" >&6; }
14507 dbus=no
14508 elif test $pkg_failed = untried; then
14509 dbus=no
14510 else
14511 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
14512 DBUS_LIBS=$pkg_cv_DBUS_LIBS
14513 { $as_echo "$as_me:$LINENO: result: yes" >&5
14514 $as_echo "yes" >&6; }
14515 dbus=yes
14517 if test "x$dbus" = "xno"; then
14518 { $as_echo "$as_me:$LINENO: WARNING: Library requirements (dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED gthread-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14519 $as_echo "$as_me: WARNING: Library requirements (dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED gthread-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14523 # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
14524 set dummy dbus-binding-tool; ac_word=$2
14525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14526 $as_echo_n "checking for $ac_word... " >&6; }
14527 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then
14528 $as_echo_n "(cached) " >&6
14529 else
14530 case $DBUS_BINDING_TOOL in
14531 [\\/]* | ?:[\\/]*)
14532 ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
14535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14536 for as_dir in $PATH
14538 IFS=$as_save_IFS
14539 test -z "$as_dir" && as_dir=.
14540 for ac_exec_ext in '' $ac_executable_extensions; do
14541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14542 ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
14543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14544 break 2
14546 done
14547 done
14548 IFS=$as_save_IFS
14550 test -z "$ac_cv_path_DBUS_BINDING_TOOL" && ac_cv_path_DBUS_BINDING_TOOL="no"
14552 esac
14554 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
14555 if test -n "$DBUS_BINDING_TOOL"; then
14556 { $as_echo "$as_me:$LINENO: result: $DBUS_BINDING_TOOL" >&5
14557 $as_echo "$DBUS_BINDING_TOOL" >&6; }
14558 else
14559 { $as_echo "$as_me:$LINENO: result: no" >&5
14560 $as_echo "no" >&6; }
14564 if test "x$DBUS_BINDING_TOOL" = "xno"; then
14565 dbus="no"
14569 if test "x$dbus" != "xyes"; then
14570 if test "x$enable_dbus" = "xyes"; then
14571 { { $as_echo "$as_me:$LINENO: error: D-Bus not found" >&5
14572 $as_echo "$as_me: error: D-Bus not found" >&2;}
14573 { (exit 1); exit 1; }; }
14574 elif test "x$enable_dbus" = "xautodetect"; then
14575 { $as_echo "$as_me:$LINENO: WARNING: D-Bus not found, disabling dbus support" >&5
14576 $as_echo "$as_me: WARNING: D-Bus not found, disabling dbus support" >&2;}
14578 else
14580 cat >>confdefs.h <<\_ACEOF
14581 #define USE_DBUS 1
14582 _ACEOF
14585 EXP_VAR=DATADIR
14586 FROM_VAR=$datadir
14588 prefix_save=$prefix
14589 exec_prefix_save=$exec_prefix
14591 if test "x$prefix" = "xNONE"; then
14592 prefix=$ac_default_prefix
14594 if test "x$exec_prefix" = "xNONE"; then
14595 exec_prefix=$prefix
14598 full_var="$FROM_VAR"
14599 while true; do
14600 new_full_var="`eval echo $full_var`"
14601 if test "x$new_full_var"="x$full_var"; then break; fi
14602 full_var=$new_full_var
14603 done
14605 full_var=$new_full_var
14606 DATADIR="$full_var"
14609 prefix=$prefix_save
14610 exec_prefix=$exec_prefix_save
14613 DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
14616 cat >>confdefs.h <<_ACEOF
14617 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
14618 _ACEOF
14622 if test "x$dbus" = "xyes"; then
14623 ENABLE_DBUS_TRUE=
14624 ENABLE_DBUS_FALSE='#'
14625 else
14626 ENABLE_DBUS_TRUE='#'
14627 ENABLE_DBUS_FALSE=
14631 # libnotify
14632 { $as_echo "$as_me:$LINENO: checking whether to notification sounds using libnotify" >&5
14633 $as_echo_n "checking whether to notification sounds using libnotify... " >&6; }
14634 # Check whether --enable-notification was given.
14635 if test "${enable_notification+set}" = set; then
14636 enableval=$enable_notification;
14637 else
14638 enable_notification=yes
14641 { $as_echo "$as_me:$LINENO: result: $enable_notification" >&5
14642 $as_echo "$enable_notification" >&6; }
14644 if test "$enable_notification" = "yes"; then
14646 pkg_failed=no
14647 { $as_echo "$as_me:$LINENO: checking for LIBNOTIFY" >&5
14648 $as_echo_n "checking for LIBNOTIFY... " >&6; }
14650 if test -n "$LIBNOTIFY_CFLAGS"; then
14651 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
14652 elif test -n "$PKG_CONFIG"; then
14653 if test -n "$PKG_CONFIG" && \
14654 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5
14655 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5
14656 ac_status=$?
14657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; then
14659 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
14660 else
14661 pkg_failed=yes
14663 else
14664 pkg_failed=untried
14666 if test -n "$LIBNOTIFY_LIBS"; then
14667 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
14668 elif test -n "$PKG_CONFIG"; then
14669 if test -n "$PKG_CONFIG" && \
14670 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5
14671 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5
14672 ac_status=$?
14673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; then
14675 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
14676 else
14677 pkg_failed=yes
14679 else
14680 pkg_failed=untried
14685 if test $pkg_failed = yes; then
14687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14688 _pkg_short_errors_supported=yes
14689 else
14690 _pkg_short_errors_supported=no
14692 if test $_pkg_short_errors_supported = yes; then
14693 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnotify >= $LIBNOTIFY_REQUIRED" 2>&1`
14694 else
14695 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnotify >= $LIBNOTIFY_REQUIRED" 2>&1`
14697 # Put the nasty error message in config.log where it belongs
14698 echo "$LIBNOTIFY_PKG_ERRORS" >&5
14700 { { $as_echo "$as_me:$LINENO: error: Package requirements (libnotify >= $LIBNOTIFY_REQUIRED) were not met:
14702 $LIBNOTIFY_PKG_ERRORS
14704 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14705 installed software in a non-standard prefix.
14707 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
14708 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
14709 See the pkg-config man page for more details.
14710 " >&5
14711 $as_echo "$as_me: error: Package requirements (libnotify >= $LIBNOTIFY_REQUIRED) were not met:
14713 $LIBNOTIFY_PKG_ERRORS
14715 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14716 installed software in a non-standard prefix.
14718 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
14719 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
14720 See the pkg-config man page for more details.
14721 " >&2;}
14722 { (exit 1); exit 1; }; }
14723 elif test $pkg_failed = untried; then
14724 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14726 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14727 is in your PATH or set the PKG_CONFIG environment variable to the full
14728 path to pkg-config.
14730 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
14731 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
14732 See the pkg-config man page for more details.
14734 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14735 See \`config.log' for more details." >&5
14736 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14737 is in your PATH or set the PKG_CONFIG environment variable to the full
14738 path to pkg-config.
14740 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
14741 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
14742 See the pkg-config man page for more details.
14744 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14745 See \`config.log' for more details." >&2;}
14746 { (exit 1); exit 1; }; }; }
14747 else
14748 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
14749 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
14750 { $as_echo "$as_me:$LINENO: result: yes" >&5
14751 $as_echo "yes" >&6; }
14758 if test "x$enable_notification" = "xyes"; then
14759 ENABLE_LIBNOTIFY_TRUE=
14760 ENABLE_LIBNOTIFY_FALSE='#'
14761 else
14762 ENABLE_LIBNOTIFY_TRUE='#'
14763 ENABLE_LIBNOTIFY_FALSE=
14767 # libcanberra-gtk
14768 { $as_echo "$as_me:$LINENO: checking whether to enable notification sounds using libcanberra" >&5
14769 $as_echo_n "checking whether to enable notification sounds using libcanberra... " >&6; }
14770 # Check whether --enable-canberra was given.
14771 if test "${enable_canberra+set}" = set; then
14772 enableval=$enable_canberra;
14773 else
14774 enable_canberra=yes
14777 { $as_echo "$as_me:$LINENO: result: $enable_canberra" >&5
14778 $as_echo "$enable_canberra" >&6; }
14780 if test "$enable_canberra" = "yes"; then
14782 pkg_failed=no
14783 { $as_echo "$as_me:$LINENO: checking for LIBCANBERRAGTK" >&5
14784 $as_echo_n "checking for LIBCANBERRAGTK... " >&6; }
14786 if test -n "$LIBCANBERRAGTK_CFLAGS"; then
14787 pkg_cv_LIBCANBERRAGTK_CFLAGS="$LIBCANBERRAGTK_CFLAGS"
14788 elif test -n "$PKG_CONFIG"; then
14789 if test -n "$PKG_CONFIG" && \
14790 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcanberra-gtk >= \$LIBCANBERRAGTK_REQUIRED\"") >&5
14791 ($PKG_CONFIG --exists --print-errors "libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED") 2>&5
14792 ac_status=$?
14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; then
14795 pkg_cv_LIBCANBERRAGTK_CFLAGS=`$PKG_CONFIG --cflags "libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED" 2>/dev/null`
14796 else
14797 pkg_failed=yes
14799 else
14800 pkg_failed=untried
14802 if test -n "$LIBCANBERRAGTK_LIBS"; then
14803 pkg_cv_LIBCANBERRAGTK_LIBS="$LIBCANBERRAGTK_LIBS"
14804 elif test -n "$PKG_CONFIG"; then
14805 if test -n "$PKG_CONFIG" && \
14806 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcanberra-gtk >= \$LIBCANBERRAGTK_REQUIRED\"") >&5
14807 ($PKG_CONFIG --exists --print-errors "libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED") 2>&5
14808 ac_status=$?
14809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; then
14811 pkg_cv_LIBCANBERRAGTK_LIBS=`$PKG_CONFIG --libs "libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED" 2>/dev/null`
14812 else
14813 pkg_failed=yes
14815 else
14816 pkg_failed=untried
14821 if test $pkg_failed = yes; then
14823 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14824 _pkg_short_errors_supported=yes
14825 else
14826 _pkg_short_errors_supported=no
14828 if test $_pkg_short_errors_supported = yes; then
14829 LIBCANBERRAGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED" 2>&1`
14830 else
14831 LIBCANBERRAGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED" 2>&1`
14833 # Put the nasty error message in config.log where it belongs
14834 echo "$LIBCANBERRAGTK_PKG_ERRORS" >&5
14836 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED) were not met:
14838 $LIBCANBERRAGTK_PKG_ERRORS
14840 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14841 installed software in a non-standard prefix.
14843 Alternatively, you may set the environment variables LIBCANBERRAGTK_CFLAGS
14844 and LIBCANBERRAGTK_LIBS to avoid the need to call pkg-config.
14845 See the pkg-config man page for more details.
14846 " >&5
14847 $as_echo "$as_me: error: Package requirements (libcanberra-gtk >= $LIBCANBERRAGTK_REQUIRED) were not met:
14849 $LIBCANBERRAGTK_PKG_ERRORS
14851 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14852 installed software in a non-standard prefix.
14854 Alternatively, you may set the environment variables LIBCANBERRAGTK_CFLAGS
14855 and LIBCANBERRAGTK_LIBS to avoid the need to call pkg-config.
14856 See the pkg-config man page for more details.
14857 " >&2;}
14858 { (exit 1); exit 1; }; }
14859 elif test $pkg_failed = untried; then
14860 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14862 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14863 is in your PATH or set the PKG_CONFIG environment variable to the full
14864 path to pkg-config.
14866 Alternatively, you may set the environment variables LIBCANBERRAGTK_CFLAGS
14867 and LIBCANBERRAGTK_LIBS to avoid the need to call pkg-config.
14868 See the pkg-config man page for more details.
14870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14871 See \`config.log' for more details." >&5
14872 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14873 is in your PATH or set the PKG_CONFIG environment variable to the full
14874 path to pkg-config.
14876 Alternatively, you may set the environment variables LIBCANBERRAGTK_CFLAGS
14877 and LIBCANBERRAGTK_LIBS to avoid the need to call pkg-config.
14878 See the pkg-config man page for more details.
14880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14881 See \`config.log' for more details." >&2;}
14882 { (exit 1); exit 1; }; }; }
14883 else
14884 LIBCANBERRAGTK_CFLAGS=$pkg_cv_LIBCANBERRAGTK_CFLAGS
14885 LIBCANBERRAGTK_LIBS=$pkg_cv_LIBCANBERRAGTK_LIBS
14886 { $as_echo "$as_me:$LINENO: result: yes" >&5
14887 $as_echo "yes" >&6; }
14894 if test "x$enable_canberra" = "xyes"; then
14895 ENABLE_LIBCANBERRA_TRUE=
14896 ENABLE_LIBCANBERRA_FALSE='#'
14897 else
14898 ENABLE_LIBCANBERRA_TRUE='#'
14899 ENABLE_LIBCANBERRA_FALSE=
14903 # GConf
14905 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
14906 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
14907 else
14908 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
14912 # Check whether --with-gconf-source was given.
14913 if test "${with_gconf_source+set}" = set; then
14914 withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
14919 { $as_echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
14920 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
14922 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
14923 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
14927 # Check whether --with-gconf-schema-file-dir was given.
14928 if test "${with_gconf_schema_file_dir+set}" = set; then
14929 withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
14934 { $as_echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
14935 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
14937 # Check whether --enable-schemas-install was given.
14938 if test "${enable_schemas_install+set}" = set; then
14939 enableval=$enable_schemas_install; case ${enableval} in
14940 yes|no) ;;
14941 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-schemas-install" >&5
14942 $as_echo "$as_me: error: bad value ${enableval} for --enable-schemas-install" >&2;}
14943 { (exit 1); exit 1; }; } ;;
14944 esac
14947 if test "$enable_schemas_install" != no; then
14948 GCONF_SCHEMAS_INSTALL_TRUE=
14949 GCONF_SCHEMAS_INSTALL_FALSE='#'
14950 else
14951 GCONF_SCHEMAS_INSTALL_TRUE='#'
14952 GCONF_SCHEMAS_INSTALL_FALSE=
14956 # Extract the first word of "gconftool-2", so it can be a program name with args.
14957 set dummy gconftool-2; ac_word=$2
14958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14959 $as_echo_n "checking for $ac_word... " >&6; }
14960 if test "${ac_cv_path_GCONFTOOL+set}" = set; then
14961 $as_echo_n "(cached) " >&6
14962 else
14963 case $GCONFTOOL in
14964 [\\/]* | ?:[\\/]*)
14965 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $PATH
14971 IFS=$as_save_IFS
14972 test -z "$as_dir" && as_dir=.
14973 for ac_exec_ext in '' $ac_executable_extensions; do
14974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14975 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
14976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14977 break 2
14979 done
14980 done
14981 IFS=$as_save_IFS
14983 test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
14985 esac
14987 GCONFTOOL=$ac_cv_path_GCONFTOOL
14988 if test -n "$GCONFTOOL"; then
14989 { $as_echo "$as_me:$LINENO: result: $GCONFTOOL" >&5
14990 $as_echo "$GCONFTOOL" >&6; }
14991 else
14992 { $as_echo "$as_me:$LINENO: result: no" >&5
14993 $as_echo "no" >&6; }
14998 # SOCKS5
14999 { $as_echo "$as_me:$LINENO: checking for SOCKSconnect in -lsocks5" >&5
15000 $as_echo_n "checking for SOCKSconnect in -lsocks5... " >&6; }
15001 if test "${ac_cv_lib_socks5_SOCKSconnect+set}" = set; then
15002 $as_echo_n "(cached) " >&6
15003 else
15004 ac_check_lib_save_LIBS=$LIBS
15005 LIBS="-lsocks5 $LIBS"
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15013 /* Override any GCC internal prototype to avoid an error.
15014 Use char because int might match the return type of a GCC
15015 builtin and then its argument prototype would still apply. */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 char SOCKSconnect ();
15021 main ()
15023 return SOCKSconnect ();
15025 return 0;
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (ac_try="$ac_link"
15030 case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033 esac
15034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15035 $as_echo "$ac_try_echo") >&5
15036 (eval "$ac_link") 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && {
15043 test -z "$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 } && test -s conftest$ac_exeext && {
15046 test "$cross_compiling" = yes ||
15047 $as_test_x conftest$ac_exeext
15048 }; then
15049 ac_cv_lib_socks5_SOCKSconnect=yes
15050 else
15051 $as_echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_lib_socks5_SOCKSconnect=no
15057 rm -rf conftest.dSYM
15058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15059 conftest$ac_exeext conftest.$ac_ext
15060 LIBS=$ac_check_lib_save_LIBS
15062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socks5_SOCKSconnect" >&5
15063 $as_echo "$ac_cv_lib_socks5_SOCKSconnect" >&6; }
15064 if test "x$ac_cv_lib_socks5_SOCKSconnect" = x""yes; then
15065 have_socks=yes
15066 else
15067 have_socks=no
15071 for ac_header in socks.h
15073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15076 $as_echo_n "checking for $ac_header... " >&6; }
15077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15078 $as_echo_n "(cached) " >&6
15080 ac_res=`eval 'as_val=${'$as_ac_Header'}
15081 $as_echo "$as_val"'`
15082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15083 $as_echo "$ac_res" >&6; }
15084 else
15085 # Is the header compilable?
15086 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15087 $as_echo_n "checking $ac_header usability... " >&6; }
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 $ac_includes_default
15095 #include <$ac_header>
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (ac_try="$ac_compile"
15099 case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15102 esac
15103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15104 $as_echo "$ac_try_echo") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest.$ac_objext; then
15115 ac_header_compiler=yes
15116 else
15117 $as_echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 ac_header_compiler=no
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15125 $as_echo "$ac_header_compiler" >&6; }
15127 # Is the header present?
15128 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15129 $as_echo_n "checking $ac_header presence... " >&6; }
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <$ac_header>
15137 _ACEOF
15138 if { (ac_try="$ac_cpp conftest.$ac_ext"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15144 $as_echo "$ac_try_echo") >&5
15145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } >/dev/null && {
15152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 }; then
15155 ac_header_preproc=yes
15156 else
15157 $as_echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_header_preproc=no
15163 rm -f conftest.err conftest.$ac_ext
15164 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15165 $as_echo "$ac_header_preproc" >&6; }
15167 # So? What about this header?
15168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15169 yes:no: )
15170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15171 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15174 ac_header_preproc=yes
15176 no:yes:* )
15177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15178 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15180 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15182 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15184 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15188 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15189 ( cat <<\_ASBOX
15190 ## -------------------------------------------------------------------------- ##
15191 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome ##
15192 ## -------------------------------------------------------------------------- ##
15193 _ASBOX
15194 ) | sed "s/^/$as_me: WARNING: /" >&2
15196 esac
15197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 $as_echo_n "checking for $ac_header... " >&6; }
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 $as_echo_n "(cached) " >&6
15201 else
15202 eval "$as_ac_Header=\$ac_header_preproc"
15204 ac_res=`eval 'as_val=${'$as_ac_Header'}
15205 $as_echo "$as_val"'`
15206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15207 $as_echo "$ac_res" >&6; }
15210 as_val=`eval 'as_val=${'$as_ac_Header'}
15211 $as_echo "$as_val"'`
15212 if test "x$as_val" = x""yes; then
15213 cat >>confdefs.h <<_ACEOF
15214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215 _ACEOF
15217 else
15218 have_socks=no
15221 done
15223 if test "x$have_socks" = xyes; then
15225 cat >>confdefs.h <<\_ACEOF
15226 #define SOCKS /**/
15227 _ACEOF
15229 DEPENDENCIES_LIBS="$DEPENDENCIES_LIBS -lsocks5"
15232 # Perl
15233 { $as_echo "$as_me:$LINENO: checking whether Perl support is requested" >&5
15234 $as_echo_n "checking whether Perl support is requested... " >&6; }
15235 # Check whether --enable-perl was given.
15236 if test "${enable_perl+set}" = set; then
15237 enableval=$enable_perl; enable_perl=$enableval have_perl=$enableval
15238 else
15239 enable_perl=autodetect have_perl=yes
15242 { $as_echo "$as_me:$LINENO: result: $enable_perl" >&5
15243 $as_echo "$enable_perl" >&6; }
15245 if test "x$have_perl" != "xno"; then
15246 # Extract the first word of "perl perl5", so it can be a program name with args.
15247 set dummy perl perl5; ac_word=$2
15248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15249 $as_echo_n "checking for $ac_word... " >&6; }
15250 if test "${ac_cv_path_PERL+set}" = set; then
15251 $as_echo_n "(cached) " >&6
15252 else
15253 case $PERL in
15254 [\\/]* | ?:[\\/]*)
15255 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15261 IFS=$as_save_IFS
15262 test -z "$as_dir" && as_dir=.
15263 for ac_exec_ext in '' $ac_executable_extensions; do
15264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15265 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15267 break 2
15269 done
15270 done
15271 IFS=$as_save_IFS
15274 esac
15276 PERL=$ac_cv_path_PERL
15277 if test -n "$PERL"; then
15278 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
15279 $as_echo "$PERL" >&6; }
15280 else
15281 { $as_echo "$as_me:$LINENO: result: no" >&5
15282 $as_echo "no" >&6; }
15286 if test -z $PERL ; then
15287 { $as_echo "$as_me:$LINENO: WARNING: Perl interpreter not found, disabling perl support" >&5
15288 $as_echo "$as_me: WARNING: Perl interpreter not found, disabling perl support" >&2;}
15289 have_perl=no
15293 if test "x$have_perl" != "xno"; then
15294 { $as_echo "$as_me:$LINENO: checking for Perl header files" >&5
15295 $as_echo_n "checking for Perl header files... " >&6; }
15296 PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT; echo "#include <perl.h>" >> $PT; echo "#include <XSUB.h>" >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
15298 if test "x$PERL_HEADER_TEST" = "x0" ; then
15299 PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
15300 { $as_echo "$as_me:$LINENO: result: found" >&5
15301 $as_echo "found" >&6; }
15302 else
15303 { $as_echo "$as_me:$LINENO: WARNING: Perl headers not found, disabling perl support" >&5
15304 $as_echo "$as_me: WARNING: Perl headers not found, disabling perl support" >&2;}
15305 have_perl=no
15309 if test "x$have_perl" != "xno"; then
15310 { $as_echo "$as_me:$LINENO: checking for Perl library" >&5
15311 $as_echo_n "checking for Perl library... " >&6; }
15312 PERL_LIB_TEST=`PT=perltest.c ; echo "int main() { return 0; }" > $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
15314 if test "x$PERL_LIB_TEST" = "x0" ; then
15315 PERL_LDFLAGS=`$PERL -MExtUtils::Embed -e ldopts`
15316 { $as_echo "$as_me:$LINENO: result: found" >&5
15317 $as_echo "found" >&6; }
15321 cat >>confdefs.h <<\_ACEOF
15322 #define ENABLE_PERL 1
15323 _ACEOF
15325 enable_perl=yes
15326 else
15327 { $as_echo "$as_me:$LINENO: result: not found" >&5
15328 $as_echo "not found" >&6; }
15329 { $as_echo "$as_me:$LINENO: WARNING: Perl library not found, disabling perl support" >&5
15330 $as_echo "$as_me: WARNING: Perl library not found, disabling perl support" >&2;}
15335 # Python
15336 { $as_echo "$as_me:$LINENO: checking whether Python support is requested" >&5
15337 $as_echo_n "checking whether Python support is requested... " >&6; }
15338 # Check whether --enable-python was given.
15339 if test "${enable_python+set}" = set; then
15340 enableval=$enable_python; enable_python=$enableval have_python=$enableval
15341 else
15342 enable_python=autodetect have_python=yes
15345 { $as_echo "$as_me:$LINENO: result: $enable_python" >&5
15346 $as_echo "$enable_python" >&6; }
15348 if test "x$have_python" != "xno"; then
15353 if test -n "$PYTHON"; then
15354 # If the user set $PYTHON, use it and don't search something else.
15355 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
15356 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
15357 prog="import sys, string
15358 # split strings by '.' and convert to numeric. Append some zeros
15359 # because we need at least 4 digits for the hex conversion.
15360 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
15361 minverhex = 0
15362 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
15363 sys.exit(sys.hexversion < minverhex)"
15364 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15365 ($PYTHON -c "$prog") >&5 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; then
15369 { $as_echo "$as_me:$LINENO: result: yes" >&5
15370 $as_echo "yes" >&6; }
15371 else
15372 { { $as_echo "$as_me:$LINENO: error: too old" >&5
15373 $as_echo "$as_me: error: too old" >&2;}
15374 { (exit 1); exit 1; }; }
15377 am_display_PYTHON=$PYTHON
15378 else
15379 # Otherwise, try each interpreter until we find one that satisfies
15380 # VERSION.
15381 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
15382 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
15383 if test "${am_cv_pathless_PYTHON+set}" = set; then
15384 $as_echo_n "(cached) " >&6
15385 else
15387 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
15388 test "$am_cv_pathless_PYTHON" = none && break
15389 prog="import sys, string
15390 # split strings by '.' and convert to numeric. Append some zeros
15391 # because we need at least 4 digits for the hex conversion.
15392 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
15393 minverhex = 0
15394 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
15395 sys.exit(sys.hexversion < minverhex)"
15396 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
15397 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; then
15401 break
15404 done
15406 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
15407 $as_echo "$am_cv_pathless_PYTHON" >&6; }
15408 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
15409 if test "$am_cv_pathless_PYTHON" = none; then
15410 PYTHON=:
15411 else
15412 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
15413 set dummy $am_cv_pathless_PYTHON; ac_word=$2
15414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15415 $as_echo_n "checking for $ac_word... " >&6; }
15416 if test "${ac_cv_path_PYTHON+set}" = set; then
15417 $as_echo_n "(cached) " >&6
15418 else
15419 case $PYTHON in
15420 [\\/]* | ?:[\\/]*)
15421 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15425 for as_dir in $PATH
15427 IFS=$as_save_IFS
15428 test -z "$as_dir" && as_dir=.
15429 for ac_exec_ext in '' $ac_executable_extensions; do
15430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15431 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15433 break 2
15435 done
15436 done
15437 IFS=$as_save_IFS
15440 esac
15442 PYTHON=$ac_cv_path_PYTHON
15443 if test -n "$PYTHON"; then
15444 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
15445 $as_echo "$PYTHON" >&6; }
15446 else
15447 { $as_echo "$as_me:$LINENO: result: no" >&5
15448 $as_echo "no" >&6; }
15453 am_display_PYTHON=$am_cv_pathless_PYTHON
15457 if test "$PYTHON" = :; then
15459 else
15462 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
15463 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15464 if test "${am_cv_python_version+set}" = set; then
15465 $as_echo_n "(cached) " >&6
15466 else
15467 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
15469 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
15470 $as_echo "$am_cv_python_version" >&6; }
15471 PYTHON_VERSION=$am_cv_python_version
15475 PYTHON_PREFIX='${prefix}'
15477 PYTHON_EXEC_PREFIX='${exec_prefix}'
15481 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
15482 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15483 if test "${am_cv_python_platform+set}" = set; then
15484 $as_echo_n "(cached) " >&6
15485 else
15486 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
15488 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
15489 $as_echo "$am_cv_python_platform" >&6; }
15490 PYTHON_PLATFORM=$am_cv_python_platform
15495 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
15496 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15497 if test "${am_cv_python_pythondir+set}" = set; then
15498 $as_echo_n "(cached) " >&6
15499 else
15500 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
15501 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
15503 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
15504 $as_echo "$am_cv_python_pythondir" >&6; }
15505 pythondir=$am_cv_python_pythondir
15509 pkgpythondir=\${pythondir}/$PACKAGE
15512 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
15513 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15514 if test "${am_cv_python_pyexecdir+set}" = set; then
15515 $as_echo_n "(cached) " >&6
15516 else
15517 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
15518 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
15520 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
15521 $as_echo "$am_cv_python_pyexecdir" >&6; }
15522 pyexecdir=$am_cv_python_pyexecdir
15526 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15534 if test "x$PYTHON" = "x:"; then
15535 have_python=no
15539 if test "x$have_python" != "xno"; then
15541 { $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
15542 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
15543 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
15544 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
15545 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
15546 if test "$py_prefix" != "$py_exec_prefix"; then
15547 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
15550 save_CPPFLAGS="$CPPFLAGS"
15551 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 #include <Python.h>
15559 _ACEOF
15560 if { (ac_try="$ac_cpp conftest.$ac_ext"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564 esac
15565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15566 $as_echo "$ac_try_echo") >&5
15567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15568 ac_status=$?
15569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
15572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } >/dev/null && {
15574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 }; then
15577 { $as_echo "$as_me:$LINENO: result: found" >&5
15578 $as_echo "found" >&6; }
15580 else
15581 $as_echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 { $as_echo "$as_me:$LINENO: result: not found" >&5
15585 $as_echo "not found" >&6; }
15586 have_python=no
15589 rm -f conftest.err conftest.$ac_ext
15590 CPPFLAGS="$save_CPPFLAGS"
15594 if test "x$have_python" != "xno"; then
15595 PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
15596 PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
15597 PYTHON_LIBS="-lpython$PYTHON_VERSION"
15598 PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
15599 PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
15600 PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
15601 PYTHON_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
15602 PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
15603 PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
15604 PYTHON_EXTRA_LIBS="$PYTHON_LOCALMODLIBS $PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
15611 if test "x$have_python" != "xyes"; then
15612 if test "x$enable_python" = "xyes"; then
15613 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
15614 $as_echo "$as_me: error: Python not found" >&2;}
15615 { (exit 1); exit 1; }; }
15616 elif test "x$enable_python" = "xautodetect"; then
15617 enable_python=no
15618 { $as_echo "$as_me:$LINENO: WARNING: Python not found, disabling python support" >&5
15619 $as_echo "$as_me: WARNING: Python not found, disabling python support" >&2;}
15621 elif test "x$enable_python" != "xno"; then
15622 enable_python=yes
15624 cat >>confdefs.h <<\_ACEOF
15625 #define ENABLE_PYTHON 1
15626 _ACEOF
15630 # TCL
15631 { $as_echo "$as_me:$LINENO: checking whether TCL support is requested" >&5
15632 $as_echo_n "checking whether TCL support is requested... " >&6; }
15633 # Check whether --enable-tcl was given.
15634 if test "${enable_tcl+set}" = set; then
15635 enableval=$enable_tcl; enable_tcl=$enableval have_tcl=$enableval
15636 else
15637 enable_tcl=autodetect have_tcl=yes
15640 { $as_echo "$as_me:$LINENO: result: $enable_tcl" >&5
15641 $as_echo "$enable_tcl" >&6; }
15643 if test "x$have_tcl" != "xno"; then
15644 have_tcl=no
15645 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15646 $as_echo_n "checking for tclConfig.sh... " >&6; }
15647 for dir in $tcl /lib /usr/lib /usr/lib/tcl8.4 /usr/tcl/lib /usr/local/lib /usr/local/tcl-8.4/lib /usr/local/tcl/lib /opt/lib; do
15648 if test -f $dir/tclConfig.sh; then
15649 . $dir/tclConfig.sh
15650 TCL_LIBS="$TCL_LIB_SPEC $TCL_LIBS"
15651 TCL_CFLAGS="-I${TCL_PREFIX}/include $TCL_INCLUDE_SPEC"
15654 have_tcl=yes
15655 enable_tcl=yes
15656 { $as_echo "$as_me:$LINENO: result: $dir/tclConfig.sh" >&5
15657 $as_echo "$dir/tclConfig.sh" >&6; }
15658 break
15660 done
15661 if test "$enable_tcl" = "autodetect" -a "$have_tcl" = "no"; then
15662 { $as_echo "$as_me:$LINENO: result: not found" >&5
15663 $as_echo "not found" >&6; }
15664 { $as_echo "$as_me:$LINENO: WARNING: tclConfig.sh not found, disabling tcl support. Try --enable-tcl=/path/to/" >&5
15665 $as_echo "$as_me: WARNING: tclConfig.sh not found, disabling tcl support. Try --enable-tcl=/path/to/" >&2;}
15666 elif test "$have_tcl" == "no"; then
15667 { $as_echo "$as_me:$LINENO: result: not found" >&5
15668 $as_echo "not found" >&6; }
15669 { { $as_echo "$as_me:$LINENO: error: tclConfig.sh not found. Try --enable-tcl=/path/to/" >&5
15670 $as_echo "$as_me: error: tclConfig.sh not found. Try --enable-tcl=/path/to/" >&2;}
15671 { (exit 1); exit 1; }; }
15675 # openssl
15677 pkg_failed=no
15678 { $as_echo "$as_me:$LINENO: checking for OPENSSL" >&5
15679 $as_echo_n "checking for OPENSSL... " >&6; }
15681 if test -n "$OPENSSL_CFLAGS"; then
15682 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15683 elif test -n "$PKG_CONFIG"; then
15684 if test -n "$PKG_CONFIG" && \
15685 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5
15686 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15687 ac_status=$?
15688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; then
15690 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
15691 else
15692 pkg_failed=yes
15694 else
15695 pkg_failed=untried
15697 if test -n "$OPENSSL_LIBS"; then
15698 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15699 elif test -n "$PKG_CONFIG"; then
15700 if test -n "$PKG_CONFIG" && \
15701 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5
15702 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
15703 ac_status=$?
15704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; then
15706 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
15707 else
15708 pkg_failed=yes
15710 else
15711 pkg_failed=untried
15716 if test $pkg_failed = yes; then
15718 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15719 _pkg_short_errors_supported=yes
15720 else
15721 _pkg_short_errors_supported=no
15723 if test $_pkg_short_errors_supported = yes; then
15724 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
15725 else
15726 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
15728 # Put the nasty error message in config.log where it belongs
15729 echo "$OPENSSL_PKG_ERRORS" >&5
15731 { $as_echo "$as_me:$LINENO: result: no" >&5
15732 $as_echo "no" >&6; }
15733 openssl=no
15734 elif test $pkg_failed = untried; then
15735 openssl=no
15736 else
15737 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15738 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15739 { $as_echo "$as_me:$LINENO: result: yes" >&5
15740 $as_echo "yes" >&6; }
15741 openssl=yes
15743 if test "x$openssl" = xyes; then
15747 cat >>confdefs.h <<\_ACEOF
15748 #define USE_OPENSSL /**/
15749 _ACEOF
15751 else
15752 { $as_echo "$as_me:$LINENO: WARNING: Library requirements (openssl) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
15753 $as_echo "$as_me: WARNING: Library requirements (openssl) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
15755 if test "x$openssl" = "xyes"; then
15756 USE_OPENSSL_TRUE=
15757 USE_OPENSSL_FALSE='#'
15758 else
15759 USE_OPENSSL_TRUE='#'
15760 USE_OPENSSL_FALSE=
15764 # i18n
15765 GETTEXT_PACKAGE=xchat-gnome
15768 cat >>confdefs.h <<_ACEOF
15769 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15770 _ACEOF
15774 for ac_header in locale.h
15776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15779 $as_echo_n "checking for $ac_header... " >&6; }
15780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15781 $as_echo_n "(cached) " >&6
15783 ac_res=`eval 'as_val=${'$as_ac_Header'}
15784 $as_echo "$as_val"'`
15785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15786 $as_echo "$ac_res" >&6; }
15787 else
15788 # Is the header compilable?
15789 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15790 $as_echo_n "checking $ac_header usability... " >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h. */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 $ac_includes_default
15798 #include <$ac_header>
15799 _ACEOF
15800 rm -f conftest.$ac_objext
15801 if { (ac_try="$ac_compile"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805 esac
15806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15807 $as_echo "$ac_try_echo") >&5
15808 (eval "$ac_compile") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } && {
15815 test -z "$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15817 } && test -s conftest.$ac_objext; then
15818 ac_header_compiler=yes
15819 else
15820 $as_echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_header_compiler=no
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15828 $as_echo "$ac_header_compiler" >&6; }
15830 # Is the header present?
15831 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15832 $as_echo_n "checking $ac_header presence... " >&6; }
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h. */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 #include <$ac_header>
15840 _ACEOF
15841 if { (ac_try="$ac_cpp conftest.$ac_ext"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845 esac
15846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15847 $as_echo "$ac_try_echo") >&5
15848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15849 ac_status=$?
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
15853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } >/dev/null && {
15855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15856 test ! -s conftest.err
15857 }; then
15858 ac_header_preproc=yes
15859 else
15860 $as_echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_header_preproc=no
15866 rm -f conftest.err conftest.$ac_ext
15867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 $as_echo "$ac_header_preproc" >&6; }
15870 # So? What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15872 yes:no: )
15873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15874 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15877 ac_header_preproc=yes
15879 no:yes:* )
15880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15881 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15883 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15885 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15887 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15891 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15892 ( cat <<\_ASBOX
15893 ## -------------------------------------------------------------------------- ##
15894 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome ##
15895 ## -------------------------------------------------------------------------- ##
15896 _ASBOX
15897 ) | sed "s/^/$as_me: WARNING: /" >&2
15899 esac
15900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15901 $as_echo_n "checking for $ac_header... " >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 $as_echo_n "(cached) " >&6
15904 else
15905 eval "$as_ac_Header=\$ac_header_preproc"
15907 ac_res=`eval 'as_val=${'$as_ac_Header'}
15908 $as_echo "$as_val"'`
15909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15910 $as_echo "$ac_res" >&6; }
15913 as_val=`eval 'as_val=${'$as_ac_Header'}
15914 $as_echo "$as_val"'`
15915 if test "x$as_val" = x""yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15918 _ACEOF
15922 done
15924 if test $ac_cv_header_locale_h = yes; then
15925 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15926 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15927 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15928 $as_echo_n "(cached) " >&6
15929 else
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <locale.h>
15938 main ()
15940 return LC_MESSAGES
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (ac_try="$ac_link"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950 esac
15951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15952 $as_echo "$ac_try_echo") >&5
15953 (eval "$ac_link") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest$ac_exeext && {
15963 test "$cross_compiling" = yes ||
15964 $as_test_x conftest$ac_exeext
15965 }; then
15966 am_cv_val_LC_MESSAGES=yes
15967 else
15968 $as_echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 am_cv_val_LC_MESSAGES=no
15974 rm -rf conftest.dSYM
15975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15976 conftest$ac_exeext conftest.$ac_ext
15978 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15979 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15980 if test $am_cv_val_LC_MESSAGES = yes; then
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_LC_MESSAGES 1
15984 _ACEOF
15988 USE_NLS=yes
15991 gt_cv_have_gettext=no
15993 CATOBJEXT=NONE
15994 XGETTEXT=:
15995 INTLLIBS=
15997 if test "${ac_cv_header_libintl_h+set}" = set; then
15998 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15999 $as_echo_n "checking for libintl.h... " >&6; }
16000 if test "${ac_cv_header_libintl_h+set}" = set; then
16001 $as_echo_n "(cached) " >&6
16003 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16004 $as_echo "$ac_cv_header_libintl_h" >&6; }
16005 else
16006 # Is the header compilable?
16007 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
16008 $as_echo_n "checking libintl.h usability... " >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h. */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <libintl.h>
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16025 $as_echo "$ac_try_echo") >&5
16026 (eval "$ac_compile") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } && {
16033 test -z "$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 } && test -s conftest.$ac_objext; then
16036 ac_header_compiler=yes
16037 else
16038 $as_echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 ac_header_compiler=no
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16046 $as_echo "$ac_header_compiler" >&6; }
16048 # Is the header present?
16049 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
16050 $as_echo_n "checking libintl.h presence... " >&6; }
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h. */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16057 #include <libintl.h>
16058 _ACEOF
16059 if { (ac_try="$ac_cpp conftest.$ac_ext"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065 $as_echo "$ac_try_echo") >&5
16066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } >/dev/null && {
16073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 }; then
16076 ac_header_preproc=yes
16077 else
16078 $as_echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_header_preproc=no
16084 rm -f conftest.err conftest.$ac_ext
16085 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16086 $as_echo "$ac_header_preproc" >&6; }
16088 # So? What about this header?
16089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16090 yes:no: )
16091 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16092 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16093 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
16094 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
16095 ac_header_preproc=yes
16097 no:yes:* )
16098 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16099 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16100 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16101 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16102 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
16103 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
16104 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
16105 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16106 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16107 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
16108 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
16109 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
16110 ( cat <<\_ASBOX
16111 ## -------------------------------------------------------------------------- ##
16112 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome ##
16113 ## -------------------------------------------------------------------------- ##
16114 _ASBOX
16115 ) | sed "s/^/$as_me: WARNING: /" >&2
16117 esac
16118 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
16119 $as_echo_n "checking for libintl.h... " >&6; }
16120 if test "${ac_cv_header_libintl_h+set}" = set; then
16121 $as_echo_n "(cached) " >&6
16122 else
16123 ac_cv_header_libintl_h=$ac_header_preproc
16125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16126 $as_echo "$ac_cv_header_libintl_h" >&6; }
16129 if test "x$ac_cv_header_libintl_h" = x""yes; then
16130 gt_cv_func_dgettext_libintl="no"
16131 libintl_extra_libs=""
16134 # First check in libc
16136 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
16137 $as_echo_n "checking for ngettext in libc... " >&6; }
16138 if test "${gt_cv_func_ngettext_libc+set}" = set; then
16139 $as_echo_n "(cached) " >&6
16140 else
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16148 #include <libintl.h>
16151 main ()
16153 return !ngettext ("","", 1)
16155 return 0;
16157 _ACEOF
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (ac_try="$ac_link"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16165 $as_echo "$ac_try_echo") >&5
16166 (eval "$ac_link") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest$ac_exeext && {
16176 test "$cross_compiling" = yes ||
16177 $as_test_x conftest$ac_exeext
16178 }; then
16179 gt_cv_func_ngettext_libc=yes
16180 else
16181 $as_echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 gt_cv_func_ngettext_libc=no
16187 rm -rf conftest.dSYM
16188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189 conftest$ac_exeext conftest.$ac_ext
16192 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
16193 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
16195 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
16196 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
16197 $as_echo_n "checking for dgettext in libc... " >&6; }
16198 if test "${gt_cv_func_dgettext_libc+set}" = set; then
16199 $as_echo_n "(cached) " >&6
16200 else
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16208 #include <libintl.h>
16211 main ()
16213 return !dgettext ("","")
16215 return 0;
16217 _ACEOF
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (ac_try="$ac_link"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16223 esac
16224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16225 $as_echo "$ac_try_echo") >&5
16226 (eval "$ac_link") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext && {
16236 test "$cross_compiling" = yes ||
16237 $as_test_x conftest$ac_exeext
16238 }; then
16239 gt_cv_func_dgettext_libc=yes
16240 else
16241 $as_echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 gt_cv_func_dgettext_libc=no
16247 rm -rf conftest.dSYM
16248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16249 conftest$ac_exeext conftest.$ac_ext
16252 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
16253 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
16256 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
16258 for ac_func in bind_textdomain_codeset
16260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16261 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16262 $as_echo_n "checking for $ac_func... " >&6; }
16263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16264 $as_echo_n "(cached) " >&6
16265 else
16266 cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h. */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16274 #define $ac_func innocuous_$ac_func
16276 /* System header to define __stub macros and hopefully few prototypes,
16277 which can conflict with char $ac_func (); below.
16278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16279 <limits.h> exists even on freestanding compilers. */
16281 #ifdef __STDC__
16282 # include <limits.h>
16283 #else
16284 # include <assert.h>
16285 #endif
16287 #undef $ac_func
16289 /* Override any GCC internal prototype to avoid an error.
16290 Use char because int might match the return type of a GCC
16291 builtin and then its argument prototype would still apply. */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 char $ac_func ();
16296 /* The GNU C library defines this for functions which it implements
16297 to always fail with ENOSYS. Some functions are actually named
16298 something starting with __ and the normal name is an alias. */
16299 #if defined __stub_$ac_func || defined __stub___$ac_func
16300 choke me
16301 #endif
16304 main ()
16306 return $ac_func ();
16308 return 0;
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316 esac
16317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16318 $as_echo "$ac_try_echo") >&5
16319 (eval "$ac_link") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext && {
16329 test "$cross_compiling" = yes ||
16330 $as_test_x conftest$ac_exeext
16331 }; then
16332 eval "$as_ac_var=yes"
16333 else
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 eval "$as_ac_var=no"
16340 rm -rf conftest.dSYM
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342 conftest$ac_exeext conftest.$ac_ext
16344 ac_res=`eval 'as_val=${'$as_ac_var'}
16345 $as_echo "$as_val"'`
16346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16347 $as_echo "$ac_res" >&6; }
16348 as_val=`eval 'as_val=${'$as_ac_var'}
16349 $as_echo "$as_val"'`
16350 if test "x$as_val" = x""yes; then
16351 cat >>confdefs.h <<_ACEOF
16352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16353 _ACEOF
16356 done
16361 # If we don't have everything we want, check in libintl
16363 if test "$gt_cv_func_dgettext_libc" != "yes" \
16364 || test "$gt_cv_func_ngettext_libc" != "yes" \
16365 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
16367 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
16368 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
16369 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
16370 $as_echo_n "(cached) " >&6
16371 else
16372 ac_check_lib_save_LIBS=$LIBS
16373 LIBS="-lintl $LIBS"
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16381 /* Override any GCC internal prototype to avoid an error.
16382 Use char because int might match the return type of a GCC
16383 builtin and then its argument prototype would still apply. */
16384 #ifdef __cplusplus
16385 extern "C"
16386 #endif
16387 char bindtextdomain ();
16389 main ()
16391 return bindtextdomain ();
16393 return 0;
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401 esac
16402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16403 $as_echo "$ac_try_echo") >&5
16404 (eval "$ac_link") 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && {
16411 test -z "$ac_c_werror_flag" ||
16412 test ! -s conftest.err
16413 } && test -s conftest$ac_exeext && {
16414 test "$cross_compiling" = yes ||
16415 $as_test_x conftest$ac_exeext
16416 }; then
16417 ac_cv_lib_intl_bindtextdomain=yes
16418 else
16419 $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_cv_lib_intl_bindtextdomain=no
16425 rm -rf conftest.dSYM
16426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16427 conftest$ac_exeext conftest.$ac_ext
16428 LIBS=$ac_check_lib_save_LIBS
16430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
16431 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
16432 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
16433 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
16434 $as_echo_n "checking for ngettext in -lintl... " >&6; }
16435 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
16436 $as_echo_n "(cached) " >&6
16437 else
16438 ac_check_lib_save_LIBS=$LIBS
16439 LIBS="-lintl $LIBS"
16440 cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h. */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16447 /* Override any GCC internal prototype to avoid an error.
16448 Use char because int might match the return type of a GCC
16449 builtin and then its argument prototype would still apply. */
16450 #ifdef __cplusplus
16451 extern "C"
16452 #endif
16453 char ngettext ();
16455 main ()
16457 return ngettext ();
16459 return 0;
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467 esac
16468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16469 $as_echo "$ac_try_echo") >&5
16470 (eval "$ac_link") 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && {
16477 test -z "$ac_c_werror_flag" ||
16478 test ! -s conftest.err
16479 } && test -s conftest$ac_exeext && {
16480 test "$cross_compiling" = yes ||
16481 $as_test_x conftest$ac_exeext
16482 }; then
16483 ac_cv_lib_intl_ngettext=yes
16484 else
16485 $as_echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_cv_lib_intl_ngettext=no
16491 rm -rf conftest.dSYM
16492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16493 conftest$ac_exeext conftest.$ac_ext
16494 LIBS=$ac_check_lib_save_LIBS
16496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16497 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16498 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16499 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16500 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16501 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16502 $as_echo_n "(cached) " >&6
16503 else
16504 ac_check_lib_save_LIBS=$LIBS
16505 LIBS="-lintl $LIBS"
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16513 /* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 char dgettext ();
16521 main ()
16523 return dgettext ();
16525 return 0;
16527 _ACEOF
16528 rm -f conftest.$ac_objext conftest$ac_exeext
16529 if { (ac_try="$ac_link"
16530 case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533 esac
16534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16535 $as_echo "$ac_try_echo") >&5
16536 (eval "$ac_link") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext && {
16546 test "$cross_compiling" = yes ||
16547 $as_test_x conftest$ac_exeext
16548 }; then
16549 ac_cv_lib_intl_dgettext=yes
16550 else
16551 $as_echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16554 ac_cv_lib_intl_dgettext=no
16557 rm -rf conftest.dSYM
16558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16559 conftest$ac_exeext conftest.$ac_ext
16560 LIBS=$ac_check_lib_save_LIBS
16562 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16563 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16564 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
16565 gt_cv_func_dgettext_libintl=yes
16573 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
16574 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
16575 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
16576 { $as_echo "$as_me:$LINENO: result: " >&5
16577 $as_echo "" >&6; }
16578 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
16579 $as_echo_n "checking for ngettext in -lintl... " >&6; }
16580 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
16581 $as_echo_n "(cached) " >&6
16582 else
16583 ac_check_lib_save_LIBS=$LIBS
16584 LIBS="-lintl -liconv $LIBS"
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16592 /* Override any GCC internal prototype to avoid an error.
16593 Use char because int might match the return type of a GCC
16594 builtin and then its argument prototype would still apply. */
16595 #ifdef __cplusplus
16596 extern "C"
16597 #endif
16598 char ngettext ();
16600 main ()
16602 return ngettext ();
16604 return 0;
16606 _ACEOF
16607 rm -f conftest.$ac_objext conftest$ac_exeext
16608 if { (ac_try="$ac_link"
16609 case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612 esac
16613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16614 $as_echo "$ac_try_echo") >&5
16615 (eval "$ac_link") 2>conftest.er1
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
16620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } && {
16622 test -z "$ac_c_werror_flag" ||
16623 test ! -s conftest.err
16624 } && test -s conftest$ac_exeext && {
16625 test "$cross_compiling" = yes ||
16626 $as_test_x conftest$ac_exeext
16627 }; then
16628 ac_cv_lib_intl_ngettext=yes
16629 else
16630 $as_echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_cv_lib_intl_ngettext=no
16636 rm -rf conftest.dSYM
16637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16638 conftest$ac_exeext conftest.$ac_ext
16639 LIBS=$ac_check_lib_save_LIBS
16641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16642 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16643 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16644 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
16645 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
16646 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
16647 $as_echo_n "(cached) " >&6
16648 else
16649 ac_check_lib_save_LIBS=$LIBS
16650 LIBS="-lintl -liconv $LIBS"
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16661 #ifdef __cplusplus
16662 extern "C"
16663 #endif
16664 char dcgettext ();
16666 main ()
16668 return dcgettext ();
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681 (eval "$ac_link") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest$ac_exeext && {
16691 test "$cross_compiling" = yes ||
16692 $as_test_x conftest$ac_exeext
16693 }; then
16694 ac_cv_lib_intl_dcgettext=yes
16695 else
16696 $as_echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_cv_lib_intl_dcgettext=no
16702 rm -rf conftest.dSYM
16703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16704 conftest$ac_exeext conftest.$ac_ext
16705 LIBS=$ac_check_lib_save_LIBS
16707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
16708 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16709 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
16710 gt_cv_func_dgettext_libintl=yes
16711 libintl_extra_libs=-liconv
16712 else
16716 else
16723 # If we found libintl, then check in it for bind_textdomain_codeset();
16724 # we'll prefer libc if neither have bind_textdomain_codeset(),
16725 # and both have dgettext and ngettext
16727 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16728 glib_save_LIBS="$LIBS"
16729 LIBS="$LIBS -lintl $libintl_extra_libs"
16730 unset ac_cv_func_bind_textdomain_codeset
16732 for ac_func in bind_textdomain_codeset
16734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16736 $as_echo_n "checking for $ac_func... " >&6; }
16737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16738 $as_echo_n "(cached) " >&6
16739 else
16740 cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h. */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16748 #define $ac_func innocuous_$ac_func
16750 /* System header to define __stub macros and hopefully few prototypes,
16751 which can conflict with char $ac_func (); below.
16752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16753 <limits.h> exists even on freestanding compilers. */
16755 #ifdef __STDC__
16756 # include <limits.h>
16757 #else
16758 # include <assert.h>
16759 #endif
16761 #undef $ac_func
16763 /* Override any GCC internal prototype to avoid an error.
16764 Use char because int might match the return type of a GCC
16765 builtin and then its argument prototype would still apply. */
16766 #ifdef __cplusplus
16767 extern "C"
16768 #endif
16769 char $ac_func ();
16770 /* The GNU C library defines this for functions which it implements
16771 to always fail with ENOSYS. Some functions are actually named
16772 something starting with __ and the normal name is an alias. */
16773 #if defined __stub_$ac_func || defined __stub___$ac_func
16774 choke me
16775 #endif
16778 main ()
16780 return $ac_func ();
16782 return 0;
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (ac_try="$ac_link"
16787 case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790 esac
16791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16792 $as_echo "$ac_try_echo") >&5
16793 (eval "$ac_link") 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } && {
16800 test -z "$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16802 } && test -s conftest$ac_exeext && {
16803 test "$cross_compiling" = yes ||
16804 $as_test_x conftest$ac_exeext
16805 }; then
16806 eval "$as_ac_var=yes"
16807 else
16808 $as_echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 eval "$as_ac_var=no"
16814 rm -rf conftest.dSYM
16815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16816 conftest$ac_exeext conftest.$ac_ext
16818 ac_res=`eval 'as_val=${'$as_ac_var'}
16819 $as_echo "$as_val"'`
16820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16821 $as_echo "$ac_res" >&6; }
16822 as_val=`eval 'as_val=${'$as_ac_var'}
16823 $as_echo "$as_val"'`
16824 if test "x$as_val" = x""yes; then
16825 cat >>confdefs.h <<_ACEOF
16826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16827 _ACEOF
16830 done
16832 LIBS="$glib_save_LIBS"
16834 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16835 gt_cv_func_dgettext_libc=no
16836 else
16837 if test "$gt_cv_func_dgettext_libc" = "yes" \
16838 && test "$gt_cv_func_ngettext_libc" = "yes"; then
16839 gt_cv_func_dgettext_libintl=no
16845 if test "$gt_cv_func_dgettext_libc" = "yes" \
16846 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
16847 gt_cv_have_gettext=yes
16850 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16851 INTLLIBS="-lintl $libintl_extra_libs"
16854 if test "$gt_cv_have_gettext" = "yes"; then
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE_GETTEXT 1
16858 _ACEOF
16860 # Extract the first word of "msgfmt", so it can be a program name with args.
16861 set dummy msgfmt; ac_word=$2
16862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16863 $as_echo_n "checking for $ac_word... " >&6; }
16864 if test "${ac_cv_path_MSGFMT+set}" = set; then
16865 $as_echo_n "(cached) " >&6
16866 else
16867 case "$MSGFMT" in
16869 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16873 for ac_dir in $PATH; do
16874 test -z "$ac_dir" && ac_dir=.
16875 if test -f $ac_dir/$ac_word; then
16876 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16877 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16878 break
16881 done
16882 IFS="$ac_save_ifs"
16883 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16885 esac
16887 MSGFMT="$ac_cv_path_MSGFMT"
16888 if test "$MSGFMT" != "no"; then
16889 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16890 $as_echo "$MSGFMT" >&6; }
16891 else
16892 { $as_echo "$as_me:$LINENO: result: no" >&5
16893 $as_echo "no" >&6; }
16895 if test "$MSGFMT" != "no"; then
16896 glib_save_LIBS="$LIBS"
16897 LIBS="$LIBS $INTLLIBS"
16899 for ac_func in dcgettext
16901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16903 $as_echo_n "checking for $ac_func... " >&6; }
16904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16905 $as_echo_n "(cached) " >&6
16906 else
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16915 #define $ac_func innocuous_$ac_func
16917 /* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char $ac_func (); below.
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16922 #ifdef __STDC__
16923 # include <limits.h>
16924 #else
16925 # include <assert.h>
16926 #endif
16928 #undef $ac_func
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
16933 #ifdef __cplusplus
16934 extern "C"
16935 #endif
16936 char $ac_func ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined __stub_$ac_func || defined __stub___$ac_func
16941 choke me
16942 #endif
16945 main ()
16947 return $ac_func ();
16949 return 0;
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957 esac
16958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16959 $as_echo "$ac_try_echo") >&5
16960 (eval "$ac_link") 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest$ac_exeext && {
16970 test "$cross_compiling" = yes ||
16971 $as_test_x conftest$ac_exeext
16972 }; then
16973 eval "$as_ac_var=yes"
16974 else
16975 $as_echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 eval "$as_ac_var=no"
16981 rm -rf conftest.dSYM
16982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16983 conftest$ac_exeext conftest.$ac_ext
16985 ac_res=`eval 'as_val=${'$as_ac_var'}
16986 $as_echo "$as_val"'`
16987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16988 $as_echo "$ac_res" >&6; }
16989 as_val=`eval 'as_val=${'$as_ac_var'}
16990 $as_echo "$as_val"'`
16991 if test "x$as_val" = x""yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16994 _ACEOF
16997 done
16999 MSGFMT_OPTS=
17000 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
17001 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
17002 cat >conftest.foo <<_ACEOF
17004 msgid ""
17005 msgstr ""
17006 "Content-Type: text/plain; charset=UTF-8\n"
17007 "Project-Id-Version: test 1.0\n"
17008 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
17009 "Last-Translator: test <foo@bar.xx>\n"
17010 "Language-Team: C <LL@li.org>\n"
17011 "MIME-Version: 1.0\n"
17012 "Content-Transfer-Encoding: 8bit\n"
17014 _ACEOF
17015 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
17016 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
17017 ac_status=$?
17018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; then
17020 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
17021 $as_echo "yes" >&6; }
17022 else { $as_echo "$as_me:$LINENO: result: no" >&5
17023 $as_echo "no" >&6; }
17024 echo "$as_me: failed input was:" >&5
17025 sed 's/^/| /' conftest.foo >&5
17028 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17029 set dummy gmsgfmt; ac_word=$2
17030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17031 $as_echo_n "checking for $ac_word... " >&6; }
17032 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17033 $as_echo_n "(cached) " >&6
17034 else
17035 case $GMSGFMT in
17036 [\\/]* | ?:[\\/]*)
17037 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17041 for as_dir in $PATH
17043 IFS=$as_save_IFS
17044 test -z "$as_dir" && as_dir=.
17045 for ac_exec_ext in '' $ac_executable_extensions; do
17046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17047 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17049 break 2
17051 done
17052 done
17053 IFS=$as_save_IFS
17055 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17057 esac
17059 GMSGFMT=$ac_cv_path_GMSGFMT
17060 if test -n "$GMSGFMT"; then
17061 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17062 $as_echo "$GMSGFMT" >&6; }
17063 else
17064 { $as_echo "$as_me:$LINENO: result: no" >&5
17065 $as_echo "no" >&6; }
17069 # Extract the first word of "xgettext", so it can be a program name with args.
17070 set dummy xgettext; ac_word=$2
17071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17072 $as_echo_n "checking for $ac_word... " >&6; }
17073 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17074 $as_echo_n "(cached) " >&6
17075 else
17076 case "$XGETTEXT" in
17078 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17082 for ac_dir in $PATH; do
17083 test -z "$ac_dir" && ac_dir=.
17084 if test -f $ac_dir/$ac_word; then
17085 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17086 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17087 break
17090 done
17091 IFS="$ac_save_ifs"
17092 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17094 esac
17096 XGETTEXT="$ac_cv_path_XGETTEXT"
17097 if test "$XGETTEXT" != ":"; then
17098 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17099 $as_echo "$XGETTEXT" >&6; }
17100 else
17101 { $as_echo "$as_me:$LINENO: result: no" >&5
17102 $as_echo "no" >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17113 main ()
17115 extern int _nl_msg_cat_cntr;
17116 return _nl_msg_cat_cntr
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17128 $as_echo "$ac_try_echo") >&5
17129 (eval "$ac_link") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest$ac_exeext && {
17139 test "$cross_compiling" = yes ||
17140 $as_test_x conftest$ac_exeext
17141 }; then
17142 CATOBJEXT=.gmo
17143 DATADIRNAME=share
17144 else
17145 $as_echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 case $host in
17149 *-*-solaris*)
17150 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
17151 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
17152 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
17153 $as_echo_n "(cached) " >&6
17154 else
17155 cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h. */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17161 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
17162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17163 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
17165 /* System header to define __stub macros and hopefully few prototypes,
17166 which can conflict with char bind_textdomain_codeset (); below.
17167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17168 <limits.h> exists even on freestanding compilers. */
17170 #ifdef __STDC__
17171 # include <limits.h>
17172 #else
17173 # include <assert.h>
17174 #endif
17176 #undef bind_textdomain_codeset
17178 /* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17181 #ifdef __cplusplus
17182 extern "C"
17183 #endif
17184 char bind_textdomain_codeset ();
17185 /* The GNU C library defines this for functions which it implements
17186 to always fail with ENOSYS. Some functions are actually named
17187 something starting with __ and the normal name is an alias. */
17188 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
17189 choke me
17190 #endif
17193 main ()
17195 return bind_textdomain_codeset ();
17197 return 0;
17199 _ACEOF
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17205 esac
17206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17207 $as_echo "$ac_try_echo") >&5
17208 (eval "$ac_link") 2>conftest.er1
17209 ac_status=$?
17210 grep -v '^ *+' conftest.er1 >conftest.err
17211 rm -f conftest.er1
17212 cat conftest.err >&5
17213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && {
17215 test -z "$ac_c_werror_flag" ||
17216 test ! -s conftest.err
17217 } && test -s conftest$ac_exeext && {
17218 test "$cross_compiling" = yes ||
17219 $as_test_x conftest$ac_exeext
17220 }; then
17221 ac_cv_func_bind_textdomain_codeset=yes
17222 else
17223 $as_echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_cv_func_bind_textdomain_codeset=no
17229 rm -rf conftest.dSYM
17230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17231 conftest$ac_exeext conftest.$ac_ext
17233 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
17234 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
17235 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
17236 CATOBJEXT=.gmo
17237 DATADIRNAME=share
17238 else
17239 CATOBJEXT=.mo
17240 DATADIRNAME=lib
17245 CATOBJEXT=.mo
17246 DATADIRNAME=lib
17248 esac
17251 rm -rf conftest.dSYM
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17254 LIBS="$glib_save_LIBS"
17255 INSTOBJEXT=.mo
17256 else
17257 gt_cv_have_gettext=no
17265 if test "$gt_cv_have_gettext" = "yes" ; then
17267 cat >>confdefs.h <<\_ACEOF
17268 #define ENABLE_NLS 1
17269 _ACEOF
17273 if test "$XGETTEXT" != ":"; then
17274 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
17276 else
17277 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
17278 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17279 XGETTEXT=":"
17283 # We need to process the po/ directory.
17284 POSUB=po
17286 ac_config_commands="$ac_config_commands default-1"
17289 for lang in $ALL_LINGUAS; do
17290 GMOFILES="$GMOFILES $lang.gmo"
17291 POFILES="$POFILES $lang.po"
17292 done
17306 if test "$gt_cv_have_gettext" = "yes"; then
17307 if test "x$ALL_LINGUAS" = "x"; then
17308 LINGUAS=
17309 else
17310 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
17311 $as_echo_n "checking for catalogs to be installed... " >&6; }
17312 NEW_LINGUAS=
17313 for presentlang in $ALL_LINGUAS; do
17314 useit=no
17315 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
17316 desiredlanguages="$LINGUAS"
17317 else
17318 desiredlanguages="$ALL_LINGUAS"
17320 for desiredlang in $desiredlanguages; do
17321 # Use the presentlang catalog if desiredlang is
17322 # a. equal to presentlang, or
17323 # b. a variant of presentlang (because in this case,
17324 # presentlang can be used as a fallback for messages
17325 # which are not translated in the desiredlang catalog).
17326 case "$desiredlang" in
17327 "$presentlang"*) useit=yes;;
17328 esac
17329 done
17330 if test $useit = yes; then
17331 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
17333 done
17334 LINGUAS=$NEW_LINGUAS
17335 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
17336 $as_echo "$LINGUAS" >&6; }
17339 if test -n "$LINGUAS"; then
17340 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
17344 MKINSTALLDIRS=
17345 if test -n "$ac_aux_dir"; then
17346 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
17348 if test -z "$MKINSTALLDIRS"; then
17349 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17353 test -d po || mkdir po
17354 if test "x$srcdir" != "x."; then
17355 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
17356 posrcprefix="$srcdir/"
17357 else
17358 posrcprefix="../$srcdir/"
17360 else
17361 posrcprefix="../"
17363 rm -f po/POTFILES
17364 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
17365 < $srcdir/po/POTFILES.in > po/POTFILES
17368 # ipv6
17370 { $as_echo "$as_me:$LINENO: checking for select in -lsocket" >&5
17371 $as_echo_n "checking for select in -lsocket... " >&6; }
17372 if test "${ac_cv_lib_socket_select+set}" = set; then
17373 $as_echo_n "(cached) " >&6
17374 else
17375 ac_check_lib_save_LIBS=$LIBS
17376 LIBS="-lsocket $LIBS"
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char select ();
17392 main ()
17394 return select ();
17396 return 0;
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (ac_try="$ac_link"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404 esac
17405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17406 $as_echo "$ac_try_echo") >&5
17407 (eval "$ac_link") 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest$ac_exeext && {
17417 test "$cross_compiling" = yes ||
17418 $as_test_x conftest$ac_exeext
17419 }; then
17420 ac_cv_lib_socket_select=yes
17421 else
17422 $as_echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 ac_cv_lib_socket_select=no
17428 rm -rf conftest.dSYM
17429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17430 conftest$ac_exeext conftest.$ac_ext
17431 LIBS=$ac_check_lib_save_LIBS
17433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_select" >&5
17434 $as_echo "$ac_cv_lib_socket_select" >&6; }
17435 if test "x$ac_cv_lib_socket_select" = x""yes; then
17436 cat >>confdefs.h <<_ACEOF
17437 #define HAVE_LIBSOCKET 1
17438 _ACEOF
17440 LIBS="-lsocket $LIBS"
17446 for ac_func in getaddrinfo
17448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17450 $as_echo_n "checking for $ac_func... " >&6; }
17451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17452 $as_echo_n "(cached) " >&6
17453 else
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17462 #define $ac_func innocuous_$ac_func
17464 /* System header to define __stub macros and hopefully few prototypes,
17465 which can conflict with char $ac_func (); below.
17466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17467 <limits.h> exists even on freestanding compilers. */
17469 #ifdef __STDC__
17470 # include <limits.h>
17471 #else
17472 # include <assert.h>
17473 #endif
17475 #undef $ac_func
17477 /* Override any GCC internal prototype to avoid an error.
17478 Use char because int might match the return type of a GCC
17479 builtin and then its argument prototype would still apply. */
17480 #ifdef __cplusplus
17481 extern "C"
17482 #endif
17483 char $ac_func ();
17484 /* The GNU C library defines this for functions which it implements
17485 to always fail with ENOSYS. Some functions are actually named
17486 something starting with __ and the normal name is an alias. */
17487 #if defined __stub_$ac_func || defined __stub___$ac_func
17488 choke me
17489 #endif
17492 main ()
17494 return $ac_func ();
17496 return 0;
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504 esac
17505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17506 $as_echo "$ac_try_echo") >&5
17507 (eval "$ac_link") 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } && {
17514 test -z "$ac_c_werror_flag" ||
17515 test ! -s conftest.err
17516 } && test -s conftest$ac_exeext && {
17517 test "$cross_compiling" = yes ||
17518 $as_test_x conftest$ac_exeext
17519 }; then
17520 eval "$as_ac_var=yes"
17521 else
17522 $as_echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 eval "$as_ac_var=no"
17528 rm -rf conftest.dSYM
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17530 conftest$ac_exeext conftest.$ac_ext
17532 ac_res=`eval 'as_val=${'$as_ac_var'}
17533 $as_echo "$as_val"'`
17534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17535 $as_echo "$ac_res" >&6; }
17536 as_val=`eval 'as_val=${'$as_ac_var'}
17537 $as_echo "$as_val"'`
17538 if test "x$as_val" = x""yes; then
17539 cat >>confdefs.h <<_ACEOF
17540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17541 _ACEOF
17542 have_getaddrinfo=yes
17544 done
17546 { $as_echo "$as_me:$LINENO: checking whether to enable IPv6 support" >&5
17547 $as_echo_n "checking whether to enable IPv6 support... " >&6; }
17548 if test "x$have_getaddrinfo" = xyes; then
17549 { $as_echo "$as_me:$LINENO: result: yes" >&5
17550 $as_echo "yes" >&6; }
17552 cat >>confdefs.h <<\_ACEOF
17553 #define USE_IPV6 /**/
17554 _ACEOF
17556 else
17557 { $as_echo "$as_me:$LINENO: result: no" >&5
17558 $as_echo "no" >&6; }
17561 # Xlib & Xshm (for xtext tinting)
17562 { $as_echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
17563 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
17564 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
17565 $as_echo_n "(cached) " >&6
17566 else
17567 ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-lX11 $LIBS"
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17576 /* Override any GCC internal prototype to avoid an error.
17577 Use char because int might match the return type of a GCC
17578 builtin and then its argument prototype would still apply. */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 char XOpenDisplay ();
17584 main ()
17586 return XOpenDisplay ();
17588 return 0;
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596 esac
17597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17598 $as_echo "$ac_try_echo") >&5
17599 (eval "$ac_link") 2>conftest.er1
17600 ac_status=$?
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
17604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } && {
17606 test -z "$ac_c_werror_flag" ||
17607 test ! -s conftest.err
17608 } && test -s conftest$ac_exeext && {
17609 test "$cross_compiling" = yes ||
17610 $as_test_x conftest$ac_exeext
17611 }; then
17612 ac_cv_lib_X11_XOpenDisplay=yes
17613 else
17614 $as_echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 ac_cv_lib_X11_XOpenDisplay=no
17620 rm -rf conftest.dSYM
17621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17622 conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17625 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
17626 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
17627 if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then
17628 xlib=yes
17629 else
17630 xlib=no
17633 if test "x$xlib" = xyes; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define USE_XLIB 1
17637 _ACEOF
17641 # Disable SHM because of bug #565958
17643 # AC_CHECK_LIB(Xext, XShmAttach, shm=yes, shm=no)
17644 # AC_CHECK_HEADERS(sys/ipc.h, , shm=no)
17645 # AC_CHECK_HEADERS(sys/shm.h, , shm=no)
17646 # if test "x$shm" = xyes; then
17647 # DEPENDENCIES_LIBS="$DEPENDENCIES_LIBS -lX11 -lXext"
17648 # AC_DEFINE(USE_SHM, [1], [Whether to use Xshm tinting])
17649 # fi
17651 # MMX (for xtext tinting)
17652 # Check whether --enable-mmx was given.
17653 if test "${enable_mmx+set}" = set; then
17654 enableval=$enable_mmx; mmx=$enableval
17655 else
17656 mmx=yes
17659 if test "$mmx" = "yes"; then
17660 case $host_cpu in
17661 i386|i486|i586|i686|i786|k6|k7)
17662 mmx=yes
17665 mmx=no
17666 esac
17667 if test "$system" = "OpenBSD"; then
17668 mmx=no
17670 if test "$mmx" = "yes"; then
17672 cat >>confdefs.h <<\_ACEOF
17673 #define USE_MMX 1
17674 _ACEOF
17679 if test "x$mmx" = "xyes"; then
17680 USE_MMX_TRUE=
17681 USE_MMX_FALSE='#'
17682 else
17683 USE_MMX_TRUE='#'
17684 USE_MMX_FALSE=
17688 # plugins
17689 ALL_PLUGINS="autoaway notification url_scraper"
17690 CANBERRA_PLUGINS="sound-notification"
17691 DBUS_PLUGINS="net-monitor"
17692 LIBNOTIFY_PLUGINS="notify-osd"
17693 PYTHON_PLUGINS="python"
17694 PERL_PLUGINS="perl"
17695 TCL_PLUGINS="tcl"
17697 DIST_PLUGINS="$ALL_PLUGINS $CANBERRA_PLUGINS $DBUS_PLUGINS $LIBNOTIFY_PLUGINS $PYTHON_PLUGINS $PERL_PLUGINS $TCL_PLUGINS"
17699 # canberra specific plugins
17700 if test "x$enable_canberra" = "xyes"; then
17701 ALL_PLUGINS="$ALL_PLUGINS $CANBERRA_PLUGINS"
17702 else
17703 { $as_echo "$as_me:$LINENO: WARNING: xchat-gnome compiled without libcanberra support, plugins $CANBERRA_PLUGINS will not be available" >&5
17704 $as_echo "$as_me: WARNING: xchat-gnome compiled without libcanberra support, plugins $CANBERRA_PLUGINS will not be available" >&2;}
17707 # dbus-specific plugins
17708 if test "x$dbus" = "xyes"; then
17709 ALL_PLUGINS="$ALL_PLUGINS $DBUS_PLUGINS"
17710 else
17711 { $as_echo "$as_me:$LINENO: WARNING: xchat-gnome compiled without dbus support, plugins $DBUS_PLUGINS will not be available" >&5
17712 $as_echo "$as_me: WARNING: xchat-gnome compiled without dbus support, plugins $DBUS_PLUGINS will not be available" >&2;}
17715 # libnotify-specific plugins
17716 if test "x$enable_notification" = "xyes"; then
17717 ALL_PLUGINS="$ALL_PLUGINS $LIBNOTIFY_PLUGINS"
17718 else
17719 { $as_echo "$as_me:$LINENO: WARNING: xchat-gnome compiled without libnotify support, plugins $LIBNOTIFY_PLUGINS will not be available" >&5
17720 $as_echo "$as_me: WARNING: xchat-gnome compiled without libnotify support, plugins $LIBNOTIFY_PLUGINS will not be available" >&2;}
17723 # perl-specific plugins
17724 if test "$enable_perl" = "yes" -a "$have_perl" = "yes"; then
17725 ALL_PLUGINS="$ALL_PLUGINS $PERL_PLUGINS"
17726 else
17727 { $as_echo "$as_me:$LINENO: WARNING: xchat-gnome compiled without perl support, plugins $PERL_PLUGINS will not be available" >&5
17728 $as_echo "$as_me: WARNING: xchat-gnome compiled without perl support, plugins $PERL_PLUGINS will not be available" >&2;}
17731 # python-specific plugins
17732 if test "$enable_python" = "yes" -a "$have_python" = "yes"; then
17733 ALL_PLUGINS="$ALL_PLUGINS $PYTHON_PLUGINS"
17734 else
17735 { $as_echo "$as_me:$LINENO: WARNING: xchat-gnome compiled without python support, plugins $PYTHON_PLUGINS will not be available" >&5
17736 $as_echo "$as_me: WARNING: xchat-gnome compiled without python support, plugins $PYTHON_PLUGINS will not be available" >&2;}
17739 # tcl-specific plugins
17740 if test "$enable_tcl" = "yes" -a "$have_tcl" = "yes"; then
17741 ALL_PLUGINS="$ALL_PLUGINS $TCL_PLUGINS"
17742 else
17743 { $as_echo "$as_me:$LINENO: WARNING: xchat-gnome compiled without tcl support, plugins $TCL_PLUGINS will not be available" >&5
17744 $as_echo "$as_me: WARNING: xchat-gnome compiled without tcl support, plugins $TCL_PLUGINS will not be available" >&2;}
17747 { $as_echo "$as_me:$LINENO: checking which plugins to build" >&5
17748 $as_echo_n "checking which plugins to build... " >&6; }
17750 # Check whether --with-plugins was given.
17751 if test "${with_plugins+set}" = set; then
17752 withval=$with_plugins; plugins=$with_plugins
17753 else
17754 plugins="default"
17757 if test "x$with_plugins" = xyes; then
17758 plugins="default"
17761 PLUGINS=
17762 IFS="${IFS= }"; plugin_save_ifs="$IFS"; IFS=","
17763 for plugin in $plugins; do
17764 if echo "$ALL_PLUGINS" | egrep "(^| )$plugin(\$| )" > /dev/null; then
17765 PLUGINS="$PLUGINS $plugin"
17766 elif test "x$plugin" = "xdefault"; then
17767 PLUGINS="$PLUGINS $ALL_PLUGINS"
17769 done
17770 IFS="$plugin_save_ifs"
17773 BUILD_PLUGINS=`echo $PLUGINS | tr ' ' '\n' | sort | uniq | tr '\n' ' '`
17775 { $as_echo "$as_me:$LINENO: result: $PLUGINS" >&5
17776 $as_echo "$PLUGINS" >&6; }
17778 cat >>confdefs.h <<\_ACEOF
17779 #define USE_PLUGIN /**/
17780 _ACEOF
17783 cat >>confdefs.h <<\_ACEOF
17784 #define USE_GMODULE /**/
17785 _ACEOF
17788 # warning flags
17789 AM_CPPFLAGS="$AM_CPPFLAGS $DISABLE_DEPRECATED"
17790 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS -fgnu89-inline"
17796 # various and sundry defines and flags
17798 cat >>confdefs.h <<\_ACEOF
17799 #define _GNU_SOURCE /**/
17800 _ACEOF
17805 ac_config_files="$ac_config_files data/icons/hicolor/128x128/apps/Makefile data/icons/hicolor/128x128/Makefile data/icons/hicolor/16x16/apps/Makefile data/icons/hicolor/16x16/Makefile data/icons/hicolor/22x22/apps/Makefile data/icons/hicolor/22x22/Makefile data/icons/hicolor/48x48/apps/Makefile data/icons/hicolor/48x48/Makefile data/icons/hicolor/Makefile data/icons/hicolor/scalable/apps/Makefile data/icons/hicolor/scalable/Makefile data/icons/Makefile data/Makefile data/xchat-gnome.desktop.in help/Makefile Makefile plugins/autoaway/Makefile plugins/Makefile plugins/net-monitor/Makefile plugins/notification/Makefile plugins/notify-osd/Makefile plugins/perl/Makefile plugins/python/Makefile plugins/sound-notification/Makefile plugins/tcl/Makefile plugins/url_scraper/Makefile po/Makefile.in src/common/dbus/Makefile src/common/Makefile src/fe-gnome/Makefile src/libcontrast/Makefile src/Makefile"
17808 cat >confcache <<\_ACEOF
17809 # This file is a shell script that caches the results of configure
17810 # tests run on this system so they can be shared between configure
17811 # scripts and configure runs, see configure's option --config-cache.
17812 # It is not useful on other systems. If it contains results you don't
17813 # want to keep, you may remove or edit it.
17815 # config.status only pays attention to the cache file if you give it
17816 # the --recheck option to rerun configure.
17818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17820 # following values.
17822 _ACEOF
17824 # The following way of writing the cache mishandles newlines in values,
17825 # but we know of no workaround that is simple, portable, and efficient.
17826 # So, we kill variables containing newlines.
17827 # Ultrix sh set writes to stderr and can't be redirected directly,
17828 # and sets the high bit in the cache file unless we assign to the vars.
17830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17831 eval ac_val=\$$ac_var
17832 case $ac_val in #(
17833 *${as_nl}*)
17834 case $ac_var in #(
17835 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17837 esac
17838 case $ac_var in #(
17839 _ | IFS | as_nl) ;; #(
17840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17841 *) $as_unset $ac_var ;;
17842 esac ;;
17843 esac
17844 done
17846 (set) 2>&1 |
17847 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17848 *${as_nl}ac_space=\ *)
17849 # `set' does not quote correctly, so add quotes (double-quote
17850 # substitution turns \\\\ into \\, and sed turns \\ into \).
17851 sed -n \
17852 "s/'/'\\\\''/g;
17853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17854 ;; #(
17856 # `set' quotes correctly as required by POSIX, so do not add quotes.
17857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17859 esac |
17860 sort
17862 sed '
17863 /^ac_cv_env_/b end
17864 t clear
17865 :clear
17866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17867 t end
17868 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17869 :end' >>confcache
17870 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17871 if test -w "$cache_file"; then
17872 test "x$cache_file" != "x/dev/null" &&
17873 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17874 $as_echo "$as_me: updating cache $cache_file" >&6;}
17875 cat confcache >$cache_file
17876 else
17877 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17881 rm -f confcache
17883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17884 # Let make expand exec_prefix.
17885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17887 DEFS=-DHAVE_CONFIG_H
17889 ac_libobjs=
17890 ac_ltlibobjs=
17891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17892 # 1. Remove the extension, and $U if already installed.
17893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17896 # will be set to the directory where LIBOBJS objects are built.
17897 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17898 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17899 done
17900 LIBOBJS=$ac_libobjs
17902 LTLIBOBJS=$ac_ltlibobjs
17905 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17906 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17907 Usually this means the macro was only invoked conditionally." >&5
17908 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17909 Usually this means the macro was only invoked conditionally." >&2;}
17910 { (exit 1); exit 1; }; }
17912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17913 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17914 Usually this means the macro was only invoked conditionally." >&5
17915 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17916 Usually this means the macro was only invoked conditionally." >&2;}
17917 { (exit 1); exit 1; }; }
17919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17920 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17921 Usually this means the macro was only invoked conditionally." >&5
17922 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17923 Usually this means the macro was only invoked conditionally." >&2;}
17924 { (exit 1); exit 1; }; }
17927 ac_config_commands="$ac_config_commands po/stamp-it"
17930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17931 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17932 Usually this means the macro was only invoked conditionally." >&5
17933 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17934 Usually this means the macro was only invoked conditionally." >&2;}
17935 { (exit 1); exit 1; }; }
17937 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17938 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17939 Usually this means the macro was only invoked conditionally." >&5
17940 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17941 Usually this means the macro was only invoked conditionally." >&2;}
17942 { (exit 1); exit 1; }; }
17944 if test -z "${ENABLE_SK_TRUE}" && test -z "${ENABLE_SK_FALSE}"; then
17945 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SK\" was never defined.
17946 Usually this means the macro was only invoked conditionally." >&5
17947 $as_echo "$as_me: error: conditional \"ENABLE_SK\" was never defined.
17948 Usually this means the macro was only invoked conditionally." >&2;}
17949 { (exit 1); exit 1; }; }
17951 if test -z "${HAVE_GNOME_DOC_UTILS_TRUE}" && test -z "${HAVE_GNOME_DOC_UTILS_FALSE}"; then
17952 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GNOME_DOC_UTILS\" was never defined.
17953 Usually this means the macro was only invoked conditionally." >&5
17954 $as_echo "$as_me: error: conditional \"HAVE_GNOME_DOC_UTILS\" was never defined.
17955 Usually this means the macro was only invoked conditionally." >&2;}
17956 { (exit 1); exit 1; }; }
17958 if test -z "${ENABLE_DBUS_TRUE}" && test -z "${ENABLE_DBUS_FALSE}"; then
17959 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_DBUS\" was never defined.
17960 Usually this means the macro was only invoked conditionally." >&5
17961 $as_echo "$as_me: error: conditional \"ENABLE_DBUS\" was never defined.
17962 Usually this means the macro was only invoked conditionally." >&2;}
17963 { (exit 1); exit 1; }; }
17965 if test -z "${ENABLE_LIBNOTIFY_TRUE}" && test -z "${ENABLE_LIBNOTIFY_FALSE}"; then
17966 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBNOTIFY\" was never defined.
17967 Usually this means the macro was only invoked conditionally." >&5
17968 $as_echo "$as_me: error: conditional \"ENABLE_LIBNOTIFY\" was never defined.
17969 Usually this means the macro was only invoked conditionally." >&2;}
17970 { (exit 1); exit 1; }; }
17972 if test -z "${ENABLE_LIBCANBERRA_TRUE}" && test -z "${ENABLE_LIBCANBERRA_FALSE}"; then
17973 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBCANBERRA\" was never defined.
17974 Usually this means the macro was only invoked conditionally." >&5
17975 $as_echo "$as_me: error: conditional \"ENABLE_LIBCANBERRA\" was never defined.
17976 Usually this means the macro was only invoked conditionally." >&2;}
17977 { (exit 1); exit 1; }; }
17979 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
17980 { { $as_echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
17981 Usually this means the macro was only invoked conditionally." >&5
17982 $as_echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
17983 Usually this means the macro was only invoked conditionally." >&2;}
17984 { (exit 1); exit 1; }; }
17986 if test -z "${USE_OPENSSL_TRUE}" && test -z "${USE_OPENSSL_FALSE}"; then
17987 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_OPENSSL\" was never defined.
17988 Usually this means the macro was only invoked conditionally." >&5
17989 $as_echo "$as_me: error: conditional \"USE_OPENSSL\" was never defined.
17990 Usually this means the macro was only invoked conditionally." >&2;}
17991 { (exit 1); exit 1; }; }
17993 if test -z "${USE_MMX_TRUE}" && test -z "${USE_MMX_FALSE}"; then
17994 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_MMX\" was never defined.
17995 Usually this means the macro was only invoked conditionally." >&5
17996 $as_echo "$as_me: error: conditional \"USE_MMX\" was never defined.
17997 Usually this means the macro was only invoked conditionally." >&2;}
17998 { (exit 1); exit 1; }; }
18001 : ${CONFIG_STATUS=./config.status}
18002 ac_write_fail=0
18003 ac_clean_files_save=$ac_clean_files
18004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18005 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18006 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18007 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18008 #! $SHELL
18009 # Generated by $as_me.
18010 # Run this file to recreate the current configuration.
18011 # Compiler output produced by configure, useful for debugging
18012 # configure, is in config.log if it exists.
18014 debug=false
18015 ac_cs_recheck=false
18016 ac_cs_silent=false
18017 SHELL=\${CONFIG_SHELL-$SHELL}
18018 _ACEOF
18020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18021 ## --------------------- ##
18022 ## M4sh Initialization. ##
18023 ## --------------------- ##
18025 # Be more Bourne compatible
18026 DUALCASE=1; export DUALCASE # for MKS sh
18027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18028 emulate sh
18029 NULLCMD=:
18030 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18031 # is contrary to our usage. Disable this feature.
18032 alias -g '${1+"$@"}'='"$@"'
18033 setopt NO_GLOB_SUBST
18034 else
18035 case `(set -o) 2>/dev/null` in
18036 *posix*) set -o posix ;;
18037 esac
18044 # PATH needs CR
18045 # Avoid depending upon Character Ranges.
18046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18049 as_cr_digits='0123456789'
18050 as_cr_alnum=$as_cr_Letters$as_cr_digits
18052 as_nl='
18054 export as_nl
18055 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18056 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18059 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18060 as_echo='printf %s\n'
18061 as_echo_n='printf %s'
18062 else
18063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18065 as_echo_n='/usr/ucb/echo -n'
18066 else
18067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18068 as_echo_n_body='eval
18069 arg=$1;
18070 case $arg in
18071 *"$as_nl"*)
18072 expr "X$arg" : "X\\(.*\\)$as_nl";
18073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18074 esac;
18075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18077 export as_echo_n_body
18078 as_echo_n='sh -c $as_echo_n_body as_echo'
18080 export as_echo_body
18081 as_echo='sh -c $as_echo_body as_echo'
18084 # The user is always right.
18085 if test "${PATH_SEPARATOR+set}" != set; then
18086 PATH_SEPARATOR=:
18087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18089 PATH_SEPARATOR=';'
18093 # Support unset when possible.
18094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18095 as_unset=unset
18096 else
18097 as_unset=false
18101 # IFS
18102 # We need space, tab and new line, in precisely that order. Quoting is
18103 # there to prevent editors from complaining about space-tab.
18104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18105 # splitting by setting IFS to empty value.)
18106 IFS=" "" $as_nl"
18108 # Find who we are. Look in the path if we contain no directory separator.
18109 case $0 in
18110 *[\\/]* ) as_myself=$0 ;;
18111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112 for as_dir in $PATH
18114 IFS=$as_save_IFS
18115 test -z "$as_dir" && as_dir=.
18116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18117 done
18118 IFS=$as_save_IFS
18121 esac
18122 # We did not find ourselves, most probably we were run as `sh COMMAND'
18123 # in which case we are not to be found in the path.
18124 if test "x$as_myself" = x; then
18125 as_myself=$0
18127 if test ! -f "$as_myself"; then
18128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18129 { (exit 1); exit 1; }
18132 # Work around bugs in pre-3.0 UWIN ksh.
18133 for as_var in ENV MAIL MAILPATH
18134 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18135 done
18136 PS1='$ '
18137 PS2='> '
18138 PS4='+ '
18140 # NLS nuisances.
18141 LC_ALL=C
18142 export LC_ALL
18143 LANGUAGE=C
18144 export LANGUAGE
18146 # Required to use basename.
18147 if expr a : '\(a\)' >/dev/null 2>&1 &&
18148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18149 as_expr=expr
18150 else
18151 as_expr=false
18154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18155 as_basename=basename
18156 else
18157 as_basename=false
18161 # Name of the executable.
18162 as_me=`$as_basename -- "$0" ||
18163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18164 X"$0" : 'X\(//\)$' \| \
18165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18166 $as_echo X/"$0" |
18167 sed '/^.*\/\([^/][^/]*\)\/*$/{
18168 s//\1/
18171 /^X\/\(\/\/\)$/{
18172 s//\1/
18175 /^X\/\(\/\).*/{
18176 s//\1/
18179 s/.*/./; q'`
18181 # CDPATH.
18182 $as_unset CDPATH
18186 as_lineno_1=$LINENO
18187 as_lineno_2=$LINENO
18188 test "x$as_lineno_1" != "x$as_lineno_2" &&
18189 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18192 # uniformly replaced by the line number. The first 'sed' inserts a
18193 # line-number line after each line using $LINENO; the second 'sed'
18194 # does the real work. The second script uses 'N' to pair each
18195 # line-number line with the line containing $LINENO, and appends
18196 # trailing '-' during substitution so that $LINENO is not a special
18197 # case at line end.
18198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18199 # scripts with optimization help from Paolo Bonzini. Blame Lee
18200 # E. McMahon (1931-1989) for sed's syntax. :-)
18201 sed -n '
18203 /[$]LINENO/=
18204 ' <$as_myself |
18205 sed '
18206 s/[$]LINENO.*/&-/
18207 t lineno
18209 :lineno
18211 :loop
18212 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18213 t loop
18214 s/-\n.*//
18215 ' >$as_me.lineno &&
18216 chmod +x "$as_me.lineno" ||
18217 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18218 { (exit 1); exit 1; }; }
18220 # Don't try to exec as it changes $[0], causing all sort of problems
18221 # (the dirname of $[0] is not the place where we might find the
18222 # original and so on. Autoconf is especially sensitive to this).
18223 . "./$as_me.lineno"
18224 # Exit status is that of the last command.
18225 exit
18229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18230 as_dirname=dirname
18231 else
18232 as_dirname=false
18235 ECHO_C= ECHO_N= ECHO_T=
18236 case `echo -n x` in
18237 -n*)
18238 case `echo 'x\c'` in
18239 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18240 *) ECHO_C='\c';;
18241 esac;;
18243 ECHO_N='-n';;
18244 esac
18245 if expr a : '\(a\)' >/dev/null 2>&1 &&
18246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18247 as_expr=expr
18248 else
18249 as_expr=false
18252 rm -f conf$$ conf$$.exe conf$$.file
18253 if test -d conf$$.dir; then
18254 rm -f conf$$.dir/conf$$.file
18255 else
18256 rm -f conf$$.dir
18257 mkdir conf$$.dir 2>/dev/null
18259 if (echo >conf$$.file) 2>/dev/null; then
18260 if ln -s conf$$.file conf$$ 2>/dev/null; then
18261 as_ln_s='ln -s'
18262 # ... but there are two gotchas:
18263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18265 # In both cases, we have to default to `cp -p'.
18266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18267 as_ln_s='cp -p'
18268 elif ln conf$$.file conf$$ 2>/dev/null; then
18269 as_ln_s=ln
18270 else
18271 as_ln_s='cp -p'
18273 else
18274 as_ln_s='cp -p'
18276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18277 rmdir conf$$.dir 2>/dev/null
18279 if mkdir -p . 2>/dev/null; then
18280 as_mkdir_p=:
18281 else
18282 test -d ./-p && rmdir ./-p
18283 as_mkdir_p=false
18286 if test -x / >/dev/null 2>&1; then
18287 as_test_x='test -x'
18288 else
18289 if ls -dL / >/dev/null 2>&1; then
18290 as_ls_L_option=L
18291 else
18292 as_ls_L_option=
18294 as_test_x='
18295 eval sh -c '\''
18296 if test -d "$1"; then
18297 test -d "$1/.";
18298 else
18299 case $1 in
18300 -*)set "./$1";;
18301 esac;
18302 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18303 ???[sx]*):;;*)false;;esac;fi
18304 '\'' sh
18307 as_executable_p=$as_test_x
18309 # Sed expression to map a string onto a valid CPP name.
18310 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18312 # Sed expression to map a string onto a valid variable name.
18313 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18316 exec 6>&1
18318 # Save the log message, to keep $[0] and so on meaningful, and to
18319 # report actual input values of CONFIG_FILES etc. instead of their
18320 # values after options handling.
18321 ac_log="
18322 This file was extended by XChat-GNOME IRC Chat $as_me 0.26.1, which was
18323 generated by GNU Autoconf 2.63. Invocation command line was
18325 CONFIG_FILES = $CONFIG_FILES
18326 CONFIG_HEADERS = $CONFIG_HEADERS
18327 CONFIG_LINKS = $CONFIG_LINKS
18328 CONFIG_COMMANDS = $CONFIG_COMMANDS
18329 $ $0 $@
18331 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18334 _ACEOF
18336 case $ac_config_files in *"
18337 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18338 esac
18340 case $ac_config_headers in *"
18341 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18342 esac
18345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18346 # Files that config.status was made for.
18347 config_files="$ac_config_files"
18348 config_headers="$ac_config_headers"
18349 config_commands="$ac_config_commands"
18351 _ACEOF
18353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18354 ac_cs_usage="\
18355 \`$as_me' instantiates files from templates according to the
18356 current configuration.
18358 Usage: $0 [OPTION]... [FILE]...
18360 -h, --help print this help, then exit
18361 -V, --version print version number and configuration settings, then exit
18362 -q, --quiet, --silent
18363 do not print progress messages
18364 -d, --debug don't remove temporary files
18365 --recheck update $as_me by reconfiguring in the same conditions
18366 --file=FILE[:TEMPLATE]
18367 instantiate the configuration file FILE
18368 --header=FILE[:TEMPLATE]
18369 instantiate the configuration header FILE
18371 Configuration files:
18372 $config_files
18374 Configuration headers:
18375 $config_headers
18377 Configuration commands:
18378 $config_commands
18380 Report bugs to <bug-autoconf@gnu.org>."
18382 _ACEOF
18383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384 ac_cs_version="\\
18385 XChat-GNOME IRC Chat config.status 0.26.1
18386 configured by $0, generated by GNU Autoconf 2.63,
18387 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18389 Copyright (C) 2008 Free Software Foundation, Inc.
18390 This config.status script is free software; the Free Software Foundation
18391 gives unlimited permission to copy, distribute and modify it."
18393 ac_pwd='$ac_pwd'
18394 srcdir='$srcdir'
18395 INSTALL='$INSTALL'
18396 MKDIR_P='$MKDIR_P'
18397 AWK='$AWK'
18398 test -n "\$AWK" || AWK=awk
18399 _ACEOF
18401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18402 # The default lists apply if the user does not specify any file.
18403 ac_need_defaults=:
18404 while test $# != 0
18406 case $1 in
18407 --*=*)
18408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18410 ac_shift=:
18413 ac_option=$1
18414 ac_optarg=$2
18415 ac_shift=shift
18417 esac
18419 case $ac_option in
18420 # Handling of the options.
18421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18422 ac_cs_recheck=: ;;
18423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18424 $as_echo "$ac_cs_version"; exit ;;
18425 --debug | --debu | --deb | --de | --d | -d )
18426 debug=: ;;
18427 --file | --fil | --fi | --f )
18428 $ac_shift
18429 case $ac_optarg in
18430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18431 esac
18432 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18433 ac_need_defaults=false;;
18434 --header | --heade | --head | --hea )
18435 $ac_shift
18436 case $ac_optarg in
18437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18438 esac
18439 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18440 ac_need_defaults=false;;
18441 --he | --h)
18442 # Conflict between --help and --header
18443 { $as_echo "$as_me: error: ambiguous option: $1
18444 Try \`$0 --help' for more information." >&2
18445 { (exit 1); exit 1; }; };;
18446 --help | --hel | -h )
18447 $as_echo "$ac_cs_usage"; exit ;;
18448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18450 ac_cs_silent=: ;;
18452 # This is an error.
18453 -*) { $as_echo "$as_me: error: unrecognized option: $1
18454 Try \`$0 --help' for more information." >&2
18455 { (exit 1); exit 1; }; } ;;
18457 *) ac_config_targets="$ac_config_targets $1"
18458 ac_need_defaults=false ;;
18460 esac
18461 shift
18462 done
18464 ac_configure_extra_args=
18466 if $ac_cs_silent; then
18467 exec 6>/dev/null
18468 ac_configure_extra_args="$ac_configure_extra_args --silent"
18471 _ACEOF
18472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18473 if \$ac_cs_recheck; then
18474 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18475 shift
18476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18477 CONFIG_SHELL='$SHELL'
18478 export CONFIG_SHELL
18479 exec "\$@"
18482 _ACEOF
18483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18484 exec 5>>config.log
18486 echo
18487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18488 ## Running $as_me. ##
18489 _ASBOX
18490 $as_echo "$ac_log"
18491 } >&5
18493 _ACEOF
18494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18496 # INIT-COMMANDS
18498 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18501 # The HP-UX ksh and POSIX shell print the target directory to stdout
18502 # if CDPATH is set.
18503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18505 sed_quote_subst='$sed_quote_subst'
18506 double_quote_subst='$double_quote_subst'
18507 delay_variable_subst='$delay_variable_subst'
18508 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18509 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18510 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18511 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18512 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18513 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18514 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18515 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18516 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18517 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18518 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18519 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18520 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18521 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18522 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18523 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18524 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18525 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18526 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18527 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18528 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18529 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18530 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18531 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18532 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18533 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18534 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18535 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18536 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18537 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18538 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18539 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18540 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18541 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18542 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18543 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18544 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18545 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18546 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18547 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18548 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18549 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18550 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18551 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18552 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18553 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18554 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18555 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18556 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18557 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18558 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18559 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18560 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18561 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18562 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18563 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18564 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18565 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18566 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18567 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18568 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18569 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18570 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18571 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18572 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18573 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18574 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18575 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18576 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18577 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18578 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18579 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18580 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18581 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18582 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18583 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18584 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18585 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18586 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18587 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18588 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18589 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18590 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18591 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18592 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18593 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18594 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18595 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18596 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18597 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18598 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18599 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18600 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18601 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18602 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18603 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18604 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18605 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18606 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18607 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18608 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18609 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18610 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18611 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18612 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18613 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18614 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18615 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18616 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18617 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18618 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18619 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18620 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18621 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18622 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18623 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18624 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18625 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18627 LTCC='$LTCC'
18628 LTCFLAGS='$LTCFLAGS'
18629 compiler='$compiler_DEFAULT'
18631 # Quote evaled strings.
18632 for var in SED \
18633 GREP \
18634 EGREP \
18635 FGREP \
18636 LD \
18637 NM \
18638 LN_S \
18639 lt_SP2NL \
18640 lt_NL2SP \
18641 reload_flag \
18642 OBJDUMP \
18643 deplibs_check_method \
18644 file_magic_cmd \
18645 AR \
18646 AR_FLAGS \
18647 STRIP \
18648 RANLIB \
18649 CC \
18650 CFLAGS \
18651 compiler \
18652 lt_cv_sys_global_symbol_pipe \
18653 lt_cv_sys_global_symbol_to_cdecl \
18654 lt_cv_sys_global_symbol_to_c_name_address \
18655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18656 SHELL \
18657 ECHO \
18658 lt_prog_compiler_no_builtin_flag \
18659 lt_prog_compiler_wl \
18660 lt_prog_compiler_pic \
18661 lt_prog_compiler_static \
18662 lt_cv_prog_compiler_c_o \
18663 need_locks \
18664 DSYMUTIL \
18665 NMEDIT \
18666 LIPO \
18667 OTOOL \
18668 OTOOL64 \
18669 shrext_cmds \
18670 export_dynamic_flag_spec \
18671 whole_archive_flag_spec \
18672 compiler_needs_object \
18673 with_gnu_ld \
18674 allow_undefined_flag \
18675 no_undefined_flag \
18676 hardcode_libdir_flag_spec \
18677 hardcode_libdir_flag_spec_ld \
18678 hardcode_libdir_separator \
18679 fix_srcfile_path \
18680 exclude_expsyms \
18681 include_expsyms \
18682 file_list_spec \
18683 variables_saved_for_relink \
18684 libname_spec \
18685 library_names_spec \
18686 soname_spec \
18687 finish_eval \
18688 old_striplib \
18689 striplib; do
18690 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18691 *[\\\\\\\`\\"\\\$]*)
18692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18697 esac
18698 done
18700 # Double-quote double-evaled strings.
18701 for var in reload_cmds \
18702 old_postinstall_cmds \
18703 old_postuninstall_cmds \
18704 old_archive_cmds \
18705 extract_expsyms_cmds \
18706 old_archive_from_new_cmds \
18707 old_archive_from_expsyms_cmds \
18708 archive_cmds \
18709 archive_expsym_cmds \
18710 module_cmds \
18711 module_expsym_cmds \
18712 export_symbols_cmds \
18713 prelink_cmds \
18714 postinstall_cmds \
18715 postuninstall_cmds \
18716 finish_cmds \
18717 sys_lib_search_path_spec \
18718 sys_lib_dlsearch_path_spec; do
18719 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18720 *[\\\\\\\`\\"\\\$]*)
18721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18726 esac
18727 done
18729 # Fix-up fallback echo if it was mangled by the above quoting rules.
18730 case \$lt_ECHO in
18731 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18733 esac
18735 ac_aux_dir='$ac_aux_dir'
18736 xsi_shell='$xsi_shell'
18737 lt_shell_append='$lt_shell_append'
18739 # See if we are running on zsh, and set the options which allow our
18740 # commands through without removal of \ escapes INIT.
18741 if test -n "\${ZSH_VERSION+set}" ; then
18742 setopt NO_GLOB_SUBST
18746 PACKAGE='$PACKAGE'
18747 VERSION='$VERSION'
18748 TIMESTAMP='$TIMESTAMP'
18749 RM='$RM'
18750 ofile='$ofile'
18756 _ACEOF
18758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18760 # Handling of arguments.
18761 for ac_config_target in $ac_config_targets
18763 case $ac_config_target in
18764 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18765 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18766 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18767 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18768 "data/icons/hicolor/128x128/apps/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/128x128/apps/Makefile" ;;
18769 "data/icons/hicolor/128x128/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/128x128/Makefile" ;;
18770 "data/icons/hicolor/16x16/apps/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/16x16/apps/Makefile" ;;
18771 "data/icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/16x16/Makefile" ;;
18772 "data/icons/hicolor/22x22/apps/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/22x22/apps/Makefile" ;;
18773 "data/icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/22x22/Makefile" ;;
18774 "data/icons/hicolor/48x48/apps/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/48x48/apps/Makefile" ;;
18775 "data/icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/48x48/Makefile" ;;
18776 "data/icons/hicolor/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/Makefile" ;;
18777 "data/icons/hicolor/scalable/apps/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/scalable/apps/Makefile" ;;
18778 "data/icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/hicolor/scalable/Makefile" ;;
18779 "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
18780 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
18781 "data/xchat-gnome.desktop.in") CONFIG_FILES="$CONFIG_FILES data/xchat-gnome.desktop.in" ;;
18782 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18783 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18784 "plugins/autoaway/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/autoaway/Makefile" ;;
18785 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
18786 "plugins/net-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/net-monitor/Makefile" ;;
18787 "plugins/notification/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/notification/Makefile" ;;
18788 "plugins/notify-osd/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/notify-osd/Makefile" ;;
18789 "plugins/perl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/perl/Makefile" ;;
18790 "plugins/python/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/python/Makefile" ;;
18791 "plugins/sound-notification/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sound-notification/Makefile" ;;
18792 "plugins/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tcl/Makefile" ;;
18793 "plugins/url_scraper/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/url_scraper/Makefile" ;;
18794 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18795 "src/common/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/dbus/Makefile" ;;
18796 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
18797 "src/fe-gnome/Makefile") CONFIG_FILES="$CONFIG_FILES src/fe-gnome/Makefile" ;;
18798 "src/libcontrast/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcontrast/Makefile" ;;
18799 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18800 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
18802 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18803 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18804 { (exit 1); exit 1; }; };;
18805 esac
18806 done
18809 # If the user did not use the arguments to specify the items to instantiate,
18810 # then the envvar interface is used. Set only those that are not.
18811 # We use the long form for the default assignment because of an extremely
18812 # bizarre bug on SunOS 4.1.3.
18813 if $ac_need_defaults; then
18814 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18815 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18816 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18819 # Have a temporary directory for convenience. Make it in the build tree
18820 # simply because there is no reason against having it here, and in addition,
18821 # creating and moving files from /tmp can sometimes cause problems.
18822 # Hook for its removal unless debugging.
18823 # Note that there is a small window in which the directory will not be cleaned:
18824 # after its creation but before its name has been assigned to `$tmp'.
18825 $debug ||
18827 tmp=
18828 trap 'exit_status=$?
18829 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18831 trap '{ (exit 1); exit 1; }' 1 2 13 15
18833 # Create a (secure) tmp directory for tmp files.
18836 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18837 test -n "$tmp" && test -d "$tmp"
18838 } ||
18840 tmp=./conf$$-$RANDOM
18841 (umask 077 && mkdir "$tmp")
18842 } ||
18844 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18845 { (exit 1); exit 1; }
18848 # Set up the scripts for CONFIG_FILES section.
18849 # No need to generate them if there are no CONFIG_FILES.
18850 # This happens for instance with `./config.status config.h'.
18851 if test -n "$CONFIG_FILES"; then
18854 ac_cr=' '
18855 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18856 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18857 ac_cs_awk_cr='\\r'
18858 else
18859 ac_cs_awk_cr=$ac_cr
18862 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18863 _ACEOF
18867 echo "cat >conf$$subs.awk <<_ACEOF" &&
18868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18869 echo "_ACEOF"
18870 } >conf$$subs.sh ||
18871 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18872 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18873 { (exit 1); exit 1; }; }
18874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18875 ac_delim='%!_!# '
18876 for ac_last_try in false false false false false :; do
18877 . ./conf$$subs.sh ||
18878 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18879 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18880 { (exit 1); exit 1; }; }
18882 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18883 if test $ac_delim_n = $ac_delim_num; then
18884 break
18885 elif $ac_last_try; then
18886 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18887 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18888 { (exit 1); exit 1; }; }
18889 else
18890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18892 done
18893 rm -f conf$$subs.sh
18895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18896 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18897 _ACEOF
18898 sed -n '
18900 s/^/S["/; s/!.*/"]=/
18903 s/^[^!]*!//
18904 :repl
18905 t repl
18906 s/'"$ac_delim"'$//
18907 t delim
18910 s/\(.\{148\}\).*/\1/
18911 t more1
18912 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18915 b repl
18916 :more1
18917 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18920 s/.\{148\}//
18921 t nl
18922 :delim
18924 s/\(.\{148\}\).*/\1/
18925 t more2
18926 s/["\\]/\\&/g; s/^/"/; s/$/"/
18929 :more2
18930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18933 s/.\{148\}//
18934 t delim
18935 ' <conf$$subs.awk | sed '
18936 /^[^""]/{
18938 s/\n//
18940 ' >>$CONFIG_STATUS || ac_write_fail=1
18941 rm -f conf$$subs.awk
18942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18943 _ACAWK
18944 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18945 for (key in S) S_is_set[key] = 1
18946 FS = "\a"
18950 line = $ 0
18951 nfields = split(line, field, "@")
18952 substed = 0
18953 len = length(field[1])
18954 for (i = 2; i < nfields; i++) {
18955 key = field[i]
18956 keylen = length(key)
18957 if (S_is_set[key]) {
18958 value = S[key]
18959 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18960 len += length(value) + length(field[++i])
18961 substed = 1
18962 } else
18963 len += 1 + keylen
18966 print line
18969 _ACAWK
18970 _ACEOF
18971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18974 else
18976 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18977 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18978 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18979 { (exit 1); exit 1; }; }
18980 _ACEOF
18982 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18983 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18984 # trailing colons and then remove the whole line if VPATH becomes empty
18985 # (actually we leave an empty line to preserve line numbers).
18986 if test "x$srcdir" = x.; then
18987 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18988 s/:*\$(srcdir):*/:/
18989 s/:*\${srcdir}:*/:/
18990 s/:*@srcdir@:*/:/
18991 s/^\([^=]*=[ ]*\):*/\1/
18992 s/:*$//
18993 s/^[^=]*=[ ]*$//
18997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18998 fi # test -n "$CONFIG_FILES"
19000 # Set up the scripts for CONFIG_HEADERS section.
19001 # No need to generate them if there are no CONFIG_HEADERS.
19002 # This happens for instance with `./config.status Makefile'.
19003 if test -n "$CONFIG_HEADERS"; then
19004 cat >"$tmp/defines.awk" <<\_ACAWK ||
19005 BEGIN {
19006 _ACEOF
19008 # Transform confdefs.h into an awk script `defines.awk', embedded as
19009 # here-document in config.status, that substitutes the proper values into
19010 # config.h.in to produce config.h.
19012 # Create a delimiter string that does not exist in confdefs.h, to ease
19013 # handling of long lines.
19014 ac_delim='%!_!# '
19015 for ac_last_try in false false :; do
19016 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19017 if test -z "$ac_t"; then
19018 break
19019 elif $ac_last_try; then
19020 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19021 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19022 { (exit 1); exit 1; }; }
19023 else
19024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19026 done
19028 # For the awk script, D is an array of macro values keyed by name,
19029 # likewise P contains macro parameters if any. Preserve backslash
19030 # newline sequences.
19032 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19033 sed -n '
19034 s/.\{148\}/&'"$ac_delim"'/g
19035 t rset
19036 :rset
19037 s/^[ ]*#[ ]*define[ ][ ]*/ /
19038 t def
19040 :def
19041 s/\\$//
19042 t bsnl
19043 s/["\\]/\\&/g
19044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19045 D["\1"]=" \3"/p
19046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19048 :bsnl
19049 s/["\\]/\\&/g
19050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19051 D["\1"]=" \3\\\\\\n"\\/p
19052 t cont
19053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19054 t cont
19056 :cont
19058 s/.\{148\}/&'"$ac_delim"'/g
19059 t clear
19060 :clear
19061 s/\\$//
19062 t bsnlc
19063 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19065 :bsnlc
19066 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19067 b cont
19068 ' <confdefs.h | sed '
19069 s/'"$ac_delim"'/"\\\
19070 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073 for (key in D) D_is_set[key] = 1
19074 FS = "\a"
19076 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19077 line = \$ 0
19078 split(line, arg, " ")
19079 if (arg[1] == "#") {
19080 defundef = arg[2]
19081 mac1 = arg[3]
19082 } else {
19083 defundef = substr(arg[1], 2)
19084 mac1 = arg[2]
19086 split(mac1, mac2, "(") #)
19087 macro = mac2[1]
19088 prefix = substr(line, 1, index(line, defundef) - 1)
19089 if (D_is_set[macro]) {
19090 # Preserve the white space surrounding the "#".
19091 print prefix "define", macro P[macro] D[macro]
19092 next
19093 } else {
19094 # Replace #undef with comments. This is necessary, for example,
19095 # in the case of _POSIX_SOURCE, which is predefined and required
19096 # on some systems where configure will not decide to define it.
19097 if (defundef == "undef") {
19098 print "/*", prefix defundef, macro, "*/"
19099 next
19103 { print }
19104 _ACAWK
19105 _ACEOF
19106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19108 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19109 { (exit 1); exit 1; }; }
19110 fi # test -n "$CONFIG_HEADERS"
19113 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19114 shift
19115 for ac_tag
19117 case $ac_tag in
19118 :[FHLC]) ac_mode=$ac_tag; continue;;
19119 esac
19120 case $ac_mode$ac_tag in
19121 :[FHL]*:*);;
19122 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19123 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19124 { (exit 1); exit 1; }; };;
19125 :[FH]-) ac_tag=-:-;;
19126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19127 esac
19128 ac_save_IFS=$IFS
19129 IFS=:
19130 set x $ac_tag
19131 IFS=$ac_save_IFS
19132 shift
19133 ac_file=$1
19134 shift
19136 case $ac_mode in
19137 :L) ac_source=$1;;
19138 :[FH])
19139 ac_file_inputs=
19140 for ac_f
19142 case $ac_f in
19143 -) ac_f="$tmp/stdin";;
19144 *) # Look for the file first in the build tree, then in the source tree
19145 # (if the path is not absolute). The absolute path cannot be DOS-style,
19146 # because $ac_f cannot contain `:'.
19147 test -f "$ac_f" ||
19148 case $ac_f in
19149 [\\/$]*) false;;
19150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19151 esac ||
19152 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19153 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19154 { (exit 1); exit 1; }; };;
19155 esac
19156 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19157 ac_file_inputs="$ac_file_inputs '$ac_f'"
19158 done
19160 # Let's still pretend it is `configure' which instantiates (i.e., don't
19161 # use $as_me), people would be surprised to read:
19162 # /* config.h. Generated by config.status. */
19163 configure_input='Generated from '`
19164 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19165 `' by configure.'
19166 if test x"$ac_file" != x-; then
19167 configure_input="$ac_file. $configure_input"
19168 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19169 $as_echo "$as_me: creating $ac_file" >&6;}
19171 # Neutralize special characters interpreted by sed in replacement strings.
19172 case $configure_input in #(
19173 *\&* | *\|* | *\\* )
19174 ac_sed_conf_input=`$as_echo "$configure_input" |
19175 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19176 *) ac_sed_conf_input=$configure_input;;
19177 esac
19179 case $ac_tag in
19180 *:-:* | *:-) cat >"$tmp/stdin" \
19181 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19182 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19183 { (exit 1); exit 1; }; } ;;
19184 esac
19186 esac
19188 ac_dir=`$as_dirname -- "$ac_file" ||
19189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19190 X"$ac_file" : 'X\(//\)[^/]' \| \
19191 X"$ac_file" : 'X\(//\)$' \| \
19192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19193 $as_echo X"$ac_file" |
19194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19195 s//\1/
19198 /^X\(\/\/\)[^/].*/{
19199 s//\1/
19202 /^X\(\/\/\)$/{
19203 s//\1/
19206 /^X\(\/\).*/{
19207 s//\1/
19210 s/.*/./; q'`
19211 { as_dir="$ac_dir"
19212 case $as_dir in #(
19213 -*) as_dir=./$as_dir;;
19214 esac
19215 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19216 as_dirs=
19217 while :; do
19218 case $as_dir in #(
19219 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19220 *) as_qdir=$as_dir;;
19221 esac
19222 as_dirs="'$as_qdir' $as_dirs"
19223 as_dir=`$as_dirname -- "$as_dir" ||
19224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19225 X"$as_dir" : 'X\(//\)[^/]' \| \
19226 X"$as_dir" : 'X\(//\)$' \| \
19227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19228 $as_echo X"$as_dir" |
19229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19230 s//\1/
19233 /^X\(\/\/\)[^/].*/{
19234 s//\1/
19237 /^X\(\/\/\)$/{
19238 s//\1/
19241 /^X\(\/\).*/{
19242 s//\1/
19245 s/.*/./; q'`
19246 test -d "$as_dir" && break
19247 done
19248 test -z "$as_dirs" || eval "mkdir $as_dirs"
19249 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19250 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19251 { (exit 1); exit 1; }; }; }
19252 ac_builddir=.
19254 case "$ac_dir" in
19255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19257 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19258 # A ".." for each directory in $ac_dir_suffix.
19259 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19260 case $ac_top_builddir_sub in
19261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19263 esac ;;
19264 esac
19265 ac_abs_top_builddir=$ac_pwd
19266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19267 # for backward compatibility:
19268 ac_top_builddir=$ac_top_build_prefix
19270 case $srcdir in
19271 .) # We are building in place.
19272 ac_srcdir=.
19273 ac_top_srcdir=$ac_top_builddir_sub
19274 ac_abs_top_srcdir=$ac_pwd ;;
19275 [\\/]* | ?:[\\/]* ) # Absolute name.
19276 ac_srcdir=$srcdir$ac_dir_suffix;
19277 ac_top_srcdir=$srcdir
19278 ac_abs_top_srcdir=$srcdir ;;
19279 *) # Relative name.
19280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19281 ac_top_srcdir=$ac_top_build_prefix$srcdir
19282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19283 esac
19284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19287 case $ac_mode in
19290 # CONFIG_FILE
19293 case $INSTALL in
19294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19296 esac
19297 ac_MKDIR_P=$MKDIR_P
19298 case $MKDIR_P in
19299 [\\/$]* | ?:[\\/]* ) ;;
19300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19301 esac
19302 _ACEOF
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 # If the template does not know about datarootdir, expand it.
19306 # FIXME: This hack should be removed a few years after 2.60.
19307 ac_datarootdir_hack=; ac_datarootdir_seen=
19309 ac_sed_dataroot='
19310 /datarootdir/ {
19314 /@datadir@/p
19315 /@docdir@/p
19316 /@infodir@/p
19317 /@localedir@/p
19318 /@mandir@/p
19320 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19321 *datarootdir*) ac_datarootdir_seen=yes;;
19322 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19323 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19324 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19325 _ACEOF
19326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19327 ac_datarootdir_hack='
19328 s&@datadir@&$datadir&g
19329 s&@docdir@&$docdir&g
19330 s&@infodir@&$infodir&g
19331 s&@localedir@&$localedir&g
19332 s&@mandir@&$mandir&g
19333 s&\\\${datarootdir}&$datarootdir&g' ;;
19334 esac
19335 _ACEOF
19337 # Neutralize VPATH when `$srcdir' = `.'.
19338 # Shell code in configure.ac might set extrasub.
19339 # FIXME: do we really want to maintain this feature?
19340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19341 ac_sed_extra="$ac_vpsub
19342 $extrasub
19343 _ACEOF
19344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19347 s|@configure_input@|$ac_sed_conf_input|;t t
19348 s&@top_builddir@&$ac_top_builddir_sub&;t t
19349 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19350 s&@srcdir@&$ac_srcdir&;t t
19351 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19352 s&@top_srcdir@&$ac_top_srcdir&;t t
19353 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19354 s&@builddir@&$ac_builddir&;t t
19355 s&@abs_builddir@&$ac_abs_builddir&;t t
19356 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19357 s&@INSTALL@&$ac_INSTALL&;t t
19358 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19359 $ac_datarootdir_hack
19361 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19362 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19363 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19364 { (exit 1); exit 1; }; }
19366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19367 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19369 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19370 which seems to be undefined. Please make sure it is defined." >&5
19371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19372 which seems to be undefined. Please make sure it is defined." >&2;}
19374 rm -f "$tmp/stdin"
19375 case $ac_file in
19376 -) cat "$tmp/out" && rm -f "$tmp/out";;
19377 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19378 esac \
19379 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19380 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19381 { (exit 1); exit 1; }; }
19385 # CONFIG_HEADER
19387 if test x"$ac_file" != x-; then
19389 $as_echo "/* $configure_input */" \
19390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19391 } >"$tmp/config.h" \
19392 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19393 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19394 { (exit 1); exit 1; }; }
19395 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19396 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19398 else
19399 rm -f "$ac_file"
19400 mv "$tmp/config.h" "$ac_file" \
19401 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19402 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19403 { (exit 1); exit 1; }; }
19405 else
19406 $as_echo "/* $configure_input */" \
19407 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19408 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19409 $as_echo "$as_me: error: could not create -" >&2;}
19410 { (exit 1); exit 1; }; }
19412 # Compute "$ac_file"'s index in $config_headers.
19413 _am_arg="$ac_file"
19414 _am_stamp_count=1
19415 for _am_header in $config_headers :; do
19416 case $_am_header in
19417 $_am_arg | $_am_arg:* )
19418 break ;;
19420 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19421 esac
19422 done
19423 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19424 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19425 X"$_am_arg" : 'X\(//\)[^/]' \| \
19426 X"$_am_arg" : 'X\(//\)$' \| \
19427 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19428 $as_echo X"$_am_arg" |
19429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19430 s//\1/
19433 /^X\(\/\/\)[^/].*/{
19434 s//\1/
19437 /^X\(\/\/\)$/{
19438 s//\1/
19441 /^X\(\/\).*/{
19442 s//\1/
19445 s/.*/./; q'`/stamp-h$_am_stamp_count
19448 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19449 $as_echo "$as_me: executing $ac_file commands" >&6;}
19451 esac
19454 case $ac_file$ac_mode in
19455 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
19456 # are listed without --file. Let's play safe and only enable the eval
19457 # if we detect the quoting.
19458 case $CONFIG_FILES in
19459 *\'*) eval set x "$CONFIG_FILES" ;;
19460 *) set x $CONFIG_FILES ;;
19461 esac
19462 shift
19463 for mf
19465 # Strip MF so we end up with the name of the file.
19466 mf=`echo "$mf" | sed -e 's/:.*$//'`
19467 # Check whether this is an Automake generated Makefile or not.
19468 # We used to match only the files named `Makefile.in', but
19469 # some people rename them; so instead we look at the file content.
19470 # Grep'ing the first line is not enough: some people post-process
19471 # each Makefile.in and add a new line on top of each file to say so.
19472 # Grep'ing the whole file is not good either: AIX grep has a line
19473 # limit of 2048, but all sed's we know have understand at least 4000.
19474 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19475 dirpart=`$as_dirname -- "$mf" ||
19476 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19477 X"$mf" : 'X\(//\)[^/]' \| \
19478 X"$mf" : 'X\(//\)$' \| \
19479 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19480 $as_echo X"$mf" |
19481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19482 s//\1/
19485 /^X\(\/\/\)[^/].*/{
19486 s//\1/
19489 /^X\(\/\/\)$/{
19490 s//\1/
19493 /^X\(\/\).*/{
19494 s//\1/
19497 s/.*/./; q'`
19498 else
19499 continue
19501 # Extract the definition of DEPDIR, am__include, and am__quote
19502 # from the Makefile without running `make'.
19503 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19504 test -z "$DEPDIR" && continue
19505 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19506 test -z "am__include" && continue
19507 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19508 # When using ansi2knr, U may be empty or an underscore; expand it
19509 U=`sed -n 's/^U = //p' < "$mf"`
19510 # Find all dependency output files, they are included files with
19511 # $(DEPDIR) in their names. We invoke sed twice because it is the
19512 # simplest approach to changing $(DEPDIR) to its actual value in the
19513 # expansion.
19514 for file in `sed -n "
19515 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19516 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19517 # Make sure the directory exists.
19518 test -f "$dirpart/$file" && continue
19519 fdir=`$as_dirname -- "$file" ||
19520 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19521 X"$file" : 'X\(//\)[^/]' \| \
19522 X"$file" : 'X\(//\)$' \| \
19523 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19524 $as_echo X"$file" |
19525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19526 s//\1/
19529 /^X\(\/\/\)[^/].*/{
19530 s//\1/
19533 /^X\(\/\/\)$/{
19534 s//\1/
19537 /^X\(\/\).*/{
19538 s//\1/
19541 s/.*/./; q'`
19542 { as_dir=$dirpart/$fdir
19543 case $as_dir in #(
19544 -*) as_dir=./$as_dir;;
19545 esac
19546 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19547 as_dirs=
19548 while :; do
19549 case $as_dir in #(
19550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19551 *) as_qdir=$as_dir;;
19552 esac
19553 as_dirs="'$as_qdir' $as_dirs"
19554 as_dir=`$as_dirname -- "$as_dir" ||
19555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19556 X"$as_dir" : 'X\(//\)[^/]' \| \
19557 X"$as_dir" : 'X\(//\)$' \| \
19558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19559 $as_echo X"$as_dir" |
19560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19561 s//\1/
19564 /^X\(\/\/\)[^/].*/{
19565 s//\1/
19568 /^X\(\/\/\)$/{
19569 s//\1/
19572 /^X\(\/\).*/{
19573 s//\1/
19576 s/.*/./; q'`
19577 test -d "$as_dir" && break
19578 done
19579 test -z "$as_dirs" || eval "mkdir $as_dirs"
19580 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19581 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19582 { (exit 1); exit 1; }; }; }
19583 # echo "creating $dirpart/$file"
19584 echo '# dummy' > "$dirpart/$file"
19585 done
19586 done
19588 "libtool":C)
19590 # See if we are running on zsh, and set the options which allow our
19591 # commands through without removal of \ escapes.
19592 if test -n "${ZSH_VERSION+set}" ; then
19593 setopt NO_GLOB_SUBST
19596 cfgfile="${ofile}T"
19597 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19598 $RM "$cfgfile"
19600 cat <<_LT_EOF >> "$cfgfile"
19601 #! $SHELL
19603 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19604 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19606 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19608 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19609 # 2006, 2007, 2008 Free Software Foundation, Inc.
19610 # Written by Gordon Matzigkeit, 1996
19612 # This file is part of GNU Libtool.
19614 # GNU Libtool is free software; you can redistribute it and/or
19615 # modify it under the terms of the GNU General Public License as
19616 # published by the Free Software Foundation; either version 2 of
19617 # the License, or (at your option) any later version.
19619 # As a special exception to the GNU General Public License,
19620 # if you distribute this file as part of a program or library that
19621 # is built using GNU Libtool, you may include this file under the
19622 # same distribution terms that you use for the rest of that program.
19624 # GNU Libtool is distributed in the hope that it will be useful,
19625 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19627 # GNU General Public License for more details.
19629 # You should have received a copy of the GNU General Public License
19630 # along with GNU Libtool; see the file COPYING. If not, a copy
19631 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19632 # obtained by writing to the Free Software Foundation, Inc.,
19633 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19636 # The names of the tagged configurations supported by this script.
19637 available_tags=""
19639 # ### BEGIN LIBTOOL CONFIG
19641 # Which release of libtool.m4 was used?
19642 macro_version=$macro_version
19643 macro_revision=$macro_revision
19645 # Whether or not to build shared libraries.
19646 build_libtool_libs=$enable_shared
19648 # Whether or not to build static libraries.
19649 build_old_libs=$enable_static
19651 # What type of objects to build.
19652 pic_mode=$pic_mode
19654 # Whether or not to optimize for fast installation.
19655 fast_install=$enable_fast_install
19657 # The host system.
19658 host_alias=$host_alias
19659 host=$host
19660 host_os=$host_os
19662 # The build system.
19663 build_alias=$build_alias
19664 build=$build
19665 build_os=$build_os
19667 # A sed program that does not truncate output.
19668 SED=$lt_SED
19670 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19671 Xsed="\$SED -e 1s/^X//"
19673 # A grep program that handles long lines.
19674 GREP=$lt_GREP
19676 # An ERE matcher.
19677 EGREP=$lt_EGREP
19679 # A literal string matcher.
19680 FGREP=$lt_FGREP
19682 # A BSD- or MS-compatible name lister.
19683 NM=$lt_NM
19685 # Whether we need soft or hard links.
19686 LN_S=$lt_LN_S
19688 # What is the maximum length of a command?
19689 max_cmd_len=$max_cmd_len
19691 # Object file suffix (normally "o").
19692 objext=$ac_objext
19694 # Executable file suffix (normally "").
19695 exeext=$exeext
19697 # whether the shell understands "unset".
19698 lt_unset=$lt_unset
19700 # turn spaces into newlines.
19701 SP2NL=$lt_lt_SP2NL
19703 # turn newlines into spaces.
19704 NL2SP=$lt_lt_NL2SP
19706 # How to create reloadable object files.
19707 reload_flag=$lt_reload_flag
19708 reload_cmds=$lt_reload_cmds
19710 # An object symbol dumper.
19711 OBJDUMP=$lt_OBJDUMP
19713 # Method to check whether dependent libraries are shared objects.
19714 deplibs_check_method=$lt_deplibs_check_method
19716 # Command to use when deplibs_check_method == "file_magic".
19717 file_magic_cmd=$lt_file_magic_cmd
19719 # The archiver.
19720 AR=$lt_AR
19721 AR_FLAGS=$lt_AR_FLAGS
19723 # A symbol stripping program.
19724 STRIP=$lt_STRIP
19726 # Commands used to install an old-style archive.
19727 RANLIB=$lt_RANLIB
19728 old_postinstall_cmds=$lt_old_postinstall_cmds
19729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19731 # A C compiler.
19732 LTCC=$lt_CC
19734 # LTCC compiler flags.
19735 LTCFLAGS=$lt_CFLAGS
19737 # Take the output of nm and produce a listing of raw symbols and C names.
19738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19740 # Transform the output of nm in a proper C declaration.
19741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19743 # Transform the output of nm in a C name address pair.
19744 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19746 # Transform the output of nm in a C name address pair when lib prefix is needed.
19747 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19749 # The name of the directory that contains temporary libtool files.
19750 objdir=$objdir
19752 # Shell to use when invoking shell scripts.
19753 SHELL=$lt_SHELL
19755 # An echo program that does not interpret backslashes.
19756 ECHO=$lt_ECHO
19758 # Used to examine libraries when file_magic_cmd begins with "file".
19759 MAGIC_CMD=$MAGIC_CMD
19761 # Must we lock files when doing compilation?
19762 need_locks=$lt_need_locks
19764 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19765 DSYMUTIL=$lt_DSYMUTIL
19767 # Tool to change global to local symbols on Mac OS X.
19768 NMEDIT=$lt_NMEDIT
19770 # Tool to manipulate fat objects and archives on Mac OS X.
19771 LIPO=$lt_LIPO
19773 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19774 OTOOL=$lt_OTOOL
19776 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19777 OTOOL64=$lt_OTOOL64
19779 # Old archive suffix (normally "a").
19780 libext=$libext
19782 # Shared library suffix (normally ".so").
19783 shrext_cmds=$lt_shrext_cmds
19785 # The commands to extract the exported symbol list from a shared archive.
19786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19788 # Variables whose values should be saved in libtool wrapper scripts and
19789 # restored at link time.
19790 variables_saved_for_relink=$lt_variables_saved_for_relink
19792 # Do we need the "lib" prefix for modules?
19793 need_lib_prefix=$need_lib_prefix
19795 # Do we need a version for libraries?
19796 need_version=$need_version
19798 # Library versioning type.
19799 version_type=$version_type
19801 # Shared library runtime path variable.
19802 runpath_var=$runpath_var
19804 # Shared library path variable.
19805 shlibpath_var=$shlibpath_var
19807 # Is shlibpath searched before the hard-coded library search path?
19808 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19810 # Format of library name prefix.
19811 libname_spec=$lt_libname_spec
19813 # List of archive names. First name is the real one, the rest are links.
19814 # The last name is the one that the linker finds with -lNAME
19815 library_names_spec=$lt_library_names_spec
19817 # The coded name of the library, if different from the real name.
19818 soname_spec=$lt_soname_spec
19820 # Command to use after installation of a shared archive.
19821 postinstall_cmds=$lt_postinstall_cmds
19823 # Command to use after uninstallation of a shared archive.
19824 postuninstall_cmds=$lt_postuninstall_cmds
19826 # Commands used to finish a libtool library installation in a directory.
19827 finish_cmds=$lt_finish_cmds
19829 # As "finish_cmds", except a single script fragment to be evaled but
19830 # not shown.
19831 finish_eval=$lt_finish_eval
19833 # Whether we should hardcode library paths into libraries.
19834 hardcode_into_libs=$hardcode_into_libs
19836 # Compile-time system search path for libraries.
19837 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19839 # Run-time system search path for libraries.
19840 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19842 # Whether dlopen is supported.
19843 dlopen_support=$enable_dlopen
19845 # Whether dlopen of programs is supported.
19846 dlopen_self=$enable_dlopen_self
19848 # Whether dlopen of statically linked programs is supported.
19849 dlopen_self_static=$enable_dlopen_self_static
19851 # Commands to strip libraries.
19852 old_striplib=$lt_old_striplib
19853 striplib=$lt_striplib
19856 # The linker used to build libraries.
19857 LD=$lt_LD
19859 # Commands used to build an old-style archive.
19860 old_archive_cmds=$lt_old_archive_cmds
19862 # A language specific compiler.
19863 CC=$lt_compiler
19865 # Is the compiler the GNU compiler?
19866 with_gcc=$GCC
19868 # Compiler flag to turn off builtin functions.
19869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19871 # How to pass a linker flag through the compiler.
19872 wl=$lt_lt_prog_compiler_wl
19874 # Additional compiler flags for building library objects.
19875 pic_flag=$lt_lt_prog_compiler_pic
19877 # Compiler flag to prevent dynamic linking.
19878 link_static_flag=$lt_lt_prog_compiler_static
19880 # Does compiler simultaneously support -c and -o options?
19881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19883 # Whether or not to add -lc for building shared libraries.
19884 build_libtool_need_lc=$archive_cmds_need_lc
19886 # Whether or not to disallow shared libs when runtime libs are static.
19887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19889 # Compiler flag to allow reflexive dlopens.
19890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19892 # Compiler flag to generate shared objects directly from archives.
19893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19895 # Whether the compiler copes with passing no objects directly.
19896 compiler_needs_object=$lt_compiler_needs_object
19898 # Create an old-style archive from a shared archive.
19899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19901 # Create a temporary old-style archive to link instead of a shared archive.
19902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19904 # Commands used to build a shared archive.
19905 archive_cmds=$lt_archive_cmds
19906 archive_expsym_cmds=$lt_archive_expsym_cmds
19908 # Commands used to build a loadable module if different from building
19909 # a shared archive.
19910 module_cmds=$lt_module_cmds
19911 module_expsym_cmds=$lt_module_expsym_cmds
19913 # Whether we are building with GNU ld or not.
19914 with_gnu_ld=$lt_with_gnu_ld
19916 # Flag that allows shared libraries with undefined symbols to be built.
19917 allow_undefined_flag=$lt_allow_undefined_flag
19919 # Flag that enforces no undefined symbols.
19920 no_undefined_flag=$lt_no_undefined_flag
19922 # Flag to hardcode \$libdir into a binary during linking.
19923 # This must work even if \$libdir does not exist
19924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19926 # If ld is used when linking, flag to hardcode \$libdir into a binary
19927 # during linking. This must work even if \$libdir does not exist.
19928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19930 # Whether we need a single "-rpath" flag with a separated argument.
19931 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19934 # DIR into the resulting binary.
19935 hardcode_direct=$hardcode_direct
19937 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19938 # DIR into the resulting binary and the resulting library dependency is
19939 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19940 # library is relocated.
19941 hardcode_direct_absolute=$hardcode_direct_absolute
19943 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19944 # into the resulting binary.
19945 hardcode_minus_L=$hardcode_minus_L
19947 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19948 # into the resulting binary.
19949 hardcode_shlibpath_var=$hardcode_shlibpath_var
19951 # Set to "yes" if building a shared library automatically hardcodes DIR
19952 # into the library and all subsequent libraries and executables linked
19953 # against it.
19954 hardcode_automatic=$hardcode_automatic
19956 # Set to yes if linker adds runtime paths of dependent libraries
19957 # to runtime path list.
19958 inherit_rpath=$inherit_rpath
19960 # Whether libtool must link a program against all its dependency libraries.
19961 link_all_deplibs=$link_all_deplibs
19963 # Fix the shell variable \$srcfile for the compiler.
19964 fix_srcfile_path=$lt_fix_srcfile_path
19966 # Set to "yes" if exported symbols are required.
19967 always_export_symbols=$always_export_symbols
19969 # The commands to list exported symbols.
19970 export_symbols_cmds=$lt_export_symbols_cmds
19972 # Symbols that should not be listed in the preloaded symbols.
19973 exclude_expsyms=$lt_exclude_expsyms
19975 # Symbols that must always be exported.
19976 include_expsyms=$lt_include_expsyms
19978 # Commands necessary for linking programs (against libraries) with templates.
19979 prelink_cmds=$lt_prelink_cmds
19981 # Specify filename containing input files.
19982 file_list_spec=$lt_file_list_spec
19984 # How to hardcode a shared library path into an executable.
19985 hardcode_action=$hardcode_action
19987 # ### END LIBTOOL CONFIG
19989 _LT_EOF
19991 case $host_os in
19992 aix3*)
19993 cat <<\_LT_EOF >> "$cfgfile"
19994 # AIX sometimes has problems with the GCC collect2 program. For some
19995 # reason, if we set the COLLECT_NAMES environment variable, the problems
19996 # vanish in a puff of smoke.
19997 if test "X${COLLECT_NAMES+set}" != Xset; then
19998 COLLECT_NAMES=
19999 export COLLECT_NAMES
20001 _LT_EOF
20003 esac
20006 ltmain="$ac_aux_dir/ltmain.sh"
20009 # We use sed instead of cat because bash on DJGPP gets confused if
20010 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20011 # text mode, it properly converts lines to CR/LF. This bash problem
20012 # is reportedly fixed, but why not run on old versions too?
20013 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20014 || (rm -f "$cfgfile"; exit 1)
20016 case $xsi_shell in
20017 yes)
20018 cat << \_LT_EOF >> "$cfgfile"
20020 # func_dirname file append nondir_replacement
20021 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20022 # otherwise set result to NONDIR_REPLACEMENT.
20023 func_dirname ()
20025 case ${1} in
20026 */*) func_dirname_result="${1%/*}${2}" ;;
20027 * ) func_dirname_result="${3}" ;;
20028 esac
20031 # func_basename file
20032 func_basename ()
20034 func_basename_result="${1##*/}"
20037 # func_dirname_and_basename file append nondir_replacement
20038 # perform func_basename and func_dirname in a single function
20039 # call:
20040 # dirname: Compute the dirname of FILE. If nonempty,
20041 # add APPEND to the result, otherwise set result
20042 # to NONDIR_REPLACEMENT.
20043 # value returned in "$func_dirname_result"
20044 # basename: Compute filename of FILE.
20045 # value retuned in "$func_basename_result"
20046 # Implementation must be kept synchronized with func_dirname
20047 # and func_basename. For efficiency, we do not delegate to
20048 # those functions but instead duplicate the functionality here.
20049 func_dirname_and_basename ()
20051 case ${1} in
20052 */*) func_dirname_result="${1%/*}${2}" ;;
20053 * ) func_dirname_result="${3}" ;;
20054 esac
20055 func_basename_result="${1##*/}"
20058 # func_stripname prefix suffix name
20059 # strip PREFIX and SUFFIX off of NAME.
20060 # PREFIX and SUFFIX must not contain globbing or regex special
20061 # characters, hashes, percent signs, but SUFFIX may contain a leading
20062 # dot (in which case that matches only a dot).
20063 func_stripname ()
20065 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20066 # positional parameters, so assign one to ordinary parameter first.
20067 func_stripname_result=${3}
20068 func_stripname_result=${func_stripname_result#"${1}"}
20069 func_stripname_result=${func_stripname_result%"${2}"}
20072 # func_opt_split
20073 func_opt_split ()
20075 func_opt_split_opt=${1%%=*}
20076 func_opt_split_arg=${1#*=}
20079 # func_lo2o object
20080 func_lo2o ()
20082 case ${1} in
20083 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20084 *) func_lo2o_result=${1} ;;
20085 esac
20088 # func_xform libobj-or-source
20089 func_xform ()
20091 func_xform_result=${1%.*}.lo
20094 # func_arith arithmetic-term...
20095 func_arith ()
20097 func_arith_result=$(( $* ))
20100 # func_len string
20101 # STRING may not start with a hyphen.
20102 func_len ()
20104 func_len_result=${#1}
20107 _LT_EOF
20109 *) # Bourne compatible functions.
20110 cat << \_LT_EOF >> "$cfgfile"
20112 # func_dirname file append nondir_replacement
20113 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20114 # otherwise set result to NONDIR_REPLACEMENT.
20115 func_dirname ()
20117 # Extract subdirectory from the argument.
20118 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20119 if test "X$func_dirname_result" = "X${1}"; then
20120 func_dirname_result="${3}"
20121 else
20122 func_dirname_result="$func_dirname_result${2}"
20126 # func_basename file
20127 func_basename ()
20129 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20133 # func_stripname prefix suffix name
20134 # strip PREFIX and SUFFIX off of NAME.
20135 # PREFIX and SUFFIX must not contain globbing or regex special
20136 # characters, hashes, percent signs, but SUFFIX may contain a leading
20137 # dot (in which case that matches only a dot).
20138 # func_strip_suffix prefix name
20139 func_stripname ()
20141 case ${2} in
20142 .*) func_stripname_result=`$ECHO "X${3}" \
20143 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20144 *) func_stripname_result=`$ECHO "X${3}" \
20145 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20146 esac
20149 # sed scripts:
20150 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20151 my_sed_long_arg='1s/^-[^=]*=//'
20153 # func_opt_split
20154 func_opt_split ()
20156 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20157 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20160 # func_lo2o object
20161 func_lo2o ()
20163 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20166 # func_xform libobj-or-source
20167 func_xform ()
20169 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20172 # func_arith arithmetic-term...
20173 func_arith ()
20175 func_arith_result=`expr "$@"`
20178 # func_len string
20179 # STRING may not start with a hyphen.
20180 func_len ()
20182 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20185 _LT_EOF
20186 esac
20188 case $lt_shell_append in
20189 yes)
20190 cat << \_LT_EOF >> "$cfgfile"
20192 # func_append var value
20193 # Append VALUE to the end of shell variable VAR.
20194 func_append ()
20196 eval "$1+=\$2"
20198 _LT_EOF
20201 cat << \_LT_EOF >> "$cfgfile"
20203 # func_append var value
20204 # Append VALUE to the end of shell variable VAR.
20205 func_append ()
20207 eval "$1=\$$1\$2"
20210 _LT_EOF
20212 esac
20215 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20216 || (rm -f "$cfgfile"; exit 1)
20218 mv -f "$cfgfile" "$ofile" ||
20219 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20220 chmod +x "$ofile"
20223 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
20224 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20225 esac ;;
20226 "po/stamp-it":C)
20227 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
20228 { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
20229 $as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
20230 { (exit 1); exit 1; }; }
20232 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
20233 >"po/stamp-it.tmp"
20234 sed '/^#/d
20235 s/^[[].*] *//
20236 /^[ ]*$/d
20237 '"s|^| $ac_top_srcdir/|" \
20238 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
20240 sed '/^POTFILES =/,/[^\\]$/ {
20241 /^POTFILES =/!d
20242 r po/POTFILES
20244 ' "po/Makefile.in" >"po/Makefile"
20245 rm -f "po/Makefile.tmp"
20246 mv "po/stamp-it.tmp" "po/stamp-it"
20249 esac
20250 done # for ac_tag
20253 { (exit 0); exit 0; }
20254 _ACEOF
20255 chmod +x $CONFIG_STATUS
20256 ac_clean_files=$ac_clean_files_save
20258 test $ac_write_fail = 0 ||
20259 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20260 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20261 { (exit 1); exit 1; }; }
20264 # configure is writing to config.log, and then calls config.status.
20265 # config.status does its own redirection, appending to config.log.
20266 # Unfortunately, on DOS this fails, as config.log is still kept open
20267 # by configure, so config.status won't be able to write to it; its
20268 # output is simply discarded. So we exec the FD to /dev/null,
20269 # effectively closing config.log, so it can be properly (re)opened and
20270 # appended to by config.status. When coming back to configure, we
20271 # need to make the FD available again.
20272 if test "$no_create" != yes; then
20273 ac_cs_success=:
20274 ac_config_status_args=
20275 test "$silent" = yes &&
20276 ac_config_status_args="$ac_config_status_args --quiet"
20277 exec 5>/dev/null
20278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20279 exec 5>>config.log
20280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20281 # would make configure fail if this is the last instruction.
20282 $ac_cs_success || { (exit 1); exit 1; }
20284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20285 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20290 echo
20291 echo $PACKAGE $VERSION
20292 echo
20294 echo prefix............... : $prefix