2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68 for libgphoto2 port access library 0.8.0.
5 @%:@ Report bugs to <gphoto-devel@lists.sourceforge.net>.
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 @%:@ This configure script is free software; the Free Software Foundation
14 @%:@ gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in @%:@(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in @%:@(
150 set -o posix ;; @%:@(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
193 case $as_dir in @%:@(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: gphoto-devel@lists.sourceforge.net about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 @%:@ Portably unset VAR.
265 { eval $1=; unset $1;}
269 @%:@ as_fn_set_status STATUS
270 @%:@ -----------------------
271 @%:@ Set @S|@? to STATUS, without forking.
275 } @%:@ as_fn_set_status
277 @%:@ as_fn_exit STATUS
278 @%:@ -----------------
279 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 @%:@ as_fn_append VAR VALUE
335 @%:@ ----------------------
336 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
337 @%:@ advantage of any shell optimizations that allow amortized linear growth over
338 @%:@ repeated appends, instead of the typical quadratic growth present in naive
339 @%:@ implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
352 @%:@ as_fn_arith ARG...
353 @%:@ ------------------
354 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
355 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
356 @%:@ must be portable across @S|@(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
371 @%:@ ----------------------------------------
372 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 @%:@ script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in @%:@(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $ECHO works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$lt_ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$ECHO" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
647 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 ECHO="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 test -n "$DJDIR" || exec 7<&0 </dev/null
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700 ac_default_prefix=/usr/local
702 ac_config_libobj_dir=.
709 # Identity of this package.
710 PACKAGE_NAME='libgphoto2 port access library'
711 PACKAGE_TARNAME='libgphoto2_port'
712 PACKAGE_VERSION='0.8.0'
713 PACKAGE_STRING='libgphoto2 port access library 0.8.0'
714 PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
717 ac_unique_file="libgphoto2_port/gphoto2-port-version.c"
718 # Factoring default headers for most tests.
719 ac_includes_default="\
721 #ifdef HAVE_SYS_TYPES_H
722 # include <sys/types.h>
724 #ifdef HAVE_SYS_STAT_H
725 # include <sys/stat.h>
731 # ifdef HAVE_STDLIB_H
736 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
741 #ifdef HAVE_STRINGS_H
742 # include <strings.h>
744 #ifdef HAVE_INTTYPES_H
745 # include <inttypes.h>
754 ac_subst_vars='am__EXEEXT_FALSE
776 REQUIREMENTS_FOR_LIBUSB
798 MAIL_GPHOTO_TRANSLATION
852 LIBGPHOTO2_PORT_VERSION_INFO
853 LIBGPHOTO2_PORT_CURRENT_MIN
854 LIBGPHOTO2_PORT_CURRENT
855 LIBGPHOTO2_PORT_REVISION
865 INSTALL_STRIP_PROGRAM
907 program_transform_name
920 enable_option_checking
921 enable_dependency_tracking
947 ac_precious_vars='build_alias
966 # Initialize some variables set by options.
968 ac_init_version=false
969 ac_unrecognized_opts=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
980 program_transform_name=s,x,x,
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005 infodir='${datarootdir}/info'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\$ac_option
1026 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1057 -datadir | --datadir | --datadi | --datad)
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1083 eval enable_$ac_useropt=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 htmldir=$ac_optarg ;;
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1154 -libdir | --libdir | --libdi | --libd)
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1245 -psdir | --psdir | --psdi | --psd | --ps)
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258 sbindir=$ac_optarg ;;
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269 sharedstatedir=$ac_optarg ;;
1271 -site | --site | --sit)
1273 -site=* | --site=* | --sit=*)
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1313 eval with_$ac_useropt=\$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1329 eval with_$ac_useropt=no ;;
1332 # Obsolete; use --with-x.
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1349 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information"
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' | [0-9]* | *[!_$as_cr_alnum]* )
1358 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error $? "missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1400 # Be sure to have absolute directory names.
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1413 target=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used" >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429 test "$silent" = yes && exec 6>/dev/null
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error $? "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error $? "pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures libgphoto2 port access library 0.8.0 to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking ...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 @<:@@S|@ac_default_prefix@:>@
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libgphoto2_port@:>@
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 if test -n "$ac_init_help"; then
1575 case $ac_init_help in
1576 short | recursive ) echo "Configuration of libgphoto2 port access library 0.8.0:";;
1581 --disable-option-checking ignore unrecognized --enable/--with options
1582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1584 --disable-dependency-tracking speeds up one-time build
1585 --enable-dependency-tracking do not reject slow dependency extractors
1586 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1587 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1588 --enable-fast-install@<:@=PKGS@:>@
1589 optimize for fast installation @<:@default=yes@:>@
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1591 --disable-nls do not use Native Language Support
1592 --disable-rpath do not hardcode runtime library paths
1593 --disable-serial do not compile in SERIAL support
1594 --disable-baudboy do not use baudboy library
1596 --disable-ttylock do not use ttylock library
1598 --disable-lockdev do not use lockdev library
1600 --disable-resmgr do not use resmgr library
1602 --disable-disk enable the 'disk' port driver
1603 --disable-ptpip enable the 'ptpip' port driver for TCP/IP connected
1605 --disable-debug do not include debugging code
1606 --enable-docs Use gtk-doc to build documentation @<:@default=no@:>@
1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1611 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1613 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1614 --with-gnu-ld assume the C compiler uses GNU ld default=no
1615 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1616 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1617 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1618 --without-libintl-prefix don't search for libintl in includedir and libdir
1619 --without-bonjour whether to exclude Bonjour PTP/IP autodetection
1620 --with-libusb=PREFIX where to find libusb, "no" or "auto"
1621 --with-hal whether to enable HAL disk autodetection
1623 --with-doc-dir=PATH Where to install docs @<:@default=autodetect@:>@
1624 --with-html-dir=PATH Where to install html docs @<:@default=autodetect@:>@
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1635 PKG_CONFIG pkg-config package config utility
1637 directory where pkg-config looks for *.pc files
1639 CFLAGS for compiling with libusb
1640 LIBUSB_LIBS LIBS to add for linking against libusb
1642 path overriding pkg-config's built-in search path
1644 Directory where udev scripts like check-ptp-camera will be
1646 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config
1647 HAL_LIBS linker flags for HAL, overriding pkg-config
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1652 Report bugs to <gphoto-devel@lists.sourceforge.net>.
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1682 .) # We are building in place.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1715 libgphoto2 port access library configure 0.8.0
1716 generated by GNU Autoconf 2.68
1718 Copyright (C) 2010 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1729 @%:@ ac_fn_c_try_compile LINENO
1730 @%:@ --------------------------
1731 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } @%:@ ac_fn_c_try_compile
1767 @%:@ ac_fn_c_try_cpp LINENO
1768 @%:@ ----------------------
1769 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } @%:@ ac_fn_c_try_cpp
1804 @%:@ ac_fn_c_try_link LINENO
1805 @%:@ -----------------------
1806 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext conftest$ac_exeext
1811 if { { ac_try="$ac_link"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest$ac_exeext && {
1830 test "$cross_compiling" = yes ||
1831 $as_test_x conftest$ac_exeext
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1840 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842 # interfere with the next link command; also delete a directory that is
1843 # left behind by Apple's compiler. We do this before executing the actions.
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } @%:@ ac_fn_c_try_link
1850 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 @%:@ -------------------------------------------------------
1852 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1853 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } @%:@ ac_fn_c_check_header_compile
1881 @%:@ ac_fn_c_try_run LINENO
1882 @%:@ ----------------------
1883 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1884 @%:@ that executables *can* be run.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=$ac_status
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } @%:@ ac_fn_c_try_run
1923 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1924 @%:@ ----------------------------------
1925 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1926 ac_fn_c_check_func ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1938 #define $2 innocuous_$2
1940 /* System header to define __stub macros and hopefully few prototypes,
1941 which can conflict with char $2 (); below.
1942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1943 <limits.h> exists even on freestanding compilers. */
1946 # include <limits.h>
1948 # include <assert.h>
1953 /* Override any GCC internal prototype to avoid an error.
1954 Use char because int might match the return type of a GCC
1955 builtin and then its argument prototype would still apply. */
1960 /* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963 #if defined __stub_$2 || defined __stub___$2
1975 if ac_fn_c_try_link "$LINENO"; then :
1980 rm -f core conftest.err conftest.$ac_objext \
1981 conftest$ac_exeext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 } @%:@ ac_fn_c_check_func
1990 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1991 @%:@ -------------------------------------------------------
1992 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1993 @%:@ the include files in INCLUDES and setting the cache variable VAR
1995 ac_fn_c_check_header_mongrel ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if eval \${$3+:} false; then :
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 # Is the header compilable?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2010 $as_echo_n "checking $2 usability... " >&6; }
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_header_compiler=yes
2019 ac_header_compiler=no
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2023 $as_echo "$ac_header_compiler" >&6; }
2025 # Is the header present?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2027 $as_echo_n "checking $2 presence... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 if ac_fn_c_try_cpp "$LINENO"; then :
2033 ac_header_preproc=yes
2035 ac_header_preproc=no
2037 rm -f conftest.err conftest.i conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2039 $as_echo "$ac_header_preproc" >&6; }
2041 # So? What about this header?
2042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2045 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2051 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2053 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2055 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2057 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 ( $as_echo "## ------------------------------------------------- ##
2061 ## Report this to gphoto-devel@lists.sourceforge.net ##
2062 ## ------------------------------------------------- ##"
2063 ) | sed "s/^/$as_me: WARNING: /" >&2
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2071 eval "$3=\$ac_header_compiler"
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } @%:@ ac_fn_c_check_header_mongrel
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2084 It was created by libgphoto2 port access library $as_me 0.8.0, which was
2085 generated by GNU Autoconf 2.68. Invocation command line was
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2106 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2110 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 $as_echo "PATH: $as_dir"
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2145 ac_must_keep_next=false
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2161 as_fn_append ac_configure_args1 " '$ac_arg'"
2162 if test $ac_must_keep_next = true; then
2163 ac_must_keep_next=false # Got value, back to normal.
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174 -* ) ac_must_keep_next=true ;;
2177 as_fn_append ac_configure_args " '$ac_arg'"
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log. We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191 # Save into config.log some information that might help in debugging.
2195 $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2199 # The following way of writing the cache mishandles newlines in values,
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212 *) { eval $ac_var=; unset $ac_var;} ;;
2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
2220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2235 for ac_var in $ac_subst_vars
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2245 if test -n "$ac_subst_files"; then
2246 $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2250 for ac_var in $ac_subst_files
2252 eval ac_val=\$$ac_var
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 $as_echo "$ac_var='\''$ac_val'\''"
2261 if test -s confdefs.h; then
2262 $as_echo "## ----------- ##
2269 test "$ac_signal" != 0 &&
2270 $as_echo "$as_me: caught signal $ac_signal"
2271 $as_echo "$as_me: exit $exit_status"
2273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 for ac_signal in 1 2 13 15; do
2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2285 $as_echo "/* confdefs.h */" > confdefs.h
2287 # Predefined preprocessor variables.
2289 cat >>confdefs.h <<_ACEOF
2290 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2293 cat >>confdefs.h <<_ACEOF
2294 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297 cat >>confdefs.h <<_ACEOF
2298 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2301 cat >>confdefs.h <<_ACEOF
2302 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2305 cat >>confdefs.h <<_ACEOF
2306 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309 cat >>confdefs.h <<_ACEOF
2310 @%:@define PACKAGE_URL "$PACKAGE_URL"
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2318 if test -n "$CONFIG_SITE"; then
2319 # We do not want a PATH search for config.site.
2320 case $CONFIG_SITE in @%:@((
2321 -*) ac_site_file1=./$CONFIG_SITE;;
2322 */*) ac_site_file1=$CONFIG_SITE;;
2323 *) ac_site_file1=./$CONFIG_SITE;;
2325 elif test "x$prefix" != xNONE; then
2326 ac_site_file1=$prefix/share/config.site
2327 ac_site_file2=$prefix/etc/config.site
2329 ac_site_file1=$ac_default_prefix/share/config.site
2330 ac_site_file2=$ac_default_prefix/etc/config.site
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2334 test "x$ac_site_file" = xNONE && continue
2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338 sed 's/^/| /' "$ac_site_file" >&5
2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2347 if test -r "$cache_file"; then
2348 # Some versions of bash will fail to source /dev/null (special files
2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2354 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355 *) . "./$cache_file";;
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2364 # Check that the precious variables saved in the cache have kept the same
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369 eval ac_new_set=\$ac_env_${ac_var}_set
2370 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371 eval ac_new_val=\$ac_env_${ac_var}_value
2372 case $ac_old_set,$ac_new_set in
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376 ac_cache_corrupted=: ;;
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380 ac_cache_corrupted=: ;;
2383 if test "x$ac_old_val" != "x$ac_new_val"; then
2384 # differences in whitespace do not lead to failure.
2385 ac_old_val_w=`echo x $ac_old_val`
2386 ac_new_val_w=`echo x $ac_new_val`
2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390 ac_cache_corrupted=:
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394 eval $ac_var=\$ac_old_val
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2397 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2402 # Pass precious variables to config.status.
2403 if test "$ac_new_set" = set; then
2405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 *) ac_arg=$ac_var=$ac_new_val ;;
2408 case " $ac_configure_args " in
2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2410 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 if $ac_cache_corrupted; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 ac_config_headers="$ac_config_headers config.h"
2437 for ac_dir in auto-aux "$srcdir"/auto-aux; do
2438 if test -f "$ac_dir/install-sh"; then
2440 ac_install_sh="$ac_aux_dir/install-sh -c"
2442 elif test -f "$ac_dir/install.sh"; then
2444 ac_install_sh="$ac_aux_dir/install.sh -c"
2446 elif test -f "$ac_dir/shtool"; then
2448 ac_install_sh="$ac_aux_dir/shtool install -c"
2452 if test -z "$ac_aux_dir"; then
2453 as_fn_error $? "cannot find install-sh, install.sh, or shtool in auto-aux \"$srcdir\"/auto-aux" "$LINENO" 5
2456 # These three variables are undocumented and unsupported,
2457 # and are intended to be withdrawn in a future Autoconf release.
2458 # They can cause serious problems if a builder's source tree is in a directory
2459 # whose full name contains unusual characters.
2460 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2461 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2462 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2465 am__api_version='1.11'
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if ${ac_cv_path_install+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in @%:@((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 rm -rf conftest.one conftest.two conftest.dir
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561 $as_echo_n "checking whether build environment is sane... " >&6; }
2564 echo timestamp > conftest.file
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name. Accept space and tab only in the latter.
2570 *[\\\"\#\$\&\'\`$am_lf]*)
2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2575 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2587 set X `ls -t "$srcdir/configure" conftest.file`
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" "$LINENO" 5
2601 test "$2" = conftest.file
2607 as_fn_error $? "newly created file is older than distributed files!
2608 Check your system clock" "$LINENO" 5
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 test "$program_prefix" != NONE &&
2613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617 # Double any \ or $.
2618 # By default was `s,x,x', remove it if useless.
2619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2625 if test x"${MISSING+set}" != xset; then
2628 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2630 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2639 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 if test x"${install_sh}" != xset; then
2645 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2647 install_sh="\${SHELL} $am_aux_dir/install-sh"
2651 # Installed binaries are usually stripped using `strip' when the user
2652 # run `make install-strip'. However `strip' might not be the right
2653 # tool to use in cross-compilation environments, therefore Automake
2654 # will honor the `STRIP' environment variable to overrule this program.
2655 if test "$cross_compiling" != no; then
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_STRIP+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$STRIP"; then
2665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 STRIP=$ac_cv_prog_STRIP
2685 if test -n "$STRIP"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687 $as_echo "$STRIP" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2695 if test -z "$ac_cv_prog_STRIP"; then
2697 # Extract the first word of "strip", so it can be a program name with args.
2698 set dummy strip; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$ac_ct_STRIP"; then
2705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_STRIP="strip"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725 if test -n "$ac_ct_STRIP"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727 $as_echo "$ac_ct_STRIP" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2733 if test "x$ac_ct_STRIP" = x; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2745 STRIP="$ac_cv_prog_STRIP"
2749 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753 if test -z "$MKDIR_P"; then
2754 if ${ac_cv_path_mkdir+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2761 test -z "$as_dir" && as_dir=.
2762 for ac_prog in mkdir gmkdir; do
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2765 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766 'mkdir (GNU coreutils) '* | \
2767 'mkdir (coreutils) '* | \
2768 'mkdir (fileutils) '4.1*)
2769 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2779 test -d ./--version && rmdir ./--version
2780 if test "${ac_cv_path_mkdir+set}" = set; then
2781 MKDIR_P="$ac_cv_path_mkdir -p"
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for MKDIR_P within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 MKDIR_P="$ac_install_sh -d"
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791 $as_echo "$MKDIR_P" >&6; }
2795 [\\/$]* | ?:[\\/]*) ;;
2796 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2799 for ac_prog in gawk mawk nawk awk
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_AWK+:} false; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$AWK"; then
2809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_AWK="$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 if test -n "$AWK"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2838 test -n "$AWK" && break
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 cat >conftest.make <<\_ACEOF
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2879 rmdir .tst 2>/dev/null
2881 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2882 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2883 # is not polluted with repeated "-I."
2884 am__isrc=' -I$(srcdir)'
2885 # test to see if srcdir already configured
2886 if test -f $srcdir/config.status; then
2887 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2891 # test whether we have cygpath
2892 if test -z "$CYGPATH_W"; then
2893 if (cygpath --version) >/dev/null 2>/dev/null; then
2894 CYGPATH_W='cygpath -w'
2901 # Define the identity of the package.
2902 PACKAGE='libgphoto2_port'
2906 cat >>confdefs.h <<_ACEOF
2907 @%:@define PACKAGE "$PACKAGE"
2911 cat >>confdefs.h <<_ACEOF
2912 @%:@define VERSION "$VERSION"
2915 # Some tools Automake needs.
2917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931 # We need awk for the "check" target. The system "awk" is bad on
2933 # Always define AMTAR for backward compatibility.
2935 AMTAR=${AMTAR-"${am_missing_run}tar"}
2937 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2945 LIBGPHOTO2_PORT_AGE=8
2947 LIBGPHOTO2_PORT_REVISION=0
2949 LIBGPHOTO2_PORT_CURRENT=8
2951 LIBGPHOTO2_PORT_CURRENT_MIN=`expr $LIBGPHOTO2_PORT_CURRENT - $LIBGPHOTO2_PORT_AGE`
2953 LIBGPHOTO2_PORT_VERSION_INFO=$LIBGPHOTO2_PORT_CURRENT:$LIBGPHOTO2_PORT_REVISION:$LIBGPHOTO2_PORT_AGE
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_CC"; then
3003 # Extract the first word of "gcc", so it can be a program name with args.
3004 set dummy gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$ac_ct_CC"; then
3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_ac_ct_CC="gcc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 $as_echo "$ac_ct_CC" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_CC" = x; then
3042 case $cross_compiling:$ac_tool_warned in
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3054 if test -z "$CC"; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="${ac_tool_prefix}cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3095 if test -z "$CC"; then
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_CC+:} false; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115 ac_prog_rejected=yes
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test $ac_prog_rejected = yes; then
3127 # We found a bogon in the path, so make sure we never use it.
3128 set dummy $ac_cv_prog_CC
3130 if test $@%:@ != 0; then
3131 # We chose a different compiler from the bogus one.
3132 # However, it has the same basename, so the bogon will be chosen
3133 # first if we set CC to just the basename; use the full file name.
3135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3151 if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$CC" && break
3195 if test -z "$CC"; then
3197 for ac_prog in cl.exe
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$ac_ct_CC" && break
3239 if test "x$ac_ct_CC" = x; then
3242 case $cross_compiling:$ac_tool_warned in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3264 for ac_option in --version -v -V -qversion; do
3265 { { ac_try="$ac_compiler $ac_option >&5"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274 if test -s conftest.err; then
3276 ... rest of stderr output deleted ...
3277 10q' conftest.err >conftest.er1
3278 cat conftest.er1 >&5
3280 rm -f conftest.er1 conftest.err
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 for ac_file in $ac_files
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 if { { ac_try="$ac_link_default"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link_default") 2>&5
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3364 if test -z "$ac_file"; then :
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error 77 "C compiler cannot create executables
3373 See \`config.log' for more details" "$LINENO" 5; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379 $as_echo_n "checking for C compiler default output file name... " >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381 $as_echo "$ac_file" >&6; }
3382 ac_exeext=$ac_cv_exeext
3384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387 $as_echo_n "checking for suffix of executables... " >&6; }
3388 if { { ac_try="$ac_link"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details" "$LINENO" 5; }
3418 rm -f conftest conftest$ac_cv_exeext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420 $as_echo "$ac_cv_exeext" >&6; }
3422 rm -f conftest.$ac_ext
3423 EXEEXT=$ac_cv_exeext
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 @%:@include <stdio.h>
3431 FILE *f = fopen ("conftest.out", "w");
3432 return ferror (f) || fclose (f) != 0;
3438 ac_clean_files="$ac_clean_files conftest.out"
3439 # Check that the compiler produces executables we can run. If not, either
3440 # the compiler is broken, or we cross compile.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442 $as_echo_n "checking whether we are cross compiling... " >&6; }
3443 if test "$cross_compiling" != yes; then
3444 { { ac_try="$ac_link"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_link") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }
3455 if { ac_try='./conftest$ac_cv_exeext'
3456 { { case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_try") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; }; then
3468 if test "$cross_compiling" = maybe; then
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot run C compiled programs.
3474 If you meant to cross compile, use \`--host'.
3475 See \`config.log' for more details" "$LINENO" 5; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480 $as_echo "$cross_compiling" >&6; }
3482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485 $as_echo_n "checking for suffix of object files... " >&6; }
3486 if ${ac_cv_objext+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 rm -f conftest.o conftest.obj
3501 if { { ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_compile") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 for ac_file in conftest.o conftest.obj conftest.*; do
3513 test -f "$ac_file" || continue;
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of object files: cannot compile
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if ${ac_cv_c_compiler_gnu+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3554 if ac_fn_c_try_compile "$LINENO"; then :
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3570 ac_test_CFLAGS=${CFLAGS+set}
3571 ac_save_CFLAGS=$CFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3574 if ${ac_cv_prog_cc_g+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 ac_save_c_werror_flag=$ac_c_werror_flag
3578 ac_c_werror_flag=yes
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_c_try_compile "$LINENO"; then :
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636 CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638 if test "$GCC" = yes; then
3644 if test "$GCC" = yes; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if ${ac_cv_prog_cc_c89+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 ac_cv_prog_cc_c89=no
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3661 #include <sys/types.h>
3662 #include <sys/stat.h>
3663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3664 struct buf { int x; };
3665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666 static char *e (p, i)
3672 static char *f (char * (*g) (char **, int), char **p, ...)
3677 s = g (p, va_arg (v,int));
3682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3683 function prototypes and stuff, but not '\xHH' hex character constants.
3684 These don't provoke an error unfortunately, instead are silently treated
3685 as 'x'. The following induces an error, until -std is added to get
3686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3687 array size at least. It's necessary to write '\x00'==0 to get something
3688 that's true only with -std. */
3689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692 inside strings and character constants. */
3694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713 CC="$ac_save_CC $ac_arg"
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_c89=$ac_arg
3717 rm -f core conftest.err conftest.$ac_objext
3718 test "x$ac_cv_prog_cc_c89" != "xno" && break
3720 rm -f conftest.$ac_ext
3725 case "x$ac_cv_prog_cc_c89" in
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728 $as_echo "none needed" >&6; } ;;
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731 $as_echo "unsupported" >&6; } ;;
3733 CC="$CC $ac_cv_prog_cc_c89"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3737 if test "x$ac_cv_prog_cc_c89" != xno; then :
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 DEPDIR="${am__leading_dot}deps"
3748 ac_config_commands="$ac_config_commands depfiles"
3751 am_make=${MAKE-make}
3752 cat > confinc << 'END'
3754 @echo this is the am__doit target
3757 # If we don't find an include directive, just comment out the code.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3759 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3763 # First try GNU make style include.
3764 echo "include confinc" > confmf
3765 # Ignore all kinds of additional output from `make'.
3766 case `$am_make -s -f confmf 2> /dev/null` in #(
3767 *the\ am__doit\ target*)
3773 # Now try BSD make style include.
3774 if test "$am__include" = "#"; then
3775 echo '.include "confinc"' > confmf
3776 case `$am_make -s -f confmf 2> /dev/null` in #(
3777 *the\ am__doit\ target*)
3778 am__include=.include
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3787 $as_echo "$_am_result" >&6; }
3788 rm -f confinc confmf
3790 @%:@ Check whether --enable-dependency-tracking was given.
3791 if test "${enable_dependency_tracking+set}" = set; then :
3792 enableval=$enable_dependency_tracking;
3795 if test "x$enable_dependency_tracking" != xno; then
3796 am_depcomp="$ac_aux_dir/depcomp"
3799 if test "x$enable_dependency_tracking" != xno; then
3809 depcc="$CC" am_compiler_list=
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named `D' -- because `-MD' means `put the output
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3835 am_cv_CC_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3840 case " $depcc " in #(
3841 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3844 for depmode in $am_compiler_list; do
3845 # Setup a source with many dependencies, because some compilers
3846 # like to wrap large dependency lists on column 80 (with \), and
3847 # we should not choose a depcomp mode which is confused by this.
3849 # We need to recreate these files for each test, as the compiler may
3850 # overwrite some of them when testing with obscure command lines.
3851 # This happens at least with the AIX C compiler.
3853 for i in 1 2 3 4 5 6; do
3854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3856 # Solaris 8's {/usr,}/bin/sh.
3857 touch sub/conftst$i.h
3859 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3862 # mode. It turns out that the SunPro C++ compiler does not properly
3863 # handle `-M -o', and we need to detect this. Also, some Intel
3864 # versions had trouble with output in subdirs
3865 am__obj=sub/conftest.${OBJEXT-o}
3866 am__minus_obj="-o $am__obj"
3869 # This depmode causes a compiler race in universal mode.
3870 test "$am__universal" = false || continue
3873 # after this tag, mechanisms are not by side-effect, so they'll
3874 # only be used when explicitly requested
3875 if test "x$enable_dependency_tracking" = xyes; then
3881 msvisualcpp | msvcmsys)
3882 # This compiler won't grok `-c -o', but also, the minuso test has
3883 # not run yet. These depmodes are late enough in the game, and
3884 # so weak that their functioning should not be impacted.
3885 am__obj=conftest.${OBJEXT-o}
3890 if depmode=$depmode \
3891 source=sub/conftest.c object=$am__obj \
3892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894 >/dev/null 2>conftest.err &&
3895 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899 # icc doesn't choke on unknown options, it will just issue warnings
3900 # or remarks (even with -Werror). So we grep stderr for any message
3901 # that says an option was ignored or not supported.
3902 # When given -MP, icc 7.0 and 7.1 complain thusly:
3903 # icc: Command line warning: ignoring option '-M'; no argument required
3904 # The diagnosis changed in icc 8.0:
3905 # icc: Command line remark: option '-MP' not supported
3906 if (grep 'ignoring option' conftest.err ||
3907 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908 am_cv_CC_dependencies_compiler_type=$depmode
3917 am_cv_CC_dependencies_compiler_type=none
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3926 test "x$enable_dependency_tracking" != xno \
3927 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3929 am__fastdepCC_FALSE='#'
3931 am__fastdepCC_TRUE='#'
3932 am__fastdepCC_FALSE=
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3943 # On Suns, sometimes $CPP names a directory.
3944 if test -n "$CPP" && test -d "$CPP"; then
3947 if test -z "$CPP"; then
3948 if ${ac_cv_prog_CPP+:} false; then :
3949 $as_echo_n "(cached) " >&6
3951 # Double quotes because CPP needs to be expanded
3952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3955 for ac_c_preproc_warn_flag in '' yes
3957 # Use a header file that comes with gcc, so configuring glibc
3958 # with a fresh cross-compiler works.
3959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960 # <limits.h> exists even on freestanding compilers.
3961 # On the NeXT, cc -E runs the code through the compiler's parser,
3962 # not just through cpp. "Syntax error" is here to catch this case.
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3966 @%:@ include <limits.h>
3968 @%:@ include <assert.h>
3972 if ac_fn_c_try_cpp "$LINENO"; then :
3975 # Broken: fails on valid input.
3978 rm -f conftest.err conftest.i conftest.$ac_ext
3980 # OK, works on sane cases. Now check whether nonexistent headers
3981 # can be detected and how.
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 @%:@include <ac_nonexistent.h>
3986 if ac_fn_c_try_cpp "$LINENO"; then :
3987 # Broken: success on invalid input.
3990 # Passes both tests.
3994 rm -f conftest.err conftest.i conftest.$ac_ext
3997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3998 rm -f conftest.i conftest.err conftest.$ac_ext
3999 if $ac_preproc_ok; then :
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4012 $as_echo "$CPP" >&6; }
4014 for ac_c_preproc_warn_flag in '' yes
4016 # Use a header file that comes with gcc, so configuring glibc
4017 # with a fresh cross-compiler works.
4018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019 # <limits.h> exists even on freestanding compilers.
4020 # On the NeXT, cc -E runs the code through the compiler's parser,
4021 # not just through cpp. "Syntax error" is here to catch this case.
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4025 @%:@ include <limits.h>
4027 @%:@ include <assert.h>
4031 if ac_fn_c_try_cpp "$LINENO"; then :
4034 # Broken: fails on valid input.
4037 rm -f conftest.err conftest.i conftest.$ac_ext
4039 # OK, works on sane cases. Now check whether nonexistent headers
4040 # can be detected and how.
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 @%:@include <ac_nonexistent.h>
4045 if ac_fn_c_try_cpp "$LINENO"; then :
4046 # Broken: success on invalid input.
4049 # Passes both tests.
4053 rm -f conftest.err conftest.i conftest.$ac_ext
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.i conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then :
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details" "$LINENO" 5; }
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 if test "x$CC" != xcc; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4076 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4079 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4081 set dummy $CC; ac_cc=`$as_echo "$2" |
4082 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4083 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 # Make sure it works both with $CC and with simple cc.
4098 # We do the test twice because some compilers refuse to overwrite an
4099 # existing .o file with -o, though they will create one.
4100 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4102 if { { case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_try") 2>&5
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; } &&
4112 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_try") 2>&5
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; };
4123 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4124 if test "x$CC" != xcc; then
4125 # Test first that cc exists at all.
4126 if { ac_try='cc -c conftest.$ac_ext >&5'
4127 { { case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132 $as_echo "$ac_try_echo"; } >&5
4133 (eval "$ac_try") 2>&5
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }; }; then
4137 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4139 if { { case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_try") 2>&5
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; } &&
4149 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154 $as_echo "$ac_try_echo"; } >&5
4155 (eval "$ac_try") 2>&5
4157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158 test $ac_status = 0; };
4163 # cc exists but doesn't like -o.
4164 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4169 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4171 rm -f core conftest*
4174 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4176 $as_echo "yes" >&6; }
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4181 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4185 # FIXME: we rely on the cache variable name because
4186 # there is no other way.
4188 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4189 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4190 if test "$am_t" != yes; then
4191 # Losing compiler, so override with the script.
4192 # FIXME: It is wrong to rewrite CC.
4193 # But if we don't then we get into trouble of one sort or another.
4194 # A longer-term fix would be to have automake use am__CC in this case,
4195 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4196 CC="$am_aux_dir/compile $CC"
4203 @%:@ Check whether --enable-static was given.
4204 if test "${enable_static+set}" = set; then :
4205 enableval=$enable_static; p=${PACKAGE-default}
4207 yes) enable_static=yes ;;
4208 no) enable_static=no ;;
4211 # Look at the argument we got. We use all the common list separators.
4212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4213 for pkg in $enableval; do
4215 if test "X$pkg" = "X$p"; then
4234 # Make sure we can run config.sub.
4235 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4236 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4239 $as_echo_n "checking build system type... " >&6; }
4240 if ${ac_cv_build+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 ac_build_alias=$build_alias
4244 test "x$ac_build_alias" = x &&
4245 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4246 test "x$ac_build_alias" = x &&
4247 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4248 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4249 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4253 $as_echo "$ac_cv_build" >&6; }
4254 case $ac_cv_build in
4256 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4259 ac_save_IFS=$IFS; IFS='-'
4265 # Remember, the first character of IFS is used to create $*,
4266 # except with old shells:
4269 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4273 $as_echo_n "checking host system type... " >&6; }
4274 if ${ac_cv_host+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 if test "x$host_alias" = x; then
4278 ac_cv_host=$ac_cv_build
4280 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4281 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4286 $as_echo "$ac_cv_host" >&6; }
4289 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4292 ac_save_IFS=$IFS; IFS='-'
4298 # Remember, the first character of IFS is used to create $*,
4299 # except with old shells:
4302 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4305 enable_win32_dll=yes
4308 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4309 if test -n "$ac_tool_prefix"; then
4310 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}as; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_AS+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 if test -n "$AS"; then
4318 ac_cv_prog_AS="$AS" # Let the user override the test.
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_AS="${ac_tool_prefix}as"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 if test -n "$AS"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4340 $as_echo "$AS" >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4348 if test -z "$ac_cv_prog_AS"; then
4350 # Extract the first word of "as", so it can be a program name with args.
4351 set dummy as; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$ac_ct_AS"; then
4358 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_AS="as"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4378 if test -n "$ac_ct_AS"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4380 $as_echo "$ac_ct_AS" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4386 if test "x$ac_ct_AS" = x; then
4389 case $cross_compiling:$ac_tool_warned in
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393 ac_tool_warned=yes ;;
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_DLLTOOL+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$DLLTOOL"; then
4410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 DLLTOOL=$ac_cv_prog_DLLTOOL
4430 if test -n "$DLLTOOL"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4432 $as_echo "$DLLTOOL" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4440 if test -z "$ac_cv_prog_DLLTOOL"; then
4441 ac_ct_DLLTOOL=$DLLTOOL
4442 # Extract the first word of "dlltool", so it can be a program name with args.
4443 set dummy dlltool; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$ac_ct_DLLTOOL"; then
4450 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4470 if test -n "$ac_ct_DLLTOOL"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4472 $as_echo "$ac_ct_DLLTOOL" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4478 if test "x$ac_ct_DLLTOOL" = x; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4487 DLLTOOL=$ac_ct_DLLTOOL
4490 DLLTOOL="$ac_cv_prog_DLLTOOL"
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_prog_OBJDUMP+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 if test -n "$OBJDUMP"; then
4502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 OBJDUMP=$ac_cv_prog_OBJDUMP
4522 if test -n "$OBJDUMP"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4524 $as_echo "$OBJDUMP" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4532 if test -z "$ac_cv_prog_OBJDUMP"; then
4533 ac_ct_OBJDUMP=$OBJDUMP
4534 # Extract the first word of "objdump", so it can be a program name with args.
4535 set dummy objdump; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -n "$ac_ct_OBJDUMP"; then
4542 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4562 if test -n "$ac_ct_OBJDUMP"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4564 $as_echo "$ac_ct_OBJDUMP" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4570 if test "x$ac_ct_OBJDUMP" = x; then
4573 case $cross_compiling:$ac_tool_warned in
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577 ac_tool_warned=yes ;;
4579 OBJDUMP=$ac_ct_OBJDUMP
4582 OBJDUMP="$ac_cv_prog_OBJDUMP"
4588 test -z "$AS" && AS=as
4594 test -z "$DLLTOOL" && DLLTOOL=dlltool
4600 test -z "$OBJDUMP" && OBJDUMP=objdump
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4615 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4620 macro_version='2.2.6b'
4621 macro_revision='1.3017'
4635 ltmain="$ac_aux_dir/ltmain.sh"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4638 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4639 if ${ac_cv_path_SED+:} false; then :
4640 $as_echo_n "(cached) " >&6
4642 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4643 for ac_i in 1 2 3 4 5 6 7; do
4644 ac_script="$ac_script$as_nl$ac_script"
4646 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4647 { ac_script=; unset ac_script;}
4648 if test -z "$SED"; then
4649 ac_path_SED_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in sed gsed; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4659 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4660 # Check for GNU ac_path_SED and select it if it is found.
4661 # Check for GNU $ac_path_SED
4662 case `"$ac_path_SED" --version 2>&1` in
4664 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4667 $as_echo_n 0123456789 >"conftest.in"
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo '' >> "conftest.nl"
4674 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_SED_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_SED="$ac_path_SED"
4680 ac_path_SED_max=$ac_count
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688 $ac_path_SED_found && break 3
4693 if test -z "$ac_cv_path_SED"; then
4694 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4702 $as_echo "$ac_cv_path_SED" >&6; }
4703 SED="$ac_cv_path_SED"
4706 test -z "$SED" && SED=sed
4707 Xsed="$SED -e 1s/^X//"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4720 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4721 if ${ac_cv_path_GREP+:} false; then :
4722 $as_echo_n "(cached) " >&6
4724 if test -z "$GREP"; then
4725 ac_path_GREP_found=false
4726 # Loop through the user's path and test for each of PROGNAME-LIST
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731 test -z "$as_dir" && as_dir=.
4732 for ac_prog in grep ggrep; do
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4735 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4736 # Check for GNU ac_path_GREP and select it if it is found.
4737 # Check for GNU $ac_path_GREP
4738 case `"$ac_path_GREP" --version 2>&1` in
4740 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4743 $as_echo_n 0123456789 >"conftest.in"
4746 cat "conftest.in" "conftest.in" >"conftest.tmp"
4747 mv "conftest.tmp" "conftest.in"
4748 cp "conftest.in" "conftest.nl"
4749 $as_echo 'GREP' >> "conftest.nl"
4750 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4752 as_fn_arith $ac_count + 1 && ac_count=$as_val
4753 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4754 # Best one so far, save it but keep looking for a better one
4755 ac_cv_path_GREP="$ac_path_GREP"
4756 ac_path_GREP_max=$ac_count
4758 # 10*(2^10) chars as input seems more than enough
4759 test $ac_count -gt 10 && break
4761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764 $ac_path_GREP_found && break 3
4769 if test -z "$ac_cv_path_GREP"; then
4770 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 ac_cv_path_GREP=$GREP
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4778 $as_echo "$ac_cv_path_GREP" >&6; }
4779 GREP="$ac_cv_path_GREP"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4783 $as_echo_n "checking for egrep... " >&6; }
4784 if ${ac_cv_path_EGREP+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4788 then ac_cv_path_EGREP="$GREP -E"
4790 if test -z "$EGREP"; then
4791 ac_path_EGREP_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797 test -z "$as_dir" && as_dir=.
4798 for ac_prog in egrep; do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4801 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4802 # Check for GNU ac_path_EGREP and select it if it is found.
4803 # Check for GNU $ac_path_EGREP
4804 case `"$ac_path_EGREP" --version 2>&1` in
4806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4809 $as_echo_n 0123456789 >"conftest.in"
4812 cat "conftest.in" "conftest.in" >"conftest.tmp"
4813 mv "conftest.tmp" "conftest.in"
4814 cp "conftest.in" "conftest.nl"
4815 $as_echo 'EGREP' >> "conftest.nl"
4816 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818 as_fn_arith $ac_count + 1 && ac_count=$as_val
4819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4820 # Best one so far, save it but keep looking for a better one
4821 ac_cv_path_EGREP="$ac_path_EGREP"
4822 ac_path_EGREP_max=$ac_count
4824 # 10*(2^10) chars as input seems more than enough
4825 test $ac_count -gt 10 && break
4827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 $ac_path_EGREP_found && break 3
4835 if test -z "$ac_cv_path_EGREP"; then
4836 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839 ac_cv_path_EGREP=$EGREP
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4845 $as_echo "$ac_cv_path_EGREP" >&6; }
4846 EGREP="$ac_cv_path_EGREP"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4850 $as_echo_n "checking for fgrep... " >&6; }
4851 if ${ac_cv_path_FGREP+:} false; then :
4852 $as_echo_n "(cached) " >&6
4854 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4855 then ac_cv_path_FGREP="$GREP -F"
4857 if test -z "$FGREP"; then
4858 ac_path_FGREP_found=false
4859 # Loop through the user's path and test for each of PROGNAME-LIST
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864 test -z "$as_dir" && as_dir=.
4865 for ac_prog in fgrep; do
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4868 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4869 # Check for GNU ac_path_FGREP and select it if it is found.
4870 # Check for GNU $ac_path_FGREP
4871 case `"$ac_path_FGREP" --version 2>&1` in
4873 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4876 $as_echo_n 0123456789 >"conftest.in"
4879 cat "conftest.in" "conftest.in" >"conftest.tmp"
4880 mv "conftest.tmp" "conftest.in"
4881 cp "conftest.in" "conftest.nl"
4882 $as_echo 'FGREP' >> "conftest.nl"
4883 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885 as_fn_arith $ac_count + 1 && ac_count=$as_val
4886 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4887 # Best one so far, save it but keep looking for a better one
4888 ac_cv_path_FGREP="$ac_path_FGREP"
4889 ac_path_FGREP_max=$ac_count
4891 # 10*(2^10) chars as input seems more than enough
4892 test $ac_count -gt 10 && break
4894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 $ac_path_FGREP_found && break 3
4902 if test -z "$ac_cv_path_FGREP"; then
4903 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906 ac_cv_path_FGREP=$FGREP
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4912 $as_echo "$ac_cv_path_FGREP" >&6; }
4913 FGREP="$ac_cv_path_FGREP"
4916 test -z "$GREP" && GREP=grep
4936 @%:@ Check whether --with-gnu-ld was given.
4937 if test "${with_gnu_ld+set}" = set; then :
4938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4944 if test "$GCC" = yes; then
4945 # Check if gcc -print-prog-name=ld gives a path.
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4947 $as_echo_n "checking for ld used by $CC... " >&6; }
4950 # gcc leaves a trailing carriage return which upsets mingw
4951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4956 # Accept absolute paths.
4958 re_direlt='/[^/][^/]*/\.\./'
4959 # Canonicalize the pathname of ld
4960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4964 test -z "$LD" && LD="$ac_prog"
4967 # If it fails, then pretend we aren't using GCC.
4971 # If it is relative, then search for the first ld in PATH.
4975 elif test "$with_gnu_ld" = yes; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4977 $as_echo_n "checking for GNU ld... " >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4980 $as_echo_n "checking for non-GNU ld... " >&6; }
4982 if ${lt_cv_path_LD+:} false; then :
4983 $as_echo_n "(cached) " >&6
4985 if test -z "$LD"; then
4986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4987 for ac_dir in $PATH; do
4989 test -z "$ac_dir" && ac_dir=.
4990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4991 lt_cv_path_LD="$ac_dir/$ac_prog"
4992 # Check to see if the program is GNU ld. I'd rather use --version,
4993 # but apparently some variants of GNU ld only accept -v.
4994 # Break only if it was the GNU/non-GNU ld that we prefer.
4995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4996 *GNU* | *'with BFD'*)
4997 test "$with_gnu_ld" != no && break
5000 test "$with_gnu_ld" != yes && break
5007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5012 if test -n "$LD"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5014 $as_echo "$LD" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5022 if ${lt_cv_prog_gnu_ld+:} false; then :
5023 $as_echo_n "(cached) " >&6
5025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5026 case `$LD -v 2>&1 </dev/null` in
5027 *GNU* | *'with BFD'*)
5028 lt_cv_prog_gnu_ld=yes
5031 lt_cv_prog_gnu_ld=no
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5037 with_gnu_ld=$lt_cv_prog_gnu_ld
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5048 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5049 if ${lt_cv_path_NM+:} false; then :
5050 $as_echo_n "(cached) " >&6
5052 if test -n "$NM"; then
5053 # Let the user override the test.
5056 lt_nm_to_check="${ac_tool_prefix}nm"
5057 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5058 lt_nm_to_check="$lt_nm_to_check nm"
5060 for lt_tmp_nm in $lt_nm_to_check; do
5061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5064 test -z "$ac_dir" && ac_dir=.
5065 tmp_nm="$ac_dir/$lt_tmp_nm"
5066 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5067 # Check to see if the nm accepts a BSD-compat flag.
5068 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5069 # nm: unknown option "B" ignored
5070 # Tru64's nm complains that /dev/null is an invalid object file
5071 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5072 */dev/null* | *'Invalid file or object type'*)
5073 lt_cv_path_NM="$tmp_nm -B"
5077 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5079 lt_cv_path_NM="$tmp_nm -p"
5083 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5084 continue # so that we can try to find one that supports BSD flags
5093 : ${lt_cv_path_NM=no}
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5097 $as_echo "$lt_cv_path_NM" >&6; }
5098 if test "$lt_cv_path_NM" != "no"; then
5101 # Didn't find any BSD compatible name lister, look for dumpbin.
5102 if test -n "$ac_tool_prefix"; then
5103 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_DUMPBIN+:} false; then :
5110 $as_echo_n "(cached) " >&6
5112 if test -n "$DUMPBIN"; then
5113 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 DUMPBIN=$ac_cv_prog_DUMPBIN
5133 if test -n "$DUMPBIN"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5135 $as_echo "$DUMPBIN" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 test -n "$DUMPBIN" && break
5145 if test -z "$DUMPBIN"; then
5146 ac_ct_DUMPBIN=$DUMPBIN
5147 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 if test -n "$ac_ct_DUMPBIN"; then
5157 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5177 if test -n "$ac_ct_DUMPBIN"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5179 $as_echo "$ac_ct_DUMPBIN" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5186 test -n "$ac_ct_DUMPBIN" && break
5189 if test "x$ac_ct_DUMPBIN" = x; then
5192 case $cross_compiling:$ac_tool_warned in
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5198 DUMPBIN=$ac_ct_DUMPBIN
5203 if test "$DUMPBIN" != ":"; then
5207 test -z "$NM" && NM=nm
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5215 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5216 if ${lt_cv_nm_interface+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 lt_cv_nm_interface="BSD nm"
5220 echo "int some_variable = 0;" > conftest.$ac_ext
5221 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
5222 (eval "$ac_compile" 2>conftest.err)
5223 cat conftest.err >&5
5224 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5225 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5226 cat conftest.err >&5
5227 (eval echo "\"\$as_me:__oline__: output\"" >&5)
5228 cat conftest.out >&5
5229 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5230 lt_cv_nm_interface="MS dumpbin"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5235 $as_echo "$lt_cv_nm_interface" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5238 $as_echo_n "checking whether ln -s works... " >&6; }
5240 if test "$LN_S" = "ln -s"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5245 $as_echo "no, using $LN_S" >&6; }
5248 # find the maximum length of command line arguments
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5251 if ${lt_cv_sys_max_cmd_len+:} false; then :
5252 $as_echo_n "(cached) " >&6
5259 # On DJGPP, this test can blow up pretty badly due to problems in libc
5260 # (any single argument exceeding 2000 bytes causes a buffer overrun
5261 # during glob expansion). Even if it were fixed, the result of this
5262 # check would be larger than it should be.
5263 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5267 # Under GNU Hurd, this test is not required because there is
5268 # no limit to the length of command line arguments.
5269 # Libtool will interpret -1 as no limit whatsoever
5270 lt_cv_sys_max_cmd_len=-1;
5273 cygwin* | mingw* | cegcc*)
5274 # On Win9x/ME, this test blows up -- it succeeds, but takes
5275 # about 5 minutes as the teststring grows exponentially.
5276 # Worse, since 9x/ME are not pre-emptively multitasking,
5277 # you end up with a "frozen" computer, even though with patience
5278 # the test eventually succeeds (with a max line length of 256k).
5279 # Instead, let's just punt: use the minimum linelength reported by
5280 # all of the supported platforms: 8192 (on NT/2K/XP).
5281 lt_cv_sys_max_cmd_len=8192;
5285 # On AmigaOS with pdksh, this test takes hours, literally.
5286 # So we just punt and use a minimum line length of 8192.
5287 lt_cv_sys_max_cmd_len=8192;
5290 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5291 # This has been around since 386BSD, at least. Likely further.
5292 if test -x /sbin/sysctl; then
5293 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5294 elif test -x /usr/sbin/sysctl; then
5295 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5297 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5299 # And add a safety zone
5300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5305 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5306 lt_cv_sys_max_cmd_len=196608
5310 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5311 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5312 # nice to cause kernel panics so lets avoid the loop below.
5313 # First set a reasonable default.
5314 lt_cv_sys_max_cmd_len=16384
5316 if test -x /sbin/sysconfig; then
5317 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5318 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5323 lt_cv_sys_max_cmd_len=102400
5325 sysv5* | sco5v6* | sysv4.2uw2*)
5326 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5327 if test -n "$kargmax"; then
5328 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5330 lt_cv_sys_max_cmd_len=32768
5334 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5335 if test -n "$lt_cv_sys_max_cmd_len"; then
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5339 # Make teststring a little bigger before we do anything with it.
5340 # a 1K string should be a reasonable start.
5341 for i in 1 2 3 4 5 6 7 8 ; do
5342 teststring=$teststring$teststring
5344 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5345 # If test is not a shell built-in, we'll probably end up computing a
5346 # maximum length that is only half of the actual maximum length, but
5348 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5349 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5350 test $i != 17 # 1/2 MB should be enough
5353 teststring=$teststring$teststring
5355 # Only check the string length outside the loop.
5356 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5358 # Add a significant safety factor because C++ compilers can tack on
5359 # massive amounts of additional arguments before passing them to the
5360 # linker. It appears as though 1/2 is a usable value.
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5368 if test -n $lt_cv_sys_max_cmd_len ; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5370 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5373 $as_echo "none" >&6; }
5375 max_cmd_len=$lt_cv_sys_max_cmd_len
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5387 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5388 # Try some XSI features
5391 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5393 && eval 'test $(( 1 + 1 )) -eq 2 \
5394 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5397 $as_echo "$xsi_shell" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5401 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5403 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5405 && lt_shell_append=yes
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5407 $as_echo "$lt_shell_append" >&6; }
5410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5420 # test EBCDIC or ASCII
5421 case `echo X|tr X '\101'` in
5422 A) # ASCII based system
5423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5424 lt_SP2NL='tr \040 \012'
5425 lt_NL2SP='tr \015\012 \040\040'
5427 *) # EBCDIC based system
5428 lt_SP2NL='tr \100 \n'
5429 lt_NL2SP='tr \r\n \100\100'
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5442 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5443 if ${lt_cv_ld_reload_flag+:} false; then :
5444 $as_echo_n "(cached) " >&6
5446 lt_cv_ld_reload_flag='-r'
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5449 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5450 reload_flag=$lt_cv_ld_reload_flag
5451 case $reload_flag in
5453 *) reload_flag=" $reload_flag" ;;
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5458 if test "$GCC" = yes; then
5459 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5474 if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_OBJDUMP+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$OBJDUMP"; then
5483 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 OBJDUMP=$ac_cv_prog_OBJDUMP
5503 if test -n "$OBJDUMP"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5505 $as_echo "$OBJDUMP" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test -z "$ac_cv_prog_OBJDUMP"; then
5514 ac_ct_OBJDUMP=$OBJDUMP
5515 # Extract the first word of "objdump", so it can be a program name with args.
5516 set dummy objdump; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$ac_ct_OBJDUMP"; then
5523 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5543 if test -n "$ac_ct_OBJDUMP"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5545 $as_echo "$ac_ct_OBJDUMP" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5551 if test "x$ac_ct_OBJDUMP" = x; then
5554 case $cross_compiling:$ac_tool_warned in
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5560 OBJDUMP=$ac_ct_OBJDUMP
5563 OBJDUMP="$ac_cv_prog_OBJDUMP"
5566 test -z "$OBJDUMP" && OBJDUMP=objdump
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5574 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5575 if ${lt_cv_deplibs_check_method+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 lt_cv_file_magic_cmd='$MAGIC_CMD'
5579 lt_cv_file_magic_test_file=
5580 lt_cv_deplibs_check_method='unknown'
5581 # Need to set the preceding variable on all platforms that support
5582 # interlibrary dependencies.
5583 # 'none' -- dependencies not supported.
5584 # `unknown' -- same as none, but documents that we really don't know.
5585 # 'pass_all' -- all dependencies passed with no checks.
5586 # 'test_compile' -- check by making test program.
5587 # 'file_magic [[regex]]' -- check by looking for files in library path
5588 # which responds to the $file_magic_cmd with a given extended regex.
5589 # If you have `file' or equivalent on your system and you're not sure
5590 # whether `pass_all' will *always* work, you probably want this one.
5594 lt_cv_deplibs_check_method=pass_all
5598 lt_cv_deplibs_check_method=pass_all
5602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5603 lt_cv_file_magic_cmd='/usr/bin/file -L'
5604 lt_cv_file_magic_test_file=/shlib/libc.so
5608 # func_win32_libid is a shell function defined in ltmain.sh
5609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5610 lt_cv_file_magic_cmd='func_win32_libid'
5614 # Base MSYS/MinGW do not provide the 'file' command needed by
5615 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5616 # unless we find 'file', for example because we are cross-compiling.
5617 if ( file / ) >/dev/null 2>&1; then
5618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5619 lt_cv_file_magic_cmd='func_win32_libid'
5621 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5622 lt_cv_file_magic_cmd='$OBJDUMP -f'
5627 # use the weaker test based on 'objdump'. See mingw*.
5628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5632 darwin* | rhapsody*)
5633 lt_cv_deplibs_check_method=pass_all
5636 freebsd* | dragonfly*)
5637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5640 # Not sure whether the presence of OpenBSD here was a mistake.
5641 # Let's accept both of them until this is cleared up.
5642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5648 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_deplibs_check_method=pass_all
5656 hpux10.20* | hpux11*)
5657 lt_cv_file_magic_cmd=/usr/bin/file
5660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5664 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]'
5665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5679 irix5* | irix6* | nonstopux*)
5681 *-32|*"-32 ") libmagic=32-bit;;
5682 *-n32|*"-n32 ") libmagic=N32;;
5683 *-64|*"-64 ") libmagic=64-bit;;
5684 *) libmagic=never-match;;
5686 lt_cv_deplibs_check_method=pass_all
5689 # This must be Linux ELF.
5690 linux* | k*bsd*-gnu)
5691 lt_cv_deplibs_check_method=pass_all
5695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5704 lt_cv_file_magic_cmd=/usr/bin/file
5705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5709 lt_cv_deplibs_check_method=pass_all
5713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720 osf3* | osf4* | osf5*)
5721 lt_cv_deplibs_check_method=pass_all
5725 lt_cv_deplibs_check_method=pass_all
5729 lt_cv_deplibs_check_method=pass_all
5732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5733 lt_cv_deplibs_check_method=pass_all
5737 case $host_vendor in
5739 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]'
5740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5743 lt_cv_deplibs_check_method=pass_all
5746 lt_cv_file_magic_cmd='/bin/file'
5747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5750 lt_cv_file_magic_cmd='/bin/file'
5751 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5752 lt_cv_file_magic_test_file=/lib/libc.so
5755 lt_cv_deplibs_check_method=pass_all
5758 lt_cv_deplibs_check_method=pass_all
5764 lt_cv_deplibs_check_method=pass_all
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5770 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5771 file_magic_cmd=$lt_cv_file_magic_cmd
5772 deplibs_check_method=$lt_cv_deplibs_check_method
5773 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5786 if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ar; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_AR+:} false; then :
5792 $as_echo_n "(cached) " >&6
5794 if test -n "$AR"; then
5795 ac_cv_prog_AR="$AR" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_AR="${ac_tool_prefix}ar"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 if test -n "$AR"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5817 $as_echo "$AR" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5825 if test -z "$ac_cv_prog_AR"; then
5827 # Extract the first word of "ar", so it can be a program name with args.
5828 set dummy ar; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5832 $as_echo_n "(cached) " >&6
5834 if test -n "$ac_ct_AR"; then
5835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_ac_ct_AR="ar"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5855 if test -n "$ac_ct_AR"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5857 $as_echo "$ac_ct_AR" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5863 if test "x$ac_ct_AR" = x; then
5866 case $cross_compiling:$ac_tool_warned in
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870 ac_tool_warned=yes ;;
5878 test -z "$AR" && AR=ar
5879 test -z "$AR_FLAGS" && AR_FLAGS=cru
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}strip; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_STRIP+:} false; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$STRIP"; then
5900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 STRIP=$ac_cv_prog_STRIP
5920 if test -n "$STRIP"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5922 $as_echo "$STRIP" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5930 if test -z "$ac_cv_prog_STRIP"; then
5932 # Extract the first word of "strip", so it can be a program name with args.
5933 set dummy strip; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -n "$ac_ct_STRIP"; then
5940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_ac_ct_STRIP="strip"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5960 if test -n "$ac_ct_STRIP"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5962 $as_echo "$ac_ct_STRIP" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5968 if test "x$ac_ct_STRIP" = x; then
5971 case $cross_compiling:$ac_tool_warned in
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5980 STRIP="$ac_cv_prog_STRIP"
5983 test -z "$STRIP" && STRIP=:
5990 if test -n "$ac_tool_prefix"; then
5991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_RANLIB+:} false; then :
5996 $as_echo_n "(cached) " >&6
5998 if test -n "$RANLIB"; then
5999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 RANLIB=$ac_cv_prog_RANLIB
6019 if test -n "$RANLIB"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6021 $as_echo "$RANLIB" >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6029 if test -z "$ac_cv_prog_RANLIB"; then
6030 ac_ct_RANLIB=$RANLIB
6031 # Extract the first word of "ranlib", so it can be a program name with args.
6032 set dummy ranlib; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$ac_ct_RANLIB"; then
6039 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_ac_ct_RANLIB="ranlib"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6059 if test -n "$ac_ct_RANLIB"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6061 $as_echo "$ac_ct_RANLIB" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6067 if test "x$ac_ct_RANLIB" = x; then
6070 case $cross_compiling:$ac_tool_warned in
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6076 RANLIB=$ac_ct_RANLIB
6079 RANLIB="$ac_cv_prog_RANLIB"
6082 test -z "$RANLIB" && RANLIB=:
6089 # Determine commands to create old-style static archives.
6090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6091 old_postinstall_cmds='chmod 644 $oldlib'
6092 old_postuninstall_cmds=
6094 if test -n "$RANLIB"; then
6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6139 # If no C compiler was specified, use CC.
6142 # If no C compiler flags were specified, use CFLAGS.
6143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6145 # Allow CC to be a program name with arguments.
6149 # Check for command to grab the raw symbol name followed by C symbol from nm.
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6151 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6152 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6153 $as_echo_n "(cached) " >&6
6156 # These are sane defaults that work on at least a few old systems.
6157 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6159 # Character class describing NM global symbol codes.
6160 symcode='[BCDEGRST]'
6162 # Regexp to match symbols that can be accessed directly from C.
6163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6165 # Define system-specific variables.
6170 cygwin* | mingw* | pw32* | cegcc*)
6171 symcode='[ABCDGISTW]'
6174 if test "$host_cpu" = ia64; then
6175 symcode='[ABCDEGRST]'
6179 symcode='[BCDEGRST]'
6182 symcode='[BCDEGQRST]'
6193 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6201 # If we're using GNU nm, then use its standard symbol codes.
6202 case `$NM -V 2>&1` in
6203 *GNU* | *'with BFD'*)
6204 symcode='[ABCDGIRSTW]' ;;
6207 # Transform an extracted symbol line into a proper C declaration.
6208 # Some systems (esp. on ia64) link data and code symbols differently,
6209 # so use this general approach.
6210 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6212 # Transform an extracted symbol line into symbol name and symbol address
6213 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6214 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'"
6216 # Handle CRLF in mingw tool chain
6220 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6224 # Try without a prefix underscore, then with it.
6225 for ac_symprfx in "" "_"; do
6227 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6228 symxfrm="\\1 $ac_symprfx\\2 \\2"
6230 # Write the raw and C identifiers.
6231 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6232 # Fake it for dumpbin and say T for any non-static function
6233 # and D for any global variable.
6234 # Also find C++ and __fastcall symbols from MSVC++,
6235 # which start with @ or ?.
6236 lt_cv_sys_global_symbol_pipe="$AWK '"\
6237 " {last_section=section; section=\$ 3};"\
6238 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6239 " \$ 0!~/External *\|/{next};"\
6240 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6241 " {if(hide[section]) next};"\
6242 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6243 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6244 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6245 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6246 " ' prfx=^$ac_symprfx"
6248 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6251 # Check to see that the pipe works correctly.
6255 cat > conftest.$ac_ext <<_LT_EOF
6260 void nm_test_func(void);
6261 void nm_test_func(void){}
6265 int main(){nm_test_var='a';nm_test_func();return(0);}
6268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269 (eval $ac_compile) 2>&5
6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 test $ac_status = 0; }; then
6273 # Now try to grab the symbols.
6275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6276 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279 test $ac_status = 0; } && test -s "$nlist"; then
6280 # Try sorting and uniquifying the output.
6281 if sort "$nlist" | uniq > "$nlist"T; then
6282 mv -f "$nlist"T "$nlist"
6287 # Make sure that we snagged all the symbols we need.
6288 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6289 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6290 cat <<_LT_EOF > conftest.$ac_ext
6296 # Now generate the symbol file.
6297 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6299 cat <<_LT_EOF >> conftest.$ac_ext
6301 /* The mapping between symbol names and symbols. */
6306 lt__PROGRAM__LTX_preloaded_symbols[] =
6308 { "@PROGRAM@", (void *) 0 },
6310 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6311 cat <<\_LT_EOF >> conftest.$ac_ext
6315 /* This works around a problem in FreeBSD linker */
6316 #ifdef FREEBSD_WORKAROUND
6317 static const void *lt_preloaded_setup() {
6318 return lt__PROGRAM__LTX_preloaded_symbols;
6326 # Now try linking the two files.
6327 mv conftest.$ac_objext conftstm.$ac_objext
6328 lt_save_LIBS="$LIBS"
6329 lt_save_CFLAGS="$CFLAGS"
6330 LIBS="conftstm.$ac_objext"
6331 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6333 (eval $ac_link) 2>&5
6335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6339 LIBS="$lt_save_LIBS"
6340 CFLAGS="$lt_save_CFLAGS"
6342 echo "cannot find nm_test_func in $nlist" >&5
6345 echo "cannot find nm_test_var in $nlist" >&5
6348 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6351 echo "$progname: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6354 rm -rf conftest* conftst*
6356 # Do not use the global_symbol_pipe unless it works.
6357 if test "$pipe_works" = yes; then
6360 lt_cv_sys_global_symbol_pipe=
6366 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6367 lt_cv_sys_global_symbol_to_cdecl=
6369 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6371 $as_echo "failed" >&6; }
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6374 $as_echo "ok" >&6; }
6399 @%:@ Check whether --enable-libtool-lock was given.
6400 if test "${enable_libtool_lock+set}" = set; then :
6401 enableval=$enable_libtool_lock;
6404 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6406 # Some flags need to be propagated to the compiler or linker for good
6410 # Find out which ABI we are using.
6411 echo 'int i;' > conftest.$ac_ext
6412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413 (eval $ac_compile) 2>&5
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }; then
6417 case `/usr/bin/file conftest.$ac_objext` in
6429 # Find out which ABI we are using.
6430 echo '#line __oline__ "configure"' > conftest.$ac_ext
6431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6432 (eval $ac_compile) 2>&5
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435 test $ac_status = 0; }; then
6436 if test "$lt_cv_prog_gnu_ld" = yes; then
6437 case `/usr/bin/file conftest.$ac_objext` in
6439 LD="${LD-ld} -melf32bsmip"
6442 LD="${LD-ld} -melf32bmipn32"
6445 LD="${LD-ld} -melf64bmip"
6449 case `/usr/bin/file conftest.$ac_objext` in
6465 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6466 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6467 # Find out which ABI we are using.
6468 echo 'int i;' > conftest.$ac_ext
6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470 (eval $ac_compile) 2>&5
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; }; then
6474 case `/usr/bin/file conftest.o` in
6477 x86_64-*kfreebsd*-gnu)
6478 LD="${LD-ld} -m elf_i386_fbsd"
6481 LD="${LD-ld} -m elf_i386"
6483 ppc64-*linux*|powerpc64-*linux*)
6484 LD="${LD-ld} -m elf32ppclinux"
6487 LD="${LD-ld} -m elf_s390"
6490 LD="${LD-ld} -m elf32_sparc"
6496 x86_64-*kfreebsd*-gnu)
6497 LD="${LD-ld} -m elf_x86_64_fbsd"
6500 LD="${LD-ld} -m elf_x86_64"
6502 ppc*-*linux*|powerpc*-*linux*)
6503 LD="${LD-ld} -m elf64ppc"
6505 s390*-*linux*|s390*-*tpf*)
6506 LD="${LD-ld} -m elf64_s390"
6509 LD="${LD-ld} -m elf64_sparc"
6519 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6520 SAVE_CFLAGS="$CFLAGS"
6521 CFLAGS="$CFLAGS -belf"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6523 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6524 if ${lt_cv_cc_needs_belf+:} false; then :
6525 $as_echo_n "(cached) " >&6
6528 ac_cpp='$CPP $CPPFLAGS'
6529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6544 if ac_fn_c_try_link "$LINENO"; then :
6545 lt_cv_cc_needs_belf=yes
6547 lt_cv_cc_needs_belf=no
6549 rm -f core conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6552 ac_cpp='$CPP $CPPFLAGS'
6553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6559 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6562 CFLAGS="$SAVE_CFLAGS"
6566 # Find out which ABI we are using.
6567 echo 'int i;' > conftest.$ac_ext
6568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6569 (eval $ac_compile) 2>&5
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; }; then
6573 case `/usr/bin/file conftest.o` in
6575 case $lt_cv_prog_gnu_ld in
6576 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6590 need_locks="$enable_libtool_lock"
6594 rhapsody* | darwin*)
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 if test -n "$DSYMUTIL"; then
6604 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6624 if test -n "$DSYMUTIL"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6626 $as_echo "$DSYMUTIL" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6634 if test -z "$ac_cv_prog_DSYMUTIL"; then
6635 ac_ct_DSYMUTIL=$DSYMUTIL
6636 # Extract the first word of "dsymutil", so it can be a program name with args.
6637 set dummy dsymutil; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 if test -n "$ac_ct_DSYMUTIL"; then
6644 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6664 if test -n "$ac_ct_DSYMUTIL"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6666 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$ac_ct_DSYMUTIL" = x; then
6675 case $cross_compiling:$ac_tool_warned in
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6681 DSYMUTIL=$ac_ct_DSYMUTIL
6684 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_NMEDIT+:} false; then :
6693 $as_echo_n "(cached) " >&6
6695 if test -n "$NMEDIT"; then
6696 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 NMEDIT=$ac_cv_prog_NMEDIT
6716 if test -n "$NMEDIT"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6718 $as_echo "$NMEDIT" >&6; }
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6726 if test -z "$ac_cv_prog_NMEDIT"; then
6727 ac_ct_NMEDIT=$NMEDIT
6728 # Extract the first word of "nmedit", so it can be a program name with args.
6729 set dummy nmedit; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 if test -n "$ac_ct_NMEDIT"; then
6736 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6756 if test -n "$ac_ct_NMEDIT"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6758 $as_echo "$ac_ct_NMEDIT" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6764 if test "x$ac_ct_NMEDIT" = x; then
6767 case $cross_compiling:$ac_tool_warned in
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6773 NMEDIT=$ac_ct_NMEDIT
6776 NMEDIT="$ac_cv_prog_NMEDIT"
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_LIPO+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 if test -n "$LIPO"; then
6788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 LIPO=$ac_cv_prog_LIPO
6808 if test -n "$LIPO"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6810 $as_echo "$LIPO" >&6; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6818 if test -z "$ac_cv_prog_LIPO"; then
6820 # Extract the first word of "lipo", so it can be a program name with args.
6821 set dummy lipo; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6825 $as_echo_n "(cached) " >&6
6827 if test -n "$ac_ct_LIPO"; then
6828 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_LIPO="lipo"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6848 if test -n "$ac_ct_LIPO"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6850 $as_echo "$ac_ct_LIPO" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6856 if test "x$ac_ct_LIPO" = x; then
6859 case $cross_compiling:$ac_tool_warned in
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6868 LIPO="$ac_cv_prog_LIPO"
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}otool; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_OTOOL+:} false; then :
6877 $as_echo_n "(cached) " >&6
6879 if test -n "$OTOOL"; then
6880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 OTOOL=$ac_cv_prog_OTOOL
6900 if test -n "$OTOOL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6902 $as_echo "$OTOOL" >&6; }
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6910 if test -z "$ac_cv_prog_OTOOL"; then
6912 # Extract the first word of "otool", so it can be a program name with args.
6913 set dummy otool; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 if test -n "$ac_ct_OTOOL"; then
6920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_ac_ct_OTOOL="otool"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6940 if test -n "$ac_ct_OTOOL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6942 $as_echo "$ac_ct_OTOOL" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6948 if test "x$ac_ct_OTOOL" = x; then
6951 case $cross_compiling:$ac_tool_warned in
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6960 OTOOL="$ac_cv_prog_OTOOL"
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_OTOOL64+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 if test -n "$OTOOL64"; then
6972 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 OTOOL64=$ac_cv_prog_OTOOL64
6992 if test -n "$OTOOL64"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6994 $as_echo "$OTOOL64" >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7002 if test -z "$ac_cv_prog_OTOOL64"; then
7003 ac_ct_OTOOL64=$OTOOL64
7004 # Extract the first word of "otool64", so it can be a program name with args.
7005 set dummy otool64; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -n "$ac_ct_OTOOL64"; then
7012 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_ac_ct_OTOOL64="otool64"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7032 if test -n "$ac_ct_OTOOL64"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7034 $as_echo "$ac_ct_OTOOL64" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7040 if test "x$ac_ct_OTOOL64" = x; then
7043 case $cross_compiling:$ac_tool_warned in
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7049 OTOOL64=$ac_ct_OTOOL64
7052 OTOOL64="$ac_cv_prog_OTOOL64"
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7082 $as_echo_n "checking for -single_module linker flag... " >&6; }
7083 if ${lt_cv_apple_cc_single_mod+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 lt_cv_apple_cc_single_mod=no
7087 if test -z "${LT_MULTI_MODULE}"; then
7088 # By default we will add the -single_module flag. You can override
7089 # by either setting the environment variable LT_MULTI_MODULE
7090 # non-empty at configure time, or by adding -multi_module to the
7092 rm -rf libconftest.dylib*
7093 echo "int foo(void){return 1;}" > conftest.c
7094 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7095 -dynamiclib -Wl,-single_module conftest.c" >&5
7096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7097 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7099 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7100 lt_cv_apple_cc_single_mod=yes
7102 cat conftest.err >&5
7104 rm -rf libconftest.dylib*
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7109 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7111 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7112 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7113 $as_echo_n "(cached) " >&6
7115 lt_cv_ld_exported_symbols_list=no
7116 save_LDFLAGS=$LDFLAGS
7117 echo "_main" > conftest.sym
7118 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7130 if ac_fn_c_try_link "$LINENO"; then :
7131 lt_cv_ld_exported_symbols_list=yes
7133 lt_cv_ld_exported_symbols_list=no
7135 rm -f core conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7137 LDFLAGS="$save_LDFLAGS"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7141 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7143 rhapsody* | darwin1.[012])
7144 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7146 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7147 darwin*) # darwin 5.x on
7148 # if running on 10.5 or later, the deployment target defaults
7149 # to the OS version, if on x86, and 10.4, the deployment
7150 # target defaults to 10.4. Don't you love it?
7151 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7152 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7153 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7157 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7161 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7162 _lt_dar_single_mod='$single_module'
7164 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7165 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7167 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7169 if test "$DSYMUTIL" != ":"; then
7170 _lt_dsymutil='~$DSYMUTIL $lib || :'
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7179 $as_echo_n "checking for ANSI C header files... " >&6; }
7180 if ${ac_cv_header_stdc+:} false; then :
7181 $as_echo_n "(cached) " >&6
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 ac_cv_header_stdc=yes
7201 ac_cv_header_stdc=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 if test $ac_cv_header_stdc = yes; then
7206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7213 $EGREP "memchr" >/dev/null 2>&1; then :
7216 ac_cv_header_stdc=no
7222 if test $ac_cv_header_stdc = yes; then
7223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7230 $EGREP "free" >/dev/null 2>&1; then :
7233 ac_cv_header_stdc=no
7239 if test $ac_cv_header_stdc = yes; then
7240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7241 if test "$cross_compiling" = yes; then :
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7248 #if ((' ' & 0x0FF) == 0x020)
7249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7252 # define ISLOWER(c) \
7253 (('a' <= (c) && (c) <= 'i') \
7254 || ('j' <= (c) && (c) <= 'r') \
7255 || ('s' <= (c) && (c) <= 'z'))
7256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7264 for (i = 0; i < 256; i++)
7265 if (XOR (islower (i), ISLOWER (i))
7266 || toupper (i) != TOUPPER (i))
7271 if ac_fn_c_try_run "$LINENO"; then :
7274 ac_cv_header_stdc=no
7276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7277 conftest.$ac_objext conftest.beam conftest.$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7283 $as_echo "$ac_cv_header_stdc" >&6; }
7284 if test $ac_cv_header_stdc = yes; then
7286 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7292 inttypes.h stdint.h unistd.h
7294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7298 cat >>confdefs.h <<_ACEOF
7299 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7307 for ac_header in dlfcn.h
7309 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7311 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7312 cat >>confdefs.h <<_ACEOF
7313 @%:@define HAVE_DLFCN_H 1
7328 @%:@ Check whether --enable-shared was given.
7329 if test "${enable_shared+set}" = set; then :
7330 enableval=$enable_shared; p=${PACKAGE-default}
7332 yes) enable_shared=yes ;;
7333 no) enable_shared=no ;;
7336 # Look at the argument we got. We use all the common list separators.
7337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7338 for pkg in $enableval; do
7340 if test "X$pkg" = "X$p"; then
7361 @%:@ Check whether --with-pic was given.
7362 if test "${with_pic+set}" = set; then :
7363 withval=$with_pic; pic_mode="$withval"
7369 test -z "$pic_mode" && pic_mode=default
7377 @%:@ Check whether --enable-fast-install was given.
7378 if test "${enable_fast_install+set}" = set; then :
7379 enableval=$enable_fast_install; p=${PACKAGE-default}
7381 yes) enable_fast_install=yes ;;
7382 no) enable_fast_install=no ;;
7384 enable_fast_install=no
7385 # Look at the argument we got. We use all the common list separators.
7386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7387 for pkg in $enableval; do
7389 if test "X$pkg" = "X$p"; then
7390 enable_fast_install=yes
7397 enable_fast_install=yes
7410 # This can be used to rebuild libtool when needed
7411 LIBTOOL_DEPS="$ltmain"
7413 # Always use our own libtool.
7414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7440 test -z "$LN_S" && LN_S="ln -s"
7455 if test -n "${ZSH_VERSION+set}" ; then
7456 setopt NO_GLOB_SUBST
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7460 $as_echo_n "checking for objdir... " >&6; }
7461 if ${lt_cv_objdir+:} false; then :
7462 $as_echo_n "(cached) " >&6
7464 rm -f .libs 2>/dev/null
7465 mkdir .libs 2>/dev/null
7466 if test -d .libs; then
7469 # MS-DOS does not allow filenames that begin with a dot.
7472 rmdir .libs 2>/dev/null
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7475 $as_echo "$lt_cv_objdir" >&6; }
7476 objdir=$lt_cv_objdir
7482 cat >>confdefs.h <<_ACEOF
7483 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7504 # AIX sometimes has problems with the GCC collect2 program. For some
7505 # reason, if we set the COLLECT_NAMES environment variable, the problems
7506 # vanish in a puff of smoke.
7507 if test "X${COLLECT_NAMES+set}" != Xset; then
7509 export COLLECT_NAMES
7514 # Sed substitution that helps us do robust quoting. It backslashifies
7515 # metacharacters that are still active within double-quoted strings.
7516 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7518 # Same as above, but do not quote variable references.
7519 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7521 # Sed substitution to delay expansion of an escaped shell variable in a
7522 # double_quote_subst'ed string.
7523 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7525 # Sed substitution to delay expansion of an escaped single quote.
7526 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7528 # Sed substitution to avoid accidental globbing in evaled expressions
7529 no_glob_subst='s/\*/\\\*/g'
7533 can_build_shared=yes
7535 # All known linkers require a `.a' archive for static linking (except MSVC,
7536 # which needs '.lib').
7539 with_gnu_ld="$lt_cv_prog_gnu_ld"
7542 old_CFLAGS="$CFLAGS"
7544 # Set sane defaults for various variables
7545 test -z "$CC" && CC=cc
7546 test -z "$LTCC" && LTCC=$CC
7547 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7548 test -z "$LD" && LD=ld
7549 test -z "$ac_objext" && ac_objext=o
7551 for cc_temp in $compiler""; do
7553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7559 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7562 # Only perform the check for file, if the check method requires it
7563 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7564 case $deplibs_check_method in
7566 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7568 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7570 $as_echo_n "(cached) " >&6
7574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577 lt_save_MAGIC_CMD="$MAGIC_CMD"
7578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7580 for ac_dir in $ac_dummy; do
7582 test -z "$ac_dir" && ac_dir=.
7583 if test -f $ac_dir/${ac_tool_prefix}file; then
7584 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7585 if test -n "$file_magic_test_file"; then
7586 case $deplibs_check_method in
7588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7591 $EGREP "$file_magic_regex" > /dev/null; then
7596 *** Warning: the command libtool uses to detect shared libraries,
7597 *** $file_magic_cmd, produces output that libtool cannot recognize.
7598 *** The result is that libtool may fail to recognize shared libraries
7599 *** as such. This will affect the creation of libtool libraries that
7600 *** depend on shared libraries, but programs linked with such libtool
7601 *** libraries will work regardless of this problem. Nevertheless, you
7602 *** may want to report the problem to your system manager and/or to
7603 *** bug-libtool@gnu.org
7613 MAGIC_CMD="$lt_save_MAGIC_CMD"
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if test -n "$MAGIC_CMD"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7621 $as_echo "$MAGIC_CMD" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7631 if test -z "$lt_cv_path_MAGIC_CMD"; then
7632 if test -n "$ac_tool_prefix"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7634 $as_echo_n "checking for file... " >&6; }
7635 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7636 $as_echo_n "(cached) " >&6
7640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7643 lt_save_MAGIC_CMD="$MAGIC_CMD"
7644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646 for ac_dir in $ac_dummy; do
7648 test -z "$ac_dir" && ac_dir=.
7649 if test -f $ac_dir/file; then
7650 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7651 if test -n "$file_magic_test_file"; then
7652 case $deplibs_check_method in
7654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657 $EGREP "$file_magic_regex" > /dev/null; then
7662 *** Warning: the command libtool uses to detect shared libraries,
7663 *** $file_magic_cmd, produces output that libtool cannot recognize.
7664 *** The result is that libtool may fail to recognize shared libraries
7665 *** as such. This will affect the creation of libtool libraries that
7666 *** depend on shared libraries, but programs linked with such libtool
7667 *** libraries will work regardless of this problem. Nevertheless, you
7668 *** may want to report the problem to your system manager and/or to
7669 *** bug-libtool@gnu.org
7679 MAGIC_CMD="$lt_save_MAGIC_CMD"
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if test -n "$MAGIC_CMD"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7687 $as_echo "$MAGIC_CMD" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7703 # Use C for the default configuration in the libtool script
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 # Source file extension for C test sources.
7716 # Object file extension for compiled C test sources.
7720 # Code to be used in simple compile tests
7721 lt_simple_compile_test_code="int some_variable = 0;"
7723 # Code to be used in simple link tests
7724 lt_simple_link_test_code='int main(){return(0);}'
7732 # If no C compiler was specified, use CC.
7735 # If no C compiler flags were specified, use CFLAGS.
7736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7738 # Allow CC to be a program name with arguments.
7741 # Save the default compiler, since it gets overwritten when the other
7742 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7743 compiler_DEFAULT=$CC
7745 # save warnings/boilerplate of simple test code
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_compiler_boilerplate=`cat conftest.err`
7752 ac_outfile=conftest.$ac_objext
7753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7755 _lt_linker_boilerplate=`cat conftest.err`
7760 ## There is no encapsulation within the following macros, do not change
7761 ## the running order or otherwise move them around unless you know exactly
7762 ## what you are doing...
7763 if test -n "$compiler"; then
7765 lt_prog_compiler_no_builtin_flag=
7767 if test "$GCC" = yes; then
7768 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7771 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7772 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7773 $as_echo_n "(cached) " >&6
7775 lt_cv_prog_compiler_rtti_exceptions=no
7776 ac_outfile=conftest.$ac_objext
7777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7778 lt_compiler_flag="-fno-rtti -fno-exceptions"
7779 # Insert the option either (1) after the last *FLAGS variable, or
7780 # (2) before a word containing "conftest.", or (3) at the end.
7781 # Note that $ac_compile itself does not contain backslashes and begins
7782 # with a dollar sign (not a hyphen), so the echo should work correctly.
7783 # The option is referenced via a variable to avoid confusing sed.
7784 lt_compile=`echo "$ac_compile" | $SED \
7785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7787 -e 's:$: $lt_compiler_flag:'`
7788 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7789 (eval "$lt_compile" 2>conftest.err)
7791 cat conftest.err >&5
7792 echo "$as_me:__oline__: \$? = $ac_status" >&5
7793 if (exit $ac_status) && test -s "$ac_outfile"; then
7794 # The compiler can only warn and ignore the option if not recognized
7795 # So say no if there are warnings other than the usual output.
7796 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7799 lt_cv_prog_compiler_rtti_exceptions=yes
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7806 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7808 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7809 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7821 lt_prog_compiler_wl=
7822 lt_prog_compiler_pic=
7823 lt_prog_compiler_static=
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7826 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7828 if test "$GCC" = yes; then
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_static='-static'
7834 # All AIX code is PIC.
7835 if test "$host_cpu" = ia64; then
7836 # AIX 5 now supports IA64 processor
7837 lt_prog_compiler_static='-Bstatic'
7844 # see comment about AmigaOS4 .so support
7845 lt_prog_compiler_pic='-fPIC'
7848 # FIXME: we need at least 68020 code to build shared libraries, but
7849 # adding the `-m68020' flag to GCC prevents building anything better,
7851 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7856 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7857 # PIC is the default for these OSes.
7860 mingw* | cygwin* | pw32* | os2* | cegcc*)
7861 # This hack is so that the source file can tell whether it is being
7862 # built for inclusion in a dll (and should export symbols for example).
7863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7864 # (--disable-auto-import) libraries
7865 lt_prog_compiler_pic='-DDLL_EXPORT'
7868 darwin* | rhapsody*)
7869 # PIC is the default on this platform
7870 # Common symbols not allowed in MH_DYLIB files
7871 lt_prog_compiler_pic='-fno-common'
7875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7877 # sets the default TLS model and affects inlining.
7883 lt_prog_compiler_pic='-fPIC'
7889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7890 # Instead, we relocate shared libraries at runtime.
7894 # Just because we use GCC doesn't mean we suddenly get shared libraries
7895 # on systems that don't support them.
7896 lt_prog_compiler_can_build_shared=no
7901 # QNX uses GNU C++, but need to define -shared option too, otherwise
7903 lt_prog_compiler_pic='-fPIC -shared'
7907 if test -d /usr/nec; then
7908 lt_prog_compiler_pic=-Kconform_pic
7913 lt_prog_compiler_pic='-fPIC'
7917 # PORTME Check for flag to pass linker flags through the system compiler.
7920 lt_prog_compiler_wl='-Wl,'
7921 if test "$host_cpu" = ia64; then
7922 # AIX 5 now supports IA64 processor
7923 lt_prog_compiler_static='-Bstatic'
7925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7929 mingw* | cygwin* | pw32* | os2* | cegcc*)
7930 # This hack is so that the source file can tell whether it is being
7931 # built for inclusion in a dll (and should export symbols for example).
7932 lt_prog_compiler_pic='-DDLL_EXPORT'
7935 hpux9* | hpux10* | hpux11*)
7936 lt_prog_compiler_wl='-Wl,'
7937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7944 lt_prog_compiler_pic='+Z'
7947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7948 lt_prog_compiler_static='${wl}-a ${wl}archive'
7951 irix5* | irix6* | nonstopux*)
7952 lt_prog_compiler_wl='-Wl,'
7953 # PIC (with -KPIC) is the default.
7954 lt_prog_compiler_static='-non_shared'
7957 linux* | k*bsd*-gnu)
7958 case $cc_basename in
7959 # old Intel for x86_64 which still supported -KPIC.
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_pic='-KPIC'
7963 lt_prog_compiler_static='-static'
7965 # icc used to be incompatible with GCC.
7966 # ICC 10 doesn't accept -KPIC any more.
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='-fPIC'
7970 lt_prog_compiler_static='-static'
7972 # Lahey Fortran 8.1.
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='--shared'
7976 lt_prog_compiler_static='--static'
7978 pgcc* | pgf77* | pgf90* | pgf95*)
7979 # Portland Group compilers (*not* the Pentium gcc compiler,
7980 # which looks to be a dead project)
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-fpic'
7983 lt_prog_compiler_static='-Bstatic'
7986 lt_prog_compiler_wl='-Wl,'
7987 # All Alpha code is PIC.
7988 lt_prog_compiler_static='-non_shared'
7991 # IBM XL C 8.0/Fortran 10.1 on PPC
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-qpic'
7994 lt_prog_compiler_static='-qstaticlink'
7997 case `$CC -V 2>&1 | sed 5q` in
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_wl='-Wl,'
8005 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8008 lt_prog_compiler_wl=''
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8021 # QNX uses GNU C++, but need to define -shared option too, otherwise
8023 lt_prog_compiler_pic='-fPIC -shared'
8026 osf3* | osf4* | osf5*)
8027 lt_prog_compiler_wl='-Wl,'
8028 # All OSF/1 code is PIC.
8029 lt_prog_compiler_static='-non_shared'
8033 lt_prog_compiler_static='-non_shared'
8037 lt_prog_compiler_pic='-KPIC'
8038 lt_prog_compiler_static='-Bstatic'
8039 case $cc_basename in
8041 lt_prog_compiler_wl='-Qoption ld ';;
8043 lt_prog_compiler_wl='-Wl,';;
8048 lt_prog_compiler_wl='-Qoption ld '
8049 lt_prog_compiler_pic='-PIC'
8050 lt_prog_compiler_static='-Bstatic'
8053 sysv4 | sysv4.2uw2* | sysv4.3*)
8054 lt_prog_compiler_wl='-Wl,'
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8060 if test -d /usr/nec ;then
8061 lt_prog_compiler_pic='-Kconform_pic'
8062 lt_prog_compiler_static='-Bstatic'
8066 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_can_build_shared=no
8078 lt_prog_compiler_pic='-pic'
8079 lt_prog_compiler_static='-Bstatic'
8083 lt_prog_compiler_can_build_shared=no
8089 # For platforms which do not support PIC, -DPIC is meaningless:
8091 lt_prog_compiler_pic=
8094 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8098 $as_echo "$lt_prog_compiler_pic" >&6; }
8106 # Check to make sure the PIC flag actually works.
8108 if test -n "$lt_prog_compiler_pic"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8110 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8111 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 lt_cv_prog_compiler_pic_works=no
8115 ac_outfile=conftest.$ac_objext
8116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8117 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8118 # Insert the option either (1) after the last *FLAGS variable, or
8119 # (2) before a word containing "conftest.", or (3) at the end.
8120 # Note that $ac_compile itself does not contain backslashes and begins
8121 # with a dollar sign (not a hyphen), so the echo should work correctly.
8122 # The option is referenced via a variable to avoid confusing sed.
8123 lt_compile=`echo "$ac_compile" | $SED \
8124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8126 -e 's:$: $lt_compiler_flag:'`
8127 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8128 (eval "$lt_compile" 2>conftest.err)
8130 cat conftest.err >&5
8131 echo "$as_me:__oline__: \$? = $ac_status" >&5
8132 if (exit $ac_status) && test -s "$ac_outfile"; then
8133 # The compiler can only warn and ignore the option if not recognized
8134 # So say no if there are warnings other than the usual output.
8135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8138 lt_cv_prog_compiler_pic_works=yes
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8145 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8147 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8148 case $lt_prog_compiler_pic in
8150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8153 lt_prog_compiler_pic=
8154 lt_prog_compiler_can_build_shared=no
8165 # Check to make sure the static flag actually works.
8167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8170 if ${lt_cv_prog_compiler_static_works+:} false; then :
8171 $as_echo_n "(cached) " >&6
8173 lt_cv_prog_compiler_static_works=no
8174 save_LDFLAGS="$LDFLAGS"
8175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8178 # The linker can only warn and ignore the option if not recognized
8179 # So say no if there are warnings
8180 if test -s conftest.err; then
8181 # Append any errors to the config.log.
8182 cat conftest.err 1>&5
8183 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185 if diff conftest.exp conftest.er2 >/dev/null; then
8186 lt_cv_prog_compiler_static_works=yes
8189 lt_cv_prog_compiler_static_works=yes
8193 LDFLAGS="$save_LDFLAGS"
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8199 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8202 lt_prog_compiler_static=
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8213 if ${lt_cv_prog_compiler_c_o+:} false; then :
8214 $as_echo_n "(cached) " >&6
8216 lt_cv_prog_compiler_c_o=no
8217 $RM -r conftest 2>/dev/null
8221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8223 lt_compiler_flag="-o out/conftest2.$ac_objext"
8224 # Insert the option either (1) after the last *FLAGS variable, or
8225 # (2) before a word containing "conftest.", or (3) at the end.
8226 # Note that $ac_compile itself does not contain backslashes and begins
8227 # with a dollar sign (not a hyphen), so the echo should work correctly.
8228 lt_compile=`echo "$ac_compile" | $SED \
8229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231 -e 's:$: $lt_compiler_flag:'`
8232 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8233 (eval "$lt_compile" 2>out/conftest.err)
8235 cat out/conftest.err >&5
8236 echo "$as_me:__oline__: \$? = $ac_status" >&5
8237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8239 # The compiler can only warn and ignore the option if not recognized
8240 # So say no if there are warnings
8241 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8244 lt_cv_prog_compiler_c_o=yes
8249 # SGI C++ compiler will create directory out/ii_files/ for
8250 # template instantiation
8251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8252 $RM out/* && rmdir out
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8268 if ${lt_cv_prog_compiler_c_o+:} false; then :
8269 $as_echo_n "(cached) " >&6
8271 lt_cv_prog_compiler_c_o=no
8272 $RM -r conftest 2>/dev/null
8276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8278 lt_compiler_flag="-o out/conftest2.$ac_objext"
8279 # Insert the option either (1) after the last *FLAGS variable, or
8280 # (2) before a word containing "conftest.", or (3) at the end.
8281 # Note that $ac_compile itself does not contain backslashes and begins
8282 # with a dollar sign (not a hyphen), so the echo should work correctly.
8283 lt_compile=`echo "$ac_compile" | $SED \
8284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286 -e 's:$: $lt_compiler_flag:'`
8287 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8288 (eval "$lt_compile" 2>out/conftest.err)
8290 cat out/conftest.err >&5
8291 echo "$as_me:__oline__: \$? = $ac_status" >&5
8292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8294 # The compiler can only warn and ignore the option if not recognized
8295 # So say no if there are warnings
8296 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8299 lt_cv_prog_compiler_c_o=yes
8304 # SGI C++ compiler will create directory out/ii_files/ for
8305 # template instantiation
8306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8307 $RM out/* && rmdir out
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8319 hard_links="nottested"
8320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8321 # do not overwrite the value of need_locks provided by the user
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8323 $as_echo_n "checking if we can lock with hard links... " >&6; }
8326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8328 ln conftest.a conftest.b 2>&5 || hard_links=no
8329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8331 $as_echo "$hard_links" >&6; }
8332 if test "$hard_links" = no; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8334 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8350 allow_undefined_flag=
8351 always_export_symbols=no
8353 archive_expsym_cmds=
8354 compiler_needs_object=no
8355 enable_shared_with_static_runtimes=no
8356 export_dynamic_flag_spec=
8357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8358 hardcode_automatic=no
8360 hardcode_direct_absolute=no
8361 hardcode_libdir_flag_spec=
8362 hardcode_libdir_flag_spec_ld=
8363 hardcode_libdir_separator=
8365 hardcode_shlibpath_var=unsupported
8367 link_all_deplibs=unknown
8370 old_archive_from_new_cmds=
8371 old_archive_from_expsyms_cmds=
8372 thread_safe_flag_spec=
8373 whole_archive_flag_spec=
8374 # include_expsyms should be a list of space-separated symbols to be *always*
8375 # included in the symbol list
8377 # exclude_expsyms can be an extended regexp of symbols to exclude
8378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8380 # as well as any symbol that contains `d'.
8381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8383 # platforms (ab)use it in PIC code, but their linkers get confused if
8384 # the symbol is explicitly referenced. Since portable code cannot
8385 # rely on this symbol name, it's probably fine to never include it in
8386 # preloaded symbol tables.
8387 # Exclude shared library initialization/finalization symbols.
8388 extract_expsyms_cmds=
8391 cygwin* | mingw* | pw32* | cegcc*)
8392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8393 # When not using gcc, we currently assume that we are using
8394 # Microsoft Visual C++.
8395 if test "$GCC" != yes; then
8400 # we just hope/assume this is gcc and not c89 (= MSVC++)
8409 if test "$with_gnu_ld" = yes; then
8410 # If archive_cmds runs LD, not CC, wlarc should be empty
8413 # Set some defaults for GNU ld with shared library support. These
8414 # are reset later if shared libraries are not supported. Putting them
8415 # here allows them to be overridden if necessary.
8416 runpath_var=LD_RUN_PATH
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 export_dynamic_flag_spec='${wl}--export-dynamic'
8419 # ancient GNU ld didn't support --whole-archive et. al.
8420 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8421 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8423 whole_archive_flag_spec=
8425 supports_anon_versioning=no
8426 case `$LD -v 2>&1` in
8427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8430 *\ 2.11.*) ;; # other 2.11 versions
8431 *) supports_anon_versioning=yes ;;
8434 # See if GNU ld supports shared libraries.
8437 # On AIX/PPC, the GNU linker is very broken
8438 if test "$host_cpu" != ia64; then
8442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8443 *** to be unable to reliably create shared libraries on AIX.
8444 *** Therefore, libtool is disabling shared libraries support. If you
8445 *** really care for shared libraries, you may want to modify your PATH
8446 *** so that a non-GNU linker is found, and then restart.
8455 # see comment about AmigaOS4 .so support
8456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457 archive_expsym_cmds=''
8460 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)'
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_minus_L=yes
8468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469 allow_undefined_flag=unsupported
8470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8471 # support --undefined. This deserves some investigation. FIXME
8472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478 cygwin* | mingw* | pw32* | cegcc*)
8479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8480 # as there is no search path for DLLs.
8481 hardcode_libdir_flag_spec='-L$libdir'
8482 allow_undefined_flag=unsupported
8483 always_export_symbols=no
8484 enable_shared_with_static_runtimes=yes
8485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8489 # If the export-symbols file already is a .def file (1st line
8490 # is EXPORTS), use it as is; otherwise, prepend...
8491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8492 cp $export_symbols $output_objdir/$soname.def;
8494 echo EXPORTS > $output_objdir/$soname.def;
8495 cat $export_symbols >> $output_objdir/$soname.def;
8497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8505 hardcode_shlibpath_var=no
8506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8507 export_dynamic_flag_spec='${wl}-E'
8508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8509 # Instead, shared libraries are loaded at an image base (0x10000000 by
8510 # default) and relocated if they conflict, which is a slow very memory
8511 # consuming and fragmenting process. To avoid this, we pick a random,
8512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8515 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'
8518 gnu* | linux* | tpf* | k*bsd*-gnu)
8520 if test "$host_os" = linux-dietlibc; then
8521 case $cc_basename in
8522 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8525 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8526 && test "$tmp_diet" = no
8529 tmp_sharedflag='-shared'
8530 case $cc_basename,$host_cpu in
8531 pgcc*) # Portland Group C compiler
8532 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'
8533 tmp_addflag=' $pic_flag'
8535 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8536 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'
8537 tmp_addflag=' $pic_flag -Mnomain' ;;
8538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8539 tmp_addflag=' -i_dynamic' ;;
8540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8541 tmp_addflag=' -i_dynamic -nofor_main' ;;
8542 ifc* | ifort*) # Intel Fortran compiler
8543 tmp_addflag=' -nofor_main' ;;
8544 lf95*) # Lahey Fortran 8.1
8545 whole_archive_flag_spec=
8546 tmp_sharedflag='--shared' ;;
8547 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8548 tmp_sharedflag='-qmkshrobj'
8551 case `$CC -V 2>&1 | sed 5q` in
8552 *Sun\ C*) # Sun C 5.9
8553 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'
8554 compiler_needs_object=yes
8555 tmp_sharedflag='-G' ;;
8556 *Sun\ F*) # Sun Fortran 8.3
8557 tmp_sharedflag='-G' ;;
8559 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 if test "x$supports_anon_versioning" = xyes; then
8562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8564 echo "local: *; };" >> $output_objdir/$libname.ver~
8565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8568 case $cc_basename in
8570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8572 hardcode_libdir_flag_spec=
8573 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8574 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8575 if test "x$supports_anon_versioning" = xyes; then
8576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578 echo "local: *; };" >> $output_objdir/$libname.ver~
8579 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8604 *** create shared libraries on Solaris systems. Therefore, libtool
8605 *** is disabling shared libraries support. We urge you to upgrade GNU
8606 *** binutils to release 2.9.1 or newer. Another option is to modify
8607 *** your PATH or compiler configuration so that the native linker is
8608 *** used, and then restart.
8611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8620 case `$LD -v 2>&1` in
8621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8626 *** reliably create shared libraries on SCO systems. Therefore, libtool
8627 *** is disabling shared libraries support. We urge you to upgrade GNU
8628 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8629 *** your PATH or compiler configuration so that the native linker is
8630 *** used, and then restart.
8635 # For security reasons, it is highly recommended that you always
8636 # use absolute paths for naming shared libraries, and exclude the
8637 # DT_RUNPATH tag from executables and libraries. But doing so
8638 # requires that you compile everything twice, which is a pain.
8639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_shlibpath_var=no
8658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8667 if test "$ld_shlibs" = no; then
8669 hardcode_libdir_flag_spec=
8670 export_dynamic_flag_spec=
8671 whole_archive_flag_spec=
8674 # PORTME fill in a description of your system's linker (not GNU ld)
8677 allow_undefined_flag=unsupported
8678 always_export_symbols=yes
8679 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'
8680 # Note: this linker hardcodes the directories in LIBPATH if there
8681 # are no directories specified by -L.
8682 hardcode_minus_L=yes
8683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8684 # Neither direct hardcoding nor static linking is supported with a
8686 hardcode_direct=unsupported
8691 if test "$host_cpu" = ia64; then
8692 # On IA64, the linker does run time linking by default, so we don't
8693 # have to do anything special.
8694 aix_use_runtimelinking=no
8695 exp_sym_flag='-Bexport'
8698 # If we're using GNU nm, then we don't want the "-C" option.
8699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8701 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'
8703 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'
8705 aix_use_runtimelinking=no
8707 # Test if we are trying to use run time linking or normal
8708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8709 # need to do runtime linking.
8710 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8711 for ld_flag in $LDFLAGS; do
8712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8713 aix_use_runtimelinking=yes
8720 exp_sym_flag='-bexport'
8721 no_entry_flag='-bnoentry'
8724 # When large executables or shared objects are built, AIX ld can
8725 # have problems creating the table of contents. If linking a library
8726 # or program results in "error TOC overflow" add -mminimal-toc to
8727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8732 hardcode_direct_absolute=yes
8733 hardcode_libdir_separator=':'
8734 link_all_deplibs=yes
8735 file_list_spec='${wl}-f,'
8737 if test "$GCC" = yes; then
8738 case $host_os in aix4.[012]|aix4.[012].*)
8739 # We only want to do this on AIX 4.2 and lower, the check
8740 # below for broken collect2 doesn't work under 4.3+
8741 collect2name=`${CC} -print-prog-name=collect2`
8742 if test -f "$collect2name" &&
8743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8745 # We have reworked collect2
8748 # We have old collect2
8749 hardcode_direct=unsupported
8750 # It fails to find uninstalled libraries when the uninstalled
8751 # path is not listed in the libpath. Setting hardcode_minus_L
8752 # to unsupported forces relinking
8753 hardcode_minus_L=yes
8754 hardcode_libdir_flag_spec='-L$libdir'
8755 hardcode_libdir_separator=
8759 shared_flag='-shared'
8760 if test "$aix_use_runtimelinking" = yes; then
8761 shared_flag="$shared_flag "'${wl}-G'
8765 if test "$host_cpu" = ia64; then
8766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8767 # chokes on -Wl,-G. The following line is correct:
8770 if test "$aix_use_runtimelinking" = yes; then
8771 shared_flag='${wl}-G'
8773 shared_flag='${wl}-bM:SRE'
8778 export_dynamic_flag_spec='${wl}-bexpall'
8779 # It seems that -bexpall does not export symbols beginning with
8780 # underscore (_), so it is better to generate a list of symbols to export.
8781 always_export_symbols=yes
8782 if test "$aix_use_runtimelinking" = yes; then
8783 # Warning - without using the other runtime loading flags (-brtl),
8784 # -berok will link without error, but may produce a broken library.
8785 allow_undefined_flag='-berok'
8786 # Determine the default libpath from the value encoded in an
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8799 if ac_fn_c_try_link "$LINENO"; then :
8801 lt_aix_libpath_sed='
8802 /Import File Strings/,/^$/ {
8808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809 # Check for a 64-bit object if we didn't find anything.
8810 if test -z "$aix_libpath"; then
8811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8814 rm -f core conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8819 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"
8821 if test "$host_cpu" = ia64; then
8822 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8823 allow_undefined_flag="-z nodefs"
8824 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"
8826 # Determine the default libpath from the value encoded in an
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8839 if ac_fn_c_try_link "$LINENO"; then :
8841 lt_aix_libpath_sed='
8842 /Import File Strings/,/^$/ {
8848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 # Check for a 64-bit object if we didn't find anything.
8850 if test -z "$aix_libpath"; then
8851 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8854 rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8859 # Warning - without using the other run time loading flags,
8860 # -berok will link without error, but may produce a broken library.
8861 no_undefined_flag=' ${wl}-bernotok'
8862 allow_undefined_flag=' ${wl}-berok'
8863 # Exported symbols can be pulled into shared objects from archives
8864 whole_archive_flag_spec='$convenience'
8865 archive_cmds_need_lc=yes
8866 # This is similar to how AIX traditionally builds its shared libraries.
8867 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'
8875 # see comment about AmigaOS4 .so support
8876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 archive_expsym_cmds=''
8880 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)'
8881 hardcode_libdir_flag_spec='-L$libdir'
8882 hardcode_minus_L=yes
8888 export_dynamic_flag_spec=-rdynamic
8891 cygwin* | mingw* | pw32* | cegcc*)
8892 # When not using gcc, we currently assume that we are using
8893 # Microsoft Visual C++.
8894 # hardcode_libdir_flag_spec is actually meaningless, as there is
8895 # no search path for DLLs.
8896 hardcode_libdir_flag_spec=' '
8897 allow_undefined_flag=unsupported
8898 # Tell ltmain to make .lib files, not .a files.
8900 # Tell ltmain to make .dll files, not .so files.
8902 # FIXME: Setting linknames here is a bad hack.
8903 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8904 # The linker will automatically build a .lib file if we build a DLL.
8905 old_archive_from_new_cmds='true'
8906 # FIXME: Should let the user specify the lib program.
8907 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8908 fix_srcfile_path='`cygpath -w "$srcfile"`'
8909 enable_shared_with_static_runtimes=yes
8912 darwin* | rhapsody*)
8915 archive_cmds_need_lc=no
8917 hardcode_automatic=yes
8918 hardcode_shlibpath_var=unsupported
8919 whole_archive_flag_spec=''
8920 link_all_deplibs=yes
8921 allow_undefined_flag="$_lt_dar_allow_undefined"
8922 case $cc_basename in
8923 ifort*) _lt_dar_can_shared=yes ;;
8924 *) _lt_dar_can_shared=$GCC ;;
8926 if test "$_lt_dar_can_shared" = "yes"; then
8927 output_verbose_link_cmd=echo
8928 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8929 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8930 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}"
8931 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}"
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_libdir_flag_spec='-L$libdir'
8942 hardcode_shlibpath_var=no
8949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8950 # support. Future versions do this automatically, but an explicit c++rt0.o
8951 # does not break anything, and helps significantly (at the cost of a little
8954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8955 hardcode_libdir_flag_spec='-R$libdir'
8957 hardcode_shlibpath_var=no
8960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8964 hardcode_minus_L=yes
8965 hardcode_shlibpath_var=no
8968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8969 freebsd* | dragonfly*)
8970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8971 hardcode_libdir_flag_spec='-R$libdir'
8973 hardcode_shlibpath_var=no
8977 if test "$GCC" = yes; then
8978 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'
8980 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'
8982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983 hardcode_libdir_separator=:
8986 # hardcode_minus_L: Not really in the search PATH,
8987 # but as the default location of the library.
8988 hardcode_minus_L=yes
8989 export_dynamic_flag_spec='${wl}-E'
8993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8998 if test "$with_gnu_ld" = no; then
8999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9000 hardcode_libdir_flag_spec_ld='+b $libdir'
9001 hardcode_libdir_separator=:
9003 hardcode_direct_absolute=yes
9004 export_dynamic_flag_spec='${wl}-E'
9005 # hardcode_minus_L: Not really in the search PATH,
9006 # but as the default location of the library.
9007 hardcode_minus_L=yes
9012 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9015 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9027 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9037 if test "$with_gnu_ld" = no; then
9038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9039 hardcode_libdir_separator=:
9044 hardcode_shlibpath_var=no
9048 hardcode_direct_absolute=yes
9049 export_dynamic_flag_spec='${wl}-E'
9051 # hardcode_minus_L: Not really in the search PATH,
9052 # but as the default location of the library.
9053 hardcode_minus_L=yes
9059 irix5* | irix6* | nonstopux*)
9060 if test "$GCC" = yes; then
9061 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'
9062 # Try to use the -exported_symbol ld option, if it does not
9063 # work, assume that -exports_file does not work either and
9064 # implicitly export all symbols.
9065 save_LDFLAGS="$LDFLAGS"
9066 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9071 if ac_fn_c_try_link "$LINENO"; then :
9072 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'
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LDFLAGS="$save_LDFLAGS"
9079 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'
9080 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'
9082 archive_cmds_need_lc='no'
9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084 hardcode_libdir_separator=:
9086 link_all_deplibs=yes
9090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9093 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9095 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_shlibpath_var=no
9101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104 hardcode_libdir_separator=:
9105 hardcode_shlibpath_var=no
9112 if test -f /usr/libexec/ld.so; then
9114 hardcode_shlibpath_var=no
9115 hardcode_direct_absolute=yes
9116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9120 export_dynamic_flag_spec='${wl}-E'
9123 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_libdir_flag_spec='-R$libdir'
9128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_minus_L=yes
9141 allow_undefined_flag=unsupported
9142 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'
9143 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9147 if test "$GCC" = yes; then
9148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9149 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'
9151 allow_undefined_flag=' -expect_unresolved \*'
9152 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'
9154 archive_cmds_need_lc='no'
9155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156 hardcode_libdir_separator=:
9159 osf4* | osf5*) # as osf3* with the addition of -msym flag
9160 if test "$GCC" = yes; then
9161 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9162 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'
9163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9165 allow_undefined_flag=' -expect_unresolved \*'
9166 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'
9167 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~
9168 $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'
9170 # Both c and cxx compiler support -rpath directly
9171 hardcode_libdir_flag_spec='-rpath $libdir'
9173 archive_cmds_need_lc='no'
9174 hardcode_libdir_separator=:
9178 no_undefined_flag=' -z defs'
9179 if test "$GCC" = yes; then
9181 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9183 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9185 case `$CC -V 2>&1` in
9188 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9194 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9196 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9200 hardcode_libdir_flag_spec='-R$libdir'
9201 hardcode_shlibpath_var=no
9203 solaris2.[0-5] | solaris2.[0-5].*) ;;
9205 # The compiler driver will combine and reorder linker options,
9206 # but understands `-z linker_flag'. GCC discards it without `$wl',
9207 # but is careful enough not to reorder.
9208 # Supported since Solaris 2.6 (maybe 2.5.1?)
9209 if test "$GCC" = yes; then
9210 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9212 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9216 link_all_deplibs=yes
9220 if test "x$host_vendor" = xsequent; then
9221 # Use $CC to link under sequent, because it throws in some extra .o
9222 # files that make .init and .fini sections work.
9223 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9227 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9230 hardcode_shlibpath_var=no
9234 case $host_vendor in
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_direct=yes # is this really true???
9240 ## LD is ld it makes a PLAMLIB
9241 ## CC just makes a GrossModule.
9242 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9243 reload_cmds='$CC -r -o $output$reload_objs'
9247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9251 runpath_var='LD_RUN_PATH'
9252 hardcode_shlibpath_var=no
9256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_shlibpath_var=no
9258 export_dynamic_flag_spec='-Bexport'
9262 if test -d /usr/nec; then
9263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_shlibpath_var=no
9265 runpath_var=LD_RUN_PATH
9266 hardcode_runpath_var=yes
9271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9272 no_undefined_flag='${wl}-z,text'
9273 archive_cmds_need_lc=no
9274 hardcode_shlibpath_var=no
9275 runpath_var='LD_RUN_PATH'
9277 if test "$GCC" = yes; then
9278 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 sysv5* | sco3.2v5* | sco5v6*)
9287 # Note: We can NOT use -z defs as we might desire, because we do not
9288 # link with -lc, and that would cause any symbols used from libc to
9289 # always be unresolved, which means just about no library would
9290 # ever link correctly. If we're not using GNU ld we use -z text
9291 # though, which does catch some bad symbols but isn't as heavy-handed
9293 no_undefined_flag='${wl}-z,text'
9294 allow_undefined_flag='${wl}-z,nodefs'
9295 archive_cmds_need_lc=no
9296 hardcode_shlibpath_var=no
9297 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9298 hardcode_libdir_separator=':'
9299 link_all_deplibs=yes
9300 export_dynamic_flag_spec='${wl}-Bexport'
9301 runpath_var='LD_RUN_PATH'
9303 if test "$GCC" = yes; then
9304 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_libdir_flag_spec='-L$libdir'
9315 hardcode_shlibpath_var=no
9323 if test x$host_vendor = xsni; then
9325 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9326 export_dynamic_flag_spec='${wl}-Blargedynsym'
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9333 $as_echo "$ld_shlibs" >&6; }
9334 test "$ld_shlibs" = no && can_build_shared=no
9336 with_gnu_ld=$with_gnu_ld
9353 # Do we need to explicitly link libc?
9355 case "x$archive_cmds_need_lc" in
9357 # Assume -lc should be added
9358 archive_cmds_need_lc=yes
9360 if test "$enable_shared" = yes && test "$GCC" = yes; then
9361 case $archive_cmds in
9363 # FIXME: we may have to deal with multi-command sequences.
9366 # Test whether the compiler implicitly links with -lc since on some
9367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9368 # to ld, don't add -lc before -lgcc.
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9370 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9375 (eval $ac_compile) 2>&5
9377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9378 test $ac_status = 0; } 2>conftest.err; then
9381 libobjs=conftest.$ac_objext
9383 wl=$lt_prog_compiler_wl
9384 pic_flag=$lt_prog_compiler_pic
9390 lt_save_allow_undefined_flag=$allow_undefined_flag
9391 allow_undefined_flag=
9392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9393 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9396 test $ac_status = 0; }
9398 archive_cmds_need_lc=no
9400 archive_cmds_need_lc=yes
9402 allow_undefined_flag=$lt_save_allow_undefined_flag
9404 cat conftest.err 1>&5
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9408 $as_echo "$archive_cmds_need_lc" >&6; }
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9572 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9574 if test "$GCC" = yes; then
9576 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9577 *) lt_awk_arg="/^libraries:/" ;;
9579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9580 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9581 # if the path contains ";" then we assume it to be the separator
9582 # otherwise default to the standard path separator (i.e. ":") - it is
9583 # assumed that no part of a normal pathname contains ";" but that should
9584 # okay in the real world where ";" in dirpaths is itself problematic.
9585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9589 # Ok, now we have the path, separated by spaces, we can step through it
9590 # and add multilib dir if necessary.
9591 lt_tmp_lt_search_path_spec=
9592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9593 for lt_sys_path in $lt_search_path_spec; do
9594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9597 test -d "$lt_sys_path" && \
9598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9601 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9602 BEGIN {RS=" "; FS="/|\n";} {
9605 for (lt_i = NF; lt_i > 0; lt_i--) {
9606 if ($lt_i != "" && $lt_i != ".") {
9607 if ($lt_i == "..") {
9610 if (lt_count == 0) {
9611 lt_foo="/" $lt_i lt_foo;
9618 if (lt_foo != "") { lt_freq[lt_foo]++; }
9619 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9621 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9626 libname_spec='lib$name'
9634 shlibpath_overrides_runpath=unknown
9636 dynamic_linker="$host_os ld.so"
9637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638 need_lib_prefix=unknown
9639 hardcode_into_libs=no
9641 # when you set need_version to no, make sure it does not cause -set_version
9642 # flags to be left without arguments
9643 need_version=unknown
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9649 shlibpath_var=LIBPATH
9651 # AIX 3 has no versioning support, so we append a major version to the name.
9652 soname_spec='${libname}${release}${shared_ext}$major'
9659 hardcode_into_libs=yes
9660 if test "$host_cpu" = ia64; then
9661 # AIX 5 supports IA64
9662 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9663 shlibpath_var=LD_LIBRARY_PATH
9665 # With GCC up to 2.95.x, collect2 would create an import file
9666 # for dependence libraries. The import file would start with
9667 # the line `#! .'. This would cause the generated library to
9668 # depend on `.', always an invalid library. This was fixed in
9669 # development snapshots of GCC prior to 3.0.
9671 aix4 | aix4.[01] | aix4.[01].*)
9672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9674 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9681 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9682 # soname into executable. Probably we can add versioning support to
9683 # collect2, so additional links can be useful in future.
9684 if test "$aix_use_runtimelinking" = yes; then
9685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9686 # instead of lib<name>.a to let people know that these are not
9687 # typical AIX shared libraries.
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 # We preserve .a as extension for shared libraries through AIX4.2
9691 # and later when we are not doing run time linking.
9692 library_names_spec='${libname}${release}.a $libname.a'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LIBPATH
9702 # Since July 2007 AmigaOS4 officially supports .so libraries.
9703 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 library_names_spec='$libname.ixlibrary $libname.a'
9708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9709 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'
9715 library_names_spec='${libname}${shared_ext}'
9716 dynamic_linker="$host_os ld.so"
9717 shlibpath_var=LIBRARY_PATH
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9726 shlibpath_var=LD_LIBRARY_PATH
9727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9729 # the default ld.so.conf also contains /usr/contrib/lib and
9730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9731 # libtool to hard-code these into programs
9734 cygwin* | mingw* | pw32* | cegcc*)
9735 version_type=windows
9740 case $GCC,$host_os in
9741 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9742 library_names_spec='$libname.dll.a'
9743 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9744 postinstall_cmds='base_file=`basename \${file}`~
9745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9746 dldir=$destdir/`dirname \$dlpath`~
9747 test -d \$dldir || mkdir -p \$dldir~
9748 $install_prog $dir/$dlname \$dldir/$dlname~
9749 chmod a+x \$dldir/$dlname~
9750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9754 dlpath=$dir/\$dldll~
9756 shlibpath_overrides_runpath=yes
9760 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9761 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9762 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9765 # MinGW DLLs use traditional 'lib' prefix
9766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9767 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9768 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9769 # It is most probably a Windows format PATH printed by
9770 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9771 # path with ; separators, and with drive letters. We can handle the
9772 # drive letters (cygwin fileutils understands them), so leave them,
9773 # especially as we might pass files found there to a mingw objdump,
9774 # which wouldn't understand a cygwinified path. Ahh.
9775 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9777 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9781 # pw32 DLLs use 'pw' prefix rather than 'lib'
9782 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9788 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9791 dynamic_linker='Win32 ld.exe'
9792 # FIXME: first we should search . and the directory the executable is in
9796 darwin* | rhapsody*)
9797 dynamic_linker="$host_os dyld"
9801 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9802 soname_spec='${libname}${release}${major}$shared_ext'
9803 shlibpath_overrides_runpath=yes
9804 shlibpath_var=DYLD_LIBRARY_PATH
9805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9807 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9808 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 shlibpath_var=LD_LIBRARY_PATH
9824 freebsd* | dragonfly*)
9825 # DragonFly does not have aout. When/if they implement a new
9826 # versioning mechanism, adjust this.
9827 if test -x /usr/bin/objformat; then
9828 objformat=`/usr/bin/objformat`
9831 freebsd[123]*) objformat=aout ;;
9835 version_type=freebsd-$objformat
9836 case $version_type in
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9847 shlibpath_var=LD_LIBRARY_PATH
9850 shlibpath_overrides_runpath=yes
9852 freebsd3.[01]* | freebsdelf3.[01]*)
9853 shlibpath_overrides_runpath=yes
9854 hardcode_into_libs=yes
9856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9858 shlibpath_overrides_runpath=no
9859 hardcode_into_libs=yes
9861 *) # from 4.6 on, and DragonFly
9862 shlibpath_overrides_runpath=yes
9863 hardcode_into_libs=yes
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 hardcode_into_libs=yes
9878 hpux9* | hpux10* | hpux11*)
9879 # Give a soname corresponding to the major version so that dld.sl refuses to
9880 # link against other versions.
9887 hardcode_into_libs=yes
9888 dynamic_linker="$host_os dld.so"
9889 shlibpath_var=LD_LIBRARY_PATH
9890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 if test "X$HPUX_IA64_MODE" = X32; then
9894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9902 hardcode_into_libs=yes
9903 dynamic_linker="$host_os dld.sl"
9904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9913 dynamic_linker="$host_os dld.sl"
9914 shlibpath_var=SHLIB_PATH
9915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9920 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9921 postinstall_cmds='chmod 555 $lib'
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 shlibpath_overrides_runpath=no
9933 hardcode_into_libs=yes
9936 irix5* | irix6* | nonstopux*)
9938 nonstopux*) version_type=nonstopux ;;
9940 if test "$lt_cv_prog_gnu_ld" = yes; then
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9951 irix5* | nonstopux*)
9955 case $LD in # libtool.m4 will add one of these switches to LD
9956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9957 libsuff= shlibsuff= libmagic=32-bit;;
9958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9959 libsuff=32 shlibsuff=N32 libmagic=N32;;
9960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9962 *) libsuff= shlibsuff= libmagic=never-match;;
9966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9967 shlibpath_overrides_runpath=no
9968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9970 hardcode_into_libs=yes
9973 # No shared lib support for Linux oldld, aout, or coff.
9974 linux*oldld* | linux*aout* | linux*coff*)
9978 # This must be Linux ELF.
9979 linux* | k*bsd*-gnu)
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 shlibpath_overrides_runpath=no
9988 # Some binutils ld are patched to set DT_RUNPATH
9989 save_LDFLAGS=$LDFLAGS
9991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
10004 if ac_fn_c_try_link "$LINENO"; then :
10005 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10006 shlibpath_overrides_runpath=yes
10009 rm -f core conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 LDFLAGS=$save_LDFLAGS
10012 libdir=$save_libdir
10014 # This implies no fast_install, which is unacceptable.
10015 # Some rework will be needed to allow for fast_install
10016 # before this can be enabled.
10017 hardcode_into_libs=yes
10019 # Append ld.so.conf contents to the search path
10020 if test -f /etc/ld.so.conf; then
10021 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' ' '`
10022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10025 # We used to test for /lib/ld.so.1 and disable shared libraries on
10026 # powerpc, because MkLinux only supported shared libraries with the
10027 # GNU dynamic linker. Since this was broken with cross compilers,
10028 # most powerpc-linux boxes support dynamic linking these days and
10029 # people can always --disable-shared, the test was removed, and we
10030 # assume the GNU/Linux dynamic linker is in use.
10031 dynamic_linker='GNU/Linux ld.so'
10038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10041 dynamic_linker='NetBSD (a.out) ld.so'
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 dynamic_linker='NetBSD ld.elf_so'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=yes
10049 hardcode_into_libs=yes
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 shlibpath_overrides_runpath=yes
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=no
10067 hardcode_into_libs=yes
10068 dynamic_linker='ldqnx.so'
10073 sys_lib_dlsearch_path_spec="/usr/lib"
10075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10077 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10078 *) need_version=no ;;
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10085 openbsd2.[89] | openbsd2.[89].*)
10086 shlibpath_overrides_runpath=no
10089 shlibpath_overrides_runpath=yes
10093 shlibpath_overrides_runpath=yes
10098 libname_spec='$name'
10101 library_names_spec='$libname${shared_ext} $libname.a'
10102 dynamic_linker='OS/2 ld.exe'
10103 shlibpath_var=LIBPATH
10106 osf3* | osf4* | osf5*)
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=yes
10129 hardcode_into_libs=yes
10130 # ldd complains unless libraries are executable
10131 postinstall_cmds='chmod +x $lib'
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 if test "$with_gnu_ld" = yes; then
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 case $host_vendor in
10153 shlibpath_overrides_runpath=no
10155 runpath_var=LD_RUN_PATH
10163 shlibpath_overrides_runpath=no
10164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10170 if test -d /usr/nec ;then
10172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10173 soname_spec='$libname${shared_ext}.$major'
10174 shlibpath_var=LD_LIBRARY_PATH
10178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10179 version_type=freebsd-elf
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=yes
10186 hardcode_into_libs=yes
10187 if test "$with_gnu_ld" = yes; then
10188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10197 sys_lib_dlsearch_path_spec='/usr/lib'
10201 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=no
10208 hardcode_into_libs=yes
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10223 $as_echo "$dynamic_linker" >&6; }
10224 test "$dynamic_linker" = no && can_build_shared=no
10226 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10227 if test "$GCC" = yes; then
10228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10231 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10232 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10234 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10235 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10327 if test -n "$hardcode_libdir_flag_spec" ||
10328 test -n "$runpath_var" ||
10329 test "X$hardcode_automatic" = "Xyes" ; then
10331 # We can hardcode non-existent directories.
10332 if test "$hardcode_direct" != no &&
10333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10334 # have to relink, otherwise we might link with an installed library
10335 # when we should be linking with a yet-to-be-installed one
10336 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10337 test "$hardcode_minus_L" != no; then
10338 # Linking always hardcodes the temporary library directory.
10339 hardcode_action=relink
10341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10342 hardcode_action=immediate
10345 # We cannot hardcode anything, or else we can only hardcode existing
10347 hardcode_action=unsupported
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10350 $as_echo "$hardcode_action" >&6; }
10352 if test "$hardcode_action" = relink ||
10353 test "$inherit_rpath" = yes; then
10354 # Fast installation is not supported
10355 enable_fast_install=no
10356 elif test "$shlibpath_overrides_runpath" = yes ||
10357 test "$enable_shared" = no; then
10358 # Fast installation is not necessary
10359 enable_fast_install=needless
10367 if test "x$enable_dlopen" != xyes; then
10368 enable_dlopen=unknown
10369 enable_dlopen_self=unknown
10370 enable_dlopen_self_static=unknown
10377 lt_cv_dlopen="load_add_on"
10379 lt_cv_dlopen_self=yes
10382 mingw* | pw32* | cegcc*)
10383 lt_cv_dlopen="LoadLibrary"
10388 lt_cv_dlopen="dlopen"
10393 # if libdl is installed we need to link against it
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10396 if ${ac_cv_lib_dl_dlopen+:} false; then :
10397 $as_echo_n "(cached) " >&6
10399 ac_check_lib_save_LIBS=$LIBS
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 ac_cv_lib_dl_dlopen=yes
10422 ac_cv_lib_dl_dlopen=no
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10434 lt_cv_dlopen="dyld"
10436 lt_cv_dlopen_self=yes
10443 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10444 if test "x$ac_cv_func_shl_load" = xyes; then :
10445 lt_cv_dlopen="shl_load"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10448 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10449 if ${ac_cv_lib_dld_shl_load+:} false; then :
10450 $as_echo_n "(cached) " >&6
10452 ac_check_lib_save_LIBS=$LIBS
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10467 return shl_load ();
10472 if ac_fn_c_try_link "$LINENO"; then :
10473 ac_cv_lib_dld_shl_load=yes
10475 ac_cv_lib_dld_shl_load=no
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10482 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10483 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10484 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10486 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10487 if test "x$ac_cv_func_dlopen" = xyes; then :
10488 lt_cv_dlopen="dlopen"
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10492 if ${ac_cv_lib_dl_dlopen+:} false; then :
10493 $as_echo_n "(cached) " >&6
10495 ac_check_lib_save_LIBS=$LIBS
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 ac_cv_lib_dl_dlopen=yes
10518 ac_cv_lib_dl_dlopen=no
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10531 if ${ac_cv_lib_svld_dlopen+:} false; then :
10532 $as_echo_n "(cached) " >&6
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lsvld $LIBS"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10554 if ac_fn_c_try_link "$LINENO"; then :
10555 ac_cv_lib_svld_dlopen=yes
10557 ac_cv_lib_svld_dlopen=no
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10565 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10570 if ${ac_cv_lib_dld_dld_link+:} false; then :
10571 $as_echo_n "(cached) " >&6
10573 ac_check_lib_save_LIBS=$LIBS
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10588 return dld_link ();
10593 if ac_fn_c_try_link "$LINENO"; then :
10594 ac_cv_lib_dld_dld_link=yes
10596 ac_cv_lib_dld_dld_link=no
10598 rm -f core conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10626 if test "x$lt_cv_dlopen" != xno; then
10632 case $lt_cv_dlopen in
10634 save_CPPFLAGS="$CPPFLAGS"
10635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10637 save_LDFLAGS="$LDFLAGS"
10638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10641 LIBS="$lt_cv_dlopen_libs $LIBS"
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10644 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10645 if ${lt_cv_dlopen_self+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 if test "$cross_compiling" = yes; then :
10649 lt_cv_dlopen_self=cross
10651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10652 lt_status=$lt_dlunknown
10653 cat > conftest.$ac_ext <<_LT_EOF
10654 #line __oline__ "configure"
10655 #include "confdefs.h"
10664 # define LT_DLGLOBAL RTLD_GLOBAL
10667 # define LT_DLGLOBAL DL_GLOBAL
10669 # define LT_DLGLOBAL 0
10673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10674 find out it does not work in some platform. */
10675 #ifndef LT_DLLAZY_OR_NOW
10677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10680 # define LT_DLLAZY_OR_NOW DL_LAZY
10683 # define LT_DLLAZY_OR_NOW RTLD_NOW
10686 # define LT_DLLAZY_OR_NOW DL_NOW
10688 # define LT_DLLAZY_OR_NOW 0
10695 void fnord() { int i=42;}
10698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699 int status = $lt_dlunknown;
10703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705 /* dlclose (self); */
10713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10714 (eval $ac_link) 2>&5
10716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10718 (./conftest; exit; ) >&5 2>/dev/null
10720 case x$lt_status in
10721 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10722 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10723 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10726 # compilation failed
10727 lt_cv_dlopen_self=no
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10735 $as_echo "$lt_cv_dlopen_self" >&6; }
10737 if test "x$lt_cv_dlopen_self" = xyes; then
10738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10740 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10741 if ${lt_cv_dlopen_self_static+:} false; then :
10742 $as_echo_n "(cached) " >&6
10744 if test "$cross_compiling" = yes; then :
10745 lt_cv_dlopen_self_static=cross
10747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10748 lt_status=$lt_dlunknown
10749 cat > conftest.$ac_ext <<_LT_EOF
10750 #line __oline__ "configure"
10751 #include "confdefs.h"
10760 # define LT_DLGLOBAL RTLD_GLOBAL
10763 # define LT_DLGLOBAL DL_GLOBAL
10765 # define LT_DLGLOBAL 0
10769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10770 find out it does not work in some platform. */
10771 #ifndef LT_DLLAZY_OR_NOW
10773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10776 # define LT_DLLAZY_OR_NOW DL_LAZY
10779 # define LT_DLLAZY_OR_NOW RTLD_NOW
10782 # define LT_DLLAZY_OR_NOW DL_NOW
10784 # define LT_DLLAZY_OR_NOW 0
10791 void fnord() { int i=42;}
10794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10795 int status = $lt_dlunknown;
10799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10800 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10801 /* dlclose (self); */
10809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10810 (eval $ac_link) 2>&5
10812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10814 (./conftest; exit; ) >&5 2>/dev/null
10816 case x$lt_status in
10817 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10818 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10819 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10822 # compilation failed
10823 lt_cv_dlopen_self_static=no
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10831 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10834 CPPFLAGS="$save_CPPFLAGS"
10835 LDFLAGS="$save_LDFLAGS"
10840 case $lt_cv_dlopen_self in
10841 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10842 *) enable_dlopen_self=unknown ;;
10845 case $lt_cv_dlopen_self_static in
10846 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10847 *) enable_dlopen_self_static=unknown ;;
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10870 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10871 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875 $as_echo "yes" >&6; }
10877 # FIXME - insert some real tests, host_os isn't really good enough
10880 if test -n "$STRIP" ; then
10881 striplib="$STRIP -x"
10882 old_striplib="$STRIP -S"
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10908 # Report which library types will actually be built
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10910 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10912 $as_echo "$can_build_shared" >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10915 $as_echo_n "checking whether to build shared libraries... " >&6; }
10916 test "$can_build_shared" = "no" && enable_shared=no
10918 # On AIX, shared libraries and static libraries use the same namespace, and
10919 # are all built from PIC.
10922 test "$enable_shared" = yes && enable_static=no
10923 if test -n "$RANLIB"; then
10924 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10925 postinstall_cmds='$RANLIB $lib'
10930 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10931 test "$enable_shared" = yes && enable_static=no
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10936 $as_echo "$enable_shared" >&6; }
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10939 $as_echo_n "checking whether to build static libraries... " >&6; }
10940 # Make sure either enable_shared or enable_static is yes.
10941 test "$enable_shared" = yes || enable_static=yes
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10943 $as_echo "$enable_static" >&6; }
10950 ac_cpp='$CPP $CPPFLAGS'
10951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969 ac_config_commands="$ac_config_commands libtool"
10974 # Only expand once:
10980 # report on compiler/libtool setup
10982 # make sure "cd" doesn't print anything on stdout
10983 if test x"${CDPATH+set}" = xset
10989 # make sure $() command substitution works
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
10991 $as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
10992 if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 $as_echo "yes" >&6; }
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
10999 uname=`uname 2>&1` # ''
11000 uname_a=`uname -a 2>&1` # ''
11003 * POSIX sh \$() command substition does not work with this shell.
11005 * You are running a very rare species of shell. Please report this
11006 * sighting to <${PACKAGE_BUGREPORT}>:
11009 * uname-a=${uname_a}
11010 * Please also include your OS and version.
11012 * Run this configure script using a better (i.e. POSIX compliant) shell.
11020 gp_config_len3="$(expr "$gp_config_len" - 3)"
11022 while test "$n" -gt 0; do
11023 gp_config_empty="${gp_config_empty} "
11024 n="$(expr "$n" - 1)"
11027 Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
11031 gp_config_msg="${gp_config_msg}
11036 gp_config_msg_len="$(expr "Source directory" : '.*')"
11037 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
11038 gp_config_msg_lhs="$(expr "Source directory" : "\(.\{0,${gp_config_len3}\}\)")..:"
11040 gp_config_msg_lhs="$(expr "Source directory:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
11042 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${srcdir}
11046 gp_config_msg_len="$(expr "Compiler" : '.*')"
11047 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
11048 gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
11050 gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
11052 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${CC}
11055 #GP_CONFIG_MSG([libltdl includes],[$LTDLINCL])
11056 #GP_CONFIG_MSG([libltdl library],[$LIBLTDL])
11059 cat >>confdefs.h <<_ACEOF
11060 @%:@define HAVE_CC "$CC"
11064 AM_CPPFLAGS="$CPPFLAGS"
11065 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
11067 # ----------------------------------------------------------------------
11068 # References to external resources (web sites, mailing listes, etc.)
11069 # ----------------------------------------------------------------------
11074 URL_GPHOTO_HOME="http://www.gphoto.org/"
11077 cat >>confdefs.h <<_ACEOF
11078 @%:@define URL_GPHOTO_HOME "http://www.gphoto.org/"
11083 URL_GPHOTO_PROJECT="http://sourceforge.net/projects/gphoto"
11086 cat >>confdefs.h <<_ACEOF
11087 @%:@define URL_GPHOTO_PROJECT "http://sourceforge.net/projects/gphoto"
11093 URL_DIGICAM_LIST="http://www.teaser.fr/~hfiguiere/linux/digicam.html"
11096 cat >>confdefs.h <<_ACEOF
11097 @%:@define URL_DIGICAM_LIST "http://www.teaser.fr/~hfiguiere/linux/digicam.html"
11103 URL_JPHOTO_HOME="http://jphoto.sourceforge.net/"
11106 cat >>confdefs.h <<_ACEOF
11107 @%:@define URL_JPHOTO_HOME "http://jphoto.sourceforge.net/"
11113 URL_USB_MASSSTORAGE="http://www.linux-usb.org/USB-guide/x498.html"
11116 cat >>confdefs.h <<_ACEOF
11117 @%:@define URL_USB_MASSSTORAGE "http://www.linux-usb.org/USB-guide/x498.html"
11123 MAIL_GPHOTO_DEVEL="<gphoto-devel@lists.sourceforge.net>"
11126 cat >>confdefs.h <<_ACEOF
11127 @%:@define MAIL_GPHOTO_DEVEL "<gphoto-devel@lists.sourceforge.net>"
11133 MAIL_GPHOTO_USER="<gphoto-user@lists.sourceforge.net>"
11136 cat >>confdefs.h <<_ACEOF
11137 @%:@define MAIL_GPHOTO_USER "<gphoto-user@lists.sourceforge.net>"
11143 MAIL_GPHOTO_TRANSLATION="<gphoto-translation@lists.sourceforge.net>"
11146 cat >>confdefs.h <<_ACEOF
11147 @%:@define MAIL_GPHOTO_TRANSLATION "<gphoto-translation@lists.sourceforge.net>"
11157 GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_PORT_CURRENT_MIN}"
11159 cat >>confdefs.h <<_ACEOF
11160 @%:@define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11164 sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
11165 sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = Lutz Mueller and others|"
11167 if test -n "$PACKAGE_BUGREPORT"; then
11168 sed_mb="${PACKAGE_BUGREPORT}"
11171 *** Your configure.{ac,in} is wrong.
11172 *** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
11173 *** or give GP_GETTEXT_HACK the third parameter.
11178 sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
11179 # Not so sure whether this hack is all *that* evil...
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
11181 $as_echo_n "checking for po/Makevars requiring hack... " >&6; }
11182 if test -f "${srcdir}/po/Makevars.template"; then
11183 sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
11185 $as_echo "yes, done." >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11191 ALL_LINGUAS="cs da de fr es eu it ja nl pl pt_BR ru sk sv uk vi zh_CN zh_TW"
11195 if test -n "$ac_aux_dir"; then
11196 case "$ac_aux_dir" in
11197 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11198 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11201 if test -z "$MKINSTALLDIRS"; then
11202 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11208 $as_echo_n "checking whether NLS is requested... " >&6; }
11209 @%:@ Check whether --enable-nls was given.
11210 if test "${enable_nls+set}" = set; then :
11211 enableval=$enable_nls; USE_NLS=$enableval
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11217 $as_echo "$USE_NLS" >&6; }
11224 # Prepare PATH_SEPARATOR.
11225 # The user is always right.
11226 if test "${PATH_SEPARATOR+set}" != set; then
11227 echo "#! /bin/sh" >conf$$.sh
11228 echo "exit 0" >>conf$$.sh
11230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11238 # Find out how to test for executable files. Don't use a zero-byte file,
11239 # as systems may use methods other than mode bits to determine executability.
11240 cat >conf$$.file <<_ASEOF
11244 chmod +x conf$$.file
11245 if test -x conf$$.file >/dev/null 2>&1; then
11246 ac_executable_p="test -x"
11248 ac_executable_p="test -f"
11252 # Extract the first word of "msgfmt", so it can be a program name with args.
11253 set dummy msgfmt; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_path_MSGFMT+:} false; then :
11257 $as_echo_n "(cached) " >&6
11261 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11264 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11265 for ac_dir in $PATH; do
11267 test -z "$ac_dir" && ac_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11270 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11271 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11272 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11279 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11283 MSGFMT="$ac_cv_path_MSGFMT"
11284 if test "$MSGFMT" != ":"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11286 $as_echo "$MSGFMT" >&6; }
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11292 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11293 set dummy gmsgfmt; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_GMSGFMT+:} false; then :
11297 $as_echo_n "(cached) " >&6
11301 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11311 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11323 GMSGFMT=$ac_cv_path_GMSGFMT
11324 if test -n "$GMSGFMT"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11326 $as_echo "$GMSGFMT" >&6; }
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 $as_echo "no" >&6; }
11335 # Prepare PATH_SEPARATOR.
11336 # The user is always right.
11337 if test "${PATH_SEPARATOR+set}" != set; then
11338 echo "#! /bin/sh" >conf$$.sh
11339 echo "exit 0" >>conf$$.sh
11341 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11349 # Find out how to test for executable files. Don't use a zero-byte file,
11350 # as systems may use methods other than mode bits to determine executability.
11351 cat >conf$$.file <<_ASEOF
11355 chmod +x conf$$.file
11356 if test -x conf$$.file >/dev/null 2>&1; then
11357 ac_executable_p="test -x"
11359 ac_executable_p="test -f"
11363 # Extract the first word of "xgettext", so it can be a program name with args.
11364 set dummy xgettext; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_path_XGETTEXT+:} false; then :
11368 $as_echo_n "(cached) " >&6
11370 case "$XGETTEXT" in
11372 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11375 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11376 for ac_dir in $PATH; do
11378 test -z "$ac_dir" && ac_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11381 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11382 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11383 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11390 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11394 XGETTEXT="$ac_cv_path_XGETTEXT"
11395 if test "$XGETTEXT" != ":"; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11397 $as_echo "$XGETTEXT" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11406 # Prepare PATH_SEPARATOR.
11407 # The user is always right.
11408 if test "${PATH_SEPARATOR+set}" != set; then
11409 echo "#! /bin/sh" >conf$$.sh
11410 echo "exit 0" >>conf$$.sh
11412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11420 # Find out how to test for executable files. Don't use a zero-byte file,
11421 # as systems may use methods other than mode bits to determine executability.
11422 cat >conf$$.file <<_ASEOF
11426 chmod +x conf$$.file
11427 if test -x conf$$.file >/dev/null 2>&1; then
11428 ac_executable_p="test -x"
11430 ac_executable_p="test -f"
11434 # Extract the first word of "msgmerge", so it can be a program name with args.
11435 set dummy msgmerge; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_path_MSGMERGE+:} false; then :
11439 $as_echo_n "(cached) " >&6
11441 case "$MSGMERGE" in
11443 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11446 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11447 for ac_dir in $PATH; do
11449 test -z "$ac_dir" && ac_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11452 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11453 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11460 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11464 MSGMERGE="$ac_cv_path_MSGMERGE"
11465 if test "$MSGMERGE" != ":"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11467 $as_echo "$MSGMERGE" >&6; }
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11474 if test "$GMSGFMT" != ":"; then
11475 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11476 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11479 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11481 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11486 if test "$XGETTEXT" != ":"; then
11487 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11488 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11492 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11498 ac_config_commands="$ac_config_commands default-1"
11502 if test "X$prefix" = "XNONE"; then
11503 acl_final_prefix="$ac_default_prefix"
11505 acl_final_prefix="$prefix"
11507 if test "X$exec_prefix" = "XNONE"; then
11508 acl_final_exec_prefix='${prefix}'
11510 acl_final_exec_prefix="$exec_prefix"
11512 acl_save_prefix="$prefix"
11513 prefix="$acl_final_prefix"
11514 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11515 prefix="$acl_save_prefix"
11518 @%:@ Check whether --with-gnu-ld was given.
11519 if test "${with_gnu_ld+set}" = set; then :
11520 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11525 # Prepare PATH_SEPARATOR.
11526 # The user is always right.
11527 if test "${PATH_SEPARATOR+set}" != set; then
11528 echo "#! /bin/sh" >conf$$.sh
11529 echo "exit 0" >>conf$$.sh
11531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11539 if test "$GCC" = yes; then
11540 # Check if gcc -print-prog-name=ld gives a path.
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11542 $as_echo_n "checking for ld used by GCC... " >&6; }
11545 # gcc leaves a trailing carriage return which upsets mingw
11546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11551 # Accept absolute paths.
11552 [\\/]* | [A-Za-z]:[\\/]*)
11553 re_direlt='/[^/][^/]*/\.\./'
11554 # Canonicalize the path of ld
11555 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11556 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11557 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11559 test -z "$LD" && LD="$ac_prog"
11562 # If it fails, then pretend we aren't using GCC.
11566 # If it is relative, then search for the first ld in PATH.
11567 with_gnu_ld=unknown
11570 elif test "$with_gnu_ld" = yes; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11572 $as_echo_n "checking for GNU ld... " >&6; }
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11575 $as_echo_n "checking for non-GNU ld... " >&6; }
11577 if ${acl_cv_path_LD+:} false; then :
11578 $as_echo_n "(cached) " >&6
11580 if test -z "$LD"; then
11581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11582 for ac_dir in $PATH; do
11583 test -z "$ac_dir" && ac_dir=.
11584 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11585 acl_cv_path_LD="$ac_dir/$ac_prog"
11586 # Check to see if the program is GNU ld. I'd rather use --version,
11587 # but apparently some GNU ld's only accept -v.
11588 # Break only if it was the GNU/non-GNU ld that we prefer.
11589 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11590 *GNU* | *'with BFD'*)
11591 test "$with_gnu_ld" != no && break ;;
11593 test "$with_gnu_ld" != yes && break ;;
11599 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11603 LD="$acl_cv_path_LD"
11604 if test -n "$LD"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11606 $as_echo "$LD" >&6; }
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11611 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11613 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11614 if ${acl_cv_prog_gnu_ld+:} false; then :
11615 $as_echo_n "(cached) " >&6
11617 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11618 case `$LD -v 2>&1 </dev/null` in
11619 *GNU* | *'with BFD'*)
11620 acl_cv_prog_gnu_ld=yes ;;
11622 acl_cv_prog_gnu_ld=no ;;
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11626 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11627 with_gnu_ld=$acl_cv_prog_gnu_ld
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11632 $as_echo_n "checking for shared library run path origin... " >&6; }
11633 if ${acl_cv_rpath+:} false; then :
11634 $as_echo_n "(cached) " >&6
11637 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11638 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11640 rm -f ./conftest.sh
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11645 $as_echo "$acl_cv_rpath" >&6; }
11647 libext="$acl_cv_libext"
11648 shlibext="$acl_cv_shlibext"
11649 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11650 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11651 hardcode_direct="$acl_cv_hardcode_direct"
11652 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11653 @%:@ Check whether --enable-rpath was given.
11654 if test "${enable_rpath+set}" = set; then :
11655 enableval=$enable_rpath; :
11669 acl_save_prefix="$prefix"
11670 prefix="$acl_final_prefix"
11671 acl_save_exec_prefix="$exec_prefix"
11672 exec_prefix="$acl_final_exec_prefix"
11674 eval additional_includedir=\"$includedir\"
11675 eval additional_libdir=\"$libdir\"
11677 exec_prefix="$acl_save_exec_prefix"
11678 prefix="$acl_save_prefix"
11681 @%:@ Check whether --with-libiconv-prefix was given.
11682 if test "${with_libiconv_prefix+set}" = set; then :
11683 withval=$with_libiconv_prefix;
11684 if test "X$withval" = "Xno"; then
11687 if test "X$withval" = "X"; then
11689 acl_save_prefix="$prefix"
11690 prefix="$acl_final_prefix"
11691 acl_save_exec_prefix="$exec_prefix"
11692 exec_prefix="$acl_final_exec_prefix"
11694 eval additional_includedir=\"$includedir\"
11695 eval additional_libdir=\"$libdir\"
11697 exec_prefix="$acl_save_exec_prefix"
11698 prefix="$acl_save_prefix"
11701 additional_includedir="$withval/include"
11702 additional_libdir="$withval/lib"
11713 names_already_handled=
11714 names_next_round='iconv '
11715 while test -n "$names_next_round"; do
11716 names_this_round="$names_next_round"
11718 for name in $names_this_round; do
11720 for n in $names_already_handled; do
11721 if test "$n" = "$name"; then
11722 already_handled=yes
11726 if test -z "$already_handled"; then
11727 names_already_handled="$names_already_handled $name"
11728 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11729 eval value=\"\$HAVE_LIB$uppername\"
11730 if test -n "$value"; then
11731 if test "$value" = yes; then
11732 eval value=\"\$LIB$uppername\"
11733 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11734 eval value=\"\$LTLIB$uppername\"
11735 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11744 if test $use_additional = yes; then
11745 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11746 found_dir="$additional_libdir"
11747 found_so="$additional_libdir/lib$name.$shlibext"
11748 if test -f "$additional_libdir/lib$name.la"; then
11749 found_la="$additional_libdir/lib$name.la"
11752 if test -f "$additional_libdir/lib$name.$libext"; then
11753 found_dir="$additional_libdir"
11754 found_a="$additional_libdir/lib$name.$libext"
11755 if test -f "$additional_libdir/lib$name.la"; then
11756 found_la="$additional_libdir/lib$name.la"
11761 if test "X$found_dir" = "X"; then
11762 for x in $LDFLAGS $LTLIBICONV; do
11764 acl_save_prefix="$prefix"
11765 prefix="$acl_final_prefix"
11766 acl_save_exec_prefix="$exec_prefix"
11767 exec_prefix="$acl_final_exec_prefix"
11769 exec_prefix="$acl_save_exec_prefix"
11770 prefix="$acl_save_prefix"
11774 dir=`echo "X$x" | sed -e 's/^X-L//'`
11775 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11777 found_so="$dir/lib$name.$shlibext"
11778 if test -f "$dir/lib$name.la"; then
11779 found_la="$dir/lib$name.la"
11782 if test -f "$dir/lib$name.$libext"; then
11784 found_a="$dir/lib$name.$libext"
11785 if test -f "$dir/lib$name.la"; then
11786 found_la="$dir/lib$name.la"
11792 if test "X$found_dir" != "X"; then
11797 if test "X$found_dir" != "X"; then
11798 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11799 if test "X$found_so" != "X"; then
11800 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11804 for x in $ltrpathdirs; do
11805 if test "X$x" = "X$found_dir"; then
11810 if test -z "$haveit"; then
11811 ltrpathdirs="$ltrpathdirs $found_dir"
11813 if test "$hardcode_direct" = yes; then
11814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11816 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11819 for x in $rpathdirs; do
11820 if test "X$x" = "X$found_dir"; then
11825 if test -z "$haveit"; then
11826 rpathdirs="$rpathdirs $found_dir"
11830 for x in $LDFLAGS $LIBICONV; do
11832 acl_save_prefix="$prefix"
11833 prefix="$acl_final_prefix"
11834 acl_save_exec_prefix="$exec_prefix"
11835 exec_prefix="$acl_final_exec_prefix"
11837 exec_prefix="$acl_save_exec_prefix"
11838 prefix="$acl_save_prefix"
11840 if test "X$x" = "X-L$found_dir"; then
11845 if test -z "$haveit"; then
11846 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11848 if test "$hardcode_minus_L" != no; then
11849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11851 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11857 if test "X$found_a" != "X"; then
11858 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11860 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11863 additional_includedir=
11864 case "$found_dir" in
11866 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11867 additional_includedir="$basedir/include"
11870 if test "X$additional_includedir" != "X"; then
11871 if test "X$additional_includedir" != "X/usr/include"; then
11873 if test "X$additional_includedir" = "X/usr/local/include"; then
11874 if test -n "$GCC"; then
11876 linux*) haveit=yes;;
11880 if test -z "$haveit"; then
11881 for x in $CPPFLAGS $INCICONV; do
11883 acl_save_prefix="$prefix"
11884 prefix="$acl_final_prefix"
11885 acl_save_exec_prefix="$exec_prefix"
11886 exec_prefix="$acl_final_exec_prefix"
11888 exec_prefix="$acl_save_exec_prefix"
11889 prefix="$acl_save_prefix"
11891 if test "X$x" = "X-I$additional_includedir"; then
11896 if test -z "$haveit"; then
11897 if test -d "$additional_includedir"; then
11898 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11904 if test -n "$found_la"; then
11905 save_libdir="$libdir"
11906 case "$found_la" in
11907 */* | *\\*) . "$found_la" ;;
11908 *) . "./$found_la" ;;
11910 libdir="$save_libdir"
11911 for dep in $dependency_libs; do
11914 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11915 if test "X$additional_libdir" != "X/usr/lib"; then
11917 if test "X$additional_libdir" = "X/usr/local/lib"; then
11918 if test -n "$GCC"; then
11920 linux*) haveit=yes;;
11924 if test -z "$haveit"; then
11926 for x in $LDFLAGS $LIBICONV; do
11928 acl_save_prefix="$prefix"
11929 prefix="$acl_final_prefix"
11930 acl_save_exec_prefix="$exec_prefix"
11931 exec_prefix="$acl_final_exec_prefix"
11933 exec_prefix="$acl_save_exec_prefix"
11934 prefix="$acl_save_prefix"
11936 if test "X$x" = "X-L$additional_libdir"; then
11941 if test -z "$haveit"; then
11942 if test -d "$additional_libdir"; then
11943 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11947 for x in $LDFLAGS $LTLIBICONV; do
11949 acl_save_prefix="$prefix"
11950 prefix="$acl_final_prefix"
11951 acl_save_exec_prefix="$exec_prefix"
11952 exec_prefix="$acl_final_exec_prefix"
11954 exec_prefix="$acl_save_exec_prefix"
11955 prefix="$acl_save_prefix"
11957 if test "X$x" = "X-L$additional_libdir"; then
11962 if test -z "$haveit"; then
11963 if test -d "$additional_libdir"; then
11964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11971 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11972 if test "$enable_rpath" != no; then
11974 for x in $rpathdirs; do
11975 if test "X$x" = "X$dir"; then
11980 if test -z "$haveit"; then
11981 rpathdirs="$rpathdirs $dir"
11984 for x in $ltrpathdirs; do
11985 if test "X$x" = "X$dir"; then
11990 if test -z "$haveit"; then
11991 ltrpathdirs="$ltrpathdirs $dir"
11996 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11999 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12002 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12009 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12016 if test "X$rpathdirs" != "X"; then
12017 if test -n "$hardcode_libdir_separator"; then
12019 for found_dir in $rpathdirs; do
12020 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12022 acl_save_libdir="$libdir"
12024 eval flag=\"$hardcode_libdir_flag_spec\"
12025 libdir="$acl_save_libdir"
12026 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12028 for found_dir in $rpathdirs; do
12029 acl_save_libdir="$libdir"
12030 libdir="$found_dir"
12031 eval flag=\"$hardcode_libdir_flag_spec\"
12032 libdir="$acl_save_libdir"
12033 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12037 if test "X$ltrpathdirs" != "X"; then
12038 for found_dir in $ltrpathdirs; do
12039 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12061 $as_echo_n "checking whether NLS is requested... " >&6; }
12062 @%:@ Check whether --enable-nls was given.
12063 if test "${enable_nls+set}" = set; then :
12064 enableval=$enable_nls; USE_NLS=$enableval
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12070 $as_echo "$USE_NLS" >&6; }
12079 if test "$USE_NLS" = "yes"; then
12080 gt_use_preinstalled_gnugettext=no
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12088 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12089 if ${gt_cv_func_gnugettext1_libc+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 #include <libintl.h>
12095 extern int _nl_msg_cat_cntr;
12096 extern int *_nl_domain_bindings;
12100 bindtextdomain ("", "");
12101 return (long) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 gt_cv_func_gnugettext1_libc=yes
12109 gt_cv_func_gnugettext1_libc=no
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
12115 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
12117 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12123 am_save_CPPFLAGS="$CPPFLAGS"
12125 for element in $INCICONV; do
12127 for x in $CPPFLAGS; do
12129 acl_save_prefix="$prefix"
12130 prefix="$acl_final_prefix"
12131 acl_save_exec_prefix="$exec_prefix"
12132 exec_prefix="$acl_final_exec_prefix"
12134 exec_prefix="$acl_save_exec_prefix"
12135 prefix="$acl_save_prefix"
12137 if test "X$x" = "X$element"; then
12142 if test -z "$haveit"; then
12143 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12149 $as_echo_n "checking for iconv... " >&6; }
12150 if ${am_cv_func_iconv+:} false; then :
12151 $as_echo_n "(cached) " >&6
12154 am_cv_func_iconv="no, consider installing GNU libiconv"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 #include <stdlib.h>
12163 iconv_t cd = iconv_open("","");
12164 iconv(cd,NULL,NULL,NULL,NULL);
12170 if ac_fn_c_try_link "$LINENO"; then :
12171 am_cv_func_iconv=yes
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 if test "$am_cv_func_iconv" != yes; then
12176 am_save_LIBS="$LIBS"
12177 LIBS="$LIBS $LIBICONV"
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 #include <stdlib.h>
12185 iconv_t cd = iconv_open("","");
12186 iconv(cd,NULL,NULL,NULL,NULL);
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 am_cv_lib_iconv=yes
12194 am_cv_func_iconv=yes
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS="$am_save_LIBS"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12203 $as_echo "$am_cv_func_iconv" >&6; }
12204 if test "$am_cv_func_iconv" = yes; then
12206 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
12209 if test "$am_cv_lib_iconv" = yes; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12211 $as_echo_n "checking how to link with libiconv... " >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12213 $as_echo "$LIBICONV" >&6; }
12215 CPPFLAGS="$am_save_CPPFLAGS"
12227 acl_save_prefix="$prefix"
12228 prefix="$acl_final_prefix"
12229 acl_save_exec_prefix="$exec_prefix"
12230 exec_prefix="$acl_final_exec_prefix"
12232 eval additional_includedir=\"$includedir\"
12233 eval additional_libdir=\"$libdir\"
12235 exec_prefix="$acl_save_exec_prefix"
12236 prefix="$acl_save_prefix"
12239 @%:@ Check whether --with-libintl-prefix was given.
12240 if test "${with_libintl_prefix+set}" = set; then :
12241 withval=$with_libintl_prefix;
12242 if test "X$withval" = "Xno"; then
12245 if test "X$withval" = "X"; then
12247 acl_save_prefix="$prefix"
12248 prefix="$acl_final_prefix"
12249 acl_save_exec_prefix="$exec_prefix"
12250 exec_prefix="$acl_final_exec_prefix"
12252 eval additional_includedir=\"$includedir\"
12253 eval additional_libdir=\"$libdir\"
12255 exec_prefix="$acl_save_exec_prefix"
12256 prefix="$acl_save_prefix"
12259 additional_includedir="$withval/include"
12260 additional_libdir="$withval/lib"
12271 names_already_handled=
12272 names_next_round='intl '
12273 while test -n "$names_next_round"; do
12274 names_this_round="$names_next_round"
12276 for name in $names_this_round; do
12278 for n in $names_already_handled; do
12279 if test "$n" = "$name"; then
12280 already_handled=yes
12284 if test -z "$already_handled"; then
12285 names_already_handled="$names_already_handled $name"
12286 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12287 eval value=\"\$HAVE_LIB$uppername\"
12288 if test -n "$value"; then
12289 if test "$value" = yes; then
12290 eval value=\"\$LIB$uppername\"
12291 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12292 eval value=\"\$LTLIB$uppername\"
12293 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12302 if test $use_additional = yes; then
12303 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12304 found_dir="$additional_libdir"
12305 found_so="$additional_libdir/lib$name.$shlibext"
12306 if test -f "$additional_libdir/lib$name.la"; then
12307 found_la="$additional_libdir/lib$name.la"
12310 if test -f "$additional_libdir/lib$name.$libext"; then
12311 found_dir="$additional_libdir"
12312 found_a="$additional_libdir/lib$name.$libext"
12313 if test -f "$additional_libdir/lib$name.la"; then
12314 found_la="$additional_libdir/lib$name.la"
12319 if test "X$found_dir" = "X"; then
12320 for x in $LDFLAGS $LTLIBINTL; do
12322 acl_save_prefix="$prefix"
12323 prefix="$acl_final_prefix"
12324 acl_save_exec_prefix="$exec_prefix"
12325 exec_prefix="$acl_final_exec_prefix"
12327 exec_prefix="$acl_save_exec_prefix"
12328 prefix="$acl_save_prefix"
12332 dir=`echo "X$x" | sed -e 's/^X-L//'`
12333 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12335 found_so="$dir/lib$name.$shlibext"
12336 if test -f "$dir/lib$name.la"; then
12337 found_la="$dir/lib$name.la"
12340 if test -f "$dir/lib$name.$libext"; then
12342 found_a="$dir/lib$name.$libext"
12343 if test -f "$dir/lib$name.la"; then
12344 found_la="$dir/lib$name.la"
12350 if test "X$found_dir" != "X"; then
12355 if test "X$found_dir" != "X"; then
12356 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12357 if test "X$found_so" != "X"; then
12358 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12359 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12362 for x in $ltrpathdirs; do
12363 if test "X$x" = "X$found_dir"; then
12368 if test -z "$haveit"; then
12369 ltrpathdirs="$ltrpathdirs $found_dir"
12371 if test "$hardcode_direct" = yes; then
12372 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12374 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12375 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12377 for x in $rpathdirs; do
12378 if test "X$x" = "X$found_dir"; then
12383 if test -z "$haveit"; then
12384 rpathdirs="$rpathdirs $found_dir"
12388 for x in $LDFLAGS $LIBINTL; do
12390 acl_save_prefix="$prefix"
12391 prefix="$acl_final_prefix"
12392 acl_save_exec_prefix="$exec_prefix"
12393 exec_prefix="$acl_final_exec_prefix"
12395 exec_prefix="$acl_save_exec_prefix"
12396 prefix="$acl_save_prefix"
12398 if test "X$x" = "X-L$found_dir"; then
12403 if test -z "$haveit"; then
12404 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12406 if test "$hardcode_minus_L" != no; then
12407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12409 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12415 if test "X$found_a" != "X"; then
12416 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12421 additional_includedir=
12422 case "$found_dir" in
12424 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12425 additional_includedir="$basedir/include"
12428 if test "X$additional_includedir" != "X"; then
12429 if test "X$additional_includedir" != "X/usr/include"; then
12431 if test "X$additional_includedir" = "X/usr/local/include"; then
12432 if test -n "$GCC"; then
12434 linux*) haveit=yes;;
12438 if test -z "$haveit"; then
12439 for x in $CPPFLAGS $INCINTL; do
12441 acl_save_prefix="$prefix"
12442 prefix="$acl_final_prefix"
12443 acl_save_exec_prefix="$exec_prefix"
12444 exec_prefix="$acl_final_exec_prefix"
12446 exec_prefix="$acl_save_exec_prefix"
12447 prefix="$acl_save_prefix"
12449 if test "X$x" = "X-I$additional_includedir"; then
12454 if test -z "$haveit"; then
12455 if test -d "$additional_includedir"; then
12456 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12462 if test -n "$found_la"; then
12463 save_libdir="$libdir"
12464 case "$found_la" in
12465 */* | *\\*) . "$found_la" ;;
12466 *) . "./$found_la" ;;
12468 libdir="$save_libdir"
12469 for dep in $dependency_libs; do
12472 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12473 if test "X$additional_libdir" != "X/usr/lib"; then
12475 if test "X$additional_libdir" = "X/usr/local/lib"; then
12476 if test -n "$GCC"; then
12478 linux*) haveit=yes;;
12482 if test -z "$haveit"; then
12484 for x in $LDFLAGS $LIBINTL; do
12486 acl_save_prefix="$prefix"
12487 prefix="$acl_final_prefix"
12488 acl_save_exec_prefix="$exec_prefix"
12489 exec_prefix="$acl_final_exec_prefix"
12491 exec_prefix="$acl_save_exec_prefix"
12492 prefix="$acl_save_prefix"
12494 if test "X$x" = "X-L$additional_libdir"; then
12499 if test -z "$haveit"; then
12500 if test -d "$additional_libdir"; then
12501 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12505 for x in $LDFLAGS $LTLIBINTL; do
12507 acl_save_prefix="$prefix"
12508 prefix="$acl_final_prefix"
12509 acl_save_exec_prefix="$exec_prefix"
12510 exec_prefix="$acl_final_exec_prefix"
12512 exec_prefix="$acl_save_exec_prefix"
12513 prefix="$acl_save_prefix"
12515 if test "X$x" = "X-L$additional_libdir"; then
12520 if test -z "$haveit"; then
12521 if test -d "$additional_libdir"; then
12522 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12529 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12530 if test "$enable_rpath" != no; then
12532 for x in $rpathdirs; do
12533 if test "X$x" = "X$dir"; then
12538 if test -z "$haveit"; then
12539 rpathdirs="$rpathdirs $dir"
12542 for x in $ltrpathdirs; do
12543 if test "X$x" = "X$dir"; then
12548 if test -z "$haveit"; then
12549 ltrpathdirs="$ltrpathdirs $dir"
12554 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12557 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12560 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12561 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12567 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12574 if test "X$rpathdirs" != "X"; then
12575 if test -n "$hardcode_libdir_separator"; then
12577 for found_dir in $rpathdirs; do
12578 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12580 acl_save_libdir="$libdir"
12582 eval flag=\"$hardcode_libdir_flag_spec\"
12583 libdir="$acl_save_libdir"
12584 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12586 for found_dir in $rpathdirs; do
12587 acl_save_libdir="$libdir"
12588 libdir="$found_dir"
12589 eval flag=\"$hardcode_libdir_flag_spec\"
12590 libdir="$acl_save_libdir"
12591 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12595 if test "X$ltrpathdirs" != "X"; then
12596 for found_dir in $ltrpathdirs; do
12597 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12602 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12603 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
12604 $as_echo_n "(cached) " >&6
12606 gt_save_CPPFLAGS="$CPPFLAGS"
12607 CPPFLAGS="$CPPFLAGS $INCINTL"
12608 gt_save_LIBS="$LIBS"
12609 LIBS="$LIBS $LIBINTL"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <libintl.h>
12613 extern int _nl_msg_cat_cntr;
12618 const char *_nl_expand_alias ();
12622 bindtextdomain ("", "");
12623 return (long) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 gt_cv_func_gnugettext1_libintl=yes
12631 gt_cv_func_gnugettext1_libintl=no
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12636 LIBS="$LIBS $LIBICONV"
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639 #include <libintl.h>
12640 extern int _nl_msg_cat_cntr;
12645 const char *_nl_expand_alias ();
12649 bindtextdomain ("", "");
12650 return (long) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12655 if ac_fn_c_try_link "$LINENO"; then :
12656 LIBINTL="$LIBINTL $LIBICONV"
12657 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12658 gt_cv_func_gnugettext1_libintl=yes
12661 rm -f core conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12664 CPPFLAGS="$gt_save_CPPFLAGS"
12665 LIBS="$gt_save_LIBS"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
12668 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
12671 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12672 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12673 && test "$PACKAGE" != gettext-runtime \
12674 && test "$PACKAGE" != gettext-tools; }; then
12675 gt_use_preinstalled_gnugettext=yes
12684 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12685 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12687 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12695 $as_echo_n "checking whether to use NLS... " >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12697 $as_echo "$USE_NLS" >&6; }
12698 if test "$USE_NLS" = "yes"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12700 $as_echo_n "checking where the gettext function comes from... " >&6; }
12701 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12702 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12703 gt_source="external libintl"
12708 gt_source="included intl directory"
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12711 $as_echo "$gt_source" >&6; }
12714 if test "$USE_NLS" = "yes"; then
12716 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12717 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12719 $as_echo_n "checking how to link with libintl... " >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12721 $as_echo "$LIBINTL" >&6; }
12723 for element in $INCINTL; do
12725 for x in $CPPFLAGS; do
12727 acl_save_prefix="$prefix"
12728 prefix="$acl_final_prefix"
12729 acl_save_exec_prefix="$exec_prefix"
12730 exec_prefix="$acl_final_exec_prefix"
12732 exec_prefix="$acl_save_exec_prefix"
12733 prefix="$acl_save_prefix"
12735 if test "X$x" = "X$element"; then
12740 if test -z "$haveit"; then
12741 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12748 $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
12751 $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
12760 INTLLIBS="$LIBINTL"
12771 # Prepare PATH_SEPARATOR.
12772 # The user is always right.
12773 if test "${PATH_SEPARATOR+set}" != set; then
12774 echo "#! /bin/sh" >conf$$.sh
12775 echo "exit 0" >>conf$$.sh
12777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12785 # Find out how to test for executable files. Don't use a zero-byte file,
12786 # as systems may use methods other than mode bits to determine executability.
12787 cat >conf$$.file <<_ASEOF
12791 chmod +x conf$$.file
12792 if test -x conf$$.file >/dev/null 2>&1; then
12793 ac_executable_p="test -x"
12795 ac_executable_p="test -f"
12799 # Extract the first word of "msgfmt", so it can be a program name with args.
12800 set dummy msgfmt; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_path_MSGFMT+:} false; then :
12804 $as_echo_n "(cached) " >&6
12808 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12811 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12812 for ac_dir in $PATH; do
12814 test -z "$ac_dir" && ac_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12817 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12818 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12819 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12826 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12830 MSGFMT="$ac_cv_path_MSGFMT"
12831 if test "$MSGFMT" != ":"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12833 $as_echo "$MSGFMT" >&6; }
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12839 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12840 set dummy gmsgfmt; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_path_GMSGFMT+:} false; then :
12844 $as_echo_n "(cached) " >&6
12848 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12870 GMSGFMT=$ac_cv_path_GMSGFMT
12871 if test -n "$GMSGFMT"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12873 $as_echo "$GMSGFMT" >&6; }
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12882 # Prepare PATH_SEPARATOR.
12883 # The user is always right.
12884 if test "${PATH_SEPARATOR+set}" != set; then
12885 echo "#! /bin/sh" >conf$$.sh
12886 echo "exit 0" >>conf$$.sh
12888 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12896 # Find out how to test for executable files. Don't use a zero-byte file,
12897 # as systems may use methods other than mode bits to determine executability.
12898 cat >conf$$.file <<_ASEOF
12902 chmod +x conf$$.file
12903 if test -x conf$$.file >/dev/null 2>&1; then
12904 ac_executable_p="test -x"
12906 ac_executable_p="test -f"
12910 # Extract the first word of "xgettext", so it can be a program name with args.
12911 set dummy xgettext; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if ${ac_cv_path_XGETTEXT+:} false; then :
12915 $as_echo_n "(cached) " >&6
12917 case "$XGETTEXT" in
12919 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12922 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12923 for ac_dir in $PATH; do
12925 test -z "$ac_dir" && ac_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12928 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12929 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12930 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12937 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12941 XGETTEXT="$ac_cv_path_XGETTEXT"
12942 if test "$XGETTEXT" != ":"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12944 $as_echo "$XGETTEXT" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12953 # Prepare PATH_SEPARATOR.
12954 # The user is always right.
12955 if test "${PATH_SEPARATOR+set}" != set; then
12956 echo "#! /bin/sh" >conf$$.sh
12957 echo "exit 0" >>conf$$.sh
12959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12967 # Find out how to test for executable files. Don't use a zero-byte file,
12968 # as systems may use methods other than mode bits to determine executability.
12969 cat >conf$$.file <<_ASEOF
12973 chmod +x conf$$.file
12974 if test -x conf$$.file >/dev/null 2>&1; then
12975 ac_executable_p="test -x"
12977 ac_executable_p="test -f"
12981 # Extract the first word of "msgmerge", so it can be a program name with args.
12982 set dummy msgmerge; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_path_MSGMERGE+:} false; then :
12986 $as_echo_n "(cached) " >&6
12988 case "$MSGMERGE" in
12990 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12993 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12994 for ac_dir in $PATH; do
12996 test -z "$ac_dir" && ac_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12999 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13000 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13007 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13011 MSGMERGE="$ac_cv_path_MSGMERGE"
13012 if test "$MSGMERGE" != ":"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13014 $as_echo "$MSGMERGE" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13021 if test "$GMSGFMT" != ":"; then
13022 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13023 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13026 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13028 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13033 if test "$XGETTEXT" != ":"; then
13034 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13035 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13039 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13045 ac_config_commands="$ac_config_commands default-2"
13053 am_save_CPPFLAGS="$CPPFLAGS"
13055 for element in $INCICONV; do
13057 for x in $CPPFLAGS; do
13059 acl_save_prefix="$prefix"
13060 prefix="$acl_final_prefix"
13061 acl_save_exec_prefix="$exec_prefix"
13062 exec_prefix="$acl_final_exec_prefix"
13064 exec_prefix="$acl_save_exec_prefix"
13065 prefix="$acl_save_prefix"
13067 if test "X$x" = "X$element"; then
13072 if test -z "$haveit"; then
13073 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13079 $as_echo_n "checking for iconv... " >&6; }
13080 if ${am_cv_func_iconv+:} false; then :
13081 $as_echo_n "(cached) " >&6
13084 am_cv_func_iconv="no, consider installing GNU libiconv"
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 #include <stdlib.h>
13093 iconv_t cd = iconv_open("","");
13094 iconv(cd,NULL,NULL,NULL,NULL);
13100 if ac_fn_c_try_link "$LINENO"; then :
13101 am_cv_func_iconv=yes
13103 rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105 if test "$am_cv_func_iconv" != yes; then
13106 am_save_LIBS="$LIBS"
13107 LIBS="$LIBS $LIBICONV"
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 #include <stdlib.h>
13115 iconv_t cd = iconv_open("","");
13116 iconv(cd,NULL,NULL,NULL,NULL);
13122 if ac_fn_c_try_link "$LINENO"; then :
13123 am_cv_lib_iconv=yes
13124 am_cv_func_iconv=yes
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS="$am_save_LIBS"
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13133 $as_echo "$am_cv_func_iconv" >&6; }
13134 if test "$am_cv_func_iconv" = yes; then
13136 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
13139 if test "$am_cv_lib_iconv" = yes; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13141 $as_echo_n "checking how to link with libiconv... " >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13143 $as_echo "$LIBICONV" >&6; }
13145 CPPFLAGS="$am_save_CPPFLAGS"
13152 if test "$am_cv_func_iconv" = yes; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13154 $as_echo_n "checking for iconv declaration... " >&6; }
13155 if ${am_cv_proto_iconv+:} false; then :
13156 $as_echo_n "(cached) " >&6
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13162 #include <stdlib.h>
13168 #if defined(__STDC__) || defined(__cplusplus)
13169 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183 am_cv_proto_iconv_arg1=""
13185 am_cv_proto_iconv_arg1="const"
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13191 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13193 }$am_cv_proto_iconv" >&5
13195 }$am_cv_proto_iconv" >&6; }
13197 cat >>confdefs.h <<_ACEOF
13198 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
13206 if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
13207 AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
13210 gp_config_msg_len="$(expr "Use translations" : '.*')"
13211 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
13212 gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
13214 gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
13216 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${USE_NLS}
13219 if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
13221 gp_config_msg_len="$(expr "Use included libintl" : '.*')"
13222 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
13223 gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
13225 gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
13227 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
13233 localedir="\$(datadir)/locale"
13235 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
13237 ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
13238 if test "x$ac_cv_func_gettext" = xyes; then :
13239 gettext_without_libintl=true
13242 # same trick as with libdl in libgphoto2:
13243 # if gettext() doesn't require linking against libintl,
13244 # we don't have to check for gettext in libintl. Otherwise
13245 # we may even require libintl.
13246 if test "$gettext_without_libintl" != "true" -a "$USE_NLS" = "yes"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
13248 $as_echo_n "checking for gettext in -lintl... " >&6; }
13249 if ${ac_cv_lib_intl_gettext+:} false; then :
13250 $as_echo_n "(cached) " >&6
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-lintl $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_intl_gettext=yes
13275 ac_cv_lib_intl_gettext=no
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
13282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
13283 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
13284 INTLLIBS="$INTLLIBS -lintl"
13290 ac_header_dirent=no
13291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13292 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13294 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13295 if eval \${$as_ac_Header+:} false; then :
13296 $as_echo_n "(cached) " >&6
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h>
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313 eval "$as_ac_Header=yes"
13315 eval "$as_ac_Header=no"
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 eval ac_res=\$$as_ac_Header
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13321 $as_echo "$ac_res" >&6; }
13322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13323 cat >>confdefs.h <<_ACEOF
13324 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13327 ac_header_dirent=$ac_hdr; break
13331 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13332 if test $ac_header_dirent = dirent.h; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13334 $as_echo_n "checking for library containing opendir... " >&6; }
13335 if ${ac_cv_search_opendir+:} false; then :
13336 $as_echo_n "(cached) " >&6
13338 ac_func_search_save_LIBS=$LIBS
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13342 /* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13357 for ac_lib in '' dir; do
13358 if test -z "$ac_lib"; then
13359 ac_res="none required"
13362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13364 if ac_fn_c_try_link "$LINENO"; then :
13365 ac_cv_search_opendir=$ac_res
13367 rm -f core conftest.err conftest.$ac_objext \
13369 if ${ac_cv_search_opendir+:} false; then :
13373 if ${ac_cv_search_opendir+:} false; then :
13376 ac_cv_search_opendir=no
13378 rm conftest.$ac_ext
13379 LIBS=$ac_func_search_save_LIBS
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13382 $as_echo "$ac_cv_search_opendir" >&6; }
13383 ac_res=$ac_cv_search_opendir
13384 if test "$ac_res" != no; then :
13385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13391 $as_echo_n "checking for library containing opendir... " >&6; }
13392 if ${ac_cv_search_opendir+:} false; then :
13393 $as_echo_n "(cached) " >&6
13395 ac_func_search_save_LIBS=$LIBS
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13414 for ac_lib in '' x; do
13415 if test -z "$ac_lib"; then
13416 ac_res="none required"
13419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13421 if ac_fn_c_try_link "$LINENO"; then :
13422 ac_cv_search_opendir=$ac_res
13424 rm -f core conftest.err conftest.$ac_objext \
13426 if ${ac_cv_search_opendir+:} false; then :
13430 if ${ac_cv_search_opendir+:} false; then :
13433 ac_cv_search_opendir=no
13435 rm conftest.$ac_ext
13436 LIBS=$ac_func_search_save_LIBS
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13439 $as_echo "$ac_cv_search_opendir" >&6; }
13440 ac_res=$ac_cv_search_opendir
13441 if test "$ac_res" != no; then :
13442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13449 $as_echo_n "checking for ANSI C header files... " >&6; }
13450 if ${ac_cv_header_stdc+:} false; then :
13451 $as_echo_n "(cached) " >&6
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <stdlib.h>
13456 #include <stdarg.h>
13457 #include <string.h>
13468 if ac_fn_c_try_compile "$LINENO"; then :
13469 ac_cv_header_stdc=yes
13471 ac_cv_header_stdc=no
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 if test $ac_cv_header_stdc = yes; then
13476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <string.h>
13482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13483 $EGREP "memchr" >/dev/null 2>&1; then :
13486 ac_cv_header_stdc=no
13492 if test $ac_cv_header_stdc = yes; then
13493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 #include <stdlib.h>
13499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500 $EGREP "free" >/dev/null 2>&1; then :
13503 ac_cv_header_stdc=no
13509 if test $ac_cv_header_stdc = yes; then
13510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13511 if test "$cross_compiling" = yes; then :
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13517 #include <stdlib.h>
13518 #if ((' ' & 0x0FF) == 0x020)
13519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13522 # define ISLOWER(c) \
13523 (('a' <= (c) && (c) <= 'i') \
13524 || ('j' <= (c) && (c) <= 'r') \
13525 || ('s' <= (c) && (c) <= 'z'))
13526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13534 for (i = 0; i < 256; i++)
13535 if (XOR (islower (i), ISLOWER (i))
13536 || toupper (i) != TOUPPER (i))
13541 if ac_fn_c_try_run "$LINENO"; then :
13544 ac_cv_header_stdc=no
13546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13547 conftest.$ac_objext conftest.beam conftest.$ac_ext
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13553 $as_echo "$ac_cv_header_stdc" >&6; }
13554 if test $ac_cv_header_stdc = yes; then
13556 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13562 $as_echo_n "checking for inline... " >&6; }
13563 if ${ac_cv_c_inline+:} false; then :
13564 $as_echo_n "(cached) " >&6
13567 for ac_kw in inline __inline__ __inline; do
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13570 #ifndef __cplusplus
13572 static $ac_kw foo_t static_foo () {return 0; }
13573 $ac_kw foo_t foo () {return 0; }
13577 if ac_fn_c_try_compile "$LINENO"; then :
13578 ac_cv_c_inline=$ac_kw
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 test "$ac_cv_c_inline" != no && break
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13586 $as_echo "$ac_cv_c_inline" >&6; }
13588 case $ac_cv_c_inline in
13591 case $ac_cv_c_inline in
13593 *) ac_val=$ac_cv_c_inline;;
13595 cat >>confdefs.h <<_ACEOF
13596 #ifndef __cplusplus
13597 #define inline $ac_val
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13604 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13605 if ${ac_cv_c_const+:} false; then :
13606 $as_echo_n "(cached) " >&6
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13614 /* FIXME: Include the comments suggested by Paul. */
13615 #ifndef __cplusplus
13616 /* Ultrix mips cc rejects this. */
13617 typedef int charset[2];
13619 /* SunOS 4.1.1 cc rejects this. */
13620 char const *const *pcpcc;
13622 /* NEC SVR4.0.2 mips cc rejects this. */
13623 struct point {int x, y;};
13624 static struct point const zero = {0,0};
13625 /* AIX XL C 1.02.0.0 rejects this.
13626 It does not let you subtract one const X* pointer from another in
13627 an arm of an if-expression whose if-part is not a constant
13629 const char *g = "string";
13630 pcpcc = &g + (g ? g-g : 0);
13631 /* HPUX 7.0 cc rejects these. */
13633 ppc = (char**) pcpcc;
13634 pcpcc = (char const *const *) ppc;
13635 { /* SCO 3.2v4 cc rejects this. */
13637 char const *s = 0 ? (char *) 0 : (char const *) 0;
13642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13643 int x[] = {25, 17};
13644 const int *foo = &x[0];
13647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13648 typedef const int *iptr;
13652 { /* AIX XL C 1.02.0.0 rejects this saying
13653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13654 struct s { int j; const int *ap[3]; };
13655 struct s *b; b->j = 5;
13657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13658 const int foo = 10;
13659 if (!foo) return 0;
13661 return !cs[0] && !zero.x;
13668 if ac_fn_c_try_compile "$LINENO"; then :
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13676 $as_echo "$ac_cv_c_const" >&6; }
13677 if test $ac_cv_c_const = no; then
13679 $as_echo "@%:@define const /**/" >>confdefs.h
13684 for ac_header in stdlib.h unistd.h stdio.h fcntl.h errno.h sys/time.h \
13685 sys/param.h sys/select.h termios.h sgetty.h ttold.h ioctl-types.h \
13686 fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h unistd.h \
13687 endian.h byteswap.h asm/io.h mntent.h sys/mntent.h sys/mnttab.h \
13690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13693 cat >>confdefs.h <<_ACEOF
13694 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13702 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
13703 if test "x$ac_cv_header_regex_h" = xyes; then :
13705 $as_echo "@%:@define HAVE_REGEX 1" >>confdefs.h
13709 *** We need regex.h and its object code to compile
13710 *** But we could not find it.
13719 @%:@ Check whether --with-bonjour was given.
13720 if test "${with_bonjour+set}" = set; then :
13721 withval=$with_bonjour;
13729 if test "x$with_bonjour" = "xyes"; then
13730 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13731 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceResolve in -ldns_sd" >&5
13734 $as_echo_n "checking for DNSServiceResolve in -ldns_sd... " >&6; }
13735 if ${ac_cv_lib_dns_sd_DNSServiceResolve+:} false; then :
13736 $as_echo_n "(cached) " >&6
13738 ac_check_lib_save_LIBS=$LIBS
13739 LIBS="-ldns_sd $LIBS"
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13743 /* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13749 char DNSServiceResolve ();
13753 return DNSServiceResolve ();
13758 if ac_fn_c_try_link "$LINENO"; then :
13759 ac_cv_lib_dns_sd_DNSServiceResolve=yes
13761 ac_cv_lib_dns_sd_DNSServiceResolve=no
13763 rm -f core conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceResolve" >&5
13768 $as_echo "$ac_cv_lib_dns_sd_DNSServiceResolve" >&6; }
13769 if test "x$ac_cv_lib_dns_sd_DNSServiceResolve" = xyes; then :
13771 MDNS_LIBS="-ldns_sd"
13773 $as_echo "@%:@define HAVE_MDNS_BONJOUR 1" >>confdefs.h
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_mountp in struct mnttab" >&5
13786 $as_echo_n "checking for mnt_mountp in struct mnttab... " >&6; }
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 #if defined(HAVE_SYS_MNTENT_H) && defined(HAVE_SYS_MNTTAB_H)
13791 # include <sys/mntent.h>
13792 # include <sys/mnttab.h>
13806 if ac_fn_c_try_compile "$LINENO"; then :
13809 $as_echo "@%:@define HAVE_MNTTAB 1" >>confdefs.h
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13812 $as_echo "yes" >&6; }
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817 $as_echo "no" >&6; }
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 for ac_func in setmntent endmntent strerror snprintf vsnprintf
13827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13830 cat >>confdefs.h <<_ACEOF
13831 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840 #include <termios.h>
13844 int foo = TIOCM_RTS;
13849 if ac_fn_c_try_compile "$LINENO"; then :
13851 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857 #include <termio.h>
13861 int foo = TIOCM_RTS;
13866 if ac_fn_c_try_compile "$LINENO"; then :
13868 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 #include <ioctl-types.h>
13878 int foo = TIOCM_RTS;
13883 if ac_fn_c_try_compile "$LINENO"; then :
13885 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891 #include <sys/ioctl.h>
13895 int foo = TIOCM_RTS;
13900 if ac_fn_c_try_compile "$LINENO"; then :
13902 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 # Check for va_copy()
13908 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13909 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13914 Building $PACKAGE_NAME requires <stdarg.h>.
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13924 #include <stdarg.h>
13937 if ac_fn_c_try_link "$LINENO"; then :
13939 have_va_copy="va_copy"
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 #include <stdarg.h>
13959 if ac_fn_c_try_link "$LINENO"; then :
13961 have_va_copy="__va_copy"
13963 $as_echo "@%:@define va_copy __va_copy" >>confdefs.h
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13971 rm -f core conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy() or replacement" >&5
13974 $as_echo_n "checking for va_copy() or replacement... " >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
13976 $as_echo "$have_va_copy" >&6; }
13977 if test "x$have_va_copy" != "xno"; then
13979 $as_echo "@%:@define HAVE_VA_COPY 1" >>confdefs.h
13987 try_baudboy_msg=true
13991 @%:@ Check whether --enable-serial was given.
13992 if test "${enable_serial+set}" = set; then :
13993 enableval=$enable_serial;
13994 if test x$enableval = xno; then
14005 if $have_serial; then
14006 IOLIB_SUBDIRS="$IOLIB_SUBDIRS serial"
14008 $as_echo "@%:@define HAVE_SERIAL 1" >>confdefs.h
14012 gp_config_msg="${gp_config_msg}
14017 gp_config_msg_len="$(expr "Serial support" : '.*')"
14018 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14019 gp_config_msg_lhs="$(expr "Serial support" : "\(.\{0,${gp_config_len3}\}\)")..:"
14021 gp_config_msg_lhs="$(expr "Serial support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14023 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} $serial_msg
14028 if $have_serial; then
14030 # GP_SERLOCK([baudboy])
14031 @%:@ Check whether --enable-baudboy was given.
14032 if test "${enable_baudboy+set}" = set; then :
14033 enableval=$enable_baudboy;
14034 if test x$enableval = xno; then
14040 # GP_SERLOCK([ttylock])
14041 @%:@ Check whether --enable-ttylock was given.
14042 if test "${enable_ttylock+set}" = set; then :
14043 enableval=$enable_ttylock;
14044 if test x$enableval = xno; then
14050 # GP_SERLOCK([lockdev])
14051 @%:@ Check whether --enable-lockdev was given.
14052 if test "${enable_lockdev+set}" = set; then :
14053 enableval=$enable_lockdev;
14054 if test x$enableval = xno; then
14060 # GP_SERLOCK([resmgr])
14061 @%:@ Check whether --enable-resmgr was given.
14062 if test "${enable_resmgr+set}" = set; then :
14063 enableval=$enable_resmgr;
14064 if test x$enableval = xno; then
14072 if $try_resmgr; then
14073 ac_fn_c_check_header_mongrel "$LINENO" "resmgr.h" "ac_cv_header_resmgr_h" "$ac_includes_default"
14074 if test "x$ac_cv_header_resmgr_h" = xyes; then :
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_lock_device in -lresmgr" >&5
14077 $as_echo_n "checking for rsm_lock_device in -lresmgr... " >&6; }
14078 if ${ac_cv_lib_resmgr_rsm_lock_device+:} false; then :
14079 $as_echo_n "(cached) " >&6
14081 ac_check_lib_save_LIBS=$LIBS
14082 LIBS="-lresmgr $LIBS"
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14086 /* Override any GCC internal prototype to avoid an error.
14087 Use char because int might match the return type of a GCC
14088 builtin and then its argument prototype would still apply. */
14092 char rsm_lock_device ();
14096 return rsm_lock_device ();
14101 if ac_fn_c_try_link "$LINENO"; then :
14102 ac_cv_lib_resmgr_rsm_lock_device=yes
14104 ac_cv_lib_resmgr_rsm_lock_device=no
14106 rm -f core conftest.err conftest.$ac_objext \
14107 conftest$ac_exeext conftest.$ac_ext
14108 LIBS=$ac_check_lib_save_LIBS
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_lock_device" >&5
14111 $as_echo "$ac_cv_lib_resmgr_rsm_lock_device" >&6; }
14112 if test "x$ac_cv_lib_resmgr_rsm_lock_device" = xyes; then :
14115 SERIAL_LIBS="-lresmgr"
14117 $as_echo "@%:@define HAVE_RESMGR 1" >>confdefs.h
14128 gp_config_msg_len="$(expr "resmgr locking" : '.*')"
14129 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14130 gp_config_msg_lhs="$(expr "resmgr locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14132 gp_config_msg_lhs="$(expr "resmgr locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14134 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${resmgr_msg}
14139 if $try_baudboy; then
14140 ac_fn_c_check_header_mongrel "$LINENO" "baudboy.h" "ac_cv_header_baudboy_h" "$ac_includes_default"
14141 if test "x$ac_cv_header_baudboy_h" = xyes; then :
14147 $as_echo "@%:@define HAVE_BAUDBOY 1" >>confdefs.h
14155 gp_config_msg_len="$(expr "baudboy locking" : '.*')"
14156 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14157 gp_config_msg_lhs="$(expr "baudboy locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14159 gp_config_msg_lhs="$(expr "baudboy locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14161 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${baudboy_msg}
14166 if $try_ttylock; then
14167 ac_fn_c_check_header_mongrel "$LINENO" "lockdev.h" "ac_cv_header_lockdev_h" "$ac_includes_default"
14168 if test "x$ac_cv_header_lockdev_h" = xyes; then :
14173 ac_fn_c_check_header_compile "$LINENO" "ttylock.h" "ac_cv_header_ttylock_h" "#ifdef HAVE_LOCKDEV_H
14174 # include <lockdev.h>
14178 if test "x$ac_cv_header_ttylock_h" = xyes; then :
14180 lockdev_result="no"
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <ttylock.h>
14187 ttylocked ("/dev/foo");
14192 if ac_fn_c_try_link "$LINENO"; then :
14194 lockdev_result="no"
14196 $as_echo "@%:@define HAVE_TTYLOCK 1" >>confdefs.h
14200 LDFLAGS="$LDFLAGS -llockdev"
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203 #include <ttylock.h>
14207 ttylocked ("/dev/foo");
14212 if ac_fn_c_try_link "$LINENO"; then :
14214 lockdev_result="yes"
14216 $as_echo "@%:@define HAVE_TTYLOCK 1" >>confdefs.h
14220 SERIAL_LIBS=-llockdev
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ttylock needs lockdev" >&5
14230 $as_echo_n "checking if ttylock needs lockdev... " >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lockdev_result}" >&5
14232 $as_echo "${lockdev_result}" >&6; }
14239 gp_config_msg_len="$(expr "ttylock locking" : '.*')"
14240 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14241 gp_config_msg_lhs="$(expr "ttylock locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14243 gp_config_msg_lhs="$(expr "ttylock locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14245 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${ttylock_msg}
14250 if $try_lockdev; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_lock in -llockdev" >&5
14252 $as_echo_n "checking for dev_lock in -llockdev... " >&6; }
14253 if ${ac_cv_lib_lockdev_dev_lock+:} false; then :
14254 $as_echo_n "(cached) " >&6
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-llockdev $LIBS"
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14271 return dev_lock ();
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 ac_cv_lib_lockdev_dev_lock=yes
14279 ac_cv_lib_lockdev_dev_lock=no
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockdev_dev_lock" >&5
14286 $as_echo "$ac_cv_lib_lockdev_dev_lock" >&6; }
14287 if test "x$ac_cv_lib_lockdev_dev_lock" = xyes; then :
14289 ac_fn_c_check_header_mongrel "$LINENO" "lockdev.h" "ac_cv_header_lockdev_h" "$ac_includes_default"
14290 if test "x$ac_cv_header_lockdev_h" = xyes; then :
14293 $as_echo "@%:@define HAVE_LOCKDEV 1" >>confdefs.h
14296 SERIAL_LIBS=-llockdev
14306 gp_config_msg_len="$(expr "lockdev locking" : '.*')"
14307 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14308 gp_config_msg_lhs="$(expr "lockdev locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14310 gp_config_msg_lhs="$(expr "lockdev locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14312 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${lockdev_msg}
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14323 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14324 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 ac_check_lib_save_LIBS=$LIBS
14328 LIBS="-lpthread $LIBS"
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14332 /* Override any GCC internal prototype to avoid an error.
14333 Use char because int might match the return type of a GCC
14334 builtin and then its argument prototype would still apply. */
14338 char pthread_create ();
14342 return pthread_create ();
14347 if ac_fn_c_try_link "$LINENO"; then :
14348 ac_cv_lib_pthread_pthread_create=yes
14350 ac_cv_lib_pthread_pthread_create=no
14352 rm -f core conftest.err conftest.$ac_objext \
14353 conftest$ac_exeext conftest.$ac_ext
14354 LIBS=$ac_check_lib_save_LIBS
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14357 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14358 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14359 cat >>confdefs.h <<_ACEOF
14360 @%:@define HAVE_LIBPTHREAD 1
14363 LIBS="-lpthread $LIBS"
14369 gp_config_msg="${gp_config_msg}
14380 export PKG_CONFIG_PATH
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PKG_CONFIG_PATH" >&5
14383 $as_echo_n "checking PKG_CONFIG_PATH... " >&6; }
14384 if test "x${PKG_CONFIG_PATH}" = "x"; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty" >&5
14386 $as_echo "empty" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG_PATH}" >&5
14389 $as_echo "${PKG_CONFIG_PATH}" >&6; }
14392 # Extract the first word of "pkg-config", so it can be a program name with args.
14393 set dummy pkg-config; ac_word=$2
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14395 $as_echo_n "checking for $ac_word... " >&6; }
14396 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14397 $as_echo_n "(cached) " >&6
14399 case $PKG_CONFIG in
14401 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14411 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="false"
14423 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14424 if test -n "$PKG_CONFIG"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14426 $as_echo "$PKG_CONFIG" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14433 if test "$PKG_CONFIG" = "false"; then
14435 *** Build requires pkg-config
14437 *** Possible solutions:
14438 *** - set PKG_CONFIG to where your pkg-config is located
14439 *** - set PATH to include the directory where pkg-config is installed
14440 *** - get it from http://freedesktop.org/software/pkgconfig/ and install it
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic library extension" >&5
14445 $as_echo_n "checking for dynamic library extension... " >&6; }
14448 *linux*) soext=".so" ;;
14449 *sunos*) soext=".so" ;;
14450 *solaris*) soext=".so" ;;
14451 *bsd*) soext=".so" ;;
14452 *darwin*) soext=".dylib" ;;
14453 *w32*) soext=".dll" ;;
14455 if test "x$soext" = "x"; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
14458 $as_echo "${soext}" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14460 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
14462 $as_echo "$as_me: WARNING:
14463 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
14467 $as_echo "${soext}" >&6; }
14476 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14477 if test -n "$ac_tool_prefix"; then
14478 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14479 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 $as_echo_n "checking for $ac_word... " >&6; }
14482 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14483 $as_echo_n "(cached) " >&6
14485 case $PKG_CONFIG in
14487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14509 if test -n "$PKG_CONFIG"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14511 $as_echo "$PKG_CONFIG" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14519 if test -z "$ac_cv_path_PKG_CONFIG"; then
14520 ac_pt_PKG_CONFIG=$PKG_CONFIG
14521 # Extract the first word of "pkg-config", so it can be a program name with args.
14522 set dummy pkg-config; ac_word=$2
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14524 $as_echo_n "checking for $ac_word... " >&6; }
14525 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14526 $as_echo_n "(cached) " >&6
14528 case $ac_pt_PKG_CONFIG in
14530 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14540 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14552 if test -n "$ac_pt_PKG_CONFIG"; then
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14554 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 $as_echo "no" >&6; }
14560 if test "x$ac_pt_PKG_CONFIG" = x; then
14563 case $cross_compiling:$ac_tool_warned in
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14567 ac_tool_warned=yes ;;
14569 PKG_CONFIG=$ac_pt_PKG_CONFIG
14572 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14576 if test -n "$PKG_CONFIG"; then
14577 _pkg_min_version=0.9.0
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14579 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14580 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14582 $as_echo "yes" >&6; }
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 $as_echo "no" >&6; }
14590 # ----------------------------------------------------------------------
14591 # [GP_CHECK_LIBRARY]([LIBUSB],[libusb],[>= 0.1.4],
14592 # [usb.h],[usb_open],
14593 # [...],[...],[disable-explicitly])
14594 # http://libusb.sourceforge.net/
14596 # ----------------------------------------------------------------------
14597 # Use _CFLAGS and _LIBS given to configure.
14598 # This makes it possible to set these vars in a configure script
14599 # and AC_CONFIG_SUBDIRS this configure.
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb to use" >&5
14601 $as_echo_n "checking for libusb to use... " >&6; }
14602 REQUIREMENTS_FOR_LIBUSB="libusb >= 0.1.4"
14605 if test "x${LIBUSB_LIBS}" = "x" && test "x${LIBUSB_CFLAGS}" = "x"; then
14606 # define --with/--without argument
14609 @%:@ Check whether --with-libusb was given.
14610 if test "${with_libusb+set}" = set; then :
14611 withval=$with_libusb; try_LIBUSB="$withval"
14614 if test "x${try_LIBUSB}" = "xno"; then
14615 REQUIREMENTS_FOR_LIBUSB=
14617 if test "x${try_LIBUSB}" = "xauto"; then try_LIBUSB=autodetect; fi
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBUSB}" >&5
14619 $as_echo "${try_LIBUSB}" >&6; }
14620 if test "x${try_LIBUSB}" = "xautodetect"; then
14621 # OK, we have to autodetect.
14622 # We start autodetection with the cleanest known method: pkg-config
14623 if test "x${have_LIBUSB}" = "xno"; then
14624 # we need that line break after the PKG_CHECK_MODULES
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
14628 $as_echo_n "checking for LIBUSB... " >&6; }
14630 if test -n "$LIBUSB_CFLAGS"; then
14631 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
14632 elif test -n "$PKG_CONFIG"; then
14633 if test -n "$PKG_CONFIG" && \
14634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.4\""; } >&5
14635 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.4") 2>&5
14637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638 test $ac_status = 0; }; then
14639 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.4" 2>/dev/null`
14646 if test -n "$LIBUSB_LIBS"; then
14647 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
14648 elif test -n "$PKG_CONFIG"; then
14649 if test -n "$PKG_CONFIG" && \
14650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.4\""; } >&5
14651 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.4") 2>&5
14653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654 test $ac_status = 0; }; then
14655 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.4" 2>/dev/null`
14665 if test $pkg_failed = yes; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667 $as_echo "no" >&6; }
14669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14670 _pkg_short_errors_supported=yes
14672 _pkg_short_errors_supported=no
14674 if test $_pkg_short_errors_supported = yes; then
14675 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb >= 0.1.4" 2>&1`
14677 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb >= 0.1.4" 2>&1`
14679 # Put the nasty error message in config.log where it belongs
14680 echo "$LIBUSB_PKG_ERRORS" >&5
14683 elif test $pkg_failed = untried; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685 $as_echo "no" >&6; }
14688 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14689 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14691 $as_echo "yes" >&6; }
14695 # If pkg-config didn't find anything, try the libfoo-config program
14696 # certain known libraries ship with.
14697 if test "x${have_LIBUSB}" = "xno"; then
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb config program" >&5
14699 $as_echo_n "checking libusb config program... " >&6; }
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libusb-config" >&5
14701 $as_echo "libusb-config" >&6; }
14702 # Extract the first word of "gp_lib_config", so it can be a program name with args.
14703 set dummy libusb-config; ac_word=$2
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705 $as_echo_n "checking for $ac_word... " >&6; }
14706 if ${ac_cv_path_LIBUSB_CONFIG_PROG+:} false; then :
14707 $as_echo_n "(cached) " >&6
14709 case $LIBUSB_CONFIG_PROG in
14711 ac_cv_path_LIBUSB_CONFIG_PROG="$LIBUSB_CONFIG_PROG" # Let the user override the test with a path.
14714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14718 test -z "$as_dir" && as_dir=.
14719 for ac_exec_ext in '' $ac_executable_extensions; do
14720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14721 ac_cv_path_LIBUSB_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
14722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14732 LIBUSB_CONFIG_PROG=$ac_cv_path_LIBUSB_CONFIG_PROG
14733 if test -n "$LIBUSB_CONFIG_PROG"; then
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUSB_CONFIG_PROG" >&5
14735 $as_echo "$LIBUSB_CONFIG_PROG" >&6; }
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 $as_echo "no" >&6; }
14742 if test -n "${LIBUSB_CONFIG_PROG}" &&
14743 test "${LIBUSB_CONFIG_PROG}" != "none"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb version according to libusb-config" >&5
14746 $as_echo_n "checking for libusb version according to libusb-config... " >&6; }
14747 _LIBUSB_COMPN="-lt"
14748 # split requested version number using m4 regexps
14753 # split installed version number via shell and sed
14754 _LIBUSB_VERSION="$("${LIBUSB_CONFIG_PROG}" --version | sed 's/^.* //')"
14755 _LIBUSB_VER_1="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
14756 _LIBUSB_VER_2="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
14757 _LIBUSB_VER_3="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
14758 _LIBUSB_VER_4="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBUSB_VERSION}" >&5
14760 $as_echo "${_LIBUSB_VERSION}" >&6; }
14762 if test "${_LIBUSB_VER_1}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_1}"; then _tmp=true;
14763 elif test "${_LIBUSB_VER_2}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_2}"; then _tmp=true;
14764 elif test "${_LIBUSB_VER_3}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_3}"; then _tmp=true;
14765 elif test "x${_LIBUSB_VER_4}" = "x" && test "x${_LIBUSB_REQ_4}" != "x"; then _tmp=true;
14766 elif test "${_LIBUSB_VER_4}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_4}"; then _tmp=true;
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libusb version is matching requirement >= 0.1.4" >&5
14769 $as_echo_n "checking if libusb version is matching requirement >= 0.1.4... " >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773 as_fn_error $? "Version requirement libusb >= 0.1.4 not met. Found: ${_LIBUSB_VERSION}" "$LINENO" 5
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14776 $as_echo "yes" >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb parameters from libusb-config" >&5
14779 $as_echo_n "checking for libusb parameters from libusb-config... " >&6; }
14780 LIBUSB_LIBS="$(${LIBUSB_CONFIG_PROG} --libs || echo "*error*")"
14781 LIBUSB_CFLAGS="$(${LIBUSB_CONFIG_PROG} --cflags || echo "*error*")"
14782 if test "x${LIBUSB_LIBS}" = "*error*" ||
14783 test "x${LIBUSB_CFLAGS}" = "*error*"; then
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
14785 $as_echo "error" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14789 $as_echo "ok" >&6; }
14793 # Version requirement given, so we do not rely on probing.
14794 elif test "x${try_LIBUSB}" = "xno"; then
14797 # We've been given a prefix to look in for library libusb.
14798 # We start looking for libusb.la files first.
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb.la file in ${try_LIBUSB}" >&5
14800 $as_echo_n "checking for libusb.la file in ${try_LIBUSB}... " >&6; }
14801 if test -f "${try_LIBUSB}/lib/libusb.la"; then
14802 LIBUSB_LIBS="${try_LIBUSB}/lib/libusb.la"
14803 LIBUSB_CFLAGS="-I${try_LIBUSB}/include"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBUSB_LIBS (good)" >&5
14805 $as_echo "libtool file $LIBUSB_LIBS (good)" >&6; }
14807 elif test -f "${try_LIBUSB}/lib64/libusb.la"; then # HACK
14808 LIBUSB_LIBS="${try_LIBUSB}/lib64/libusb.la"
14809 LIBUSB_CFLAGS="-I${try_LIBUSB}/include"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBUSB_LIBS (good)" >&5
14811 $as_echo "libtool file $LIBUSB_LIBS (good)" >&6; }
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBUSB" >&5
14815 $as_echo "wild guess that something is in $try_LIBUSB" >&6; }
14816 LIBUSB_LIBS="-L${try_LIBUSB}/lib -l$(echo "libusb" | sed 's/^lib//')"
14817 LIBUSB_CFLAGS="-I${try_LIBUSB}/include"
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14821 * libtool file libusb.la could not be found.
14822 * We may be linking against the WRONG library.
14824 $as_echo "$as_me: WARNING:
14826 * libtool file libusb.la could not be found.
14827 * We may be linking against the WRONG library.
14831 elif test "x${LIBUSB_LIBS}" != "x" && test "x${LIBUSB_CFLAGS}" != "x"; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
14833 $as_echo "user-defined" >&6; }
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
14838 $as_echo "broken call" >&6; }
14841 * When calling configure for ${PACKAGE_TARNAME}
14843 * either set both LIBUSB_LIBS *and* LIBUSB_CFLAGS
14848 if test "x${have_LIBUSB}" = "xyes"; then
14851 IOLIB_SUBDIRS="$IOLIB_SUBDIRS usb usbdiskdirect usbscsi"
14854 if test "x${have_LIBUSB}" = "xyes"; then
14855 CPPFLAGS_save="$CPPFLAGS"
14856 CPPFLAGS="${LIBUSB_CFLAGS}"
14857 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
14858 if test "x$ac_cv_header_usb_h" = xyes; then :
14865 CPPFLAGS="$CPPFLAGS_save"
14867 if test "x${userdef_LIBUSB}" = "xno" && test "x${have_LIBUSB}" = "xyes"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function usb_open in libusb" >&5
14869 $as_echo_n "checking for function usb_open in libusb... " >&6; }
14871 LIBS="${LIBUSB_LIBS}"
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14875 /* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14885 return usb_open ();
14890 if ac_fn_c_try_link "$LINENO"; then :
14895 rm -f core conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBUSB}" >&5
14899 $as_echo "${have_LIBUSB}" >&6; }
14902 if test "x${try_LIBUSB}" != "xno" && test "x${have_LIBUSB}" = "xno"; then
14904 PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
14905 LIBUSB_LIBS=${LIBUSB_LIBS}
14906 LIBUSB_CFLAGS=${LIBUSB_CFLAGS}
14908 * Fatal: ${PACKAGE_NAME} by default requires libusb >= 0.1.4 to build.
14909 * You must explicitly disable libusb to build ${PACKAGE_TARNAME} without it.
14911 * Possible solutions:
14912 * - call configure with --with-libusb=no or --without-libusb
14913 * - set PKG_CONFIG_PATH to adequate value
14914 * - call configure with LIBUSB_LIBS=.. and LIBUSB_CFLAGS=..
14915 * - call configure with one of the --with-libusb parameters
14916 * - get libusb and install it
14919 if test "x$have_LIBUSB" = "xyes"; then
14921 HAVE_LIBUSB_FALSE='#'
14923 HAVE_LIBUSB_TRUE='#'
14927 if test "x$have_LIBUSB" = "xyes"; then
14929 $as_echo "@%:@define HAVE_LIBUSB 1" >>confdefs.h
14932 gp_config_msg_len="$(expr "libusb" : '.*')"
14933 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14934 gp_config_msg_lhs="$(expr "libusb" : "\(.\{0,${gp_config_len3}\}\)")..:"
14936 gp_config_msg_lhs="$(expr "libusb:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14938 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} yes
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb library flags" >&5
14941 $as_echo_n "checking libusb library flags... " >&6; }
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBUSB_LIBS}\"" >&5
14943 $as_echo "\"${LIBUSB_LIBS}\"" >&6; }
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb cpp flags" >&5
14945 $as_echo_n "checking libusb cpp flags... " >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBUSB_CFLAGS}\"" >&5
14947 $as_echo "\"${LIBUSB_CFLAGS}\"" >&6; }
14950 gp_config_msg_len="$(expr "libusb" : '.*')"
14951 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14952 gp_config_msg_lhs="$(expr "libusb" : "\(.\{0,${gp_config_len3}\}\)")..:"
14954 gp_config_msg_lhs="$(expr "libusb:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14956 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} no
14961 if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi
14964 if if echo "$host"|grep -i linux >/dev/null ; then test "x$have_LIBUSB" = xyes; fi ; then
14966 HAVE_UDEV_FALSE='#'
14975 @%:@ Check whether --with-hal was given.
14976 if test "${with_hal+set}" = set; then :
14983 if test "x$with_hal" = "xyes"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
14988 $as_echo_n "checking for HAL... " >&6; }
14990 if test -n "$HAL_CFLAGS"; then
14991 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
14992 elif test -n "$PKG_CONFIG"; then
14993 if test -n "$PKG_CONFIG" && \
14994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.31 hal >= 0.5.0\""; } >&5
14995 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.31 hal >= 0.5.0") 2>&5
14997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 test $ac_status = 0; }; then
14999 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.31 hal >= 0.5.0" 2>/dev/null`
15006 if test -n "$HAL_LIBS"; then
15007 pkg_cv_HAL_LIBS="$HAL_LIBS"
15008 elif test -n "$PKG_CONFIG"; then
15009 if test -n "$PKG_CONFIG" && \
15010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.31 hal >= 0.5.0\""; } >&5
15011 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.31 hal >= 0.5.0") 2>&5
15013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15014 test $ac_status = 0; }; then
15015 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.31 hal >= 0.5.0" 2>/dev/null`
15025 if test $pkg_failed = yes; then
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15030 _pkg_short_errors_supported=yes
15032 _pkg_short_errors_supported=no
15034 if test $_pkg_short_errors_supported = yes; then
15035 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 0.31 hal >= 0.5.0" 2>&1`
15037 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 0.31 hal >= 0.5.0" 2>&1`
15039 # Put the nasty error message in config.log where it belongs
15040 echo "$HAL_PKG_ERRORS" >&5
15043 elif test $pkg_failed = untried; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15048 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
15049 HAL_LIBS=$pkg_cv_HAL_LIBS
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 $as_echo "yes" >&6; }
15054 if test "x$have_hal" = "xtrue"; then
15058 $as_echo "@%:@define HAVE_HAL 1" >>confdefs.h
15063 @%:@ Check whether --enable-disk was given.
15064 if test "${enable_disk+set}" = set; then :
15065 enableval=$enable_disk;
15071 if test "x$enable_disk" = "xyes"; then
15072 IOLIB_SUBDIRS="$IOLIB_SUBDIRS disk"
15075 @%:@ Check whether --enable-ptpip was given.
15076 if test "${enable_ptpip+set}" = set; then :
15077 enableval=$enable_ptpip;
15082 if test "x$enable_ptpip" = "xyes"; then
15083 IOLIB_SUBDIRS="$IOLIB_SUBDIRS ptpip"
15087 # ----------------------------------------------------------------------
15088 # Define IOLIB stuff
15089 # ----------------------------------------------------------------------
15092 iolibdir="\$(libdir)/\$(PACKAGE_TARNAME)/\$(VERSION)"
15094 AM_CPPFLAGS="$AM_CPPFLAGS -DIOLIBS=\\\"${iolibdir}\\\""
15097 pkgconfigdir='${libdir}/pkgconfig'
15101 ac_fn_c_check_func "$LINENO" "re_compile_pattern" "ac_cv_func_re_compile_pattern"
15102 if test "x$ac_cv_func_re_compile_pattern" = xyes; then :
15104 $as_echo "@%:@define HAVE_GNU_REGEX 1" >>confdefs.h
15111 @%:@ Check whether --enable-debug was given.
15112 if test "${enable_debug+set}" = set; then :
15113 enableval=$enable_debug;
15114 if test "$enableval" = "no"; then
15116 $as_echo "@%:@define DISABLE_DEBUGGING 1" >>confdefs.h
15124 # ----------------------------------------------------------------------
15126 # ----------------------------------------------------------------------
15128 gp_config_msg="${gp_config_msg}
15135 @%:@ Check whether --with-doc-dir was given.
15136 if test "${with_doc_dir+set}" = set; then :
15137 withval=$with_doc_dir;
15141 # check for the main ("root") documentation directory
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
15143 $as_echo_n "checking main docdir... " >&6; }
15145 if test "x${with_doc_dir}" != "x"
15146 then # docdir is given as parameter
15147 docdir="${with_doc_dir}"
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
15149 $as_echo "${docdir} (from parameter)" >&6; }
15150 else # otherwise invent a docdir hopefully compatible with system policy
15151 if test -d "/usr/share/doc"
15153 maindocdir='${prefix}/share/doc'
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
15155 $as_echo "${maindocdir} (FHS style)" >&6; }
15156 elif test -d "/usr/doc"
15158 maindocdir='${prefix}/doc'
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
15160 $as_echo "${maindocdir} (old style)" >&6; }
15162 maindocdir='${datadir}/doc'
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
15164 $as_echo "${maindocdir} (default value)" >&6; }
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
15167 $as_echo_n "checking package docdir... " >&6; }
15168 # check whether to include package version into documentation path
15169 # FIXME: doesn't work properly.
15170 if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
15172 docdir="${maindocdir}/${PACKAGE}-${VERSION}"
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
15174 $as_echo "${docdir} (redhat style)" >&6; }
15176 docdir="${maindocdir}/${PACKAGE}"
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
15178 $as_echo "${docdir} (default style)" >&6; }
15184 # docdir has to be determined in advance
15187 # ---------------------------------------------------------------------------
15188 # gtk-doc: We use gtk-doc for building our documentation. However, we
15189 # require the user to explicitely request the build.
15190 # ---------------------------------------------------------------------------
15192 gtkdoc_msg="no (not requested)"
15194 @%:@ Check whether --enable-docs was given.
15195 if test "${enable_docs+set}" = set; then :
15196 enableval=$enable_docs;
15197 if test x$enableval = xyes; then
15203 if $try_gtkdoc; then
15204 # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
15205 set dummy gtkdoc-mkdb; ac_word=$2
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15207 $as_echo_n "checking for $ac_word... " >&6; }
15208 if ${ac_cv_path_GTKDOC+:} false; then :
15209 $as_echo_n "(cached) " >&6
15213 ac_cv_path_GTKDOC="$GTKDOC" # Let the user override the test with a path.
15216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15217 for as_dir in $PATH
15220 test -z "$as_dir" && as_dir=.
15221 for ac_exec_ext in '' $ac_executable_extensions; do
15222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15223 ac_cv_path_GTKDOC="$as_dir/$ac_word$ac_exec_ext"
15224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15234 GTKDOC=$ac_cv_path_GTKDOC
15235 if test -n "$GTKDOC"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC" >&5
15237 $as_echo "$GTKDOC" >&6; }
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 $as_echo "no" >&6; }
15244 if test -n "${GTKDOC}"; then
15248 gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)"
15251 if $have_gtkdoc; then
15252 ENABLE_GTK_DOC_TRUE=
15253 ENABLE_GTK_DOC_FALSE='#'
15255 ENABLE_GTK_DOC_TRUE='#'
15256 ENABLE_GTK_DOC_FALSE=
15260 gp_config_msg_len="$(expr "build API docs with gtk-doc" : '.*')"
15261 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
15262 gp_config_msg_lhs="$(expr "build API docs with gtk-doc" : "\(.\{0,${gp_config_len3}\}\)")..:"
15264 gp_config_msg_lhs="$(expr "build API docs with gtk-doc:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
15266 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} $gtkdoc_msg
15271 # ---------------------------------------------------------------------------
15272 # Give the user the possibility to install html documentation in a
15273 # user-defined location.
15274 # ---------------------------------------------------------------------------
15276 @%:@ Check whether --with-html-dir was given.
15277 if test "${with_html_dir+set}" = set; then :
15278 withval=$with_html_dir;
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html dir" >&5
15283 $as_echo_n "checking for html dir... " >&6; }
15284 if test "x${with_html_dir}" = "x" ; then
15285 htmldir="${docdir}/html"
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (default)" >&5
15287 $as_echo "${htmldir} (default)" >&6; }
15289 htmldir="${with_html_dir}"
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (from parameter)" >&5
15291 $as_echo "${htmldir} (from parameter)" >&6; }
15294 apidocdir="${htmldir}/api"
15299 # Make sure that the *FLAGS given at ./configure time will be active by
15300 # default in AM_*FLAGS
15301 AM_CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
15302 AM_CFLAGS="$AM_CFLAGS $CFLAGS"
15303 AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
15304 AM_LDFLAGS="$AM_LDFLAGS $LDFLAGS"
15306 if test "$GCC" = "yes"; then
15307 AM_CPPFLAGS="$AM_CPPFLAGS -Wall"
15308 AM_CPPFLAGS="$AM_CPPFLAGS -Wmissing-declarations -Wmissing-prototypes"
15309 AM_LDFLAGS="$AM_LDFLAGS -Wall"
15310 # FIXME: Check for --enable-debug here
15311 AM_CPPFLAGS="$AM_CPPFLAGS -g"
15312 AM_LDFLAGS="$AM_LDFLAGS -g"
15315 # Activate internal code
15316 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE"
15318 # Activate Samsung patch
15319 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_SAMSUNG_PATCH_"
15321 # CPPFLAGS: C PreProcessor flags
15323 # CFLAGS: C compiler flags
15325 # CXXFLAGS: C++ compiler flags
15327 # LDFLAGS: Linker flags
15331 # ---------------------------------------------------------------------------
15332 # Create output files
15333 # ---------------------------------------------------------------------------
15334 ac_config_files="$ac_config_files Makefile po/Makefile.in libgphoto2_port/Makefile libgphoto2_port.pc libgphoto2_port-uninstalled.pc serial/Makefile usb/Makefile usbdiskdirect/Makefile usbscsi/Makefile disk/Makefile ptpip/Makefile gphoto2-port-config test/Makefile doc/Makefile m4/Makefile"
15336 cat >confcache <<\_ACEOF
15337 # This file is a shell script that caches the results of configure
15338 # tests run on this system so they can be shared between configure
15339 # scripts and configure runs, see configure's option --config-cache.
15340 # It is not useful on other systems. If it contains results you don't
15341 # want to keep, you may remove or edit it.
15343 # config.status only pays attention to the cache file if you give it
15344 # the --recheck option to rerun configure.
15346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15348 # following values.
15352 # The following way of writing the cache mishandles newlines in values,
15353 # but we know of no workaround that is simple, portable, and efficient.
15354 # So, we kill variables containing newlines.
15355 # Ultrix sh set writes to stderr and can't be redirected directly,
15356 # and sets the high bit in the cache file unless we assign to the vars.
15358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15359 eval ac_val=\$$ac_var
15363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15367 _ | IFS | as_nl) ;; #(
15368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15369 *) { eval $ac_var=; unset $ac_var;} ;;
15375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15376 *${as_nl}ac_space=\ *)
15377 # `set' does not quote correctly, so add quotes: double-quote
15378 # substitution turns \\\\ into \\, and sed turns \\ into \.
15381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15384 # `set' quotes correctly as required by POSIX, so do not add quotes.
15385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15399 if test -w "$cache_file"; then
15400 if test "x$cache_file" != "x/dev/null"; then
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15402 $as_echo "$as_me: updating cache $cache_file" >&6;}
15403 if test ! -f "$cache_file" || test -h "$cache_file"; then
15404 cat confcache >"$cache_file"
15406 case $cache_file in #(
15408 mv -f confcache "$cache_file"$$ &&
15409 mv -f "$cache_file"$$ "$cache_file" ;; #(
15411 mv -f confcache "$cache_file" ;;
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15417 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15423 # Let make expand exec_prefix.
15424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15426 DEFS=-DHAVE_CONFIG_H
15431 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15432 # 1. Remove the extension, and $U if already installed.
15433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15434 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15436 # will be set to the directory where LIBOBJS objects are built.
15437 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15438 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15440 LIB@&t@OBJS=$ac_libobjs
15442 LTLIBOBJS=$ac_ltlibobjs
15445 if test -n "$EXEEXT"; then
15447 am__EXEEXT_FALSE='#'
15449 am__EXEEXT_TRUE='#'
15453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15454 as_fn_error $? "conditional \"AMDEP\" was never defined.
15455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15458 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15461 if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then
15462 as_fn_error $? "conditional \"HAVE_LIBUSB\" was never defined.
15463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15465 if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
15466 as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
15467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15469 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15470 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474 : "${CONFIG_STATUS=./config.status}"
15476 ac_clean_files_save=$ac_clean_files
15477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15479 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15481 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15483 # Generated by $as_me.
15484 # Run this file to recreate the current configuration.
15485 # Compiler output produced by configure, useful for debugging
15486 # configure, is in config.log if it exists.
15489 ac_cs_recheck=false
15492 SHELL=\${CONFIG_SHELL-$SHELL}
15495 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15496 ## -------------------- ##
15497 ## M4sh Initialization. ##
15498 ## -------------------- ##
15500 # Be more Bourne compatible
15501 DUALCASE=1; export DUALCASE # for MKS sh
15502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15505 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15506 # is contrary to our usage. Disable this feature.
15507 alias -g '${1+"$@"}'='"$@"'
15508 setopt NO_GLOB_SUBST
15510 case `(set -o) 2>/dev/null` in @%:@(
15512 set -o posix ;; @%:@(
15522 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15523 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15526 # Prefer a ksh shell builtin over an external printf program on Solaris,
15527 # but without wasting forks for bash or zsh.
15528 if test -z "$BASH_VERSION$ZSH_VERSION" \
15529 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15530 as_echo='print -r --'
15531 as_echo_n='print -rn --'
15532 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15533 as_echo='printf %s\n'
15534 as_echo_n='printf %s'
15536 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15537 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15538 as_echo_n='/usr/ucb/echo -n'
15540 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15541 as_echo_n_body='eval
15545 expr "X$arg" : "X\\(.*\\)$as_nl";
15546 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15548 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15550 export as_echo_n_body
15551 as_echo_n='sh -c $as_echo_n_body as_echo'
15553 export as_echo_body
15554 as_echo='sh -c $as_echo_body as_echo'
15557 # The user is always right.
15558 if test "${PATH_SEPARATOR+set}" != set; then
15560 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15561 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15568 # We need space, tab and new line, in precisely that order. Quoting is
15569 # there to prevent editors from complaining about space-tab.
15570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15571 # splitting by setting IFS to empty value.)
15574 # Find who we are. Look in the path if we contain no directory separator.
15577 *[\\/]* ) as_myself=$0 ;;
15578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15579 for as_dir in $PATH
15582 test -z "$as_dir" && as_dir=.
15583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15589 # We did not find ourselves, most probably we were run as `sh COMMAND'
15590 # in which case we are not to be found in the path.
15591 if test "x$as_myself" = x; then
15594 if test ! -f "$as_myself"; then
15595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15599 # Unset variables that we do not need and which cause bugs (e.g. in
15600 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15601 # suppresses any "Segmentation fault" message there. '((' could
15602 # trigger a bug in pdksh 5.2.14.
15603 for as_var in BASH_ENV ENV MAIL MAILPATH
15604 do eval test x\${$as_var+set} = xset \
15605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15621 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15622 @%:@ ----------------------------------------
15623 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15624 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15625 @%:@ script with STATUS, using 1 if that was 0.
15628 as_status=$1; test $as_status -eq 0 && as_status=1
15630 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15633 $as_echo "$as_me: error: $2" >&2
15634 as_fn_exit $as_status
15638 @%:@ as_fn_set_status STATUS
15639 @%:@ -----------------------
15640 @%:@ Set @S|@? to STATUS, without forking.
15641 as_fn_set_status ()
15644 } @%:@ as_fn_set_status
15646 @%:@ as_fn_exit STATUS
15647 @%:@ -----------------
15648 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15652 as_fn_set_status $1
15656 @%:@ as_fn_unset VAR
15657 @%:@ ---------------
15658 @%:@ Portably unset VAR.
15661 { eval $1=; unset $1;}
15663 as_unset=as_fn_unset
15664 @%:@ as_fn_append VAR VALUE
15665 @%:@ ----------------------
15666 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15667 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15668 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15669 @%:@ implementations.
15670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15671 eval 'as_fn_append ()
15682 @%:@ as_fn_arith ARG...
15683 @%:@ ------------------
15684 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15685 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15686 @%:@ must be portable across @S|@(()) and expr.
15687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15688 eval 'as_fn_arith ()
15695 as_val=`expr "$@" || test $? -eq 1`
15700 if expr a : '\(a\)' >/dev/null 2>&1 &&
15701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15708 as_basename=basename
15713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15719 as_me=`$as_basename -- "$0" ||
15720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15721 X"$0" : 'X\(//\)$' \| \
15722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15724 sed '/^.*\/\([^/][^/]*\)\/*$/{
15738 # Avoid depending upon Character Ranges.
15739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15742 as_cr_digits='0123456789'
15743 as_cr_alnum=$as_cr_Letters$as_cr_digits
15745 ECHO_C= ECHO_N= ECHO_T=
15746 case `echo -n x` in @%:@(((((
15748 case `echo 'xy\c'` in
15749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15758 rm -f conf$$ conf$$.exe conf$$.file
15759 if test -d conf$$.dir; then
15760 rm -f conf$$.dir/conf$$.file
15763 mkdir conf$$.dir 2>/dev/null
15765 if (echo >conf$$.file) 2>/dev/null; then
15766 if ln -s conf$$.file conf$$ 2>/dev/null; then
15768 # ... but there are two gotchas:
15769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15771 # In both cases, we have to default to `cp -p'.
15772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15774 elif ln conf$$.file conf$$ 2>/dev/null; then
15782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15783 rmdir conf$$.dir 2>/dev/null
15788 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15793 -*) as_dir=./$as_dir;;
15795 test -d "$as_dir" || eval $as_mkdir_p || {
15799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15800 *) as_qdir=$as_dir;;
15802 as_dirs="'$as_qdir' $as_dirs"
15803 as_dir=`$as_dirname -- "$as_dir" ||
15804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15805 X"$as_dir" : 'X\(//\)[^/]' \| \
15806 X"$as_dir" : 'X\(//\)$' \| \
15807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15808 $as_echo X"$as_dir" |
15809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15813 /^X\(\/\/\)[^/].*/{
15826 test -d "$as_dir" && break
15828 test -z "$as_dirs" || eval "mkdir $as_dirs"
15829 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15832 } @%:@ as_fn_mkdir_p
15833 if mkdir -p . 2>/dev/null; then
15834 as_mkdir_p='mkdir -p "$as_dir"'
15836 test -d ./-p && rmdir ./-p
15840 if test -x / >/dev/null 2>&1; then
15841 as_test_x='test -x'
15843 if ls -dL / >/dev/null 2>&1; then
15850 if test -d "$1"; then
15856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
15857 ???[sx]*):;;*)false;;esac;fi
15861 as_executable_p=$as_test_x
15863 # Sed expression to map a string onto a valid CPP name.
15864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15866 # Sed expression to map a string onto a valid variable name.
15867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15871 ## ----------------------------------- ##
15872 ## Main body of $CONFIG_STATUS script. ##
15873 ## ----------------------------------- ##
15875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15878 # Save the log message, to keep $0 and so on meaningful, and to
15879 # report actual input values of CONFIG_FILES etc. instead of their
15880 # values after options handling.
15882 This file was extended by libgphoto2 port access library $as_me 0.8.0, which was
15883 generated by GNU Autoconf 2.68. Invocation command line was
15885 CONFIG_FILES = $CONFIG_FILES
15886 CONFIG_HEADERS = $CONFIG_HEADERS
15887 CONFIG_LINKS = $CONFIG_LINKS
15888 CONFIG_COMMANDS = $CONFIG_COMMANDS
15891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15896 case $ac_config_files in *"
15897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15900 case $ac_config_headers in *"
15901 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15906 # Files that config.status was made for.
15907 config_files="$ac_config_files"
15908 config_headers="$ac_config_headers"
15909 config_commands="$ac_config_commands"
15913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915 \`$as_me' instantiates files and other configuration actions
15916 from templates according to the current configuration. Unless the files
15917 and actions are specified as TAGs, all are instantiated by default.
15919 Usage: $0 [OPTION]... [TAG]...
15921 -h, --help print this help, then exit
15922 -V, --version print version number and configuration settings, then exit
15923 --config print configuration, then exit
15924 -q, --quiet, --silent
15925 do not print progress messages
15926 -d, --debug don't remove temporary files
15927 --recheck update $as_me by reconfiguring in the same conditions
15928 --file=FILE[:TEMPLATE]
15929 instantiate the configuration file FILE
15930 --header=FILE[:TEMPLATE]
15931 instantiate the configuration header FILE
15933 Configuration files:
15936 Configuration headers:
15939 Configuration commands:
15942 Report bugs to <gphoto-devel@lists.sourceforge.net>."
15945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15946 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15948 libgphoto2 port access library config.status 0.8.0
15949 configured by $0, generated by GNU Autoconf 2.68,
15950 with options \\"\$ac_cs_config\\"
15952 Copyright (C) 2010 Free Software Foundation, Inc.
15953 This config.status script is free software; the Free Software Foundation
15954 gives unlimited permission to copy, distribute and modify it."
15961 test -n "\$AWK" || AWK=awk
15964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15965 # The default lists apply if the user does not specify any file.
15971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15988 # Handling of the options.
15989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15992 $as_echo "$ac_cs_version"; exit ;;
15993 --config | --confi | --conf | --con | --co | --c )
15994 $as_echo "$ac_cs_config"; exit ;;
15995 --debug | --debu | --deb | --de | --d | -d )
15997 --file | --fil | --fi | --f )
16000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16001 '') as_fn_error $? "missing file argument" ;;
16003 as_fn_append CONFIG_FILES " '$ac_optarg'"
16004 ac_need_defaults=false;;
16005 --header | --heade | --head | --hea )
16008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16010 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16011 ac_need_defaults=false;;
16013 # Conflict between --help and --header
16014 as_fn_error $? "ambiguous option: \`$1'
16015 Try \`$0 --help' for more information.";;
16016 --help | --hel | -h )
16017 $as_echo "$ac_cs_usage"; exit ;;
16018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16022 # This is an error.
16023 -*) as_fn_error $? "unrecognized option: \`$1'
16024 Try \`$0 --help' for more information." ;;
16026 *) as_fn_append ac_config_targets " $1"
16027 ac_need_defaults=false ;;
16033 ac_configure_extra_args=
16035 if $ac_cs_silent; then
16037 ac_configure_extra_args="$ac_configure_extra_args --silent"
16041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16042 if \$ac_cs_recheck; then
16043 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16046 CONFIG_SHELL='$SHELL'
16047 export CONFIG_SHELL
16052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16057 @%:@@%:@ Running $as_me. @%:@@%:@
16063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16070 # The HP-UX ksh and POSIX shell print the target directory to stdout
16071 # if CDPATH is set.
16072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16074 sed_quote_subst='$sed_quote_subst'
16075 double_quote_subst='$double_quote_subst'
16076 delay_variable_subst='$delay_variable_subst'
16077 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16078 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16079 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16080 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16081 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16082 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16083 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16084 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16085 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16086 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16087 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16088 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16089 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16090 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16091 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16092 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16093 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16094 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16095 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16096 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16097 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16098 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16099 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16100 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16101 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16102 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16103 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16104 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16105 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16106 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16107 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16108 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16109 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16110 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16111 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16112 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16113 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16114 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16115 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16116 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16117 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16118 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16119 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16120 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16121 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16122 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16123 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"`'
16124 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"`'
16125 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16126 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16127 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16128 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16129 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16130 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16131 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16132 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16133 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16134 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16135 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16136 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16137 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16138 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16139 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16140 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16141 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16142 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16143 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16144 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16145 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16146 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16147 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16148 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16149 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16150 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16151 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16152 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16153 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16154 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16155 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16156 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16157 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16158 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16159 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16160 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16161 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16162 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16163 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16164 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16165 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16166 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16167 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16168 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16169 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16170 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16171 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16172 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16173 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16174 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16175 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16176 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16177 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16178 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16179 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16180 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16181 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16182 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16183 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16184 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16185 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16186 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16187 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16188 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16189 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16190 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16191 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16192 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16193 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16194 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16195 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16196 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16199 LTCFLAGS='$LTCFLAGS'
16200 compiler='$compiler_DEFAULT'
16202 # Quote evaled strings.
16213 deplibs_check_method \
16222 lt_cv_sys_global_symbol_pipe \
16223 lt_cv_sys_global_symbol_to_cdecl \
16224 lt_cv_sys_global_symbol_to_c_name_address \
16225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16228 lt_prog_compiler_no_builtin_flag \
16229 lt_prog_compiler_wl \
16230 lt_prog_compiler_pic \
16231 lt_prog_compiler_static \
16232 lt_cv_prog_compiler_c_o \
16240 export_dynamic_flag_spec \
16241 whole_archive_flag_spec \
16242 compiler_needs_object \
16244 allow_undefined_flag \
16245 no_undefined_flag \
16246 hardcode_libdir_flag_spec \
16247 hardcode_libdir_flag_spec_ld \
16248 hardcode_libdir_separator \
16253 variables_saved_for_relink \
16255 library_names_spec \
16260 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16261 *[\\\\\\\`\\"\\\$]*)
16262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16270 # Double-quote double-evaled strings.
16271 for var in reload_cmds \
16272 old_postinstall_cmds \
16273 old_postuninstall_cmds \
16275 extract_expsyms_cmds \
16276 old_archive_from_new_cmds \
16277 old_archive_from_expsyms_cmds \
16279 archive_expsym_cmds \
16281 module_expsym_cmds \
16282 export_symbols_cmds \
16285 postuninstall_cmds \
16287 sys_lib_search_path_spec \
16288 sys_lib_dlsearch_path_spec; do
16289 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16290 *[\\\\\\\`\\"\\\$]*)
16291 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16294 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16299 # Fix-up fallback echo if it was mangled by the above quoting rules.
16301 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16305 ac_aux_dir='$ac_aux_dir'
16306 xsi_shell='$xsi_shell'
16307 lt_shell_append='$lt_shell_append'
16309 # See if we are running on zsh, and set the options which allow our
16310 # commands through without removal of \ escapes INIT.
16311 if test -n "\${ZSH_VERSION+set}" ; then
16312 setopt NO_GLOB_SUBST
16318 TIMESTAMP='$TIMESTAMP'
16324 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16325 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16327 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16328 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16329 LINGUAS="${LINGUAS-%UNSET%}"
16331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16332 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16334 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16335 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16336 LINGUAS="${LINGUAS-%UNSET%}"
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16343 # Handling of arguments.
16344 for ac_config_target in $ac_config_targets
16346 case $ac_config_target in
16347 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16348 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16349 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16350 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16351 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
16352 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16353 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16354 "libgphoto2_port/Makefile") CONFIG_FILES="$CONFIG_FILES libgphoto2_port/Makefile" ;;
16355 "libgphoto2_port.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2_port.pc" ;;
16356 "libgphoto2_port-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2_port-uninstalled.pc" ;;
16357 "serial/Makefile") CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
16358 "usb/Makefile") CONFIG_FILES="$CONFIG_FILES usb/Makefile" ;;
16359 "usbdiskdirect/Makefile") CONFIG_FILES="$CONFIG_FILES usbdiskdirect/Makefile" ;;
16360 "usbscsi/Makefile") CONFIG_FILES="$CONFIG_FILES usbscsi/Makefile" ;;
16361 "disk/Makefile") CONFIG_FILES="$CONFIG_FILES disk/Makefile" ;;
16362 "ptpip/Makefile") CONFIG_FILES="$CONFIG_FILES ptpip/Makefile" ;;
16363 "gphoto2-port-config") CONFIG_FILES="$CONFIG_FILES gphoto2-port-config" ;;
16364 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16365 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16366 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16368 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16373 # If the user did not use the arguments to specify the items to instantiate,
16374 # then the envvar interface is used. Set only those that are not.
16375 # We use the long form for the default assignment because of an extremely
16376 # bizarre bug on SunOS 4.1.3.
16377 if $ac_need_defaults; then
16378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16380 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16383 # Have a temporary directory for convenience. Make it in the build tree
16384 # simply because there is no reason against having it here, and in addition,
16385 # creating and moving files from /tmp can sometimes cause problems.
16386 # Hook for its removal unless debugging.
16387 # Note that there is a small window in which the directory will not be cleaned:
16388 # after its creation but before its name has been assigned to `$tmp'.
16392 trap 'exit_status=$?
16393 : "${ac_tmp:=$tmp}"
16394 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16396 trap 'as_fn_exit 1' 1 2 13 15
16398 # Create a (secure) tmp directory for tmp files.
16401 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16405 tmp=./conf$$-$RANDOM
16406 (umask 077 && mkdir "$tmp")
16407 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16410 # Set up the scripts for CONFIG_FILES section.
16411 # No need to generate them if there are no CONFIG_FILES.
16412 # This happens for instance with `./config.status config.h'.
16413 if test -n "$CONFIG_FILES"; then
16416 ac_cr=`echo X | tr X '\015'`
16417 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16418 # But we know of no other shell where ac_cr would be empty at this
16419 # point, so we can use a bashism as a fallback.
16420 if test "x$ac_cr" = x; then
16421 eval ac_cr=\$\'\\r\'
16423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16427 ac_cs_awk_cr=$ac_cr
16430 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16435 echo "cat >conf$$subs.awk <<_ACEOF" &&
16436 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16438 } >conf$$subs.sh ||
16439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16440 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16442 for ac_last_try in false false false false false :; do
16443 . ./conf$$subs.sh ||
16444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16446 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16447 if test $ac_delim_n = $ac_delim_num; then
16449 elif $ac_last_try; then
16450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16455 rm -f conf$$subs.sh
16457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16458 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16462 s/^/S["/; s/!.*/"]=/
16472 s/\(.\{148\}\)..*/\1/
16474 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16486 s/\(.\{148\}\)..*/\1/
16488 s/["\\]/\\&/g; s/^/"/; s/$/"/
16492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16497 ' <conf$$subs.awk | sed '
16502 ' >>$CONFIG_STATUS || ac_write_fail=1
16503 rm -f conf$$subs.awk
16504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16506 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16507 for (key in S) S_is_set[key] = 1
16513 nfields = split(line, field, "@")
16515 len = length(field[1])
16516 for (i = 2; i < nfields; i++) {
16518 keylen = length(key)
16519 if (S_is_set[key]) {
16521 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16522 len += length(value) + length(field[++i])
16533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16534 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16535 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16538 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16539 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16542 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16543 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16544 # trailing colons and then remove the whole line if VPATH becomes empty
16545 # (actually we leave an empty line to preserve line numbers).
16546 if test "x$srcdir" = x.; then
16547 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566 fi # test -n "$CONFIG_FILES"
16568 # Set up the scripts for CONFIG_HEADERS section.
16569 # No need to generate them if there are no CONFIG_HEADERS.
16570 # This happens for instance with `./config.status Makefile'.
16571 if test -n "$CONFIG_HEADERS"; then
16572 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16576 # Transform confdefs.h into an awk script `defines.awk', embedded as
16577 # here-document in config.status, that substitutes the proper values into
16578 # config.h.in to produce config.h.
16580 # Create a delimiter string that does not exist in confdefs.h, to ease
16581 # handling of long lines.
16583 for ac_last_try in false false :; do
16584 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16585 if test -z "$ac_tt"; then
16587 elif $ac_last_try; then
16588 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16594 # For the awk script, D is an array of macro values keyed by name,
16595 # likewise P contains macro parameters if any. Preserve backslash
16596 # newline sequences.
16598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16600 s/.\{148\}/&'"$ac_delim"'/g
16603 s/^[ ]*#[ ]*define[ ][ ]*/ /
16610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16617 D["\1"]=" \3\\\\\\n"\\/p
16619 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16624 s/.\{148\}/&'"$ac_delim"'/g
16629 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16632 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16634 ' <confdefs.h | sed '
16635 s/'"$ac_delim"'/"\\\
16636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16639 for (key in D) D_is_set[key] = 1
16642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16644 split(line, arg, " ")
16645 if (arg[1] == "#") {
16649 defundef = substr(arg[1], 2)
16652 split(mac1, mac2, "(") #)
16654 prefix = substr(line, 1, index(line, defundef) - 1)
16655 if (D_is_set[macro]) {
16656 # Preserve the white space surrounding the "#".
16657 print prefix "define", macro P[macro] D[macro]
16660 # Replace #undef with comments. This is necessary, for example,
16661 # in the case of _POSIX_SOURCE, which is predefined and required
16662 # on some systems where configure will not decide to define it.
16663 if (defundef == "undef") {
16664 print "/*", prefix defundef, macro, "*/"
16672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16673 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16674 fi # test -n "$CONFIG_HEADERS"
16677 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16682 :[FHLC]) ac_mode=$ac_tag; continue;;
16684 case $ac_mode$ac_tag in
16686 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16687 :[FH]-) ac_tag=-:-;;
16688 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16705 -) ac_f="$ac_tmp/stdin";;
16706 *) # Look for the file first in the build tree, then in the source tree
16707 # (if the path is not absolute). The absolute path cannot be DOS-style,
16708 # because $ac_f cannot contain `:'.
16712 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16714 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16716 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16717 as_fn_append ac_file_inputs " '$ac_f'"
16720 # Let's still pretend it is `configure' which instantiates (i.e., don't
16721 # use $as_me), people would be surprised to read:
16722 # /* config.h. Generated by config.status. */
16723 configure_input='Generated from '`
16724 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16726 if test x"$ac_file" != x-; then
16727 configure_input="$ac_file. $configure_input"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16729 $as_echo "$as_me: creating $ac_file" >&6;}
16731 # Neutralize special characters interpreted by sed in replacement strings.
16732 case $configure_input in #(
16733 *\&* | *\|* | *\\* )
16734 ac_sed_conf_input=`$as_echo "$configure_input" |
16735 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16736 *) ac_sed_conf_input=$configure_input;;
16740 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16746 ac_dir=`$as_dirname -- "$ac_file" ||
16747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16748 X"$ac_file" : 'X\(//\)[^/]' \| \
16749 X"$ac_file" : 'X\(//\)$' \| \
16750 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16751 $as_echo X"$ac_file" |
16752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16756 /^X\(\/\/\)[^/].*/{
16769 as_dir="$ac_dir"; as_fn_mkdir_p
16773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16776 # A ".." for each directory in $ac_dir_suffix.
16777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16778 case $ac_top_builddir_sub in
16779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16783 ac_abs_top_builddir=$ac_pwd
16784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16785 # for backward compatibility:
16786 ac_top_builddir=$ac_top_build_prefix
16789 .) # We are building in place.
16791 ac_top_srcdir=$ac_top_builddir_sub
16792 ac_abs_top_srcdir=$ac_pwd ;;
16793 [\\/]* | ?:[\\/]* ) # Absolute name.
16794 ac_srcdir=$srcdir$ac_dir_suffix;
16795 ac_top_srcdir=$srcdir
16796 ac_abs_top_srcdir=$srcdir ;;
16797 *) # Relative name.
16798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16799 ac_top_srcdir=$ac_top_build_prefix$srcdir
16800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16812 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16813 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16815 ac_MKDIR_P=$MKDIR_P
16817 [\\/$]* | ?:[\\/]* ) ;;
16818 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 # If the template does not know about datarootdir, expand it.
16824 # FIXME: This hack should be removed a few years after 2.60.
16825 ac_datarootdir_hack=; ac_datarootdir_seen=
16836 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16837 *datarootdir*) ac_datarootdir_seen=yes;;
16838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16840 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16843 ac_datarootdir_hack='
16844 s&@datadir@&$datadir&g
16845 s&@docdir@&$docdir&g
16846 s&@infodir@&$infodir&g
16847 s&@localedir@&$localedir&g
16848 s&@mandir@&$mandir&g
16849 s&\\\${datarootdir}&$datarootdir&g' ;;
16853 # Neutralize VPATH when `$srcdir' = `.'.
16854 # Shell code in configure.ac might set extrasub.
16855 # FIXME: do we really want to maintain this feature?
16856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 ac_sed_extra="$ac_vpsub
16860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16863 s|@configure_input@|$ac_sed_conf_input|;t t
16864 s&@top_builddir@&$ac_top_builddir_sub&;t t
16865 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16866 s&@srcdir@&$ac_srcdir&;t t
16867 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16868 s&@top_srcdir@&$ac_top_srcdir&;t t
16869 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16870 s&@builddir@&$ac_builddir&;t t
16871 s&@abs_builddir@&$ac_abs_builddir&;t t
16872 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16873 s&@INSTALL@&$ac_INSTALL&;t t
16874 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16875 $ac_datarootdir_hack
16877 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16878 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16880 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16881 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16882 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16883 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16885 which seems to be undefined. Please make sure it is defined" >&5
16886 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16887 which seems to be undefined. Please make sure it is defined" >&2;}
16889 rm -f "$ac_tmp/stdin"
16891 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16892 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16900 if test x"$ac_file" != x-; then
16902 $as_echo "/* $configure_input */" \
16903 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16904 } >"$ac_tmp/config.h" \
16905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16906 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16908 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16911 mv "$ac_tmp/config.h" "$ac_file" \
16912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16915 $as_echo "/* $configure_input */" \
16916 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16917 || as_fn_error $? "could not create -" "$LINENO" 5
16919 # Compute "$ac_file"'s index in $config_headers.
16922 for _am_header in $config_headers :; do
16923 case $_am_header in
16924 $_am_arg | $_am_arg:* )
16927 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16930 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16931 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16932 X"$_am_arg" : 'X\(//\)[^/]' \| \
16933 X"$_am_arg" : 'X\(//\)$' \| \
16934 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16935 $as_echo X"$_am_arg" |
16936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16940 /^X\(\/\/\)[^/].*/{
16952 s/.*/./; q'`/stamp-h$_am_stamp_count
16955 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16956 $as_echo "$as_me: executing $ac_file commands" >&6;}
16961 case $ac_file$ac_mode in
16962 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16963 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16964 # are listed without --file. Let's play safe and only enable the eval
16965 # if we detect the quoting.
16966 case $CONFIG_FILES in
16967 *\'*) eval set x "$CONFIG_FILES" ;;
16968 *) set x $CONFIG_FILES ;;
16973 # Strip MF so we end up with the name of the file.
16974 mf=`echo "$mf" | sed -e 's/:.*$//'`
16975 # Check whether this is an Automake generated Makefile or not.
16976 # We used to match only the files named `Makefile.in', but
16977 # some people rename them; so instead we look at the file content.
16978 # Grep'ing the first line is not enough: some people post-process
16979 # each Makefile.in and add a new line on top of each file to say so.
16980 # Grep'ing the whole file is not good either: AIX grep has a line
16981 # limit of 2048, but all sed's we know have understand at least 4000.
16982 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16983 dirpart=`$as_dirname -- "$mf" ||
16984 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16985 X"$mf" : 'X\(//\)[^/]' \| \
16986 X"$mf" : 'X\(//\)$' \| \
16987 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16993 /^X\(\/\/\)[^/].*/{
17009 # Extract the definition of DEPDIR, am__include, and am__quote
17010 # from the Makefile without running `make'.
17011 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17012 test -z "$DEPDIR" && continue
17013 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17014 test -z "am__include" && continue
17015 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17016 # When using ansi2knr, U may be empty or an underscore; expand it
17017 U=`sed -n 's/^U = //p' < "$mf"`
17018 # Find all dependency output files, they are included files with
17019 # $(DEPDIR) in their names. We invoke sed twice because it is the
17020 # simplest approach to changing $(DEPDIR) to its actual value in the
17022 for file in `sed -n "
17023 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17024 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17025 # Make sure the directory exists.
17026 test -f "$dirpart/$file" && continue
17027 fdir=`$as_dirname -- "$file" ||
17028 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17029 X"$file" : 'X\(//\)[^/]' \| \
17030 X"$file" : 'X\(//\)$' \| \
17031 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17032 $as_echo X"$file" |
17033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17037 /^X\(\/\/\)[^/].*/{
17050 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17051 # echo "creating $dirpart/$file"
17052 echo '# dummy' > "$dirpart/$file"
17059 # See if we are running on zsh, and set the options which allow our
17060 # commands through without removal of \ escapes.
17061 if test -n "${ZSH_VERSION+set}" ; then
17062 setopt NO_GLOB_SUBST
17065 cfgfile="${ofile}T"
17066 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17069 cat <<_LT_EOF >> "$cfgfile"
17072 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17073 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17076 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17077 # 2006, 2007, 2008 Free Software Foundation, Inc.
17078 # Written by Gordon Matzigkeit, 1996
17080 # This file is part of GNU Libtool.
17082 # GNU Libtool is free software; you can redistribute it and/or
17083 # modify it under the terms of the GNU General Public License as
17084 # published by the Free Software Foundation; either version 2 of
17085 # the License, or (at your option) any later version.
17087 # As a special exception to the GNU General Public License,
17088 # if you distribute this file as part of a program or library that
17089 # is built using GNU Libtool, you may include this file under the
17090 # same distribution terms that you use for the rest of that program.
17092 # GNU Libtool is distributed in the hope that it will be useful,
17093 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17094 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17095 # GNU General Public License for more details.
17097 # You should have received a copy of the GNU General Public License
17098 # along with GNU Libtool; see the file COPYING. If not, a copy
17099 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17100 # obtained by writing to the Free Software Foundation, Inc.,
17101 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17104 # The names of the tagged configurations supported by this script.
17107 # ### BEGIN LIBTOOL CONFIG
17109 # Whether or not to build static libraries.
17110 build_old_libs=$enable_static
17112 # Assembler program.
17115 # DLL creation program.
17118 # Object dumper program.
17121 # Which release of libtool.m4 was used?
17122 macro_version=$macro_version
17123 macro_revision=$macro_revision
17125 # Whether or not to build shared libraries.
17126 build_libtool_libs=$enable_shared
17128 # What type of objects to build.
17131 # Whether or not to optimize for fast installation.
17132 fast_install=$enable_fast_install
17135 host_alias=$host_alias
17139 # The build system.
17140 build_alias=$build_alias
17144 # A sed program that does not truncate output.
17147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17148 Xsed="\$SED -e 1s/^X//"
17150 # A grep program that handles long lines.
17156 # A literal string matcher.
17159 # A BSD- or MS-compatible name lister.
17162 # Whether we need soft or hard links.
17165 # What is the maximum length of a command?
17166 max_cmd_len=$max_cmd_len
17168 # Object file suffix (normally "o").
17171 # Executable file suffix (normally "").
17174 # whether the shell understands "unset".
17177 # turn spaces into newlines.
17180 # turn newlines into spaces.
17183 # How to create reloadable object files.
17184 reload_flag=$lt_reload_flag
17185 reload_cmds=$lt_reload_cmds
17187 # Method to check whether dependent libraries are shared objects.
17188 deplibs_check_method=$lt_deplibs_check_method
17190 # Command to use when deplibs_check_method == "file_magic".
17191 file_magic_cmd=$lt_file_magic_cmd
17195 AR_FLAGS=$lt_AR_FLAGS
17197 # A symbol stripping program.
17200 # Commands used to install an old-style archive.
17202 old_postinstall_cmds=$lt_old_postinstall_cmds
17203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17208 # LTCC compiler flags.
17209 LTCFLAGS=$lt_CFLAGS
17211 # Take the output of nm and produce a listing of raw symbols and C names.
17212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17214 # Transform the output of nm in a proper C declaration.
17215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17217 # Transform the output of nm in a C name address pair.
17218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17220 # Transform the output of nm in a C name address pair when lib prefix is needed.
17221 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17223 # The name of the directory that contains temporary libtool files.
17226 # Shell to use when invoking shell scripts.
17229 # An echo program that does not interpret backslashes.
17232 # Used to examine libraries when file_magic_cmd begins with "file".
17233 MAGIC_CMD=$MAGIC_CMD
17235 # Must we lock files when doing compilation?
17236 need_locks=$lt_need_locks
17238 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17239 DSYMUTIL=$lt_DSYMUTIL
17241 # Tool to change global to local symbols on Mac OS X.
17244 # Tool to manipulate fat objects and archives on Mac OS X.
17247 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17250 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17251 OTOOL64=$lt_OTOOL64
17253 # Old archive suffix (normally "a").
17256 # Shared library suffix (normally ".so").
17257 shrext_cmds=$lt_shrext_cmds
17259 # The commands to extract the exported symbol list from a shared archive.
17260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17262 # Variables whose values should be saved in libtool wrapper scripts and
17263 # restored at link time.
17264 variables_saved_for_relink=$lt_variables_saved_for_relink
17266 # Do we need the "lib" prefix for modules?
17267 need_lib_prefix=$need_lib_prefix
17269 # Do we need a version for libraries?
17270 need_version=$need_version
17272 # Library versioning type.
17273 version_type=$version_type
17275 # Shared library runtime path variable.
17276 runpath_var=$runpath_var
17278 # Shared library path variable.
17279 shlibpath_var=$shlibpath_var
17281 # Is shlibpath searched before the hard-coded library search path?
17282 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17284 # Format of library name prefix.
17285 libname_spec=$lt_libname_spec
17287 # List of archive names. First name is the real one, the rest are links.
17288 # The last name is the one that the linker finds with -lNAME
17289 library_names_spec=$lt_library_names_spec
17291 # The coded name of the library, if different from the real name.
17292 soname_spec=$lt_soname_spec
17294 # Command to use after installation of a shared archive.
17295 postinstall_cmds=$lt_postinstall_cmds
17297 # Command to use after uninstallation of a shared archive.
17298 postuninstall_cmds=$lt_postuninstall_cmds
17300 # Commands used to finish a libtool library installation in a directory.
17301 finish_cmds=$lt_finish_cmds
17303 # As "finish_cmds", except a single script fragment to be evaled but
17305 finish_eval=$lt_finish_eval
17307 # Whether we should hardcode library paths into libraries.
17308 hardcode_into_libs=$hardcode_into_libs
17310 # Compile-time system search path for libraries.
17311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17313 # Run-time system search path for libraries.
17314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17316 # Whether dlopen is supported.
17317 dlopen_support=$enable_dlopen
17319 # Whether dlopen of programs is supported.
17320 dlopen_self=$enable_dlopen_self
17322 # Whether dlopen of statically linked programs is supported.
17323 dlopen_self_static=$enable_dlopen_self_static
17325 # Commands to strip libraries.
17326 old_striplib=$lt_old_striplib
17327 striplib=$lt_striplib
17330 # The linker used to build libraries.
17333 # Commands used to build an old-style archive.
17334 old_archive_cmds=$lt_old_archive_cmds
17336 # A language specific compiler.
17339 # Is the compiler the GNU compiler?
17342 # Compiler flag to turn off builtin functions.
17343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17345 # How to pass a linker flag through the compiler.
17346 wl=$lt_lt_prog_compiler_wl
17348 # Additional compiler flags for building library objects.
17349 pic_flag=$lt_lt_prog_compiler_pic
17351 # Compiler flag to prevent dynamic linking.
17352 link_static_flag=$lt_lt_prog_compiler_static
17354 # Does compiler simultaneously support -c and -o options?
17355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17357 # Whether or not to add -lc for building shared libraries.
17358 build_libtool_need_lc=$archive_cmds_need_lc
17360 # Whether or not to disallow shared libs when runtime libs are static.
17361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17363 # Compiler flag to allow reflexive dlopens.
17364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17366 # Compiler flag to generate shared objects directly from archives.
17367 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17369 # Whether the compiler copes with passing no objects directly.
17370 compiler_needs_object=$lt_compiler_needs_object
17372 # Create an old-style archive from a shared archive.
17373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17375 # Create a temporary old-style archive to link instead of a shared archive.
17376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17378 # Commands used to build a shared archive.
17379 archive_cmds=$lt_archive_cmds
17380 archive_expsym_cmds=$lt_archive_expsym_cmds
17382 # Commands used to build a loadable module if different from building
17383 # a shared archive.
17384 module_cmds=$lt_module_cmds
17385 module_expsym_cmds=$lt_module_expsym_cmds
17387 # Whether we are building with GNU ld or not.
17388 with_gnu_ld=$lt_with_gnu_ld
17390 # Flag that allows shared libraries with undefined symbols to be built.
17391 allow_undefined_flag=$lt_allow_undefined_flag
17393 # Flag that enforces no undefined symbols.
17394 no_undefined_flag=$lt_no_undefined_flag
17396 # Flag to hardcode \$libdir into a binary during linking.
17397 # This must work even if \$libdir does not exist
17398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17400 # If ld is used when linking, flag to hardcode \$libdir into a binary
17401 # during linking. This must work even if \$libdir does not exist.
17402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17404 # Whether we need a single "-rpath" flag with a separated argument.
17405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17408 # DIR into the resulting binary.
17409 hardcode_direct=$hardcode_direct
17411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17412 # DIR into the resulting binary and the resulting library dependency is
17413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17414 # library is relocated.
17415 hardcode_direct_absolute=$hardcode_direct_absolute
17417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17418 # into the resulting binary.
17419 hardcode_minus_L=$hardcode_minus_L
17421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17422 # into the resulting binary.
17423 hardcode_shlibpath_var=$hardcode_shlibpath_var
17425 # Set to "yes" if building a shared library automatically hardcodes DIR
17426 # into the library and all subsequent libraries and executables linked
17428 hardcode_automatic=$hardcode_automatic
17430 # Set to yes if linker adds runtime paths of dependent libraries
17431 # to runtime path list.
17432 inherit_rpath=$inherit_rpath
17434 # Whether libtool must link a program against all its dependency libraries.
17435 link_all_deplibs=$link_all_deplibs
17437 # Fix the shell variable \$srcfile for the compiler.
17438 fix_srcfile_path=$lt_fix_srcfile_path
17440 # Set to "yes" if exported symbols are required.
17441 always_export_symbols=$always_export_symbols
17443 # The commands to list exported symbols.
17444 export_symbols_cmds=$lt_export_symbols_cmds
17446 # Symbols that should not be listed in the preloaded symbols.
17447 exclude_expsyms=$lt_exclude_expsyms
17449 # Symbols that must always be exported.
17450 include_expsyms=$lt_include_expsyms
17452 # Commands necessary for linking programs (against libraries) with templates.
17453 prelink_cmds=$lt_prelink_cmds
17455 # Specify filename containing input files.
17456 file_list_spec=$lt_file_list_spec
17458 # How to hardcode a shared library path into an executable.
17459 hardcode_action=$hardcode_action
17461 # ### END LIBTOOL CONFIG
17467 cat <<\_LT_EOF >> "$cfgfile"
17468 # AIX sometimes has problems with the GCC collect2 program. For some
17469 # reason, if we set the COLLECT_NAMES environment variable, the problems
17470 # vanish in a puff of smoke.
17471 if test "X${COLLECT_NAMES+set}" != Xset; then
17473 export COLLECT_NAMES
17480 ltmain="$ac_aux_dir/ltmain.sh"
17483 # We use sed instead of cat because bash on DJGPP gets confused if
17484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17485 # text mode, it properly converts lines to CR/LF. This bash problem
17486 # is reportedly fixed, but why not run on old versions too?
17487 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17488 || (rm -f "$cfgfile"; exit 1)
17492 cat << \_LT_EOF >> "$cfgfile"
17494 # func_dirname file append nondir_replacement
17495 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17496 # otherwise set result to NONDIR_REPLACEMENT.
17500 */*) func_dirname_result="${1%/*}${2}" ;;
17501 * ) func_dirname_result="${3}" ;;
17505 # func_basename file
17508 func_basename_result="${1##*/}"
17511 # func_dirname_and_basename file append nondir_replacement
17512 # perform func_basename and func_dirname in a single function
17514 # dirname: Compute the dirname of FILE. If nonempty,
17515 # add APPEND to the result, otherwise set result
17516 # to NONDIR_REPLACEMENT.
17517 # value returned in "$func_dirname_result"
17518 # basename: Compute filename of FILE.
17519 # value retuned in "$func_basename_result"
17520 # Implementation must be kept synchronized with func_dirname
17521 # and func_basename. For efficiency, we do not delegate to
17522 # those functions but instead duplicate the functionality here.
17523 func_dirname_and_basename ()
17526 */*) func_dirname_result="${1%/*}${2}" ;;
17527 * ) func_dirname_result="${3}" ;;
17529 func_basename_result="${1##*/}"
17532 # func_stripname prefix suffix name
17533 # strip PREFIX and SUFFIX off of NAME.
17534 # PREFIX and SUFFIX must not contain globbing or regex special
17535 # characters, hashes, percent signs, but SUFFIX may contain a leading
17536 # dot (in which case that matches only a dot).
17539 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17540 # positional parameters, so assign one to ordinary parameter first.
17541 func_stripname_result=${3}
17542 func_stripname_result=${func_stripname_result#"${1}"}
17543 func_stripname_result=${func_stripname_result%"${2}"}
17549 func_opt_split_opt=${1%%=*}
17550 func_opt_split_arg=${1#*=}
17557 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17558 *) func_lo2o_result=${1} ;;
17562 # func_xform libobj-or-source
17565 func_xform_result=${1%.*}.lo
17568 # func_arith arithmetic-term...
17571 func_arith_result=$(( $* ))
17575 # STRING may not start with a hyphen.
17578 func_len_result=${#1}
17583 *) # Bourne compatible functions.
17584 cat << \_LT_EOF >> "$cfgfile"
17586 # func_dirname file append nondir_replacement
17587 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17588 # otherwise set result to NONDIR_REPLACEMENT.
17591 # Extract subdirectory from the argument.
17592 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17593 if test "X$func_dirname_result" = "X${1}"; then
17594 func_dirname_result="${3}"
17596 func_dirname_result="$func_dirname_result${2}"
17600 # func_basename file
17603 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17607 # func_stripname prefix suffix name
17608 # strip PREFIX and SUFFIX off of NAME.
17609 # PREFIX and SUFFIX must not contain globbing or regex special
17610 # characters, hashes, percent signs, but SUFFIX may contain a leading
17611 # dot (in which case that matches only a dot).
17612 # func_strip_suffix prefix name
17616 .*) func_stripname_result=`$ECHO "X${3}" \
17617 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17618 *) func_stripname_result=`$ECHO "X${3}" \
17619 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17624 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17625 my_sed_long_arg='1s/^-[^=]*=//'
17630 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17631 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17637 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17640 # func_xform libobj-or-source
17643 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17646 # func_arith arithmetic-term...
17649 func_arith_result=`expr "$@"`
17653 # STRING may not start with a hyphen.
17656 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17662 case $lt_shell_append in
17664 cat << \_LT_EOF >> "$cfgfile"
17666 # func_append var value
17667 # Append VALUE to the end of shell variable VAR.
17675 cat << \_LT_EOF >> "$cfgfile"
17677 # func_append var value
17678 # Append VALUE to the end of shell variable VAR.
17689 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17690 || (rm -f "$cfgfile"; exit 1)
17692 mv -f "$cfgfile" "$ofile" ||
17693 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698 for ac_file in $CONFIG_FILES; do
17699 # Support "outfile[:infile[:infile...]]"
17701 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17703 # PO directories have a Makefile.in generated from Makefile.in.in.
17704 case "$ac_file" in */Makefile.in)
17705 # Adjust a relative srcdir.
17706 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17707 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17708 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17709 # In autoconf-2.13 it is called $ac_given_srcdir.
17710 # In autoconf-2.50 it is called $srcdir.
17711 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17712 case "$ac_given_srcdir" in
17713 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17714 /*) top_srcdir="$ac_given_srcdir" ;;
17715 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17717 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17718 rm -f "$ac_dir/POTFILES"
17719 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17720 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17721 POMAKEFILEDEPS="POTFILES.in"
17722 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17723 # on $ac_dir but don't depend on user-specified configuration
17725 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17726 # The LINGUAS file contains the set of available languages.
17727 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17728 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17730 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17731 # Hide the ALL_LINGUAS assigment from automake.
17732 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17733 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17735 # The set of available languages was given in configure.in.
17736 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17739 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17740 # Compute UPDATEPOFILES
17741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17742 # Compute DUMMYPOFILES
17743 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17745 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17746 case "$ac_given_srcdir" in
17748 *) srcdirpre='$(srcdir)/' ;;
17754 for lang in $ALL_LINGUAS; do
17755 POFILES="$POFILES $srcdirpre$lang.po"
17756 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17757 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17758 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17760 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17761 # environment variable.
17763 if test -n "$ALL_LINGUAS"; then
17764 for presentlang in $ALL_LINGUAS; do
17766 if test "%UNSET%" != "$LINGUAS"; then
17767 desiredlanguages="$LINGUAS"
17769 desiredlanguages="$ALL_LINGUAS"
17771 for desiredlang in $desiredlanguages; do
17772 # Use the presentlang catalog if desiredlang is
17773 # a. equal to presentlang, or
17774 # b. a variant of presentlang (because in this case,
17775 # presentlang can be used as a fallback for messages
17776 # which are not translated in the desiredlang catalog).
17777 case "$desiredlang" in
17778 "$presentlang"*) useit=yes;;
17781 if test $useit = yes; then
17782 INST_LINGUAS="$INST_LINGUAS $presentlang"
17787 if test -n "$INST_LINGUAS"; then
17788 for lang in $INST_LINGUAS; do
17789 CATALOGS="$CATALOGS $lang.gmo"
17792 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17793 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17794 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17795 if test -f "$f"; then
17797 *.orig | *.bak | *~) ;;
17798 *) cat "$f" >> "$ac_dir/Makefile" ;;
17807 for ac_file in $CONFIG_FILES; do
17808 # Support "outfile[:infile[:infile...]]"
17810 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17812 # PO directories have a Makefile.in generated from Makefile.in.in.
17813 case "$ac_file" in */Makefile.in)
17814 # Adjust a relative srcdir.
17815 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17816 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17817 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17818 # In autoconf-2.13 it is called $ac_given_srcdir.
17819 # In autoconf-2.50 it is called $srcdir.
17820 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17821 case "$ac_given_srcdir" in
17822 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17823 /*) top_srcdir="$ac_given_srcdir" ;;
17824 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17826 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17827 rm -f "$ac_dir/POTFILES"
17828 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17829 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17830 POMAKEFILEDEPS="POTFILES.in"
17831 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17832 # on $ac_dir but don't depend on user-specified configuration
17834 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17835 # The LINGUAS file contains the set of available languages.
17836 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17837 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17839 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17840 # Hide the ALL_LINGUAS assigment from automake.
17841 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17842 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17844 # The set of available languages was given in configure.in.
17845 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17848 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17849 # Compute UPDATEPOFILES
17850 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17851 # Compute DUMMYPOFILES
17852 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17854 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17855 case "$ac_given_srcdir" in
17857 *) srcdirpre='$(srcdir)/' ;;
17863 for lang in $ALL_LINGUAS; do
17864 POFILES="$POFILES $srcdirpre$lang.po"
17865 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17866 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17867 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17869 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17870 # environment variable.
17872 if test -n "$ALL_LINGUAS"; then
17873 for presentlang in $ALL_LINGUAS; do
17875 if test "%UNSET%" != "$LINGUAS"; then
17876 desiredlanguages="$LINGUAS"
17878 desiredlanguages="$ALL_LINGUAS"
17880 for desiredlang in $desiredlanguages; do
17881 # Use the presentlang catalog if desiredlang is
17882 # a. equal to presentlang, or
17883 # b. a variant of presentlang (because in this case,
17884 # presentlang can be used as a fallback for messages
17885 # which are not translated in the desiredlang catalog).
17886 case "$desiredlang" in
17887 "$presentlang"*) useit=yes;;
17890 if test $useit = yes; then
17891 INST_LINGUAS="$INST_LINGUAS $presentlang"
17896 if test -n "$INST_LINGUAS"; then
17897 for lang in $INST_LINGUAS; do
17898 CATALOGS="$CATALOGS $lang.gmo"
17901 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17902 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17903 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17904 if test -f "$f"; then
17906 *.orig | *.bak | *~) ;;
17907 *) cat "$f" >> "$ac_dir/Makefile" ;;
17922 ac_clean_files=$ac_clean_files_save
17924 test $ac_write_fail = 0 ||
17925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17928 # configure is writing to config.log, and then calls config.status.
17929 # config.status does its own redirection, appending to config.log.
17930 # Unfortunately, on DOS this fails, as config.log is still kept open
17931 # by configure, so config.status won't be able to write to it; its
17932 # output is simply discarded. So we exec the FD to /dev/null,
17933 # effectively closing config.log, so it can be properly (re)opened and
17934 # appended to by config.status. When coming back to configure, we
17935 # need to make the FD available again.
17936 if test "$no_create" != yes; then
17938 ac_config_status_args=
17939 test "$silent" = yes &&
17940 ac_config_status_args="$ac_config_status_args --quiet"
17942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17945 # would make configure fail if this is the last instruction.
17946 $ac_cs_success || as_fn_exit 1
17948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17954 # Message about configured subprojects
17955 if test "x$subdirs" != "x"; then
17957 gp_config_msg="${gp_config_msg}
17960 for sd in $subdirs; do
17961 ssd="$(basename "$sd")"
17962 if test "x$_subdirs" = "x"; then
17965 _subdirs="$_subdirs $ssd"
17969 gp_config_msg_len="$(expr "Subprojects" : '.*')"
17970 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17971 gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
17973 gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17975 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${_subdirs}
17979 echo "${gp_config_msg}
17980 You may run \"make\" and \"make install\" now."